/* The product tree: panel under the main menu on desktop, accordion in the mobile menu. */
.menu,
.x-menu {
  align-items: center;
}
.mg-drop {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mg-btn {
  position: relative;
  width: 20px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.8;
}
.mg-btn::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.mg-btn:focus-visible {
  outline: 2px solid var(--caramel, #a27758);
  outline-offset: 2px;
}
/* Closes with a short delay, so a diagonal move from the menu item to a column does not lose the panel. */
.mg-panel {
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100svh - 76px);
  overflow-y: auto;
  padding: 30px clamp(20px, 4vw, 60px) 26px;
  background: var(--bg, #f4f0e8);
  color: var(--ink, #2a211d);
  border-top: 1px solid rgba(42, 33, 29, 0.14);
  border-bottom: 1px solid rgba(42, 33, 29, 0.18);
  box-shadow: 0 24px 48px rgba(42, 33, 29, 0.12);
}
.mg-drop {
  position: static;
}
.mg-drop > a,
.mg-btn {
  position: relative;
}
.mg-drop > a::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -14px;
  right: -34px;
  height: 30px;
}
@media (hover: hover) {
  .mg-drop:hover .mg-panel {
    visibility: visible;
    transition-delay: 0s;
  }
  .mg-drop:hover .mg-btn::before {
    transform: translateY(3px) rotate(225deg);
  }
  .mg-drop.mg-rest:hover .mg-panel {
    visibility: hidden;
    transition: none;
  }
  .mg-drop.mg-rest:hover .mg-btn::before {
    transform: rotate(45deg);
  }
}
.mg-drop.mg-open .mg-panel {
  visibility: visible;
  transition-delay: 0s;
}
.mg-drop.mg-open .mg-btn::before {
  transform: translateY(3px) rotate(225deg);
}
.mg-cols {
  columns: 4;
  column-gap: 34px;
  max-width: 1320px;
  margin: 0 auto;
}
.mg-col {
  break-inside: avoid;
  padding-bottom: 22px;
}
.mg-panel a {
  display: block;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
  opacity: 0.82;
  box-shadow: none;
}
.mg-panel a:hover,
.mg-panel a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mg-panel a.mg-cat {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  opacity: 1;
}
.mg-panel a.mg-sub {
  font-size: 13.5px;
  font-weight: 500;
}
.mg-panel a.mg-all {
  max-width: 1320px;
  margin: 2px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 33, 29, 0.14);
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
}
@media (max-width: 1000px) {
  .mg-cols {
    columns: 3;
  }
}

.mg-acc > summary,
.mg-acc2 > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}
.mg-acc > summary::-webkit-details-marker,
.mg-acc2 > summary::-webkit-details-marker {
  display: none;
}
.mg-acc > summary::after,
.mg-acc2 > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.mg-acc[open] > summary::after,
.mg-acc2[open] > summary::after {
  transform: translateY(3px) rotate(225deg);
}
.mg-acc > summary {
  font: 400 30px/1.35 var(--serif);
}
.mg-acc-in {
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(42, 33, 29, 0.14);
}
.mg-acc2 > summary,
.x-sheet a.mg-l-cat,
.nav-sheet a.mg-l-cat,
.x-sheet a.mg-l-all,
.nav-sheet a.mg-l-all {
  display: flex;
  min-height: 44px;
  align-items: center;
  font: 600 17px/1.3 var(--sans);
}
.mg-acc2-in {
  padding: 0 0 10px 14px;
}
.x-sheet a.mg-l,
.nav-sheet a.mg-l {
  display: flex;
  align-items: center;
  min-height: 40px;
  font: 500 15px/1.3 var(--sans);
}
.x-sheet a.mg-l-cat,
.nav-sheet a.mg-l-cat,
.x-sheet a.mg-l-all,
.nav-sheet a.mg-l-all {
  min-height: 44px;
  font: 600 17px/1.3 var(--sans);
}

/* Two groups: what Frulatti makes, and the raw materials it imports. */
.mg-groups {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 3fr;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto 18px;
}
.mg-grp {
  display: block;
  margin: 0 0 12px;
  font: 600 11.5px/1.3 var(--sans, Arial, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel, #a27758);
}
.mg-raw {
  columns: 3;
  column-gap: 34px;
}
.mg-raw a.mg-cat {
  break-inside: avoid;
}
@media (max-width: 1000px) {
  .mg-groups {
    grid-template-columns: 1fr 2fr;
  }
  .mg-raw {
    columns: 2;
  }
}
.mg-acc-in .mg-grp {
  margin: 16px 0 4px;
}

/* Seasonal pop-up, bottom corner, never covers the whole page. */
.sea {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 24px 24px 22px;
  background: #2a211d;
  color: #f4f0e8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: sea-in 0.4s ease-out;
}
@keyframes sea-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sea {
    animation: none;
  }
}
.sea-kick {
  font: 600 11.5px/1.3 var(--sans, Arial, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8a776;
}
.sea h2 {
  margin: 10px 28px 10px 0;
  font: 400 24px/1.25 var(--serif, Georgia, serif);
}
.sea p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #e7dfd2;
}
.sea-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  background: #c8a776;
  color: #2a211d;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.sea-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  cursor: pointer;
}
.sea-x::before,
.sea-x::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 1.5px;
  background: #f4f0e8;
  transform: rotate(45deg);
}
.sea-x::after {
  transform: rotate(-45deg);
}
.sea-x:focus-visible,
.sea-cta:focus-visible {
  outline: 2px solid #c8a776;
  outline-offset: 2px;
}
/* The pop-up steps aside while the mobile menu is open. */
body:has(.x-sheet:not([hidden]), .nav-sheet:not([hidden])) .sea {
  display: none;
}

/* Phones: call and quote always one tap away (inner pages). */
.mbar {
  display: none;
}
@media (max-width: 760px) {
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #f4f0e8;
    border-top: 1px solid rgba(42, 33, 29, 0.14);
  }
  .mbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font: 700 15px/1 var(--sans, Arial, sans-serif);
    text-decoration: none;
  }
  .mbar-call {
    border: 1px solid #2a211d;
    color: #2a211d;
  }
  .mbar-offer {
    background: #2a211d;
    color: #f4f0e8;
  }
  .x:has(.mbar) {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.x-sheet:not([hidden])) .mbar {
    display: none;
  }
}
/* Inner pages reset link colour (.x a); keep the bar's own colours. */
.x .mbar-call {
  color: #2a211d;
}
.x .mbar-offer {
  color: #f4f0e8;
}
