/* ==========================================================================
   "Sito nel sito": Officina Marchetti, un sito navigabile dentro il telefono
   (attività inventata). Disegnato a 390×844 e rimpicciolito come gli altri mockup.
   ========================================================================== */
.phone-demo { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone--app { width: min(340px, 84%); margin: 0; }
.phone-demo__hint { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.phone-demo__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.phone-demo__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--orange); animation: tapPing 1.8s var(--ease-out) infinite; }
.phone-demo.is-used .phone-demo__dot::after { animation: none; opacity: 0; }
@keyframes tapPing { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.mini.app {
  --m-ink: #0f1b2a; --m-ink-2: #1c2b3e; --m-bg: #f4f2ed; --m-card: #fff; --m-y: #ffc21a; --m-muted: #6a7380; --m-line: #e4e1da;
  pointer-events: auto; background: var(--m-bg); color: var(--m-ink); font: 400 16px/1.45 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
.app button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.app svg { display: inline-block; }
.app img { display: block; width: 100%; object-fit: cover; }

/* barra di stato iOS */
.app__status { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 40px; font: 600 16px/1 system-ui, -apple-system, sans-serif; color: var(--m-ink); pointer-events: none; transition: color .3s; }
.app.is-dark-top .app__status { color: #fff; }
.app__status .ios-ic { display: flex; gap: 5px; align-items: center; }
.app__status .ios-ic i { display: block; width: 17px; height: 11px; border-radius: 3px; background: currentColor; opacity: .9; }
.app__status .ios-ic i:nth-child(1) { width: 18px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 1px; }
.app__status .ios-ic i:nth-child(2) { width: 15px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; clip-path: polygon(50% 100%, 0 0, 100% 0); }
.app__status .ios-ic i:nth-child(3) { width: 25px; height: 12px; border-radius: 4px; background: none; box-shadow: inset 0 0 0 1.5px currentColor; position: relative; }
.app__status .ios-ic i:nth-child(3)::after { content: ""; position: absolute; inset: 2.5px 6px 2.5px 2.5px; border-radius: 2px; background: currentColor; }

/* testata */
.app__head { position: absolute; z-index: 20; top: 50px; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: rgba(244, 242, 237, .92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .3s, background-color .3s; }
.app.is-scrolled .app__head { box-shadow: 0 1px 0 var(--m-line), 0 8px 18px -14px rgba(15, 27, 42, .35); }
.app__back { width: 0; height: 40px; overflow: hidden; display: grid; place-items: center; font-size: 22px; opacity: 0; transition: width .35s var(--ease-out), opacity .25s; }
.app.has-back .app__back { width: 32px; opacity: 1; }
.app__logo { display: flex; align-items: center; gap: 10px; }
.app__mark svg { width: 34px; height: 34px; display: block; }
.app__brand { display: flex; flex-direction: column; line-height: 1; }
.app__brand b { font: 800 19px/1 "Archivo", sans-serif; font-variation-settings: "wdth" 112; letter-spacing: .02em; }
.app__brand small { margin-top: 4px; font-size: 11.5px; color: var(--m-muted); letter-spacing: .02em; }
.app__burger { position: relative; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; }
.app__burger i { position: absolute; left: 11px; right: 11px; height: 2.4px; border-radius: 2px; background: var(--m-ink); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.app__burger i:first-child { top: 17px; }
.app__burger i:last-child { top: 25px; }
.app.menu-on .app__burger i:first-child { top: 21px; transform: rotate(45deg); }
.app.menu-on .app__burger i:last-child { top: 21px; transform: rotate(-45deg); }
.app.menu-on .app__head { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.app.menu-on .app__burger i { background: #fff; }
.app.menu-on .app__brand b, .app.menu-on .app__back { color: #fff; }
.app.menu-on .app__brand small { color: rgba(255, 255, 255, .6); }

/* viste */
.app__views { position: absolute; inset: 0; overflow: hidden; }
.app__view { position: absolute; inset: 0; }
.app__view[hidden] { display: block; visibility: hidden; }
.app__scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 110px 0 96px; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior: auto; }
.app__scroll::-webkit-scrollbar { display: none; }
.app__view.is-in-right { animation: viewInR .5s var(--ease-out) both; }
.app__view.is-in-left { animation: viewInL .5s var(--ease-out) both; }
.app__view.is-out-left { animation: viewOutL .5s var(--ease-out) both; }
.app__view.is-out-right { animation: viewOutR .5s var(--ease-out) both; }
@keyframes viewInR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes viewInL { from { transform: translateX(-28%); filter: brightness(.85); } to { transform: none; filter: none; } }
@keyframes viewOutL { from { transform: none; filter: none; } to { transform: translateX(-28%); filter: brightness(.85); } }
@keyframes viewOutR { from { transform: none; } to { transform: translateX(100%); } }
.app__view.is-in-right, .app__view.is-out-right { z-index: 2; box-shadow: -10px 0 30px rgba(15, 27, 42, .18); }

/* home */
.a-hero { position: relative; margin-top: -110px; height: 600px; overflow: hidden; color: #fff; background: var(--m-ink); }
.a-hero img { position: absolute; inset: 0; height: 100%; object-position: 58% 50%; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.app.is-ready .a-hero img { transform: none; }
.a-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 27, 42, .55) 0%, rgba(15, 27, 42, 0) 26%, rgba(15, 27, 42, .2) 48%, rgba(15, 27, 42, .94) 86%); }
.a-hero__txt { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 26px; }
.a-kicker { margin-bottom: 12px; }
.a-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 13px/1 "Geist", sans-serif; }
.a-live i { width: 8px; height: 8px; border-radius: 50%; background: #39d27a; box-shadow: 0 0 0 3px rgba(57, 210, 122, .25); }
.a-live.is-closed i { background: #ff6b57; box-shadow: 0 0 0 3px rgba(255, 107, 87, .25); }
.a-h1 { font: 800 44px/.95 "Archivo", sans-serif; font-variation-settings: "wdth" 96; letter-spacing: -.02em; text-transform: uppercase; }
.a-h1--dark { color: var(--m-ink); font-size: 34px; }
.a-lead { margin-top: 12px; font-size: 16.5px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.a-ctas { display: flex; gap: 10px; margin-top: 20px; }
.a-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px !important; border-radius: 14px; font: 700 16px/1 "Geist", sans-serif !important; transition: transform .15s, background-color .2s, opacity .2s; }
.a-btn:active { transform: scale(.97); }
.a-btn svg { width: 18px; height: 18px; }
.a-btn--y { background: var(--m-y) !important; color: var(--m-ink) !important; }
.a-btn--ghost { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.a-btn--dark { background: var(--m-ink) !important; color: #fff !important; }
.a-btn--line { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--m-line); }
.a-btn--wide { width: 100%; margin-top: 12px; }
.a-ctas .a-btn--y { flex: 1; }

.a-sec { padding: 30px 20px 0; }
.a-sec__head { display: flex; align-items: baseline; justify-content: space-between; }
.a-h2 { font: 800 22px/1 "Archivo", sans-serif; font-variation-settings: "wdth" 96; text-transform: uppercase; letter-spacing: -.01em; }
.a-link { font-weight: 600 !important; font-size: 15px !important; color: #2f5d8c !important; }
.a-rail { display: flex; gap: 12px; margin: 16px -20px 0; padding: 0 20px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.a-rail::-webkit-scrollbar { display: none; }
.a-card { flex: none; width: 168px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--m-card) !important; box-shadow: 0 1px 0 var(--m-line), 0 10px 22px -16px rgba(15, 27, 42, .45); transition: transform .2s; }
.a-card:active { transform: scale(.97); }
.a-card img { height: 118px; }
.a-card b { display: block; padding: 12px 14px 0; font: 700 17px/1.1 "Geist", sans-serif; }
.a-card span { display: block; padding: 4px 14px 14px; font-size: 13.5px; color: var(--m-muted); }
.a-why { margin-top: 14px; display: grid; gap: 10px; }
.a-why li { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: var(--m-card); box-shadow: 0 1px 0 var(--m-line); }
.a-why i { flex: none; font: 600 13px/1.6 "Geist Mono", monospace; font-style: normal; color: #b48300; }
.a-why b { display: block; font-size: 16px; }
.a-why span { display: block; margin-top: 2px; font-size: 14px; color: var(--m-muted); }
.a-quote { margin: 30px 20px 0; padding: 24px 22px; border-radius: 20px; background: var(--m-ink); color: #fff; }
.a-quote blockquote { font: 400 22px/1.25 "Instrument Serif", Georgia, serif; font-style: italic; }
.a-quote figcaption { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.a-mapcard { display: flex !important; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 10px !important; border-radius: 18px; background: var(--m-card) !important; box-shadow: 0 1px 0 var(--m-line); }
.a-mapcard__txt b { display: block; font-size: 15.5px; }
.a-mapcard__txt span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--m-muted); }
.a-foot { margin: 30px 20px 0; padding-top: 18px; border-top: 1px solid var(--m-line); font-size: 12.5px; color: var(--m-muted); }

/* mappa disegnata */
.a-map { position: relative; display: block; overflow: hidden; background-color: #e8e4da;
  background-image:
    linear-gradient(28deg, transparent 47%, #fff 47% 53%, transparent 53%),
    linear-gradient(-62deg, transparent 46%, #fff 46% 50%, transparent 50%),
    linear-gradient(90deg, transparent 63%, #fbfaf6 63% 66%, transparent 66%),
    linear-gradient(0deg, transparent 38%, #fbfaf6 38% 41%, transparent 41%),
    linear-gradient(118deg, transparent 70%, #cfe3d1 70% 86%, transparent 86%),
    radial-gradient(circle at 18% 78%, #cfe3d1 0 16%, transparent 16.5%),
    linear-gradient(160deg, transparent 20%, #bcd6e8 20% 26%, transparent 26%);
}
.a-map--sm { flex: none; width: 84px; height: 84px; border-radius: 14px; }
.a-map--lg { margin-top: -110px; height: 330px; }
.a-map__pin { position: absolute; left: 50%; top: 52%; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--m-ink); box-shadow: 0 6px 12px -4px rgba(15, 27, 42, .6); }
.a-map__pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--m-y); }
.a-map--sm .a-map__pin { width: 20px; height: 20px; margin: -20px 0 0 -10px; }
.a-map--sm .a-map__pin::after { inset: 5px; }
.a-map__label { position: absolute; left: 50%; top: calc(52% + 10px); transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #fff; font: 700 13px/1 "Geist", sans-serif; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(15, 27, 42, .5); }
.app__view.is-shown .a-map--lg .a-map__pin { animation: pinDrop .7s var(--ease-back) .15s both; }
@keyframes pinDrop { from { transform: translateY(-80px) rotate(-45deg); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(-45deg); } }

/* pagine interne */
.a-page { padding: 18px 20px 20px; }
.a-page--tight { padding-top: 22px; }
.a-eyebrow { font: 600 12px/1 "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #9a7000; margin-bottom: 10px; }
.a-list { margin-top: 20px; display: grid; gap: 10px; }
.a-list button { display: flex !important; align-items: center; gap: 14px; width: 100%; padding: 16px !important; border-radius: 16px; background: var(--m-card) !important; box-shadow: 0 1px 0 var(--m-line); transition: transform .15s; }
.a-list button:active { transform: scale(.98); }
.a-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff4d6; color: #8a6200; font-size: 22px; }
.a-list span:nth-child(2) { flex: 1; }
.a-list b { display: block; font-size: 16.5px; }
.a-list small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--m-muted); line-height: 1.35; }
.a-list em { font-style: normal; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* prenotazione */
.a-label { margin: 22px 0 10px; font: 600 12px/1 "Geist Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--m-muted); }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-chips button, .a-days button, .a-slots button { border-radius: 12px; background: var(--m-card) !important; box-shadow: inset 0 0 0 1.5px var(--m-line); font-weight: 600 !important; transition: background-color .2s, color .2s, box-shadow .2s, transform .15s; }
.a-chips button { height: 42px; padding: 0 16px !important; font-size: 15px !important; }
.a-days { display: flex; gap: 8px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
.a-days::-webkit-scrollbar { display: none; }
.a-days button { flex: none; width: 62px; height: 70px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center !important; }
.a-days small { font-size: 12px; font-weight: 600; color: var(--m-muted); text-transform: uppercase; letter-spacing: .06em; }
.a-days b { font: 800 24px/1 "Archivo", sans-serif; font-variation-settings: "wdth" 90; }
.a-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.a-slots button { height: 44px; text-align: center !important; font-size: 15px !important; }
.a-slots button:disabled { opacity: .38; text-decoration: line-through; cursor: default; }
.a-chips button.is-on, .a-days button.is-on, .a-slots button.is-on { background: var(--m-ink) !important; color: #fff !important; box-shadow: none; }
.a-days button.is-on small { color: rgba(255, 255, 255, .65); }
.a-chips button:active, .a-days button:active, .a-slots button:not(:disabled):active { transform: scale(.95); }

.a-plate { display: flex; align-items: stretch; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 2.5px #1a1a1a, 0 6px 14px -10px rgba(0, 0, 0, .5); }
.a-plate__eu { flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 8px; background: #0b3fa8; color: #fff; font: 700 17px/1 "Geist", sans-serif; border-radius: 8px 0 0 8px; margin: 2.5px 0 2.5px 2.5px; }
.a-plate__eu i { font-style: normal; font-size: 11px; color: #ffd400; margin-bottom: 8px; }
.a-plate input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; text-align: center; font: 600 30px/1 "Archivo", sans-serif; font-variation-settings: "wdth" 70; letter-spacing: .06em; text-transform: uppercase; color: #111; user-select: text; -webkit-user-select: text; }
.a-plate input::placeholder { color: #c4c4c4; }
.a-plate:focus-within { box-shadow: inset 0 0 0 2.5px #1a1a1a, 0 0 0 4px rgba(255, 194, 26, .55); }

.a-confirm { position: relative; margin-top: 26px; }
.a-confirm:disabled { opacity: .45; }
.a-spin { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(15, 27, 42, .25); border-top-color: var(--m-ink); animation: spin .7s linear infinite; }
.a-confirm.is-loading span { display: none; }
.a-confirm.is-loading .a-spin { display: block; }
.a-fine { margin-top: 12px; font-size: 13px; color: var(--m-muted); text-align: center; }

.a-done { padding: 30px 20px; text-align: center; }
.a-done[hidden] { display: none; }
.a-done__check { width: 92px; height: 92px; margin: 10px auto 18px; }
.a-done__check circle { fill: var(--m-y); stroke: none; transform-origin: 50% 50%; animation: popIn .5s var(--ease-back) both; }
.a-done__check path { fill: none; stroke: var(--m-ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck .45s var(--ease-out) .35s forwards; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.a-ticket { margin: 20px 0 6px; padding: 18px; border-radius: 18px; background: var(--m-card); box-shadow: 0 1px 0 var(--m-line), 0 14px 30px -20px rgba(15, 27, 42, .5); text-align: left; animation: popIn .5s var(--ease-out) .25s both; }
.a-ticket div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--m-line); font-size: 15px; }
.a-ticket div:last-child { border: 0; }
.a-ticket span { color: var(--m-muted); }

/* contatti */
.a-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.a-actions button { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 74px; border-radius: 16px; background: var(--m-card) !important; box-shadow: 0 1px 0 var(--m-line); font-weight: 600 !important; font-size: 13.5px !important; text-align: center !important; transition: transform .15s; }
.a-actions button:active { transform: scale(.96); }
.a-actions svg { width: 22px; height: 22px; color: var(--m-ink); }
.a-hours { border-radius: 16px; background: var(--m-card); box-shadow: 0 1px 0 var(--m-line); padding: 4px 16px; }
.a-hours li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--m-line); font-size: 14.5px; }
.a-hours li:last-child { border: 0; }
.a-hours b { font-weight: 600; text-align: right; }
.a-hours li.is-today { color: #8a6200; }
.a-hours li.is-today span::after { content: " · oggi"; font-weight: 600; }

/* menu a tutto schermo */
.app__menu { position: absolute; inset: 0; z-index: 15; display: flex; flex-direction: column; justify-content: space-between; padding: 130px 22px 112px; background: var(--m-ink); color: #fff; clip-path: circle(0 at calc(100% - 38px) 80px); transition: clip-path .55s var(--ease-io); }
.app__menu[hidden] { display: flex; visibility: hidden; }
.app.menu-on .app__menu { clip-path: circle(150% at calc(100% - 38px) 80px); visibility: visible; }
.app__menu nav button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font: 800 40px/1 "Archivo", sans-serif !important; font-variation-settings: "wdth" 100; text-transform: uppercase; opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease-out), color .2s; }
.app__menu nav button i { font: 500 13px/1 "Geist Mono", monospace; font-style: normal; color: var(--m-y); }
.app.menu-on .app__menu nav button { opacity: 1; transform: none; }
.app.menu-on .app__menu nav button:nth-child(1) { transition-delay: .12s; }
.app.menu-on .app__menu nav button:nth-child(2) { transition-delay: .17s; }
.app.menu-on .app__menu nav button:nth-child(3) { transition-delay: .22s; }
.app.menu-on .app__menu nav button:nth-child(4) { transition-delay: .27s; }

/* foglio dal basso */
.app__sheet { position: absolute; inset: 0; z-index: 25; }
.app__sheet[hidden] { display: block; visibility: hidden; pointer-events: none; }
.app__sheet-bg { position: absolute; inset: 0; background: rgba(8, 14, 22, .45); opacity: 0; transition: opacity .35s; }
.app__sheet-card { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 12px 20px 26px; border-radius: 28px; background: var(--m-bg); transform: translateY(110%); transition: transform .5s var(--ease-out); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.app__sheet.is-open .app__sheet-bg { opacity: 1; }
.app__sheet.is-open .app__sheet-card { transform: none; }
.app__grab { display: block; width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #cfcbc2; }
.a-sheet__img { height: 150px; border-radius: 16px; margin-bottom: 16px; }
.a-sheet__h { font: 800 28px/1 "Archivo", sans-serif; font-variation-settings: "wdth" 96; text-transform: uppercase; }
.a-sheet__p { margin-top: 8px; font-size: 15.5px; color: #4a5462; }
.a-sheet__meta { display: flex; gap: 8px; margin-top: 14px; }
.a-sheet__meta span { padding: 7px 11px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--m-line); font-size: 13px; font-weight: 600; }
.a-call { text-align: center; }
.a-call__ic { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; background: #31c463; color: #fff; font-size: 30px; }
.a-call__ic svg { width: 30px; height: 30px; }
.a-call h5 { font: 700 21px/1.2 "Geist", sans-serif; }
.a-call p { margin-top: 6px; font-size: 14.5px; color: var(--m-muted); }

/* toast */
.app__toast { position: absolute; z-index: 40; left: 16px; right: 16px; bottom: 104px; padding: 14px 16px; border-radius: 14px; background: rgba(15, 27, 42, .94); color: #fff; font-size: 14.5px; line-height: 1.35; text-align: center; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; }
.app__toast.is-on { opacity: 1; transform: none; }

/* barra di Safari */
.app__safari { position: absolute; z-index: 22; left: 0; right: 0; bottom: 0; height: 92px; display: flex; flex-direction: column; align-items: center; padding-top: 10px; background: rgba(250, 249, 246, .9); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 -1px 0 rgba(15, 27, 42, .08); transition: height .35s var(--ease-out), padding .35s var(--ease-out); pointer-events: none; }
.app__url { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 86%; height: 44px; border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(15, 27, 42, .12); font: 500 16px/1 system-ui, -apple-system, sans-serif; color: #1c1c1e; transition: height .35s var(--ease-out), width .35s var(--ease-out), font-size .35s, box-shadow .35s, background-color .35s; }
.app__url svg { width: 13px; height: 13px; color: #6e6e73; }
.app__home { position: absolute; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: #1c1c1e; }
.app.is-compact .app__safari { height: 64px; padding-top: 6px; }
.app.is-compact .app__url { height: 24px; width: 60%; font-size: 13px; background: transparent; box-shadow: none; }

@media (max-width: 1000px) {
  .phone--app { width: min(330px, 86%); }
}
@media (prefers-reduced-motion: reduce) {
  .app__view.is-in-right, .app__view.is-in-left, .app__view.is-out-left, .app__view.is-out-right { animation: none; }
}

/* ==========================================================================
   v2 — barra di stato iOS fedele, testata sospesa, Safari di iOS 18, viste opache
   (telefono: iPhone 15 Pro, 393×852)
   ========================================================================== */
.app__status { height: 54px; padding: 0; display: block; font: 600 17px/1 -apple-system, "SF Pro Text", "Geist", system-ui, sans-serif; letter-spacing: -.01em; }
.app__time { position: absolute; left: 6px; top: 19px; width: 128px; text-align: center; font-weight: 600; }
.app__sicons { position: absolute; right: 6px; top: 21px; width: 128px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.app__sicons svg { display: block; fill: currentColor; }

/* testata sospesa, in vetro: chiara sulle pagine, scura sopra la foto */
.app__head {
  top: 54px; left: 10px; right: 10px; height: 58px; padding: 0 7px 0 12px; border-radius: 20px;
  background: rgba(250, 249, 246, .8); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 10px 30px -18px rgba(15, 27, 42, .5), inset 0 0 0 1px rgba(255, 255, 255, .75);
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.app.is-scrolled .app__head { box-shadow: 0 14px 34px -14px rgba(15, 27, 42, .55), inset 0 0 0 1px rgba(255, 255, 255, .75); }
.app.is-dark-top .app__head { background: rgba(10, 16, 24, .3); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.app.is-dark-top .app__brand small { color: rgba(255, 255, 255, .72); }
.app__burger { width: 44px; height: 44px; border-radius: 14px; background: rgba(15, 27, 42, .06); transition: background-color .3s; }
.app__burger i { left: 13px; right: 13px; }
.app.is-dark-top .app__burger { background: rgba(255, 255, 255, .16); }
.app.is-dark-top .app__burger i { background: #fff; }
.app.menu-on .app__burger { background: rgba(255, 255, 255, .14); }

/* viste opache: durante il passaggio non si vede più la pagina sotto */
.app__view { background: var(--m-bg); }
.app__scroll { padding: 126px 0 150px; }
.a-hero { margin-top: -126px; height: 650px; }
.a-map--lg { margin-top: -126px; height: 360px; }
.app__menu { padding: 140px 22px 150px; }
.app__toast { bottom: 146px; }

/* Safari di iOS 18: barra dell'indirizzo + barra strumenti + indicatore home */
.app__safari {
  height: 134px; padding: 8px 12px 0; display: block;
  background: rgba(246, 246, 248, .88); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 -.5px 0 rgba(0, 0, 0, .2); transition: height .4s var(--ease-out);
}
.app__addr { position: relative; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .06); color: #000; transition: height .4s var(--ease-out), background-color .3s, box-shadow .3s; }
.app__aa { position: absolute; left: 14px; font: 500 14px/1 -apple-system, "SF Pro Text", "Geist", sans-serif; color: #000; transition: opacity .25s; }
.app__aa b { font-size: 18px; font-weight: 500; }
.app__url { width: auto; height: auto; background: none; box-shadow: none; gap: 0; font: 400 17px/1 -apple-system, "SF Pro Text", "Geist", sans-serif; letter-spacing: -.01em; color: #000; transition: font-size .4s var(--ease-out); }
.app__reload { position: absolute; right: 14px; color: #000; transition: opacity .25s; }
.app__tools { display: flex; justify-content: space-between; align-items: center; height: 44px; margin-top: 6px; padding: 0 10px; transition: opacity .25s, transform .4s var(--ease-out); }
.app__tools svg { width: 26px; height: 26px; color: rgba(60, 60, 67, .3); }
.app__tools svg.is-on { color: #007aff; }
.app__home { bottom: 8px; left: 50%; margin-left: -67px; }
.app.is-compact .app__safari { height: 62px; padding-top: 4px; }
.app.is-compact .app__addr { height: 22px; background: transparent; box-shadow: none; }
.app.is-compact .app__url { font-size: 13px; }
.app.is-compact .app__aa, .app.is-compact .app__reload { opacity: 0; }
.app.is-compact .app__tools { opacity: 0; transform: translateY(10px); }
.app__safari { pointer-events: none; }
.app__tools svg:first-child, .app__reload { pointer-events: auto; cursor: pointer; }

.app.menu-on .app__status { color: #fff; }
