:root {
  --rp-bg: #f5f6fa;
  --rp-card: #ffffff;
  --rp-text: #18202f;
  --rp-muted: #747b8c;
  --rp-border: #e1e4ec;
  --rp-red: #d85a4f;
  --rp-red-dark: #c94d43;
  --rp-black: #101010;
  --rp-shadow: 0 8px 22px rgba(18, 24, 36, .055);
  --rp-header-h: 82px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--rp-bg);
  color: var(--rp-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.rpApp {
  min-height: 100vh;
  padding-bottom: calc(24px + var(--safe-bottom));
}

body.rpHasHeader .rpApp {
  padding-top: calc(var(--rp-header-h) + var(--safe-top));
}

body.rpNoHeader .rpApp {
  padding-top: calc(18px + var(--safe-top));
}

/* Header solo menu */
.rpTopbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--rp-header-h) + var(--safe-top));
  z-index: 1000;
  padding: calc(8px + var(--safe-top)) 14px 8px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(18,24,36,.08);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rpBrand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rpBrand__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--rp-text);
  background: #fff;
  flex: 0 0 auto;
}

.rpBrand__icon svg {
  width: 38px;
  height: 38px;
}

.rpBrand__text strong {
  display: block;
  font-size: 15px;
  line-height: .92;
  letter-spacing: -.03em;
  font-weight: 950;
}

.rpBrand__text small {
  display: block;
  margin-top: 4px;
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
}

.rpCartMini {
  position: relative;
  width: 142px;
  height: 50px;
  padding: 0 9px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rp-border);
  box-shadow: 0 4px 12px rgba(18,24,36,.035);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.rpCartMini__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: var(--rp-black);
}

.rpCartMini__text small {
  display: block;
  color: var(--rp-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.rpCartMini__text strong {
  display: block;
  margin-top: 2px;
  color: var(--rp-text);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.rpCartMini em {
  position: absolute;
  right: -7px;
  top: -8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--rp-red);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

/* Layout */
.rpWrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px calc(30px + var(--safe-bottom));
}

.rpHero,
.rpMenuHead {
  padding: 16px 2px 16px;
}

.rpHero__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--rp-red);
  font-size: 11px;
  letter-spacing: .17em;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 950;
}

.rpHero h1,
.rpMenuHead h1 {
  margin: 0;
  color: var(--rp-text);
  font-size: 26px;
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 950;
}

.rpHero p,
.rpMenuHead p {
  margin: 10px 0 0;
  color: var(--rp-muted);
  font-size: 15px;
  line-height: 1.33;
  letter-spacing: -.015em;
  font-weight: 500;
}

/* Scelta sede/metodo più pulita */
.rpPickupGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rpPickupCard {
  overflow: hidden;
  border-radius: 20px;
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow);
  padding: 16px;
}

.rpPickupCard__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rpPickupCard__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e24d45, #d95048);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.rpPickupCard h2 {
  margin: 0;
  color: var(--rp-text);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 950;
}

.rpPickupCard p {
  margin: 6px 0 0;
  color: var(--rp-muted);
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -.01em;
  font-weight: 500;
}

.rpPickupCard__cta {
  margin-top: 14px;
  width: 100%;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--rp-black);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
}

.rpCardBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  background: rgba(216,90,79,.13);
  color: var(--rp-red);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 950;
}

.rpFeeLine {
  margin-top: 6px;
  color: var(--rp-muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 750;
}

.rpFeeLine--free {
  color: #55785d;
}

.rpEmpty {
  border-radius: 20px;
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow);
  padding: 24px;
  color: var(--rp-muted);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

/* Menu */
.rpMenuPage {
  max-width: 760px;
}

.rpMenuHead__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rpMenuHead__actions a,
.rpButton {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--rp-border);
  color: var(--rp-text);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(18,24,36,.025);
}

.rpButton {
  margin-top: 14px;
  background: var(--rp-red);
  color: #fff;
  border-color: var(--rp-red);
}

.rpButton--ghost {
  background: #fff;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

.rpCatTabs {
  position: sticky;
  top: calc(var(--rp-header-h) + var(--safe-top));
  z-index: 900;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -14px 14px;
  padding: 8px 14px 10px;
  background: rgba(244,245,248,.94);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.rpCatTabs::-webkit-scrollbar {
  display: none;
}

.rpCatTabs a {
  white-space: nowrap;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--rp-border);
  color: var(--rp-text);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(18,24,36,.025);
}

.rpCatTabs a:first-child {
  background: var(--rp-red);
  border-color: var(--rp-red);
  color: #fff;
}

.rpMenuCategory {
  margin-top: 18px;
}

.rpMenuCategory h2 {
  margin: 0 0 10px;
  color: var(--rp-text);
  font-size: 14px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 950;
}

.rpProductGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.rpProductCard {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow);
  display: grid;
  grid-template-columns: 84px 1fr;
  min-height: 112px;
}

.rpProductCard__media {
  position: relative;
  min-height: 112px;
  display: grid;
  place-items: center;
  background: #fff;
}

.rpProductCard__img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.rpProductCard__img--empty {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rp-red), var(--rp-red-dark));
  font-size: 28px;
  font-weight: 950;
}

.rpProductBadge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(16,16,16,.86);
  color: #fff;
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 950;
}

.rpProductCard__body {
  padding: 13px 10px 11px;
  min-width: 0;
}

.rpProductCard h3 {
  margin: 0;
  color: var(--rp-text);
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 950;
}

.rpProductCard p {
  margin: 5px 0 0;
  color: var(--rp-muted);
  font-size: 13px;
  line-height: 1.22;
  letter-spacing: -.01em;
  font-weight: 500;
}

.rpProductCard__bottom {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rpProductCard__bottom strong {
  color: var(--rp-red);
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
}

.rpProductCard__bottom button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: var(--rp-black);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

@media (min-width: 760px) {
  .rpWrap {
    padding-left: 22px;
    padding-right: 22px;
  }

  .rpHero h1,
  .rpMenuHead h1 {
    font-size: 32px;
  }

  .rpHero p,
  .rpMenuHead p {
    font-size: 17px;
  }
}

/* Dettaglio punto ritiro */
.rpDetailPage {
  max-width: 720px;
}

.rpBackBtn {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow);
  color: var(--rp-text);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 16px;
}

.rpDetailCard {
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: 24px;
  box-shadow: var(--rp-shadow);
  padding: 20px;
  overflow: hidden;
}

.rpDetailHead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rpDetailIcon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e24d45, #d95048);
  color: #fff;
  font-size: 30px;
  font-weight: 950;
}

.rpDetailHead h1 {
  margin: 0;
  color: var(--rp-text);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 950;
}

.rpDetailHead p {
  margin: 6px 0 0;
  color: var(--rp-muted);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 500;
}

.rpDetailMap {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--rp-bg);
  border: 1px solid var(--rp-border);
}

.rpDetailMap iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.rpDetailInfo {
  padding: 18px 0 4px;
}

.rpDetailInfoBlock {
  margin-bottom: 17px;
}

.rpDetailInfoBlock span {
  display: block;
  margin-bottom: 5px;
  color: var(--rp-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 950;
}

.rpDetailInfoBlock strong,
.rpDetailInfoBlock a {
  display: block;
  color: var(--rp-text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.rpDetailInfoBlock a {
  color: var(--rp-red);
}

.rpDetailActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.rpDetailBtn {
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 17px;
  font-weight: 950;
}

.rpDetailBtn--ghost {
  background: #fff;
  color: var(--rp-text);
  border: 1px solid var(--rp-border);
}

.rpDetailBtn--primary {
  background: var(--rp-red);
  color: #fff;
  border: 1px solid var(--rp-red);
}

.rpDetailMapLink {
  display: block;
  margin-top: 15px;
  text-align: center;
  color: var(--rp-red);
  font-size: 16px;
  font-weight: 950;
}

@media (max-width: 380px) {
  .rpDetailCard {
    padding: 16px;
  }

  .rpDetailMap iframe {
    height: 190px;
  }

  .rpDetailHead h1 {
    font-size: 22px;
  }

  .rpDetailActions {
    gap: 9px;
  }

  .rpDetailBtn {
    height: 50px;
    font-size: 16px;
  }
}


/* Footer menu */
.rpFooter {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 26px;
  background: #0f1115;
  color: #fff;
}

.rpFooter__inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 16px calc(28px + var(--safe-bottom));
}

.rpFooter__brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
}

.rpFooter__brand span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.rpFooter__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rpFooter__links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.rpFooter__links a:first-child {
  background: #fff;
  color: #111;
  border-color: #fff;
}

@media (max-width: 380px) {
  .rpFooter__links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rpFooter__links a {
    width: 100%;
  }
}


/* Menu categorie come tab */
.rpCatTabs {
  align-items: center;
}

.rpCatTab {
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--rp-border);
  color: var(--rp-text);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(18,24,36,.025);
}

.rpCatTab.is-active {
  background: var(--rp-red);
  border-color: var(--rp-red);
  color: #fff;
}

.rpCatTabs a {
  display: none;
}

.rpMenuCategory {
  display: none;
}

.rpMenuCategory.is-active {
  display: block;
}

