/* Apple Wallet storeCard mock-up at 1 CSS px = 1 pt (iPhone 375 pt wide).
   Wallet draws every field with the system font (SF Pro): no brand fonts inside the pass. */

.palco { display: grid; grid-template-columns: repeat(auto-fit, minmax(399px, 1fr)); gap: 28px 20px; max-width: 1280px; margin: 28px auto 0; padding: 0 16px; align-items: start; }
.palco__col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.palco__dida { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-scuro); text-align: center; }

/* ── iPhone frame ── */
.iphone { --sys: -apple-system, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
  width: 399px; padding: 12px; border-radius: 56px; background: #1d1d1f; box-shadow: 0 30px 60px -30px rgba(59, 46, 31, .55), inset 0 0 0 1px #3a3a3c; }
.iphone__schermo { position: relative; width: 375px; height: 812px; overflow: hidden; border-radius: 44px; font-family: var(--sys); -webkit-font-smoothing: antialiased; background: #fff; color: #000; }
.iphone.scuro .iphone__schermo { background: #000; color: #fff; }
.iphone__isola { position: absolute; top: 11px; left: 50%; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; z-index: 5; }
.ios-status { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 16px 30px 0 34px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ios-status__icone { display: flex; gap: 6px; align-items: center; }
.ios-status__icone svg { display: block; }

/* Wallet: opened pass */
.ios-nav { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 16px; }
.ios-nav__fine { font-size: 17px; font-weight: 600; color: #007aff; }
.scuro .ios-nav__fine { color: #0a84ff; }
.ios-nav__tondo { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(120, 120, 128, .16); color: #007aff; font-weight: 700; letter-spacing: 1px; font-size: 13px; }
.scuro .ios-nav__tondo { background: rgba(120, 120, 128, .32); color: #0a84ff; }

/* ── the pass ── */
.pass { --w: 343px; position: relative; width: var(--w); margin: 10px auto 0; border-radius: 12px; overflow: hidden;
  background: var(--p-bg); color: var(--p-fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 30px -12px rgba(0, 0, 0, .35); }
.scuro .pass { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .14); }
.pass__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; padding: 8px 14px 8px 12px; }
.pass__logo { height: 50px; width: auto; flex: none; }   /* logo.png is 118x50 pt, inside the 160x50 pt slot */
.pass__header { display: flex; gap: 14px; text-align: right; min-width: 0; }
.campo { min-width: 0; }
.campo__l { display: block; font-size: 10px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--p-lb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campo__v { display: block; font-size: 17px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass__header .campo__v { font-size: 18px; }

.pass__strip { position: relative; width: var(--w); aspect-ratio: 375 / 123; }
.pass__strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* primary field over the strip: Wallet draws it in white, foregroundColor is ignored there */
.pass__primario { position: absolute; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.pass__primario .campo__l { color: rgba(255, 255, 255, .86); font-size: 11px; }
.pass__primario .campo__v { font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }

.pass__riga { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px 0; }
.pass__riga .campo:last-child { text-align: right; }
.pass__riga .campo:only-child { text-align: left; }
.pass__riga .campo__v { font-size: 16px; }

.pass__codice { display: flex; justify-content: center; padding: 30px 0 22px; }
.qr { background: #fff; border-radius: 8px; padding: 10px 10px 6px; text-align: center; width: 156px; }
.qr img { width: 136px; height: 136px; image-rendering: pixelated; }
.qr span { display: block; margin-top: 4px; font-size: 11px; color: #000; letter-spacing: .02em; }

/* ── back of the pass (iOS 17+ «Dettagli pass» sheet) ── */
.retro { height: calc(812px - 54px); overflow-y: auto; background: #f2f2f7; color: #000; scrollbar-width: none; }
.scuro .retro { background: #000; color: #fff; }
.retro::-webkit-scrollbar { display: none; }
.retro__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 16px; font-size: 17px; }
.retro__nav b { font-weight: 600; }
.retro__nav span:last-child { justify-self: end; color: #007aff; font-weight: 600; }
.retro__testa { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 16px 18px; text-align: center; }
.retro__mini { width: 120px; border-radius: 6px; overflow: hidden; background: var(--p-bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.retro__mini .mtop { height: 22px; display: flex; align-items: center; padding: 0 6px; }
.retro__mini .mtop img { height: 15px; width: auto; }
.retro__mini .mstrip { aspect-ratio: 375 / 123; }
.retro__mini .mstrip img { width: 100%; height: 100%; object-fit: cover; }
.retro__mini .mbase { height: 34px; }
.retro__testa h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.retro__testa p { margin: 0; font-size: 13px; color: #8a8a8e; }
.gruppo { margin: 0 16px 22px; border-radius: 10px; background: #fff; overflow: hidden; }
.scuro .gruppo { background: #1c1c1e; }
.gruppo__voce { padding: 11px 16px; font-size: 16px; line-height: 1.32; }
.gruppo__voce + .gruppo__voce { border-top: .5px solid rgba(60, 60, 67, .29); }
.scuro .gruppo__voce + .gruppo__voce { border-top-color: rgba(84, 84, 88, .6); }
.gruppo__voce small { display: block; font-size: 13px; color: #8a8a8e; margin-bottom: 2px; }
.gruppo__voce .v { white-space: pre-line; }
.gruppo__voce a { color: #007aff; text-decoration: none; }
.gruppo__voce--switch { display: flex; justify-content: space-between; align-items: center; }
.ios-switch { width: 51px; height: 31px; border-radius: 16px; background: #34c759; position: relative; flex: none; }
.ios-switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.gruppo__rosso { color: #ff3b30; text-align: center; }

/* ── lock screen notification ── */
.blocco { position: relative; height: 812px; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, #6b5235 0%, #2a2016 55%, #120d08 100%); }
.blocco__data { padding-top: 70px; font-size: 19px; font-weight: 500; opacity: .9; }
.blocco__ora { font-size: 92px; font-weight: 600; line-height: 1; letter-spacing: -.02em; margin-top: 2px; font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif; }
.notifica { position: absolute; left: 10px; right: 10px; top: 360px; display: flex; gap: 10px; align-items: flex-start; text-align: left;
  padding: 12px 14px; border-radius: 20px; background: rgba(245, 240, 232, .72); backdrop-filter: blur(20px); color: #000; }
.notifica img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notifica__corpo { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.notifica__corpo b { display: flex; justify-content: space-between; font-weight: 600; }
.notifica__corpo b span { font-weight: 400; color: rgba(0, 0, 0, .5); font-size: 13px; }
.blocco__nota { position: absolute; left: 24px; right: 24px; bottom: 40px; font-size: 12px; opacity: .55; }

/* phone narrower than the frame: drop the bezel, keep the 375 pt screen */
@media (max-width: 430px) {
  .palco { padding: 0; gap: 28px 0; }
  .iphone { width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .iphone__schermo { width: 100%; max-width: 375px; margin: 0 auto; border-radius: 0; }
  .iphone__isola { display: none; }
}
