/* ═══════════════════════════════════════════
   Amadio — Menu Book (flipbook) page
   Relies on styles.css for tokens, header,
   drawer, footer and fonts.
   ═══════════════════════════════════════════ */

/* ─── HERO BANNER + TRANSPARENT HEADER (matches heritage / specialty) ─── */
/*
 * Logo left, "Firenze · Dubai" centered.
 * Fully overrides menu.css (which centers .site-header__logo-white) when
 * Menu Book widgets are used on /menu/ where both stylesheets load.
 */
.site-header__logo-white {
  order: -1;
  z-index: 2;
  display: block;
  line-height: 0;
  position: static;
  left: auto;
  top: auto;
  right: auto;
  transform: none;
  margin: 0;
}
.site-header__logo-white img {
  height: 30px;
  width: auto;
  display: block;
}
.site-header.scrolled .site-header__logo-white {
  display: none;
}

.site-header__firenze {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  white-space: nowrap;
}
.site-header.scrolled .site-header__firenze {
  display: none;
}
@media (max-width: 600px) {
  .site-header__firenze {
    font-size: 10px;
    letter-spacing: 0.1em;
    left: 56%;
  }
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 220px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.site-header.scrolled::before {
  opacity: 0;
}

.menu-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 28px 80px;
  background-image: url("../images/menu-banner.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@media (max-width: 620px) {
  .menu-hero {
    min-height: 0;
    aspect-ratio: 1920 / 1085;
    height: auto;
    padding: 120px 20px 64px;
  }
  .site-header__logo-white img {
    height: 36px;
  }
}

/* ─── EDITORIAL INTRO (matches heritage) ─── */
.mb-intro {
  background: var(--bg-specialty);
}
.mb-intro__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 92px 28px 40px;
  text-align: center;
}
.mb-intro__eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 30px;
}
.mb-intro__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  color: var(--red);
  margin: 0;
  text-wrap: balance;
}
.mb-intro__subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  color: var(--ink-muted);
  margin: 20px auto 0;
  max-width: 640px;
  text-wrap: balance;
}
.mb-rule {
  display: block;
  width: 260px;
  height: 33px;
  margin: 40px auto 0;
  background: url("../images/divider-fleur.png") center/contain no-repeat;
}
.mb-intro__desc {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 40px auto 0;
  max-width: 600px;
  text-wrap: pretty;
}

/* ─── BOOK STAGE ─── */
.book-stage {
  background: var(--bg-specialty);
  padding: 40px 24px 84px;
}
.book-wrap {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.book-hint {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 34px;
}

/* Flip surface — support both static #book and Elementor .amadio-book */
#book,
.amadio-book,
[data-amadio-book] {
  margin: 0 auto;
  touch-action: pan-y;
  width: 100%;
  max-width: 720px;
  min-height: 380px;
  display: block;
  box-sizing: border-box;
}
#book .page,
.amadio-book .page,
[data-amadio-book] .page {
  background: transparent;
  overflow: hidden;
}

/* soften StPageFlip default hard edges; keep width under flex layouts */
.stf__parent {
  margin: 0 auto;
  max-width: 100%;
}
.stf__wrapper,
.stf__block {
  max-width: 100%;
}

/* Elementor widget wrappers must not shrink the flipbook */
.elementor-widget-amadio-menu-book,
.elementor-widget-amadio-menu-book > .elementor-widget-container,
.elementor-element.elementor-widget-amadio-menu-book {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}
.elementor-widget-amadio-menu-book .book-stage,
.elementor-widget-amadio-menu-book .book-wrap {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  box-sizing: border-box;
}
.elementor-widget-amadio-menu-book-intro .mb-intro,
.elementor-widget-amadio-menu-book-intro .mb-intro__inner {
  width: 100%;
  text-align: center;
}

/* Keep control buttons clickable above PageFlip layers + Elementor UI */
.book-controls {
  position: relative;
  z-index: 5;
}
.book-controls .book-btn {
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

/* ─── PAGE LEAF (matches printed PDF page) ─── */
.leaf {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #f4efe6;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 44%;
}
/* photo always sits on the RIGHT of the page; text on the left */
.page--left .leaf,
.page--right .leaf {
  grid-template-columns: 1fr 44%;
}
.page--left .leaf .leaf__pic,
.page--right .leaf .leaf__pic {
  order: 2;
}
.page--left .leaf .leaf__text,
.page--right .leaf .leaf__text {
  order: 1;
}

.leaf__pic {
  position: relative;
  overflow: hidden;
  background: #d9d0c2;
  display: block;
  cursor: pointer;
}
.leaf__pic img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) and (min-width: 768px) {
  .leaf__pic:hover img {
    transform: scale(1.04);
  }
}
.leaf__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leaf__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(60, 20, 10, 0.16),
    rgba(60, 20, 10, 0) 22%
  );
}

.leaf__text {
  position: relative;
  min-width: 0;
  padding: 30px 30px 40px;
  background: #e9e0d2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.leaf__text::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 5px double #fbf1e6;
  pointer-events: none;
}
/* gutter shadow toward the spine side of the text column */
.page--left .leaf__text,
.page--right .leaf__text {
  box-shadow: inset 16px 0 26px -16px rgba(60, 20, 10, 0.3);
}

.leaf__head {
  display: none;
}
.leaf__logo {
  height: 21px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.leaf__season {
  font-family: var(--ui);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.leaf__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.05;
  color: var(--red);
  text-align: center;
  margin: 20px 0 2px;
  text-wrap: balance;
}
.leaf__fleur {
  width: 132px;
  height: 20px;
  margin: 0 auto 18px;
  background: url("../images/divider-fleur.png") center/contain no-repeat;
  opacity: 0.9;
}
.leaf__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.leaf__folio {
  margin-top: 14px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(77, 4, 6, 0.55);
  letter-spacing: 0.08em;
}

/* item lists */
.mlist {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.mlist li {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.24;
  color: var(--ink);
  padding: 5px 0;
  text-wrap: balance;
}
.mlist li small {
  display: block;
  font-family: var(--ui);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-style: normal;
  margin-top: 1px;
}
.mdiv {
  display: block;
  width: 108px;
  height: 16px;
  margin: 12px auto;
  background: url("../images/menu-divider.png") center/contain no-repeat;
  opacity: 0.85;
}

/* grouped pages */
.mgroups {
  display: block;
}
.mgroup {
  break-inside: avoid;
  margin-bottom: 14px;
  text-align: center;
}
.mgroup:last-child {
  margin-bottom: 0;
}
.mgroup__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--red);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.mgroup .mlist li {
  font-size: 13.5px;
  padding: 2px 0;
  line-height: 1.2;
}

/* denser category pages (pasta / pizza / bar) */
.leaf--dense .leaf__title {
  font-size: 27px;
  margin: 16px 0 2px;
}
.leaf--dense .leaf__fleur {
  margin-bottom: 12px;
}
.leaf--dense .mgroup {
  margin-bottom: 10px;
}
.leaf--dense .mgroup__title {
  font-size: 14px;
  margin-bottom: 3px;
}
.leaf--dense .mgroup .mlist li {
  font-size: 12.5px;
  padding: 1.5px 0;
}
.leaf--dense .mlist li {
  font-size: 13.5px;
  padding: 3px 0;
}
.leaf--dense .mdiv {
  width: 92px;
  height: 13px;
  margin: 8px auto;
}

/* prose (bar page) */
.mprose {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  margin: 0;
}

/* ─── COVER + BACK COVER ─── */
.leaf--end {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe7da;
  position: relative;
  padding: 0;
}
.leaf--end::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(124, 10, 20, 0.14);
  pointer-events: none;
}
.end__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transform: translateY(-4%);
}
.end__logo {
  width: 62%;
  max-width: 250px;
  height: auto;
  display: block;
}
.end__place {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #14100e;
  margin: 0;
}
.leaf--back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  color: #f2e7e2;
  background: #4d0406;
}
.cover__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(61, 12, 12, 0.82),
    rgba(45, 9, 9, 0.9)
  );
}
.leaf--cover > *:not(.cover__bg),
.leaf--back > *:not(.cover__bg) {
  position: relative;
  z-index: 1;
}
.leaf--cover .cover__eyebrow,
.leaf--back .cover__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cover__frame {
  flex: 1 1 auto;
  width: 100%;
  margin: 20px 0;
  padding: 26px 18px;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cover__script {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.82);
}
.cover__word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 62px;
  line-height: 0.95;
  color: #fff;
  letter-spacing: 0.02em;
}
.cover__fleur {
  width: 140px;
  height: 24px;
  margin: 4px auto;
  background: url("../images/divider-fleur.png") center/contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}
.cover__season {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cover__brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
}
.cover__foot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.leaf--back .cover__word {
  font-size: 40px;
}

/* cover: cream page, centered text box + photo (matches inner slides) */
.leaf--cover {
  display: grid;
  grid-template-columns: 1fr 44%;
  background: #f4efe6;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.page--right .leaf--cover,
.page--left .leaf--cover {
  grid-template-columns: 1fr 44%;
}
.page--left .leaf--cover .cover__photo {
  order: 2;
}
.page--left .leaf--cover .cover__text {
  order: 1;
}
.leaf--cover .cover__photo {
  order: 2;
  position: relative;
  overflow: hidden;
  background: #d9d0c2;
}
.leaf--cover .cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leaf--cover .cover__text {
  order: 1;
  position: relative;
  background: #e9e0d2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.leaf--cover .cover__text::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 5px double #fbf1e6;
  pointer-events: none;
}
.cover__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover__logo {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  height: 22px !important;
  width: auto;
}
.leaf--cover .cover__word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1;
  color: #7f0707;
  margin: 0 0 16px;
  text-align: center;
}
.cover__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 2;
  text-align: center;
  margin: 0;
}

/* ─── CONTROLS ─── */
.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 38px;
}
.book-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  border: 0.75px solid rgba(77, 4, 6, 0.4);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.book-btn:hover {
  background: rgba(77, 4, 6, 0.08);
  border-color: var(--red);
}
.book-btn:active {
  transform: scale(0.94);
}
.book-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.book-btn svg {
  width: 18px;
  height: 18px;
}
.book-indicator {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 128px;
  text-align: center;
}
.book-indicator b {
  color: var(--red);
  font-weight: 600;
}

@media (max-width: 620px) {
  .mb-intro__inner {
    padding: 64px 22px 60px;
  }
  .book-stage {
    padding: 0 15px 60px;
  }
  .book-wrap {
    height: auto;
    padding: 0;
    box-sizing: border-box;
  }
  .book-hint {
    font-size: 10px;
    margin-bottom: 24px;
  }
  .leaf {
    grid-template-columns: 1fr 40%;
  }
  .leaf__pic-img--to-begin {
    object-position: 75%;
  }
  .leaf__pic-img--pasta {
    object-position: 30%;
  }
  .leaf__pic-img--pizza {
    object-position: 30%;
  }
  .leaf__pic-img--risotto {
    object-position: 33%;
  }
  .leaf__pic-img--land {
    object-position: 89%;
  }
  .leaf__pic-img--sides {
    object-position: 89%;
  }
  .leaf__pic-img--finish {
    object-position: 65%;
  }
  .leaf__pic-img--bar {
    object-position: 60%;
  }
  .page--left .leaf,
  .page--right .leaf {
    grid-template-columns: 1fr 40%;
  }
  .page--left .leaf .leaf__pic,
  .page--right .leaf .leaf__pic {
    order: 2;
  }
  .page--left .leaf .leaf__text,
  .page--right .leaf .leaf__text {
    order: 1;
  }
  .leaf__text {
    padding: 28px 22px 34px;
    justify-content: center;
  }
  .leaf__pic:has(.leaf__pic-img--pasta) + .leaf__text {
    padding-top: 6px;
  }
  .leaf__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 0 1 auto;
  }
  .leaf__title {
    font-size: 24px;
    margin-top: 12px;
  }
  .leaf--dense .leaf__title {
    font-size: 22px;
  }
  .leaf__logo {
    height: 18px;
  }
  .leaf__fleur {
    width: 108px;
    margin-bottom: 12px;
  }
  .mlist li {
    font-size: 13.5px;
    padding: 4px 0;
  }
  .leaf--dense .mlist li {
    font-size: 12.5px;
    padding: 2.5px 0;
  }
  .leaf--dense .mgroup .mlist li {
    font-size: 12px;
  }
  .mgroup__title {
    font-size: 14px;
  }
  .leaf--dense .mgroup__title {
    font-size: 13px;
  }
  .mdiv {
    width: 88px;
    height: 13px;
    margin: 8px auto;
  }
  .leaf--dense .mdiv {
    width: 80px;
    margin: 6px auto;
  }
  .mprose {
    font-size: 12px;
    line-height: 1.35;
  }
  .leaf--dense .mprose {
    font-size: 11px;
    line-height: 1.3;
  }
  .leaf--dense .mgroup {
    margin-bottom: 8px;
  }
  .cover__word {
    font-size: 48px;
  }
  .book-controls {
    gap: 16px;
    margin-top: 28px;
  }
  /* mobile: arrows flank the page, vertically centered on the book */
  .book-wrap {
    position: relative;
  }
  .book-controls {
    position: static;
  }
  .book-controls .book-btn {
    position: absolute;
    top: calc(50% - 23px);
    transform: translateY(-50%);
    z-index: 6;
    width: 35px;
    height: 35px;
    padding: 12px;
    box-sizing: border-box;
    background: rgba(244, 239, 230, 0.88);
    backdrop-filter: blur(3px);
    border-color: rgba(77, 4, 6, 0.5);
    box-shadow: 0 2px 10px rgba(60, 20, 10, 0.16);
  }
  .book-controls .book-btn:active {
    transform: translateY(-50%) scale(0.94);
  }
  /* Support both static HTML ids and Elementor class/data selectors */
  .book-controls #prev,
  .book-controls .book-btn--prev,
  .book-controls [data-amadio-prev] {
    left: -10px;
  }
  .book-controls #next,
  .book-controls .book-btn--next,
  .book-controls [data-amadio-next] {
    right: -10px;
  }
  .book-controls .book-btn svg {
    width: 18px;
    height: 18px;
  }
  .book-controls .book-btn:disabled {
    opacity: 0.28;
  }

  /* cover size tweaks for small screens */
  .cover__logo {
    height: 20px;
    top: 30px;
  }
  .leaf--cover .cover__word {
    font-size: 40px;
    margin-bottom: 14px;
  }
  .cover__sub {
    font-size: 10px;
  }
}
