/* ==========================================
   LA PIAZZETTA – PUBLIC MENU PAGE
   Scope: /menu only
========================================== */

body.lp-theme.page-menu,
body.lp-theme.page-menu main{
  background-color: var(--lp-cream);
  background-image: url('../../img/textures/paper-grain.png');
  background-repeat: repeat;
  background-size: 320px 320px;
}

/* ==========================================
   HERO
========================================== */

.lp-menu-hero{
  position: relative;
  min-height: clamp(190px, 25vw, 300px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center 42%;
  color: var(--lp-cream);
}

.lp-menu-hero__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42), rgba(0,0,0,0.52)),
    radial-gradient(circle at center, rgba(0,0,0,0.06), rgba(0,0,0,0.48));
}

.lp-menu-hero__inner{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.lp-menu-hero__brand{
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.86;
  color: var(--lp-cream);
  margin-bottom: 10px;
}

.lp-menu-hero h1{
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.035em;
  color: var(--lp-cream);
}

.lp-menu-hero h1::before,
.lp-menu-hero h1::after{
  content: "";
  display: inline-block;
  width: clamp(46px, 8vw, 110px);
  height: 1px;
  margin: 0 16px 0.22em;
  background: rgba(247,244,238,0.74);
}

.lp-menu-hero__ornament{
  width: min(120px, 36vw);
  height: 14px;
  margin: 18px auto 0;
  background:
    linear-gradient(90deg, transparent, rgba(247,244,238,0.72), transparent) center / 100% 1px no-repeat;
  position: relative;
}

.lp-menu-hero__ornament::before{
  content: "✥";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: rgba(247,244,238,0.82);
}

/* ==========================================
   PAGE INTRO
========================================== */

.lp-menu-page{
  padding: clamp(24px, 4vw, 48px) 0 clamp(54px, 8vw, 96px);
  overflow-x: clip;
}

.lp-menu-breadcrumb{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(26px, 3.8vw, 46px);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(42,37,33,0.70);
}

.lp-menu-breadcrumb a{
  color: rgba(42,37,33,0.76);
  text-decoration: none;
}

.lp-menu-breadcrumb a:hover{
  color: var(--lp-bg-dark);
}

.lp-menu-intro{
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.lp-menu-title-row{
  display: grid;
  grid-template-columns: minmax(40px, 1fr) minmax(0, auto) minmax(40px, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: 20px;
}

.lp-menu-title-row h2{
  min-width: 0;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1;
  color: var(--lp-bg-dark);
}

.lp-menu-title-line{
  min-width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(183,150,99,0.08),
    rgba(183,150,99,0.64),
    rgba(183,150,99,0.08)
  );
}

.lp-menu-intro p{
  width: min(700px, 100%);
  margin: 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.5;
  color: rgba(42,37,33,0.75);
}

.lp-menu-empty{
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  background: rgba(255,252,247,0.72);
  border: 1px solid rgba(58,29,22,0.10);
  text-align: center;
  color: rgba(42,37,33,0.78);
}

/* ==========================================
   LAYOUT
========================================== */

.lp-menu-layout{
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 38px);
  align-items: start;
  overflow: visible;
}

.lp-menu-sidebar{
  position: sticky;
  top: 92px;
  align-self: start;
  z-index: 2;
}

.lp-menu-sidebar__inner{
  background: rgba(255,252,247,0.60);
  border: 1px solid rgba(58,29,22,0.12);
  box-shadow: 0 18px 38px rgba(58,29,22,0.045);
  padding: 24px 18px;
}

.lp-menu-sidebar h2{
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 600;
  color: var(--lp-bg-dark);
}

.lp-menu-sidebar__ornament{
  height: 16px;
  margin: 16px 0 10px;
  background:
    linear-gradient(90deg, rgba(183,150,99,0.08), rgba(183,150,99,0.36), rgba(183,150,99,0.08)) center / 100% 1px no-repeat;
  position: relative;
}

.lp-menu-sidebar__ornament::before{
  content: "✧";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: rgba(183,150,99,0.70);
  font-size: 12px;
}

.lp-menu-sidebar__ornament--bottom{
  margin: 18px 0 0;
}

.lp-menu-category-nav{
  display: grid;
}

.lp-menu-category-nav a{
  display: block;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(58,29,22,0.10);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  font-weight: 600;
  line-height: 1.1;
  color: rgba(42,37,33,0.86);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.lp-menu-category-nav a:hover,
.lp-menu-category-nav a:focus,
.lp-menu-category-nav a.is-active{
  color: var(--lp-bg-dark);
  padding-left: 16px;
}

.lp-menu-content{
  min-width: 0;
  max-width: 100%;
}

.lp-menu-note{
  margin-bottom: clamp(22px, 3vw, 34px);
  padding: 15px 22px;
  background: rgba(255,252,247,0.64);
  border: 1px solid rgba(58,29,22,0.10);
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  color: rgba(42,37,33,0.82);
  box-shadow: 0 12px 26px rgba(58,29,22,0.035);
}

.lp-menu-note span{
  margin-left: 8px;
}

/* ==========================================
   CATEGORY BLOCKS
========================================== */

.lp-menu-category{
  max-width: 100%;
  min-width: 0;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.lp-menu-category:last-of-type{
  margin-bottom: 0;
}

.lp-menu-category-head{
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, auto) minmax(24px, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  margin-bottom: 18px;
  text-align: center;
}

.lp-menu-category-head h2{
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  font-weight: 500;
  line-height: 1;
  color: var(--lp-bg-dark);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.lp-menu-category-line{
  min-width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(183,150,99,0.05),
    rgba(183,150,99,0.56),
    rgba(183,150,99,0.05)
  );
}

.lp-menu-category-subtitle{
  width: min(680px, 100%);
  margin: -4px auto 18px;
  text-align: center;
  color: rgba(42,37,33,0.70);
  line-height: 1.7;
}

.lp-menu-category-image{
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 1;
  height: auto;
  max-height: 240px;
  margin-bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(58,29,22,0.10);
  border-bottom: 0;
  background: var(--lp-cream);
}

.lp-menu-category-image img{
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lp-menu-items-panel{
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(255,252,247,0.58);
  border: 1px solid rgba(58,29,22,0.12);
  box-shadow: 0 18px 38px rgba(58,29,22,0.045);
}

.lp-menu-category-image + .lp-menu-items-panel{
  border-top: 0;
}

.lp-menu-items-list{
  padding: clamp(18px, 2.5vw, 26px) clamp(20px, 2.8vw, 30px);
}

/* ==========================================
   ITEM ROWS
========================================== */

.lp-menu-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(58,29,22,0.12);
}

.lp-menu-item:first-child{
  padding-top: 0;
}

.lp-menu-item:last-child{
  padding-bottom: 0;
  border-bottom: 0;
}

.lp-menu-item h3{
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--lp-bg-dark);
}

.lp-menu-item p{
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.45;
  color: rgba(42,37,33,0.78);
}

.lp-menu-item__price{
  white-space: nowrap;
  padding-top: 2px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--lp-bg-dark);
}

.lp-menu-codes{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: 8px;
  vertical-align: 0.08em;
}

.lp-menu-codes span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(183,150,99,0.86);
  color: #fffaf1;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.lp-menu-allergy-footer{
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 18px;
  text-align: center;
  border-top: 1px solid rgba(58,29,22,0.10);
}

.lp-menu-allergy-footer a{
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(42,37,33,0.78);
  text-decoration: none;
}

.lp-menu-allergy-footer a:hover{
  color: var(--lp-bg-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991.98px){
  .lp-menu-layout{
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .lp-menu-sidebar{
    display: none;
  }

  .lp-menu-content{
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .lp-menu-category-head{
    grid-template-columns: minmax(18px, 1fr) minmax(0, auto) minmax(18px, 1fr);
  }

  .lp-menu-category-head h2{
    font-size: clamp(1.75rem, 5vw, 2.45rem);
    line-height: 1.05;
  }

  .lp-menu-note span{
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px){
  .lp-menu-hero{
    min-height: 240px;
  }

  .lp-menu-page{
    padding-top: 34px;
  }

  .lp-menu-intro{
    margin-bottom: 30px;
  }

  .lp-menu-layout{
    gap: 0;
  }

  .lp-menu-note{
    margin-bottom: 30px;
    padding: 13px 18px;
  }

  .lp-menu-category-head{
    margin-bottom: 16px;
  }

  .lp-menu-items-list{
    padding: 22px 24px;
  }

  .lp-menu-item{
    padding: 16px 0;
    gap: 16px;
  }
}

@media (max-width: 575.98px){
  .lp-menu-hero{
    min-height: 210px;
  }

  .lp-menu-page{
    padding-top: 24px;
    padding-bottom: 58px;
  }

  .lp-menu-intro{
    margin-bottom: 24px;
  }

  .lp-menu-title-row,
  .lp-menu-category-head{
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .lp-menu-title-line,
  .lp-menu-category-line{
    width: min(220px, 100%);
    margin: 0 auto;
  }

  .lp-menu-title-row h2,
  .lp-menu-category-head h2{
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lp-menu-category{
    width: 100%;
    max-width: 100%;
    margin-bottom: 34px;
    overflow: hidden;
  }

  .lp-menu-category-head{
    margin-bottom: 14px;
  }

  .lp-menu-note{
    margin-bottom: 26px;
    padding: 13px 16px;
  }

  .lp-menu-category-image{
    aspect-ratio: auto;
    height: auto;
    max-height: none;
  }

  .lp-menu-category-image img{
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .lp-menu-item{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lp-menu-item__price{
    justify-self: end;
  }

  .lp-menu-items-list{
    padding: 16px 16px;
  }
}
