/* ── Font ── */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/pasticceria/fonts/libre-baskerville-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/pasticceria/fonts/libre-baskerville-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/pasticceria/fonts/libre-baskerville-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/pasticceria/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/pasticceria/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/pasticceria/fonts/inter.woff2') format('woff2');
}

/* ── Tema Pasticceria Marta ── */
:root {
  --bg: #FAF6F1;
  --bg-alt: #F0EAE0;
  --marrone: #3B2A1A;
  --marrone-accent: #8B5E3C;
  --marrone-rgb: 59, 42, 26;
  --accent-rgb: 139, 94, 60;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--marrone);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--marrone-rgb), .5);
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}
.hero__label {
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: .8;
}
.hero__title {
  color: var(--bg);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: .02em;
}

/* ── Intro ── */
.intro {
  text-align: center;
  padding: 3.5rem 2rem;
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(var(--marrone-rgb), .5);
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Container menu ── */
.menu {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* ── Filtri ── */
.filtri {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.filtri__btn {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(var(--marrone-rgb), .55);
  font-family: var(--font-sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  padding-bottom: .25rem;
  color: rgba(var(--marrone-rgb), .55);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.filtri__btn:hover {
  color: rgba(var(--marrone-rgb), .7);
  border-bottom-color: rgba(var(--marrone-rgb), .7);
}
.filtri__btn--active {
  color: var(--marrone);
  font-weight: 600;
  border-bottom-color: var(--marrone-accent);
}

/* ── Link intolleranze ── */
.link-allergeni {
  text-align: center;
  margin-bottom: 3rem;
}
.link-allergeni a {
  color: rgba(var(--marrone-rgb), .4);
  font-family: var(--font-sans);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(var(--marrone-rgb), .2);
  transition: color .2s;
  cursor: pointer;
}
.link-allergeni a:hover {
  color: rgba(var(--marrone-rgb), .6);
}

/* ── Contenitore piatti ── */
.menu__box {
  border: 1px solid rgba(var(--marrone-rgb), .12);
  padding: 2rem;
  background: var(--bg);
}
@media (min-width: 768px) {
  .menu__box { padding: 3.5rem; }
}

/* ── Sezione ── */
.sezione {
  margin-bottom: 4rem;
}
.sezione:last-child {
  margin-bottom: 0;
}
.sezione__titolo {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 2.5rem;
}

/* ── Separatore ── */
.sep {
  width: 100%;
  height: 1px;
  background: rgba(var(--marrone-rgb), .1);
  margin: 3rem 0;
}

/* ── Piatto ── */
.piatto {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  transition: opacity .3s;
}
.piatto:last-child { margin-bottom: 0; }
.piatto--faded { opacity: .2; }

@media (min-width: 768px) {
  .piatto { flex-wrap: nowrap; }
}

.piatto__info { flex-shrink: 1; }
.piatto__nome {
  color: var(--marrone);
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .piatto__nome { font-size: 1.05rem; }
}

.piatto__desc {
  color: rgba(var(--marrone-rgb), .6);
  font-family: var(--font-sans);
  font-size: .85rem;
  line-height: 1.6;
}

.piatto__dots {
  display: none;
  flex: 1;
  border-bottom: 1px dotted rgba(var(--marrone-rgb), .15);
  min-width: 2rem;
  transform: translateY(-4px);
}
@media (min-width: 768px) {
  .piatto__dots { display: block; }
}

.piatto__prezzo {
  color: var(--marrone-accent);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}

/* ── Badge allergene ── */
.badge-allergeni {
  display: inline-flex;
  gap: 3px;
  margin-left: .5rem;
  vertical-align: middle;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(var(--marrone-rgb), .35);
  color: rgba(var(--marrone-rgb), .45);
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1;
  user-select: none;
  transition: color .2s, border-color .2s, background .2s;
}
.badge--alert {
  border-color: rgba(var(--accent-rgb), .6);
  color: rgba(var(--accent-rgb), .9);
  background: rgba(var(--accent-rgb), .12);
}

/* ── Footer menu ── */
.menu__footer {
  text-align: center;
  margin-top: 3rem;
}
.menu__footer p {
  color: rgba(var(--marrone-rgb), .6);
  font-family: var(--font-sans);
  font-size: .875rem;
}

/* ── Legenda allergeni ── */
.legenda {
  margin-top: 1.5rem;
}
.legenda__toggle {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(var(--marrone-rgb), .6);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 auto;
  transition: color .2s;
}
.legenda__toggle:hover {
  color: rgba(var(--marrone-rgb), .55);
}
.legenda__toggle--active {
  color: var(--marrone-accent);
}
.legenda__arrow {
  width: 12px;
  height: 12px;
  transition: transform .2s;
}
.legenda__arrow--open {
  transform: rotate(180deg);
}
.legenda__body {
  margin-top: 1rem;
  display: none;
}
.legenda__body--open {
  display: block;
}
.legenda__hint {
  color: rgba(var(--marrone-rgb), .35);
  font-family: var(--font-sans);
  font-size: .75rem;
  text-align: center;
  margin-bottom: 1rem;
}
.legenda__list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  justify-content: center;
}
.legenda__item {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: .75rem;
  white-space: nowrap;
  color: rgba(var(--marrone-rgb), .35);
  cursor: pointer;
  transition: color .2s;
}
.legenda__item:hover {
  color: rgba(var(--marrone-rgb), .55);
}
.legenda__item--active {
  color: var(--marrone-accent);
}
.legenda__item .badge {
  margin-right: 4px;
  font-size: 9px;
}

/* ── Footer ── */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(var(--marrone-rgb), .25);
  font-family: var(--font-sans);
  font-size: .75rem;
}
.footer a {
  color: rgba(var(--marrone-rgb), .25);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.footer a:hover {
  color: rgba(var(--marrone-rgb), .45);
}

/* ── Sezione bevande ── */
.bevande {
  background: var(--bg-alt);
  padding: 5rem 2rem;
  text-align: center;
}
.bevande__label {
  color: var(--marrone-accent);
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.bevande__titolo {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
}
.bevande__menu {
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}
.bevande__sezione {
  margin-bottom: 2rem;
}
.bevande__sezione:last-child {
  margin-bottom: 0;
}
.bevande__cat {
  font-family: var(--font-sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--marrone-accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.bevande__item {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .75rem;
}
.bevande__nome {
  color: rgba(var(--marrone-rgb), .7);
  font-family: var(--font-sans);
  font-size: .95rem;
}
.bevande__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(var(--marrone-rgb), .15);
  min-width: 1rem;
  transform: translateY(-4px);
}
.bevande__prezzo {
  color: var(--marrone-accent);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Bottom nav ── */
.bnav {
  display: none;
}

@media (max-width: 768px) {
  .bnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    background: var(--marrone-accent);
    padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom));
  }
  .bnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-sans);
    transition: color .2s;
    padding: .25rem .5rem;
  }
  .bnav__item--active .bnav__icon {
    stroke: #3B2014;
  }
  .bnav__icon {
    width: 22px;
    height: 22px;
  }
  .bnav__label {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .03em;
  }
  body {
    padding-bottom: 70px;
  }
}

/* ── Nav Plus (barra orizzontale) ── */
.plus-bar {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(var(--marrone-rgb), .1);
}
.plus-bar::-webkit-scrollbar {
  display: none;
}
.plus-bar__item {
  flex-shrink: 0;
  padding: .75rem 1.25rem;
  color: rgba(var(--marrone-rgb), .7);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: color .2s;
}
.plus-bar__item:hover {
  color: rgba(var(--marrone-rgb), .8);
}
.plus-bar__item--active {
  color: var(--marrone);
  border-bottom: 2px solid var(--marrone-accent);
}
.plus-bar__arrow {
  position: sticky;
  right: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 .75rem 0 1.5rem;
  background: linear-gradient(to right, transparent, var(--bg) 30%);
  pointer-events: none;
  color: var(--marrone-accent);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: -.05em;
}

/* ── Pagine Plus ── */
.plus-hero {
  position: relative;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
}
.plus-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plus-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(var(--marrone-rgb), .2), rgba(var(--marrone-rgb), .85));
}
.plus-hero__content {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  right: 2rem;
  max-width: 40rem;
  margin: 0 auto;
}
.plus-hero__title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--bg);
  letter-spacing: .02em;
}
.plus-content {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.plus-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--marrone);
}
.plus-content h2:first-child {
  margin-top: 0;
}
.plus-content p {
  color: rgba(var(--marrone-rgb), .7);
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* ── Nessun risultato ── */
.empty {
  color: rgba(var(--marrone-rgb), .35);
  text-align: center;
  padding: 2rem 0;
}
