/* La Lupa: «Mangia come un vero romano» (founder, 02/10/2026).
   A small card pops up top right after the loader; it opens the 30 € set menu (photo + courses) and leads to the booking. */

.roman-offer {
  position: fixed;
  z-index: 60;
  top: 22px;
  right: 22px;
  display: flex;
  max-width: 340px;
  border: 1px solid rgba(77, 30, 15, 0.22);
  background: var(--paper-bright);
  box-shadow: 0 18px 44px rgba(60, 33, 18, 0.18);
  visibility: hidden;
  transform: translateY(-14px);
  opacity: 0;
  transition: opacity 420ms ease, transform 620ms var(--ease-roman), visibility 0s linear 620ms;
}
.roman-offer.is-shown {
  visibility: visible;
  transform: none;
  opacity: 1;
  transition-delay: 0s;
}
.roman-offer__open {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 42px 12px 12px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.roman-offer__thumb { position: relative; display: block; width: 74px; height: 74px; }
.roman-offer__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper-bright), 0 0 0 4px rgba(165, 70, 34, 0.45);
  object-fit: cover;
}
.roman-offer__thumb b {
  position: absolute;
  right: -9px;
  bottom: -7px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: inset 0 0 0 2px rgba(240, 191, 151, 0.35), 0 4px 10px rgba(92, 39, 18, 0.28);
  color: var(--paper-bright);
  font: 600 14px/1 "Cormorant Local", Georgia, serif;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.02em;
}
.roman-offer__copy { display: grid; gap: 3px; }
.roman-offer__copy small {
  color: var(--terracotta);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.roman-offer__copy strong { color: var(--ink); font: italic 500 23px/1 "Cormorant Local", Georgia, serif; text-wrap: balance; }
.roman-offer__copy em {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.roman-offer__copy em::after { color: var(--terracotta); content: "  →"; }
.roman-offer__open:hover .roman-offer__copy em,
.roman-offer__open:focus-visible .roman-offer__copy em { color: var(--terracotta); }
.roman-offer__close {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  font: 300 22px/1 Arial, sans-serif;
}

/* after the first screen it shrinks to the round seal, still one tap from the menu */
.roman-offer.is-compact { border-color: transparent; background: transparent; box-shadow: none; }
.roman-offer.is-compact .roman-offer__open { grid-template-columns: 66px; gap: 0; padding: 6px 10px 10px 6px; }
.roman-offer.is-compact .roman-offer__thumb { width: 66px; height: 66px; }
.roman-offer.is-compact .roman-offer__thumb img {
  box-shadow: 0 0 0 3px var(--paper-bright), 0 0 0 4px rgba(165, 70, 34, 0.5), 0 14px 28px rgba(60, 33, 18, 0.3);
}
.roman-offer.is-compact .roman-offer__copy,
.roman-offer.is-compact .roman-offer__close { display: none; }

/* ---------- the dialog ---------- */
.roman-dialog {
  width: min(960px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.roman-dialog .dialog-close {
  z-index: 3;
  top: 12px;
  right: 12px;
  border-radius: 50%;
  background: rgba(251, 247, 239, 0.94);
  box-shadow: 0 6px 18px rgba(32, 23, 17, 0.18);
}
.roman-dialog__photo { margin: 0; aspect-ratio: 16 / 7; overflow: hidden; background: var(--paper-deep); }
.roman-dialog__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.roman-dialog__body {
  display: grid;
  grid-template-areas: "intro courses" "actions courses";
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: auto 1fr;
  gap: 0 52px;
  padding: 34px 46px 40px;
}
.roman-dialog__intro { grid-area: intro; }
.roman-dialog__intro .eyebrow { margin-bottom: 14px; }
.roman-dialog h2 { margin: 0 0 18px; font-size: clamp(40px, 4.6vw, 58px); line-height: 0.94; }
.roman-dialog__price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.roman-dialog__price strong { color: var(--terracotta); font: 500 50px/1 "Cormorant Local", Georgia, serif; font-variant-numeric: lining-nums; }
.roman-dialog__price span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.roman-courses { grid-area: courses; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.roman-courses li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.roman-courses span {
  padding-top: 5px;
  color: var(--terracotta);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.roman-courses b { color: var(--ink); font: 500 19px/1.22 "Cormorant Local", Georgia, serif; font-variant-numeric: lining-nums; }
.roman-dialog__actions { grid-area: actions; align-self: end; padding-top: 26px; }
.roman-dialog .roman-cta--dialog { width: 100%; max-width: 360px; grid-template-columns: 1fr; }
.roman-dialog__fine { max-width: 360px; margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }

@media (max-width: 900px) {
  .roman-offer { top: 80px; right: 10px; left: 10px; max-width: none; }
  .roman-offer__open { width: 100%; grid-template-columns: 54px 1fr; gap: 14px; padding: 9px 42px 9px 9px; }
  .roman-offer__thumb { width: 54px; height: 54px; }
  .roman-offer__thumb b { right: -7px; bottom: -6px; width: 30px; height: 30px; font-size: 11.5px; }
  .roman-offer__copy strong { font-size: 20px; }
  .roman-offer__copy em { margin-top: 3px; }
  .roman-offer.is-compact { left: auto; }
  .roman-offer.is-compact .roman-offer__open { grid-template-columns: 58px; }
  .roman-offer.is-compact .roman-offer__thumb { width: 58px; height: 58px; }
}

@media (max-width: 760px) {
  .roman-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .roman-dialog__photo { aspect-ratio: 3 / 2; }
  .roman-dialog__body {
    grid-template-areas: "intro" "courses" "actions";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 24px 20px 0;
  }
  .roman-dialog h2 { font-size: clamp(36px, 10.5vw, 46px); }
  .roman-dialog__price { margin-bottom: 20px; }
  .roman-dialog__price strong { font-size: 42px; }
  .roman-courses li { grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 0; }
  .roman-courses b { font-size: 18px; }
  /* the booking button stays in reach while the menu scrolls */
  .roman-dialog__actions {
    position: sticky;
    bottom: 0;
    margin: 0 -20px;
    padding: 14px 20px 16px;
    background: linear-gradient(rgba(251, 247, 239, 0.86), var(--paper-bright) 30%);
  }
  .roman-dialog .roman-cta--dialog { max-width: none; }
  .roman-dialog__fine { max-width: none; margin-top: 8px; font-size: 11px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .roman-offer { transition: none; }
}
