/* Profilo RACE del cliente (2.06): aspetto RACE, chiaro / scuro / come il telefono / segue l'ora (data-theme su <html>). */
/* 2.09 aspetto 2026: chiaro di giorno, appena tinto all'aperitivo (data-mood), scuro la sera. data-theme lo decide
   routers/profilo.py › _page («Segue l'ora» = chiaro/scuro).
   2.10 (13/10) colori del logo nuovo della designer (Antonio: «cambia il colore all'app in linea con questi colori»):
   blu elettrico #0000F6 su bianco, nero e bianco; sul nero il blu e' piu' chiaro (#3B50FF, link #9AA6FF) per leggere. */
:root {
  --p-bg: #FFFFFF; --p-bg2: rgba(10,10,20,.05); --p-solid: #FFFFFF; --p-card: #FFFFFF; --p-glass: rgba(255,255,255,.94);
  --p-glass-border: rgba(10,10,20,.06); --p-shadow: 0 1px 2px rgba(0,0,40,.04), 0 12px 30px rgba(0,0,60,.08); --p-ink: #0A0A0F; --p-muted: #5C5C66;
  --p-line: rgba(10,10,20,.08); --p-line2: rgba(10,10,20,.18); --p-accent: #0000F6; --p-accent2: #0000F6; --p-deep: #0000B8;
  --p-on-accent: #FFFFFF; --p-link: #0A0A0F; --p-accent-soft: rgba(0,0,246,.08); --p-glow: rgba(0,0,246,.24);
  --p-warn-bg: #FFF3D6; --p-warn-ink: #7A4E00; --p-ok-bg: rgba(52,199,89,.16); --p-ok-ink: #1D7A3E; --p-danger: #C9302C;
  --p-chip: #0A0A0F; --p-on-chip: #FFFFFF; --p-blob1: #4D63FF; --p-blob2: #A9B6FF; --p-blob-op: .07; --p-blob-op2: .05;
  --p-tile-a: linear-gradient(140deg, #0000F6 0%, #2F4CFF 100%); --p-tile-b: linear-gradient(140deg, #0A0A0F 0%, #2A2A36 100%);
  --p-story: linear-gradient(150deg, #0000F6 0%, #0A0A0F 100%);
  color-scheme: light;
}
:root[data-mood="aperitivo"]:not([data-theme="scuro"]) { --p-bg: #F6F7FF; }
/* 4.12 (24/11) il tema scuro è il grigio scuro dell'iPhone (#1C1C1F), non il nero: come l'app (Antonio: «troppo nero», «mi piace il colore C») */
:root[data-theme="scuro"] {
  --p-bg: #1C1C1F; --p-bg2: rgba(255,255,255,.08); --p-solid: #2A2A2F; --p-card: rgba(42,42,47,.86); --p-glass: rgba(42,42,47,.76);
  --p-glass-border: rgba(255,255,255,.1); --p-shadow: 0 10px 30px rgba(0,0,0,.45); --p-ink: #FFFFFF; --p-muted: #A2A2AE;
  --p-line: rgba(255,255,255,.09); --p-line2: rgba(255,255,255,.2); --p-accent: #3B50FF; --p-accent2: #3B50FF; --p-deep: #0000F6;
  --p-on-accent: #FFFFFF; --p-link: #9AA6FF; --p-accent-soft: rgba(80,100,255,.24); --p-glow: rgba(0,0,246,.45);
  --p-warn-bg: rgba(255,181,71,.16); --p-warn-ink: #FFC56E; --p-ok-bg: rgba(125,211,160,.16); --p-ok-ink: #7DD3A0; --p-danger: #FF8A80;
  --p-chip: #FFFFFF; --p-on-chip: #08080B; --p-blob1: #0000F6; --p-blob2: #00007A; --p-blob-op: .42; --p-blob-op2: .28;
  --p-tile-a: linear-gradient(140deg, #0000F6 0%, #2F4CFF 100%); --p-tile-b: linear-gradient(140deg, #1B1B24 0%, #000000 100%);
  --p-story: linear-gradient(150deg, #0000F6 0%, #08080B 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="sistema"] {
    --p-bg: #1C1C1F; --p-bg2: rgba(255,255,255,.08); --p-solid: #2A2A2F; --p-card: rgba(42,42,47,.86); --p-glass: rgba(42,42,47,.76);
    --p-glass-border: rgba(255,255,255,.1); --p-shadow: 0 10px 30px rgba(0,0,0,.45); --p-ink: #FFFFFF; --p-muted: #A2A2AE;
    --p-line: rgba(255,255,255,.09); --p-line2: rgba(255,255,255,.2); --p-accent: #3B50FF; --p-accent2: #3B50FF; --p-deep: #0000F6;
    --p-on-accent: #FFFFFF; --p-link: #9AA6FF; --p-accent-soft: rgba(80,100,255,.24); --p-glow: rgba(0,0,246,.45);
    --p-warn-bg: rgba(255,181,71,.16); --p-warn-ink: #FFC56E; --p-ok-bg: rgba(125,211,160,.16); --p-ok-ink: #7DD3A0; --p-danger: #FF8A80;
    --p-chip: #FFFFFF; --p-on-chip: #08080B; --p-blob1: #0000F6; --p-blob2: #00007A; --p-blob-op: .42; --p-blob-op2: .28;
    --p-tile-a: linear-gradient(140deg, #0000F6 0%, #2F4CFF 100%); --p-tile-b: linear-gradient(140deg, #1B1B24 0%, #000000 100%);
    --p-story: linear-gradient(150deg, #0000F6 0%, #08080B 100%);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--p-bg); color: var(--p-ink); }
body { font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--p-link); }
.p-wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px 56px; display: flex; flex-direction: column; gap: 16px; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-logo { font: 800 13px Inter, sans-serif; letter-spacing: .22em; color: var(--p-ink); text-decoration: none; }
/* 2.10 (13/10) la scritta RACE della designer (static/brand/race-scritta.svg) al posto del testo, nel colore del testo */
.p-logo { display: inline-block; width: 80px; height: 25px; font-size: 0; color: transparent; background: var(--p-ink);
  -webkit-mask: url("/static/brand/race-scritta.svg") left center / contain no-repeat; mask: url("/static/brand/race-scritta.svg") left center / contain no-repeat; }
.p-back { font-size: 14px; font-weight: 600; color: var(--p-ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--p-bg2); }
h1 { margin: 0; font: 700 30px/1.1 Fraunces, Georgia, serif; }
h1 em { color: var(--p-accent); font-style: italic; }
h2 { margin: 0; font: 700 19px/1.25 Fraunces, Georgia, serif; }
.p-lead { margin: 0; font-size: 15px; color: var(--p-muted); }
.p-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 12px; }
.p-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.p-small { font-size: 13px; color: var(--p-muted); margin: 0; }
.p-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.p-field input, .p-field select, .p-field textarea { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--p-line); background: var(--p-bg); color: var(--p-ink); font: 500 16px Inter, system-ui, sans-serif; width: 100%; }
.p-field textarea { min-height: 72px; resize: vertical; }
.p-code { font: 700 28px/1 ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .4em; text-align: center; }
.p-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.p-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--p-accent); }
.p-warn { padding: 12px 14px; border-radius: 14px; background: var(--p-warn-bg); color: var(--p-warn-ink); }
.p-msg { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.p-msg.ok { background: var(--p-ok-bg); color: var(--p-ok-ink); }
.p-msg.err { background: var(--p-warn-bg); color: var(--p-warn-ink); }
/* 2.08 profilo dimostrativo di "Mostra RACE" (services/cliente_demo.py) */
.p-demo { margin: 0; align-self: center; padding: 6px 14px; border-radius: 999px; background: var(--p-warn-bg); color: var(--p-warn-ink); font-size: 12.5px; text-align: center; }
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font: 700 16px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.p-btn.wide { width: 100%; }
.p-btn.ghost { background: transparent; color: var(--p-ink); border: 1px solid var(--p-line); }
.p-btn.soft { background: var(--p-bg2); color: var(--p-ink); }
.p-btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.p-btn.danger { background: transparent; color: var(--p-danger); border: 1px solid currentColor; }
.p-link { background: none; border: 0; padding: 0; color: var(--p-link); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: underline; }
.p-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.p-me { display: flex; gap: 14px; align-items: center; }
.p-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--p-chip); color: var(--p-on-chip); display: grid; place-items: center; font: 700 22px Fraunces, Georgia, serif; overflow: hidden; flex-shrink: 0; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-segment { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--p-bg2); }
.p-segment button { flex: 1 1 0; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--p-muted); font: 600 13.5px Inter, system-ui, sans-serif; cursor: pointer; }
.p-segment button[aria-pressed="true"] { background: var(--p-card); color: var(--p-ink); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chips label { position: relative; }
.p-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.p-chips label > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--p-line); background: var(--p-bg); font-size: 14px; font-weight: 600; }
.p-chips input:checked + span { background: var(--p-chip); color: var(--p-on-chip); border-color: var(--p-chip); }
.p-chips input:focus-visible + span { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.p-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.p-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--p-line); }
.p-list li:last-child { border-bottom: 0; }
.p-list small { display: block; color: var(--p-muted); font-size: 13px; }
.p-receipt { border-bottom: 1px solid var(--p-line); padding: 10px 0; }
.p-receipt:last-child { border-bottom: 0; }
.p-receipt summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.p-receipt summary::-webkit-details-marker { display: none; }
.p-receipt summary small { display: block; color: var(--p-muted); font-size: 13px; }
.p-receipt ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--p-muted); }
.p-receipt li { display: flex; justify-content: space-between; padding: 3px 0; }
.p-empty { margin: 0; color: var(--p-muted); font-size: 14px; }
.p-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.p-nav a { flex-shrink: 0; padding: 8px 12px; border-radius: 999px; background: var(--p-bg2); color: var(--p-ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.p-foot { text-align: center; font-size: 12.5px; color: var(--p-muted); }
.p-foot a { color: var(--p-muted); }
.p-sheet { background: var(--p-card); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--p-line); }
@media (min-width: 640px) { .p-wrap { padding-top: 32px; } }

/* ===================== 2.07: il profilo come app nel browser ===================== */
body.has-tabs { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-tabs .p-wrap { padding-top: 12px; }
.p-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--p-bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--p-line); }
.p-bar b { font-size: 15.5px; }
.p-backbtn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-ink); display: inline-flex; align-items: center; justify-content: center; }
.p-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: center; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--p-card); border-top: 1px solid var(--p-line); }
.p-tabs a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--p-muted); text-decoration: none; font-size: 11px; font-weight: 700; min-height: 44px; justify-content: center; }
.p-tabs a[aria-current="page"] { color: var(--p-accent); }
.p-tab-scan { color: var(--p-accent) !important; }
.p-tab-scan-dot { width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; background: var(--p-accent); color: var(--p-on-accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px var(--p-glow); }
.p-av { border-radius: 50%; background: #E9B38D; color: #3A2A1E; display: inline-flex; align-items: center; justify-content: center; font-family: Fraunces, Georgia, serif; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.p-av img { width: 100%; height: 100%; object-fit: cover; }
.p-kicker { font: 800 12px Inter, sans-serif; letter-spacing: .22em; color: var(--p-accent); }
.p-h2row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.p-h2row h2 { font-size: 20px; }
.p-more { font-size: 13.5px; font-weight: 700; color: var(--p-link); text-decoration: none; }
.p-search { display: flex; gap: 8px; }
.p-chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.p-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-ink); font: 700 13.5px Inter, sans-serif; text-decoration: none; }
.p-chip[aria-current="true"] { background: var(--p-chip); color: var(--p-on-chip); border-color: var(--p-chip); }
.p-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-big { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; text-decoration: none; min-height: 96px; }
.p-big b { font-size: 15px; }
.p-big small { font-size: 12.5px; opacity: .8; }
.p-big.dark { background: var(--p-chip); color: var(--p-on-chip); }
.p-big.hot { background: var(--p-accent); color: var(--p-on-accent); }
.p-dashed { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; border: 1px dashed var(--p-accent); background: color-mix(in srgb, var(--p-accent) 10%, var(--p-bg)); color: var(--p-ink); text-decoration: none; }
.p-vcard { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--p-card); border: 1px solid var(--p-line); color: var(--p-ink); text-decoration: none; }
.p-vthumb { width: 58px; height: 58px; flex-shrink: 0; border-radius: 14px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 23px Fraunces, Georgia, serif; background-size: cover; background-position: center; }
.p-vtext { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-vtext b { font-size: 15px; }
.p-vtext small { font-size: 12.5px; color: var(--p-muted); }
.p-ok { color: var(--p-ok-ink) !important; font-weight: 700; }
.p-tag { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--p-accent) 14%, var(--p-bg)); color: var(--p-link); max-width: 100px; text-align: center; }
.p-date { width: 52px; flex-shrink: 0; border-radius: 12px; background: var(--p-chip); color: var(--p-on-chip); display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.p-date small { font-size: 11px; font-weight: 700; }
.p-date b { font: 700 20px Fraunces, Georgia, serif; }
.p-story { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 20px; background: var(--p-bg2); color: var(--p-ink); text-decoration: none; }
.p-story b { font: 700 18px/1.25 Fraunces, Georgia, serif; }
.p-cover { position: relative; margin: -12px -16px 0; height: 190px; display: flex; align-items: flex-end; padding: 16px; color: #fff; background-size: cover; background-position: center; }
.p-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55)); }
.p-cover > * { position: relative; }
.p-cover h1 { color: #fff; font-size: 28px; }
.p-fav { position: absolute !important; top: 12px; right: 12px; z-index: 2; }
.p-favbtn { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); color: #fff; }
.p-favbtn[aria-pressed="true"] { background: #fff; color: #FF375F; }
.p-favsmall { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.p-favsmall[aria-pressed="true"] { color: var(--p-accent); }
.p-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.p-actions a, .p-actions span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--p-card); border: 1px solid var(--p-line); text-decoration: none; color: var(--p-ink); font-size: 12.5px; font-weight: 700; text-align: center; }
.p-actions span { opacity: .45; }
.p-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--p-bg2); }
.p-seg a, .p-seg button { flex: 1 1 0; min-height: 38px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--p-muted); font: 700 13px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.p-seg [aria-current="true"], .p-seg [aria-pressed="true"] { background: var(--p-card); color: var(--p-ink); box-shadow: 0 1px 2px rgba(0,0,0,.16); }
.p-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.p-days a { height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--p-card); color: var(--p-ink); text-decoration: none; border: 1px solid var(--p-line); }
.p-days a small { font-size: 10.5px; font-weight: 700; }
.p-days a b { font: 700 17px Fraunces, Georgia, serif; }
.p-days a i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.p-days a i.on { background: var(--p-accent); }
.p-days a[aria-current="true"] { background: var(--p-chip); color: var(--p-on-chip); border-color: var(--p-chip); }
.p-hero { border-radius: 24px; padding: 18px; background: var(--p-chip); color: var(--p-on-chip); display: flex; flex-direction: column; gap: 10px; }
.p-hero .p-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.p-hero .p-pills span { padding: 6px 10px; border-radius: 999px; background: rgba(127,127,127,.22); font-size: 12.5px; font-weight: 700; }
.p-hero .p-pills span.warn { background: var(--p-accent); color: var(--p-on-accent); }
.p-hero .p-ghost { align-self: flex-start; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(127,127,127,.4); color: inherit; text-decoration: none; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; }
.p-camdot { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--p-accent); color: var(--p-on-accent); display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--p-bg); }
.p-avwrap { position: relative; display: inline-flex; text-decoration: none; }
.p-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 20px; background: var(--p-card); border: 1px solid var(--p-line); color: var(--p-ink); text-decoration: none; min-height: 120px; }
.p-tile.wide { grid-column: span 2; min-height: 0; }
.p-tile.alert { border: 1.5px solid var(--p-accent); background: color-mix(in srgb, var(--p-accent) 10%, var(--p-bg)); }
.p-tile small { font-size: 12.5px; color: var(--p-muted); }
.p-tile-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--p-bg2); color: var(--p-ink); }
.p-tile.alert .p-tile-ico { background: var(--p-accent); color: var(--p-on-accent); }
.p-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p-pick { position: relative; }
.p-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.p-pick span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 92px; border-radius: 18px; border: 1px solid var(--p-line); background: var(--p-card); font: 700 13px Inter, sans-serif; text-align: center; }
.p-pick span i { font-size: 26px; font-style: normal; }
.p-pick.row span { flex-direction: row; justify-content: flex-start; height: 54px; padding: 0 12px; gap: 8px; }
.p-pick.row span i { font-size: 20px; }
.p-pick input:checked + span { border: 2px solid var(--p-accent); background: color-mix(in srgb, var(--p-accent) 12%, var(--p-bg)); }
.p-pick input:focus-visible + span { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.p-switchrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-switchrow span { display: flex; flex-direction: column; gap: 2px; }
.p-switch { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 30px; flex-shrink: 0; border-radius: 999px; background: var(--p-line); cursor: pointer; margin: 0; transition: background .15s; }
.p-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.p-switch:checked { background: var(--p-ok-ink); }
.p-switch:checked::after { left: 25px; }
.p-bars { display: flex; flex-direction: column; gap: 10px; }
.p-bar-row { display: flex; flex-direction: column; gap: 4px; }
.p-bar-row div:first-child { display: flex; justify-content: space-between; font-size: 13.5px; }
.p-track { height: 8px; border-radius: 4px; background: var(--p-bg2); }
.p-track i { display: block; height: 8px; border-radius: 4px; background: var(--p-accent); }
.p-stat { padding: 12px 8px; border-radius: 14px; background: var(--p-bg2); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.p-stat b { font: 700 22px Fraunces, Georgia, serif; }
.p-stat small { font-size: 12px; color: var(--p-muted); }
.p-row-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-ink); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.p-item { display: flex; gap: 10px; align-items: center; }
.p-tick { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; border: 1.5px solid var(--p-line); background: transparent; color: transparent; font: 800 14px Inter, sans-serif; cursor: pointer; }
.p-tick[aria-pressed="true"] { border: 0; background: var(--p-ok-ink); color: #fff; }
.p-people { display: flex; gap: 8px; flex-wrap: wrap; }
.p-person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--p-card); border: 1px solid var(--p-line); font-size: 13px; font-weight: 600; }
.p-soft { padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--p-accent) 10%, var(--p-bg)); display: flex; flex-direction: column; gap: 4px; }
.p-map { position: relative; height: 62vh; min-height: 380px; border-radius: 20px; overflow: hidden; background: var(--p-bg2); touch-action: none; user-select: none; -webkit-user-select: none; }
.p-map img.tile { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.p-map .pin { position: absolute; transform: translate(-50%, -100%); min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 3px solid var(--p-card); background: var(--p-card); color: var(--p-ink); font: 700 13px Inter, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,.28); cursor: pointer; z-index: 2; }
.p-map .pin.been { background: var(--p-chip); color: var(--p-on-chip); }
.p-map .pin.fav { background: var(--p-accent); color: var(--p-on-accent); }
.p-map .pin.sel { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.p-map .zoom { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.p-map .zoom button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-ink); font: 700 20px Inter, sans-serif; cursor: pointer; }
.p-map .attr { position: absolute; right: 6px; bottom: 4px; z-index: 3; font-size: 10.5px; background: rgba(255,255,255,.8); color: #333; padding: 1px 5px; border-radius: 4px; }
.p-map .attr a { color: #333; }
.p-mapcard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: var(--p-card); border: 1px solid var(--p-line); }
.p-video { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; background: #0B0A0E; display: flex; align-items: center; justify-content: center; color: #A89FB0; font-size: 13px; text-align: center; padding: 20px; box-sizing: border-box; }
.p-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-video .frame { position: absolute; inset: 18%; border: 4px solid #3B50FF; border-radius: 22px; pointer-events: none; }
.p-qrimg { width: 200px; height: 200px; border-radius: 16px; background: #fff; padding: 8px; image-rendering: pixelated; }
.p-linkbox { padding: 12px; border-radius: 12px; background: var(--p-bg2); font: 600 14px Inter, sans-serif; word-break: break-all; }
[hidden] { display: none !important; }
/* 2.07 suggerimenti: argomento (usa .p-chips), voto a stelle */
.p-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.p-fieldset legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.p-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.p-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-stars label { font-size: 34px; line-height: 1; color: var(--p-line); cursor: pointer; padding: 2px; }
.p-stars input:checked ~ label { color: #F5A524; }
.p-stars input:focus-visible + label { outline: 2px solid var(--p-accent); border-radius: 6px; }
.p-tag.ok { color: var(--p-ok-ink); background: var(--p-ok-bg); }
/* 2.07 mappa: Mappa/Satellite, Vicino a me, schede dei locali */
.p-map .layers { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; padding: 3px; border-radius: 12px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.p-map .layers button { border: 0; border-radius: 9px; padding: 7px 11px; background: transparent; color: var(--p-ink); font: 700 13px Inter, sans-serif; cursor: pointer; }
.p-map .layers button[aria-pressed="true"] { background: var(--p-chip); color: var(--p-on-chip); }
.p-map .zoom button svg { display: block; margin: auto; }
.p-map .zoom button.on { color: #1A73E8; }
.p-map .me { position: absolute; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.22), 0 1px 4px rgba(0,0,0,.3); z-index: 2; pointer-events: none; }
.p-map.is-sat .pin:not(.fav):not(.been) { border-color: #fff; }
.p-mc-top { display: flex; gap: 12px; align-items: center; }
.p-mc-photo { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--p-bg2) center / cover no-repeat; display: grid; place-items: center; color: #fff; font: 700 22px Fraunces, Georgia, serif; }
.p-mc-top small.is-open { color: var(--p-ok-ink); }
.p-mc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.p-near { display: flex; flex-direction: column; gap: 8px; }
.p-near-row { width: 100%; border: 1px solid var(--p-line); text-align: left; font: inherit; color: inherit; cursor: pointer; }

/* 2.08 Consigliere nel profilo */
.p-advisor { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--p-accent, #c2410c) 18%, transparent), color-mix(in srgb, var(--p-accent, #c2410c) 4%, transparent));
  border: 1px solid color-mix(in srgb, var(--p-accent, #c2410c) 30%, transparent); }
.p-advisor.is-teaser { flex-wrap: wrap; }
.p-advisor.is-teaser form { flex-basis: 100%; }
.p-adv { display: flex; flex-direction: column; gap: 12px; }
.p-adv-ask { display: flex; gap: 8px; }
.p-adv-ask input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--p-line, #ddd); background: var(--p-card); color: inherit; font: inherit; }
.p-adv-near { margin: 0; }
.p-adv-out { display: flex; flex-direction: column; gap: 10px; }
.p-adv-wait { opacity: .7; }
.p-adv-answer { display: flex; flex-direction: column; gap: 6px; }
.p-adv-q { align-self: flex-end; margin: 0; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--p-accent, #c2410c); color: #fff; max-width: 85%; }
.p-adv-a { align-self: flex-start; margin: 0; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--p-card); border: 1px solid var(--p-line, #ddd); max-width: 92%; }
.p-adv-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--p-card); border: 1px solid var(--p-line, #ddd); }
.p-adv-top { display: flex; gap: 10px; align-items: center; }
.p-adv-photo { width: 52px; height: 52px; flex: none; border-radius: 14px; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.p-adv-dish { margin: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.p-adv-dish small { flex-basis: 100%; opacity: .75; }
.p-adv-why { margin: 0; font-size: 14px; }
.p-adv-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.p-open { color: #1e8e4a; }
/* Consigliere come chat (2.08) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body:has(.p-chat) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
body:has(.p-chat) .p-foot { display: none; }
.p-chat { display: flex; flex-direction: column; gap: 12px; }
.p-chat-head { display: flex; align-items: center; gap: 10px; }
.p-chat-head small { display: block; font-size: 12.5px; color: var(--p-muted); }
.p-chat-ava { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--p-accent) 14%, var(--p-card)); }
.p-chat-new { margin-left: auto; flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-ink); font: 700 12.5px Inter, sans-serif; cursor: pointer; }
.p-chat-log { display: flex; flex-direction: column; gap: 10px; }
.p-chat-msg { display: flex; flex-direction: column; gap: 8px; }
.p-chat-msg.is-me { align-items: flex-end; }
.p-chat-msg.is-bot { align-items: flex-start; }
.p-chat-bubble { margin: 0; padding: 10px 14px; max-width: 85%; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.is-me .p-chat-bubble { border-radius: 18px 18px 4px 18px; background: var(--p-accent); color: var(--p-on-accent); }
.is-bot .p-chat-bubble { border-radius: 18px 18px 18px 4px; background: var(--p-card); border: 1px solid var(--p-line); }
.is-err .p-chat-bubble { background: var(--p-warn-bg); color: var(--p-warn-ink); }
.p-chat-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.p-chat-typing { display: inline-flex; gap: 5px; align-items: center; min-height: 20px; }
.p-chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-muted); animation: p-dot 1.1s infinite ease-in-out; }
.p-chat-typing i:nth-child(2) { animation-delay: .15s; }
.p-chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes p-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .p-chat-typing i { animation: none; } }
.p-chat-ideas[hidden] { display: none; }
.p-chat-bar { position: fixed; left: 0; right: 0; bottom: calc(63px + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: flex-end; gap: 8px;
  max-width: 560px; margin: 0 auto; padding: 10px 16px; background: color-mix(in srgb, var(--p-bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.p-chat-bar textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 120px; padding: 12px 14px; border-radius: 23px; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-ink); font: 16px/1.35 Inter, system-ui, sans-serif; resize: none; }
.p-chat-send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--p-accent); color: var(--p-on-accent); display: grid; place-items: center; cursor: pointer; }
.p-chat-near { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid var(--p-line); background: var(--p-card); display: grid; place-items: center; font-size: 18px; cursor: pointer; filter: grayscale(1); opacity: .6; }
.p-chat-near input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.p-chat-near:has(input:checked) { filter: none; opacity: 1; border-color: var(--p-accent); }
.p-chat-near:has(input:focus-visible), .p-chat-send:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
/* Uscite con gli amici (2.08) */
.p-outings { display: flex; flex-direction: column; gap: 10px; }
.p-outing { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--p-card); border: 1px solid var(--p-line); }
.p-outing.is-invite { border-color: color-mix(in srgb, var(--p-accent) 45%, var(--p-line)); background: color-mix(in srgb, var(--p-accent) 6%, var(--p-card)); }
.p-outing.is-closed { opacity: .65; }
.p-outing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.p-outing-head b { font-size: 16px; }
.p-outing-head small { color: var(--p-muted); font-size: 13px; flex-basis: 100%; }
.p-outing-state { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--p-bg2); color: var(--p-muted); }
.p-outing-state.state-confermata, .p-outing-state.state-arrivati { background: var(--p-ok-bg); color: var(--p-ok-ink); }
.p-outing-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.p-outing-acts form { display: contents; }
.p-gvenue { display: flex; flex-direction: column; gap: 6px; }
.p-gvenue > .p-btn { align-self: flex-end; }

/* 2.08 mappa: la scheda del locale sale dal basso sopra la mappa, il segnaposto scelto "salta" */
.p-map .p-mapcard { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; max-height: calc(100% - 70px); overflow-y: auto; touch-action: pan-y; user-select: text; -webkit-user-select: text; box-shadow: 0 14px 40px rgba(0,0,0,.30); padding: 14px 14px 12px; }
.p-map .p-mapcard.is-in { animation: p-mc-up .26s cubic-bezier(.2,.9,.3,1.2); }
.p-map .p-mapcard.is-leaving { animation: p-mc-down .18s ease-in forwards; }
@keyframes p-mc-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes p-mc-down { to { transform: translateY(40px); opacity: 0; } }
.p-map .p-mc-top { color: inherit; text-decoration: none; padding-right: 34px; }
.p-mc-close { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--p-bg2); color: var(--p-ink); font: 700 20px/1 Inter, sans-serif; cursor: pointer; }
.p-map .p-mapcard [data-card-link] { width: 100%; justify-content: center; }
.p-map .pin.sel { transform: translate(-50%, -100%) scale(1.18); z-index: 3; background: var(--p-accent); color: var(--p-on-accent); }
.p-map .pin.sel::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 0; height: 0; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--p-accent); }
.p-map .pin.pop { animation: p-pin-pop .38s cubic-bezier(.3,1.6,.5,1); }
@keyframes p-pin-pop { 0% { transform: translate(-50%, -100%) scale(1); } 45% { transform: translate(-50%, -125%) scale(1.3); } 100% { transform: translate(-50%, -100%) scale(1.18); } }
.p-map-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--p-card); color: var(--p-ink); font: 600 13.5px Inter, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.22); pointer-events: none; white-space: nowrap; }
.p-map .attr { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .p-map .p-mapcard.is-in, .p-map .p-mapcard.is-leaving, .p-map .pin.pop { animation: none; } }

/* ===================== 2.09 aspetto 2026 (disegno «App del cliente», tavolozza Lampone) =====================
   Titoli Inter pieni come su iPhone, schede in vetro, luce colorata in cima, barra in basso sospesa con la
   scintilla del Consigliere al centro. Vale per tutte le pagine del profilo; la Home ha il disegno completo. */
/* 2.87 (24/10) «clip», non «hidden»: con html già «clip» il body «hidden» diventava lui la cosa che scorre, e su iPhone la
   pagina si fermava di colpo in cima e in fondo, si poteva spostare di lato e zoomare (Antonio: «come si blocca la pagina») */
body { position: relative; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-x: clip; }
h1 { font: 800 32px/1.08 Inter, system-ui, -apple-system, sans-serif; letter-spacing: -.025em; }
h2 { font: 800 21px/1.15 Inter, system-ui, -apple-system, sans-serif; letter-spacing: -.02em; }
.p-h2row h2 { font-size: 22px; }
.p-avatar, .p-av, .p-vthumb, .p-mc-photo, .p-stat b, .p-date b, .p-days a b, .p-story b { font-family: Inter, system-ui, sans-serif; font-weight: 800; }
.p-wrap { position: relative; z-index: 1; gap: 18px; }
.p-aura { position: absolute; z-index: 0; left: 50%; top: 0; width: min(100%, 760px); height: 600px; overflow: hidden; pointer-events: none; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
.p-aura span { position: absolute; border-radius: 50%; animation: p-nuota 11s ease-in-out infinite alternate; }
.p-aura span:nth-child(1) { left: -90px; top: -110px; width: 330px; height: 330px; background: var(--p-blob1); filter: blur(56px); opacity: var(--p-blob-op); }
.p-aura span:nth-child(2) { right: -110px; top: -40px; width: 320px; height: 320px; background: var(--p-blob2); filter: blur(60px); opacity: var(--p-blob-op); animation-duration: 14s; animation-direction: alternate-reverse; }
.p-aura span:nth-child(3) { left: 60px; top: 200px; width: 280px; height: 230px; background: var(--p-blob1); filter: blur(66px); opacity: var(--p-blob-op2); animation-delay: -5s; }
@keyframes p-nuota { from { transform: translate(0, 0) scale(1); } to { transform: translate(34px, 26px) scale(1.12); } }
body:not(.has-tabs) .p-aura { opacity: .7; }

/* Schede e pulsanti comuni */
.p-card, .p-vcard, .p-row-link, .p-tile, .p-outing, .p-mapcard, .p-sheet, .p-glass, .p-live, .p-evcard {
  background: var(--p-card); border: 1px solid var(--p-glass-border); box-shadow: var(--p-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.p-card { border-radius: 24px; }
.p-vcard { border-radius: 22px; }
.p-btn { font-weight: 800; box-shadow: 0 8px 20px var(--p-glow); transition: transform .15s ease; }
.p-btn:active, .p-chip:active, .p-big:active, .p-bigcard:active, .p-vrow:active, .p-round:active { transform: scale(.96); }
.p-btn.ghost, .p-btn.soft, .p-btn.danger { box-shadow: none; }
.p-btn.soft { background: var(--p-bg2); }
.p-btn-big { min-height: 56px; font-size: 17px; }
.p-chip { min-height: 38px; padding: 0 16px; border: 0; background: var(--p-card); box-shadow: inset 0 0 0 1px var(--p-line); font-size: 15px; }
.p-chip[aria-current="true"] { background: var(--p-chip); color: var(--p-on-chip); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.p-chips-row { margin: 0 -16px; padding: 2px 16px 6px; }
.p-seg, .p-segment { border-radius: 999px; padding: 3px; background: var(--p-bg2); }
.p-seg a, .p-seg button, .p-segment button { border-radius: 999px; }
.p-seg [aria-current="true"], .p-seg [aria-pressed="true"], .p-segment button[aria-pressed="true"] { background: var(--p-solid); box-shadow: 0 3px 10px rgba(0,0,0,.14); font-weight: 800; }
.p-more { color: var(--p-accent); font-size: 15px; }
.p-tag { background: var(--p-bg2); color: var(--p-ink); }
.p-msg { border-radius: 18px; }
.p-field input, .p-field select, .p-field textarea { border-radius: 16px; background: var(--p-solid); }
.p-empty { padding: 4px 2px; }
.p-sec { display: flex; flex-direction: column; gap: 12px; }

/* Barra in alto delle pagine interne: vetro */
.p-bar { background: var(--p-glass); border-bottom: 1px solid var(--p-line); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
.p-backbtn { background: var(--p-card); border-color: var(--p-glass-border); box-shadow: var(--p-shadow); }

/* Barra in basso sospesa, in vetro, con la scintilla al centro */
body.has-tabs { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.p-tabs { left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; height: 66px; padding: 0 6px;
  justify-content: space-between; border-radius: 999px; border: 1px solid var(--p-glass-border); background: var(--p-glass);
  box-shadow: 0 16px 40px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.35); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); }
.p-tabs > a { flex: 0 1 64px; height: 54px; min-height: 0; gap: 2px; border-radius: 999px; font-size: 10.5px; transition: background .25s ease, color .25s ease; }
.p-tabs > a[aria-current="page"]:not(.p-tab-spark) { background: var(--p-accent-soft); color: var(--p-accent); }
.p-tabs a:active, .p-tab-spark:active { transform: scale(.94); }
.p-tabs > .p-tab-spark { position: relative; display: block; flex: 0 0 76px; height: 54px; padding: 0; border: 0; background: transparent; color: var(--p-ink); font: inherit; cursor: pointer; text-decoration: none; }
.p-tab-spark > .p-spark { position: absolute; left: 7px; top: -34px; box-shadow: 0 10px 24px var(--p-glow), 0 0 0 3px var(--p-solid); animation: p-galleggia 4s ease-in-out infinite; }
.p-tab-spark > span:last-child { position: absolute; left: 0; right: 0; bottom: 5px; font-size: 10.5px; font-weight: 800; text-align: center; }
.p-tab-spark[aria-current="page"] > span:last-child { color: var(--p-accent); }
.p-soon { position: absolute; right: -4px; top: -38px; z-index: 1; padding: 2px 7px; border-radius: 999px; background: var(--p-ink); color: var(--p-bg); font-size: 9.5px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.p-tabs > .p-tab-scan { flex: 0 0 64px; justify-content: center; }
.p-tab-scan-dot { width: 56px; height: 56px; margin-top: 0; background: linear-gradient(135deg, var(--p-accent), var(--p-accent2)); color: #FFFFFF; box-shadow: 0 8px 22px var(--p-glow); }

/* La scintilla del Consigliere */
.p-spark { position: relative; display: block; flex: none; border-radius: 50%; }
.p-spark::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, var(--p-accent2), var(--p-accent)); animation: p-alone 2.6s ease-out infinite; }
.p-spark-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--p-accent2) 0%, var(--p-accent) 100%); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.p-spark-in svg { animation: p-brilla 2.8s ease-in-out infinite; }
@keyframes p-alone { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes p-brilla { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.14) rotate(14deg); } }
@keyframes p-galleggia { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Pannelli dal basso (Consigliere in arrivo; poi invita amici) */
.p-sheet2 { width: min(560px, 100vw); max-width: 100vw; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 30px 30px 0 0;
  overflow: hidden; background: var(--p-solid); color: var(--p-ink); box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
.p-sheet2[open] { display: flex; flex-direction: column; animation: p-sale .5s cubic-bezier(.2, .85, .25, 1); }
.p-sheet2::backdrop { background: rgba(0,0,0,.42); }
.p-sheet2::before { content: ""; position: absolute; left: -30%; right: -30%; top: -180px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, var(--p-blob1), transparent); opacity: .5; filter: blur(20px); pointer-events: none; }
.p-sheet2 > * { position: relative; }
@keyframes p-sale { from { transform: translateY(100%); } to { transform: none; } }
.p-grab { align-self: center; flex: none; width: 40px; height: 5px; margin-top: 10px; border-radius: 99px; background: var(--p-line2); }
.p-x { position: absolute !important; right: 16px; top: 18px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--p-bg2); color: var(--p-ink); cursor: pointer; }
.p-advsoon { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 24px max(26px, env(safe-area-inset-bottom)); overflow-y: auto; text-align: center; }
.p-float { margin-bottom: 6px; animation: p-galleggia 4s ease-in-out infinite; }
.p-advsoon .p-spark { box-shadow: 0 10px 24px var(--p-glow); }
.p-badge { padding: 3px 10px; border-radius: 999px; background: var(--p-ink); color: var(--p-bg); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.p-advsoon h2 { font-size: 30px; line-height: 1.1; }
.p-advsoon > p { margin: 0; color: var(--p-muted); font-size: 16px; line-height: 1.5; }
.p-advex { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; margin: 6px 0 10px; }
.p-advex span { max-width: 80%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; border: 1.5px dashed var(--p-line2); color: var(--p-muted); font-size: 15px; font-weight: 600; animation: p-appare .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes p-appare { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.p-advsoon form { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.p-advsoon small { color: var(--p-muted); font-size: 13px; }
.p-okpill { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 999px; background: var(--p-ok-bg); color: var(--p-ok-ink); font-size: 16px; font-weight: 800; }
.p-okdot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #34C759; color: #FFFFFF; }

/* ---------- Home */
.p-hello { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.p-hello-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.p-moment { display: inline-flex; align-items: center; gap: 6px; color: var(--p-muted); font-size: 14px; font-weight: 600; }
.p-moment svg { flex: none; color: var(--p-accent); }
.p-hello h1 { margin-top: 2px; overflow-wrap: anywhere; }
/* 2.09 «Usa dove sono»: il messaggio (cerco dove sei / permesso negato) nel foglio «Dove vuoi guardare?» */
.p-here-msg { margin-top: 6px; color: var(--p-muted); font-size: 12.5px; line-height: 1.35; }
.p-nearnote { margin: -4px 0 10px; }
.p-round { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--p-glass-border); background: var(--p-card); color: var(--p-ink); box-shadow: var(--p-shadow); transition: transform .15s ease; }
.p-meav { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; text-decoration: none; }
.p-meav-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--p-blob1), var(--p-blob2), var(--p-accent), var(--p-blob2), var(--p-blob1)); animation: p-gira 8s linear infinite; }
.p-meav .p-av { position: relative; border: 2px solid var(--p-bg); }
@keyframes p-gira { to { transform: rotate(360deg); } }

.p-live { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 28px; }
.p-live-k { display: flex; align-items: center; gap: 8px; color: var(--p-accent); font-size: 13px; font-weight: 700; }
.p-live-v { display: flex; align-items: center; gap: 12px; }
.p-live-v .p-vtext b { font-size: 17px; font-weight: 800; }
.p-live-v .p-vtext small { font-size: 14px; }
.p-live-who { display: flex; align-items: center; gap: 10px; color: var(--p-muted); font-size: 13px; line-height: 1.35; }
.p-live-who b { color: var(--p-ink); }
.p-live-names { display: none; }
.p-live-acts { display: flex; gap: 10px; }
.p-live-acts .p-btn { flex: 1 1 0; min-height: 46px; font-size: 15px; }
.p-live.is-outing { gap: 10px; padding: 14px; border-radius: 24px; }
.p-live.is-closed { opacity: .65; }
.p-live .p-outing-state { flex: none; margin: 0; align-self: flex-start; }
.p-faces { display: flex; flex: none; align-items: center; }
.p-face { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; border: 2px solid var(--p-solid); font-weight: 800; }
.p-face + .p-face { margin-left: -9px; }
.p-face.c0 { background: #E2E5FF; color: #0000B8; } .p-face.c1 { background: #E9DDCF; color: #1D1D1F; }
.p-face.c2 { background: #D9F0E6; color: #1D5E43; } .p-face.c3 { background: #FDE7C8; color: #8A5300; }
.p-outing-acts { flex-wrap: wrap; }

.p-duo { gap: 12px; }
.p-big { position: relative; overflow: hidden; align-items: flex-start; min-height: 122px; padding: 14px; border-radius: 24px; color: #FFFFFF; transition: transform .15s ease; }
.p-big.tile-a { background: var(--p-tile-a); box-shadow: 0 12px 26px var(--p-glow); }
.p-big.tile-b { background: var(--p-tile-b); box-shadow: 0 12px 26px rgba(143,14,64,.3); }
.p-big b { margin-top: auto; font-size: 18px; font-weight: 800; }
.p-big small { font-size: 13px; opacity: .9; }
.p-big-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.24); }
.p-big-bg { position: absolute; right: -14px; bottom: -18px; color: rgba(255,255,255,.16); pointer-events: none; }
.p-big-bg svg { stroke-width: 1.4; }
.p-dashed { gap: 14px; padding: 14px 16px; border-radius: 24px; border: 1.5px dashed var(--p-line2); background: transparent; }
.p-dashed > svg { flex: none; opacity: .45; }
.p-dashed-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--p-accent-soft); color: var(--p-accent); }
.p-dashed .p-vtext b { font-size: 16px; font-weight: 800; }

.p-rail { display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.p-rail::-webkit-scrollbar { display: none; }
.p-bigcard { position: relative; flex: none; width: 250px; height: 300px; overflow: hidden; border-radius: 28px; scroll-snap-align: start; color: #FFFFFF; text-decoration: none; box-shadow: 0 14px 30px rgba(0,0,0,.16); transition: transform .15s ease;
  background: linear-gradient(160deg, color-mix(in srgb, var(--v-accent, var(--p-accent)) 72%, #FFFFFF) 0%, var(--v-accent, var(--p-accent)) 100%); }
.p-bigcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.75) 100%); pointer-events: none; }
.p-bigcard.is-art::after { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.p-bigcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-bigcard > .p-vlogo { position: absolute; z-index: 1; left: 14px; top: 14px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.p-bigcard.is-art > .p-vlogo { left: 70px; top: 38px; border-radius: 30px; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.p-bigcard-t { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; }
.p-bigcard-t b { margin-top: 8px; font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.p-bigcard-t small { margin-top: 2px; font-size: 14px; opacity: .88; }
.p-livepill { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(0,0,0,.32); font-size: 12px; font-weight: 700; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.p-livepill i { width: 7px; height: 7px; border-radius: 50%; background: #34C759; animation: p-pulsa 1.6s ease-out infinite; }
@keyframes p-pulsa { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.75); } 100% { box-shadow: 0 0 0 9px rgba(52,199,89,0); } }

.p-glass { border-radius: 24px; }
.p-rows { display: flex; flex-direction: column; padding: 4px 14px; }
.p-vrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--p-ink); text-decoration: none; }
.p-vrow + .p-vrow { border-top: 1px solid var(--p-line); }
.p-vrow .p-vtext b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-vrow .p-vtext small { font-size: 13px; }
.p-vrow .p-tag { padding: 5px 10px; font-size: 12px; }
.p-amount { flex: none; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-vlogo { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 16px; object-fit: cover; color: #FFFFFF; font-weight: 800; }

.p-evgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-evcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 24px; color: var(--p-ink); text-decoration: none; }
.p-evcard .p-date { width: 50px; height: 54px; justify-content: center; padding: 0; border-radius: 16px; background: var(--p-accent-soft); color: var(--p-accent); }
.p-evcard.is-alt .p-date { background: rgba(255,146,88,.2); color: var(--p-deep); }
.p-evcard .p-date small { font-size: 11px; font-weight: 800; }
.p-evcard .p-date b { font-size: 21px; line-height: 1; }
.p-evcard .p-vtext b { font-size: 15px; font-weight: 800; }

.p-story { position: relative; overflow: hidden; gap: 6px; padding: 20px 18px 54px; border-radius: 26px; background: var(--p-story); color: #FFFFFF; }
.p-story-waves { position: absolute; left: -10px; bottom: -6px; width: calc(100% + 20px); opacity: .35; }
.p-story-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.p-story b { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.p-story-sum { font-size: 14px; line-height: 1.4; opacity: .9; }
/* 2.09 articolo con la foto di copertina: ombra scura in basso per leggere il titolo; autore e licenza piccoli */
.p-story.has-photo { min-height: 250px; justify-content: flex-end; padding: 20px 18px 30px; background: #0A0A14; }
.p-story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-story.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,8,14,0) 25%, rgba(20,8,14,.55) 58%, rgba(20,8,14,.9) 100%); }
.p-story.has-photo > :not(.p-story-img) { position: relative; z-index: 2; }
.p-story.has-photo > .p-story-credit { position: absolute; right: 16px; bottom: 9px; left: 18px; overflow: hidden; font-size: 10px; line-height: 1.2;
  opacity: .7; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
/* 2.09 pagina dell'articolo: foto in cima, galleria che si scorre, sotto ogni foto autore e licenza */
.p-art { display: flex; flex-direction: column; gap: 12px; }
.p-art h1 { font-size: 26px; line-height: 1.2; }
.p-art-p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.p-art-fig { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.p-art-fig img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; background: var(--p-bg2); }
.p-art-fig figcaption { color: var(--p-muted); font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }
.p-art-fig figcaption a { color: inherit; }
.p-art-gallery { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.p-art-gallery h2 { margin: 0; font-size: 19px; }
.p-art-rail { display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.p-art-rail::-webkit-scrollbar { display: none; }
.p-art-rail .p-art-fig { flex: 0 0 84%; scroll-snap-align: center; }
.p-art-rail .p-art-fig img { border-radius: 18px; }
.p-art-src { overflow-wrap: anywhere; }
.p-art-src a { color: inherit; }

@media (min-width: 640px) {
  .p-evgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-sheet2 { margin: auto; border-radius: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-aura span, .p-spark::before, .p-spark-in svg, .p-tab-spark > .p-spark, .p-float, .p-meav-ring, .p-livepill i, .p-sheet2[open], .p-advex span { animation: none; }
}

/* ---------- 2.09 Mappa a tutto schermo (disegno «App · Mappa») */
body.is-mapfull { overflow: hidden; }
body.is-mapfull .p-wrap > .p-foot { display: none; }
.p-map.is-full { position: fixed; z-index: 2; inset: 0; height: auto; min-height: 0; border-radius: 0; background: var(--p-bg); }
:root[data-theme="scuro"] .p-map:not(.is-sat) img.tile { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.86) saturate(.55); }
@media (prefers-color-scheme: dark) { :root[data-theme="sistema"] .p-map:not(.is-sat) img.tile { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.86) saturate(.55); } }
.p-map .attr { left: 16px; right: auto; bottom: auto; top: calc(env(safe-area-inset-top) + 122px); background: var(--p-glass); color: var(--p-muted); border-radius: 6px; }
.p-map .attr a { color: inherit; }
.p-maptop { position: absolute; z-index: 5; left: 16px; right: 16px; top: calc(14px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 10px; max-width: 528px; margin: 0 auto; }
.p-mapsearch, .p-mapseg, .p-mapzoom, .p-mapbtn, .p-map .layers { border: 1px solid var(--p-glass-border); background: var(--p-glass); box-shadow: var(--p-shadow); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.p-mapsearch { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 16px; border-radius: 999px; color: var(--p-muted); }
.p-mapsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--p-ink); font: 500 16px Inter, system-ui, sans-serif; outline: none; }
.p-mapsearch input::-webkit-search-cancel-button { filter: grayscale(1); }
.p-mapme { display: inline-flex; flex: none; text-decoration: none; }
.p-mapseg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; }
.p-mapseg a { height: 32px; min-height: 32px; font-size: 13px; }
.p-mapctl { position: absolute; z-index: 5; right: 16px; top: calc(140px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.p-mapzoom { display: flex; flex-direction: column; width: 46px; overflow: hidden; border-radius: 999px; }
.p-mapzoom button { display: grid; place-items: center; height: 46px; border: 0; background: transparent; color: var(--p-ink); cursor: pointer; }
.p-mapzoom span { height: 1px; margin: 0 10px; background: var(--p-line); }
.p-mapbtn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--p-ink); cursor: pointer; }
.p-mapbtn.is-locate { color: #0A84FF; }
.p-mapbtn.is-locate.on { background: #0A84FF; color: #FFFFFF; }
/* tipo di mappa: bottone tondo come gli altri, il menu si apre a sinistra del bottone */
.p-maplayers { position: relative; }
.p-maplayers .p-mapbtn.on { background: var(--p-ink); color: var(--p-bg); }
.p-maplayers-menu { position: absolute; right: 56px; top: 0; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 5px;
  border-radius: 20px; border: 1px solid var(--p-glass-border); background: var(--p-solid); box-shadow: var(--p-shadow); animation: p-appare .2s ease both; }
.p-maplayers-menu[hidden] { display: none; }
.p-maplayers-menu button { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 0; border-radius: 15px; background: transparent;
  color: var(--p-ink); font: 700 15px Inter, sans-serif; text-align: left; cursor: pointer; }
.p-maplayers-menu button[aria-pressed="true"] { background: var(--p-accent-soft); color: var(--p-accent); }
.p-mapsheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-width: 560px; max-height: 46vh; max-height: 46dvh; margin: 0 auto;
  padding: 10px 16px calc(98px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border-radius: 30px 30px 0 0; border-top: 1px solid var(--p-glass-border);
  background: color-mix(in srgb, var(--p-bg) 90%, transparent); box-shadow: 0 -10px 30px rgba(0,0,0,.14); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); }
.p-mapsheet > .p-grab { flex: none; margin: 0 auto 10px; }
/* 2.09 linguetta: si tocca o si trascina per abbassare / alzare il foglio (resta visibile il titolo) */
.p-mapsheet { transition: max-height .32s cubic-bezier(.2, .8, .2, 1); }
.p-mapsheet.no-anim { transition: none; }
.p-sheethandle { flex: none; display: grid; place-items: center; width: calc(100% + 32px); height: 30px; margin: -10px -16px 4px; padding: 0; border: 0;
  background: transparent; cursor: grab; touch-action: none; }
.p-sheethandle .p-grab { margin: 0; width: 44px; }
.p-mapsheet.is-low { max-height: calc(176px + env(safe-area-inset-bottom)); overflow: hidden; }
.p-mapsheet.is-low .p-maplist > :not(.p-h2row) { visibility: hidden; }
.p-mapsheet .p-maplist > .p-h2row { touch-action: none; }
.p-maplist { display: flex; flex-direction: column; gap: 6px; }
.p-maplist .p-h2row { margin-bottom: 2px; }
.p-maplist .p-rows { padding: 0; }
.p-near-row { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.p-near-row .p-vtext b { font-size: 15px; }
.p-mapmissing { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
/* scheda del locale nel foglio */
.p-mapsheet .p-mapcard { position: static; max-height: none; padding: 0; border: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; display: flex; flex-direction: column; gap: 12px; }
.p-mapsheet .p-mapcard[hidden] { display: none; }
.p-mapcard .p-mc-top { display: flex; align-items: center; gap: 12px; padding-right: 0; }
.p-mc-open { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.p-mc-open .p-vtext b { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.p-mc-open .p-vtext small.is-open { color: var(--p-ok-ink); font-weight: 700; }
.p-mc-photo { width: 58px; height: 58px; border-radius: 17px; font-size: 22px; }
.p-mc-close { position: static; display: grid; place-items: center; align-self: flex-start; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--p-bg2); color: var(--p-ink); }
.p-mc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.p-mc-actions .p-btn { flex: 1 0 auto; min-height: 44px; font-size: 14px; }
.p-mc-actions .p-btn.is-go { background: var(--p-ink); color: var(--p-bg); }
.p-mapsheet .p-mapcard [data-card-link] { min-height: 48px; font-size: 15px; }
/* segnaposto tondi con il logo */
.p-map .pin { min-width: 0; width: 52px; height: 52px; padding: 3px; border: 0; border-radius: 50%; background: var(--p-solid); box-shadow: 0 8px 20px rgba(0,0,0,.28); transform: translate(-50%, calc(-100% - 8px)); }
.p-map .pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 0; height: 0; transform: translateX(-50%); border: 7px solid transparent; border-bottom: 0; border-top: 9px solid var(--p-solid); }
.p-map .pin.sel { transform: translate(-50%, calc(-100% - 8px)) scale(1.22); background: var(--p-accent); outline: 0; }
.p-map .pin.sel::after { border-top-color: var(--p-accent); bottom: -8px; border-width: 9px 7px 0; }
.p-map .pin.fav, .p-map .pin.been { background: var(--p-solid); color: inherit; }
.p-map .pin.sel.fav, .p-map .pin.sel.been { background: var(--p-accent); }
.pin-face { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--p-accent); color: #FFFFFF; font: 800 18px Inter, sans-serif; }
.pin-face img { width: 100%; height: 100%; object-fit: cover; }
/* 2.10 il luogo di un articolo (es. un'opera): segnaposto con la stella, sempre sopra i locali */
.p-map .pin.poi { z-index: 3; background: #C2185B; }
.p-map .pin.poi::after { border-top-color: #C2185B; }
.p-map .pin.poi .pin-face { background: #FFFFFF !important; color: #C2185B; font-size: 22px; }
/* 2.77 (23/10) stelle vicine in un cerchio con il numero: lo tocchi e la mappa si avvicina (static/profilo.js › regroup) */
.p-map .pin-cluster { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; min-width: 46px; height: 46px; padding: 0 12px; border: 3px solid #FFFFFF; border-radius: 999px; background: #C2185B; color: #FFFFFF;
  font: 800 16px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.28);
  -webkit-tap-highlight-color: transparent; transition: transform .15s ease; }
.p-map .pin-cluster:active { transform: translate(-50%, -50%) scale(.94); }
.p-map .pin-cluster:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 3px; }
.p-map .pin-cluster svg { flex: none; }
@media (prefers-reduced-motion: reduce) { .p-map .pin-cluster { transition: none; } }
.pin-open { position: absolute; right: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #FFFFFF; background: #34C759; }
.pin-fav { position: absolute; left: -2px; top: -2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #FF375F; color: #FFFFFF; font-size: 10px; font-style: normal; }
@keyframes p-pin-pop { 0% { transform: translate(-50%, calc(-100% - 8px)) scale(1); } 45% { transform: translate(-50%, calc(-125% - 8px)) scale(1.3); } 100% { transform: translate(-50%, calc(-100% - 8px)) scale(1.22); } }
.p-map .me { box-shadow: 0 0 0 6px rgba(10,132,255,.22), 0 2px 8px rgba(0,0,0,.3); background: #0A84FF; }
/* 2.10 posti da vedere sulla stessa mappa: in alto una fila di pillole che scorre di lato
   «Tutto · Locali · ★ Da vedere · Preferiti · Dove sono stato» (come i filtri delle mappe del telefono) */
.p-mapseg.is-five { gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.p-mapseg.is-five::-webkit-scrollbar { display: none; }
.p-mapseg.is-five a { flex: none; gap: 6px; height: 36px; min-height: 36px; padding: 0 15px; border: 1px solid var(--p-glass-border); background: var(--p-glass);
  box-shadow: var(--p-shadow); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); color: var(--p-ink); white-space: nowrap; }
.p-mapseg.is-five a[aria-current="true"] { border-color: transparent; background: var(--p-ink); color: var(--p-bg); }
.p-mapseg a.is-poi svg { color: #C2185B; }
.p-mapseg.is-five a.is-poi[aria-current="true"] { background: #C2185B; color: #FFFFFF; }
.p-mapseg.is-five a.is-poi[aria-current="true"] svg { color: #FFFFFF; }
.p-near-row.is-poi .p-vlogo { border-radius: 14px; box-shadow: 0 0 0 2px #C2185B; object-fit: cover; }
/* 2.10 scheda aperta (locale o posto da vedere): il foglio sale quanto serve, cosi' «Leggi l'articolo» / «Apri il locale»
   non finiscono sotto la barra in basso; titoli lunghi al massimo su due righe */
.p-mapsheet.has-card:not(.is-low) { max-height: 82vh; max-height: 82dvh; }
.p-mc-open .p-vtext b { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 2.09 Pagina del locale (disegno «App · Locale») */
body.is-hero .p-wrap { padding-top: 0; }
.p-vhero { position: relative; margin: 0 -16px -86px; height: 380px; overflow-x: clip; }
html { overflow-x: clip; }
body.is-hero .p-demo { position: absolute; z-index: 3; top: calc(66px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); }
.p-vhero-amb { position: absolute; left: -80px; right: -80px; top: 140px; height: 700px; width: calc(100% + 160px); object-fit: cover; filter: blur(70px) saturate(1.5); opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); }
.p-vhero.is-art .p-vhero-amb { background: linear-gradient(160deg, color-mix(in srgb, var(--v-accent) 70%, #FFFFFF), var(--v-accent)); height: 560px; }
.p-vhero-media { position: relative; height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.55) 76%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0,0,0,.55) 76%, transparent 100%); }
.p-vhero-media > img:not(.p-vhero-logo) { display: block; width: 100%; height: 100%; object-fit: cover; animation: p-respira 14s ease-in-out infinite alternate; }
.p-vhero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 30%); }
.p-vhero.is-art .p-vhero-media { background: linear-gradient(160deg, color-mix(in srgb, var(--v-accent) 70%, #FFFFFF), var(--v-accent)); }
.p-vhero-logo { position: absolute; left: 50%; top: 70px; width: 160px; height: 160px; margin-left: -80px; border-radius: 40px; object-fit: cover; animation: p-respira 14s ease-in-out infinite alternate; }
@keyframes p-respira { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.14) translate(-10px, -8px); } }
.p-glassbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.32); color: #FFFFFF; cursor: pointer;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); text-decoration: none; transition: transform .15s ease; }
.p-glassbtn:active { transform: scale(.94); }
.p-vback { position: fixed; z-index: 20; left: 16px; top: calc(16px + env(safe-area-inset-top)); }
.p-vtools { position: fixed; z-index: 20; right: 16px; top: calc(16px + env(safe-area-inset-top)); display: flex; gap: 8px; }
.p-vtools form { display: contents; }
.p-vtools .p-favbtn[aria-pressed="true"] { background: rgba(0,0,0,.32); color: #FF375F; }
.p-vtools .p-favbtn svg { animation: none; }
.p-vtools .p-favbtn[aria-pressed="true"] svg { animation: p-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes p-spunta { 0% { transform: scale(.3); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (min-width: 600px) { .p-vback { left: calc(50% - 264px); } .p-vtools { right: calc(50% - 264px); } }
/* 4.11 (24/11) come nell'app: il logo sopra, sotto il nome con «Segui» a destra (app_nativa/src/app/locale/[id].tsx) */
.p-vhead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo logo" "text follow"; align-items: end; gap: 14px 12px; }
.p-vhead > .p-vlogo { grid-area: logo; }
.p-vhead > .p-vtext { grid-area: text; min-width: 0; display: grid; gap: 4px; }
.p-vhead > .p-vfollow, .p-vhead > .p-followbtn { grid-area: follow; }
.p-vhead .p-vlogo { border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.p-vhead h1 { font-size: 30px; line-height: 1.07; letter-spacing: -.03em; overflow-wrap: anywhere; }
.p-vhead .p-vtext small { font-size: 15px; font-weight: 500; color: var(--p-muted); }
.p-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.p-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--p-bg2); color: var(--p-ink); font-size: 13px; font-weight: 700; }
.p-pill.is-ok { background: var(--p-ok-bg); color: var(--p-ok-ink); }
.p-livedot { width: 7px; height: 7px; border-radius: 50%; background: #34C759; animation: p-pulsa 1.6s ease-out infinite; }
.p-acts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.p-acts4 > a, .p-acts4 > span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 22px; color: var(--p-ink); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
  background: var(--p-card); border: 1px solid var(--p-glass-border); box-shadow: var(--p-shadow); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); transition: transform .15s ease; }
.p-acts4 > a:active { transform: scale(.95); }
.p-acts4 > .is-off { opacity: .45; }
.p-act-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--p-accent); color: var(--p-on-accent); }
.p-vdesc { margin: 0; font-size: 16px; line-height: 1.5; }
.p-vshow { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 26px; }
.p-vshow > img, .p-vshow-art { flex: none; width: 96px; height: 96px; border-radius: 18px; object-fit: cover; }
.p-vshow-art { display: grid; place-items: center; background: var(--p-accent-soft); }
.p-vshow .p-vtext small:first-child { font-size: 12px; font-weight: 700; }
.p-vshow .p-vtext b { margin-top: 2px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.p-vshow-price { margin-top: 6px; color: var(--p-accent); font-size: 15px; font-weight: 700; }
/* 4.11.1 la Vetrina si tocca (apre il piatto nel menu) e, con più piatti, scorre di lato come .p-rail */
a.p-vshow { color: inherit; text-decoration: none; }
a.p-vshow:active { transform: scale(.98); }
.p-vshow > .p-vtext { flex: 1; min-width: 0; }
.p-vshow-go { flex: none; margin-right: 6px; color: var(--p-muted); }
.p-rail.p-vshows { padding-bottom: 4px; scroll-padding-inline: 16px; }
.p-rail.p-vshows > .p-vshow { flex: 0 0 86%; scroll-snap-align: start; }
/* 4.11.1 la pillola degli orari si tocca; «Cosa dicono» con voti, commenti e foto; il foglio «Orari» */
button.p-pill, a.p-pill { font: inherit; border: 0; cursor: pointer; color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.p-says-score { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--p-muted); vertical-align: middle; }
.p-rail.p-says-photos { scroll-padding-inline: 16px; }
.p-says-photos > img { flex: none; width: 120px; height: 120px; border-radius: 18px; object-fit: cover; scroll-snap-align: start; }
.p-says { display: flex; flex-direction: column; gap: 10px; }
.p-rail.p-says { flex-direction: row; scroll-padding-inline: 16px; }
.p-say { margin: 0; flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 22px; }
.p-say-stars { color: #E8A317; font-size: 14px; letter-spacing: 1px; }
.p-say-stars span { color: var(--p-line, rgba(127,127,127,.35)); }
.p-say blockquote { margin: 0; font-size: 15px; line-height: 1.45; }
.p-say figcaption { font-size: 12.5px; color: var(--p-muted); }
#voti { scroll-margin-top: 16px; }
.p-hours ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; }
.p-hours li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--p-line, rgba(127,127,127,.18)); font-size: 15.5px; }
.p-hours li > a { flex: 1; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.p-hours li > a > span { margin-left: auto; }
.p-hours li > a > svg { flex: none; color: var(--p-muted); }
.p-says-ext { display: flex; flex-wrap: wrap; gap: 8px; }
.p-says-ext .p-btn { flex: 1 1 150px; justify-content: center; gap: 7px; padding: 0 12px; font-size: 15px; white-space: nowrap; }
.p-hours li span { color: var(--p-muted); text-align: right; }
.p-hours li.is-today b, .p-hours li.is-today span { color: var(--p-accent); font-weight: 700; }
.p-dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.p-dishes b { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.p-dish-ph { position: relative; height: 104px; overflow: hidden; border-radius: 18px; background: var(--p-accent-soft); }
.p-dish-ph img { width: 100%; height: 100%; object-fit: cover; }
.p-dish-ph.is-art > span:first-child { display: grid; place-items: center; height: 100%; color: var(--p-accent); font-size: 34px; font-weight: 800; }
.p-dish-n { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.5); color: #FFFFFF; font-size: 12px; font-weight: 800; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.p-dashbox { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 22px; border: 1.5px dashed var(--p-line2); }
.p-dashbox b { font-size: 16px; font-weight: 800; }
.p-evrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 24px; }
.p-evrow .p-date { width: 52px; height: 56px; justify-content: center; padding: 0; border-radius: 16px; background: var(--p-accent-soft); color: var(--p-accent); }
.p-evrow .p-date small { font-size: 11px; font-weight: 800; }
.p-evrow .p-date b { font-size: 22px; line-height: 1; }
.p-evrow .p-vtext b { font-size: 16px; font-weight: 800; }
.p-evrow .p-btn { flex: none; min-height: 36px; padding: 0 14px; }
@media (prefers-reduced-motion: reduce) { .p-vhero-media > img, .p-vhero-logo, .p-livedot, .p-vtools .p-favbtn svg { animation: none; } }

/* ---------- 2.09 Io (disegno «App · Io») */
.p-h3 { font-size: 17px; }
.p-sep { height: 1px; background: var(--p-line); }
.p-iohead { display: flex; align-items: center; gap: 16px; padding-top: 6px; }
.p-ioav { position: relative; display: grid; place-items: center; flex: none; width: 80px; height: 80px; text-decoration: none; }
.p-ioav .p-av { position: relative; border: 3px solid var(--p-bg); }
.p-ioav .p-camdot { width: 28px; height: 28px; border: 2px solid var(--p-bg); background: var(--p-accent); }
.p-iohead .p-vtext .p-ioname { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.p-iohead .p-vtext small { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-iohead .p-more { font-size: 14px; }
.p-spend { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; overflow: hidden; border-radius: 28px; color: #FFFFFF;
  background: linear-gradient(140deg, var(--p-accent2) 0%, var(--p-accent) 55%, var(--p-deep) 100%); box-shadow: var(--p-shadow); }
.p-spend::before { content: ""; position: absolute; left: -60px; top: -80px; width: 260px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent); pointer-events: none; }
.p-spend > * { position: relative; }
.p-spend-k { font-size: 13px; font-weight: 700; opacity: .8; }
.p-spend > b { font-size: 46px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.p-spend-s { font-size: 14px; opacity: .85; }
.p-spend-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 10px; }
.p-spend-bars > span { display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; height: 100%; }
.p-spend-bars i { display: block; max-height: calc(100% - 18px); border-radius: 8px; background: rgba(255,255,255,.38); transform-origin: center bottom; animation: p-cresce .8s cubic-bezier(.2, .8, .2, 1) both; }
.p-spend-bars i.is-now { background: rgba(255,255,255,.78); }
.p-spend-bars small { font-size: 11px; font-weight: 700; text-align: center; opacity: .75; }
@keyframes p-cresce { from { transform: scaleY(0); } to { transform: none; } }
.p-track { height: 10px; border-radius: 999px; background: var(--p-bg2); overflow: hidden; }
.p-track i { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--p-accent), var(--p-accent2)); transform-origin: left center; animation: p-cresce-x .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes p-cresce-x { from { transform: scaleX(0); } to { transform: none; } }
.p-bar-row div:first-child span { font-weight: 600; }
.p-switch { width: 51px; height: 31px; background: var(--p-line2); }
.p-switch::after { top: 2px; left: 2px; width: 27px; height: 27px; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: left .3s cubic-bezier(.3, 1.4, .5, 1); }
.p-switch:checked { background: #34C759; }
.p-switch:checked::after { left: 22px; }
.p-switchrow b { font-size: 16px; }
.p-habits { gap: 8px; }
.p-habits .p-stat { align-items: flex-start; padding: 12px; border-radius: 18px; text-align: left; background: var(--p-accent-soft); }
.p-habits .p-stat b { font-size: 24px; line-height: 1; color: var(--p-deep); }
.p-habits .p-stat.c1 { background: rgba(255,146,88,.2); }
.p-habits .p-stat small { font-size: 12px; font-weight: 600; }
:root[data-theme="scuro"] .p-habits .p-stat b { color: var(--p-link); }
.p-setlist { display: flex; flex-direction: column; padding: 2px 16px; border-radius: 24px; }
.p-setlist > a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 0; color: var(--p-ink); text-decoration: none; }
.p-setlist > a + a { border-top: 1px solid var(--p-line); }
.p-setlist > a > svg:last-child { flex: none; opacity: .4; }
.p-setico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; color: #FFFFFF; }
.p-setico.c1 { background: var(--p-accent); } .p-setico.c2 { background: var(--p-deep); } .p-setico.c3 { background: var(--p-accent2); } .p-setico.c4 { background: #8E8E93; }
.p-set-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.p-setlist small { color: var(--p-muted); font-size: 14px; }
.p-redbadge { padding: 2px 8px; border-radius: 999px; background: #FF3B30; color: #FFFFFF; font-size: 12px; font-weight: 800; }
.p-chips-row .p-chip { cursor: pointer; }
/* 2.77 Io › Valuta: le altre valute in un elenco sotto le pillole */
#valuta > .p-small { margin: -4px 0 10px; }
.p-fx-more { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.p-fx-more select { flex: 1; min-width: 0; max-width: 340px; height: 42px; padding: 0 12px; border: 1px solid var(--p-line); border-radius: 12px;
  background: var(--p-card); color: var(--p-ink); font: 500 15px var(--p-font); }
.p-out { color: var(--p-danger); }
.p-dashed .p-vtext small { font-size: 13px; }
.p-camdot { right: 0; bottom: 0; }

/* ---------- 2.09 Scontrini (disegno «App · Scontrini») */
.p-rctot > div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 22px; }
.p-rctot b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.p-rctot small { font-size: 12px; font-weight: 700; color: var(--p-muted); }
.p-rctot-hot { color: #FFFFFF; background: linear-gradient(140deg, var(--p-accent2) 0%, var(--p-accent) 55%, var(--p-deep) 100%); box-shadow: var(--p-shadow); }
.p-rctot-hot small { color: inherit; opacity: .85; }
.p-cap { margin: 0 4px; color: var(--p-muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.p-rchead { display: flex; align-items: center; gap: 12px; }
.p-rchead .p-vtext b { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.p-rchead .p-vlogo { border-radius: 15px; }
.p-rccard { gap: 10px; }
.p-rclines { display: flex; flex-direction: column; padding: 4px 14px; border-radius: 18px; background: var(--p-bg2); }
.p-rclines .p-item { gap: 10px; padding: 8px 0; }
.p-rclines .p-item + .p-item { border-top: 1px solid var(--p-line); }
.p-rclines .p-item form { display: flex; }
.p-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--p-line2); color: transparent; }
.p-tick[aria-pressed="true"] { border: 0; background: #34C759; color: #FFFFFF; }
.p-rclines .p-vtext > span { font-size: 15px; }
.p-rcprice { flex: none; color: var(--p-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.p-rctotal { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--p-line); }
.p-rctotal span { color: var(--p-muted); font-size: 15px; }
.p-rctotal b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- 2.09 Scansiona a tutto schermo (disegno «App · Scansiona») */
body.is-scan { overflow: hidden; background: #000000; }
body.is-scan .p-tabs, body.is-scan .p-aura, body.is-scan .p-wrap > .p-foot { display: none; }
.p-video.is-full { position: fixed; z-index: 25; inset: 0; width: auto; aspect-ratio: auto; padding: 0; border-radius: 0; background: #000000; color: #FFFFFF; display: block; }
.p-video.is-full video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-video.is-full::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(0,0,0,0) 0, rgba(0,0,0,0) 130px, rgba(0,0,0,.6) 131px); }
.p-scan-head { position: absolute; z-index: 2; left: 24px; right: 24px; top: calc(92px + env(safe-area-inset-top)); text-align: center; }
.p-scan-head h1 { color: #FFFFFF; font-size: 26px; line-height: 1.15; }
.p-scan-head p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; opacity: .85; }
.p-scan-frame { position: absolute; z-index: 2; left: 50%; top: 45%; width: 260px; height: 260px; transform: translate(-50%, -50%); }
.p-scan-frame > i { position: absolute; width: 46px; height: 46px; border: 0 solid #FFFFFF; }
.p-scan-frame > i:nth-child(1) { left: 0; top: 0; border-left-width: 5px; border-top-width: 5px; border-top-left-radius: 26px; }
.p-scan-frame > i:nth-child(2) { right: 0; top: 0; border-right-width: 5px; border-top-width: 5px; border-top-right-radius: 26px; }
.p-scan-frame > i:nth-child(3) { left: 0; bottom: 0; border-left-width: 5px; border-bottom-width: 5px; border-bottom-left-radius: 26px; }
.p-scan-frame > i:nth-child(4) { right: 0; bottom: 0; border-right-width: 5px; border-bottom-width: 5px; border-bottom-right-radius: 26px; }
.p-scan-line { position: absolute; left: 18px; right: 18px; top: 14px; height: 3px; border-radius: 99px; opacity: 0; background: linear-gradient(90deg, transparent, var(--p-accent), #FFD36B, var(--p-accent), transparent); box-shadow: 0 0 18px var(--p-accent); }
.p-video.is-live .p-scan-line { opacity: 1; animation: p-linea 1.4s ease-in-out infinite alternate; }
@keyframes p-linea { from { top: 14px; } to { top: 243px; } }
.p-scan-ok { position: absolute; left: 90px; top: 90px; display: none; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #34C759; box-shadow: 0 10px 30px rgba(52,199,89,.5); }
.p-video.is-found .p-scan-ok { display: grid; animation: p-spunta .38s cubic-bezier(.3, 1.6, .5, 1); }
.p-video.is-found .p-scan-line { display: none; }
.p-scan-acts { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 460px; margin: 0 auto; }
.p-scan-acts .p-btn { min-height: 56px; font-size: 17px; }
.p-scan-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.16); color: #FFFFFF; font-size: 15px; font-weight: 700; cursor: pointer; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.p-scan-note { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.4; text-align: center; }
.p-scan-x { position: fixed; z-index: 30; left: 16px; top: calc(16px + env(safe-area-inset-top)); }
@media (prefers-reduced-motion: reduce) { .p-spend-bars i, .p-track i, .p-video.is-live .p-scan-line { animation: none; } }

/* ---------- 2.09 Invita gli amici che non hanno RACE (disegno «App · Invita») */
.p-setico.c5 { background: #34C759; }
/* 2.98 Io in tre gruppi (Tu · L'app · Aiuto) e i colori delle icone nuove */
.p-setico.is-orange { background: #FF9F0A; } .p-setico.is-pink { background: #FF375F; } .p-setico.is-green { background: #34C759; }
.p-set-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--p-muted); }
.p-glabel { margin: 6px 4px -10px; font: 600 12.5px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
.p-face-plus { background: transparent !important; border: 2px dashed var(--p-accent) !important; color: var(--p-accent); }
.p-invcard { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 24px; }
.p-invcard .p-vtext { flex: 1; min-width: 0; }
.p-invcard .p-vtext b { font-size: 16px; font-weight: 800; }
.p-invcard .p-btn { flex: none; }
button.p-dashed { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.p-inv { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 22px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; text-align: center; }
.p-inv-faces .p-face { border-color: var(--p-solid); }
.p-inv-faces .p-face + .p-face { margin-left: -12px; }
.p-inv h2 { font-size: 28px; line-height: 1.1; }
.p-inv > .p-small { margin: 0; font-size: 15px; line-height: 1.5; }
.p-inv-msg { display: flex; align-items: flex-end; gap: 8px; width: 100%; text-align: left; }
.p-inv-msg > .p-av { flex: none; }
.p-inv-bubble { flex: 1; min-width: 0; padding: 12px 12px 10px; border-radius: 20px 20px 20px 6px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.p-inv-bubble p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.p-inv-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--p-bg2); }
.p-inv-link .p-vtext { min-width: 0; }
.p-inv-link .p-vtext b { font-size: 14px; font-weight: 800; }
.p-inv-link .p-vtext small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-muted); font-size: 12.5px; }
.p-inv-badge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--p-accent2), var(--p-accent)); color: #FFFFFF; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.p-btn.p-wa { gap: 10px; background: #25D366; color: #FFFFFF; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.p-inv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.p-inv-tiles > a, .p-inv-tiles > button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 20px; border: 1px solid var(--p-line); background: var(--p-card); box-shadow: var(--p-shadow); color: var(--p-ink); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.p-inv-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--p-accent-soft); color: var(--p-accent); }
.p-inv-note { color: var(--p-muted); font-size: 12.5px !important; }
.p-invited { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border-radius: 22px; background: var(--p-accent-soft); border: 1px solid color-mix(in srgb, var(--p-accent) 30%, transparent); }
.p-invited .p-av { flex: none; width: 48px; height: 48px; font-size: 17px; }
.p-invited .p-vtext b { font-size: 16px; font-weight: 800; }
.p-invited .p-vtext small { color: var(--p-muted); font-size: 13.5px; line-height: 1.4; }

/* 2.09 pagina dell'amico: tocchi l'amico in «Amici» e vedi le uscite fatte insieme (idea di Antonio, 6/10) */
.p-frlink { display: flex; flex-grow: 1; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.p-frlink > svg { flex: none; color: var(--p-muted); }
.p-frhead { display: flex; align-items: center; gap: 14px; }
.p-frhead .p-frname { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.p-frhead .p-vtext small { font-size: 13.5px; }
.p-frstats .p-stat b { font-size: 24px; }
.p-frout { align-items: flex-start; }
.p-frout > svg { flex: none; align-self: center; color: var(--p-muted); }
.p-frout .p-frdish { color: var(--p-ink); opacity: .82; line-height: 1.35; }
.p-frout .p-frdish b { font-size: inherit; font-weight: 700; white-space: normal; }

/* 2.09 testata del disegno «App per i turisti»: paese ▾, Traduci, QR, foto; sotto momento e saluto */
.p-hello2 { flex-direction: column; align-items: stretch; gap: 14px; }
.p-hello-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.p-grow { flex: 1 1 auto; }
.p-town { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 62%; height: 46px; padding: 0 14px 0 10px;
  border: 1px solid var(--p-glass-border); border-radius: 999px; background: var(--p-card); color: var(--p-ink); box-shadow: var(--p-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); font: inherit; cursor: pointer; }
.p-town b { overflow: hidden; font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.p-town > svg { flex: none; opacity: .6; }
.p-town-pin { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--p-accent-soft); color: var(--p-accent); }
.p-town-pin svg { fill: currentColor; }
.p-town.is-gps .p-town-pin { background: var(--p-accent); color: var(--p-on-accent); }
.p-langbtn { position: relative; cursor: pointer; font: inherit; }
.p-langcode { position: absolute; right: -3px; bottom: -3px; min-width: 22px; height: 18px; padding: 0 4px; box-sizing: border-box; border: 2px solid var(--p-bg);
  border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font-size: 9.5px; font-weight: 800; line-height: 14px; text-align: center; }

/* 2.09 fogli «Dove vuoi guardare?» e «Lingua dell'app» */
.p-city { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 22px 20px max(28px, env(safe-area-inset-bottom)); overflow-y: auto; }
.p-city > * { flex-shrink: 0; }
.p-city h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.p-city h2 + .p-small { margin-top: 8px; font-size: 15px; line-height: 1.5; }
.p-citysearch { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 999px; background: var(--p-bg2); }
.p-citysearch svg { flex: none; color: var(--p-muted); }
.p-citysearch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--p-ink); font: inherit; font-size: 16px; outline: none; }
.p-citysearch input::-webkit-search-cancel-button { display: none; }
.p-cityhere { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 22px; background: var(--p-accent-soft); color: var(--p-ink); font: inherit; text-align: left; cursor: pointer; }
.p-cityhere-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--p-accent); color: var(--p-on-accent); }
.p-cityhere-ico svg { fill: currentColor; }
.p-cityhere.is-busy { opacity: .65; pointer-events: none; }
.p-cityhere .p-vtext b, .p-cityrow .p-vtext b { font-size: 16px; }
.p-cityhere > svg:last-child, .p-cityrow > svg:last-child { flex: none; color: var(--p-accent); }
.p-citylist { display: flex; flex-direction: column; padding: 2px 14px; border-radius: 22px; background: var(--p-bg2); }
.p-cityrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; background: transparent; color: var(--p-ink); font: inherit; text-align: left; cursor: pointer; }
.p-cityrow:not([hidden]) ~ .p-cityrow:not([hidden]) { border-top: 1px solid var(--p-line); }
.p-cityrow[hidden] { display: none; }
.p-cityrow.is-busy { opacity: .6; pointer-events: none; }
.p-cityini { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 14px; background: var(--p-ink); color: #FFFFFF; font-size: 15px; font-weight: 800; }
.p-cityini.is-search { background: var(--p-accent-soft); color: var(--p-accent); }
.p-langbadge { display: grid; place-items: center; flex: none; width: 40px; height: 30px; border-radius: 10px; background: var(--p-solid); color: var(--p-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.p-langbadge.is-on { background: var(--p-accent); color: var(--p-on-accent); }
.p-citysheet .p-sec { gap: 6px; }

/* 2.09 icone delle categorie (disegno «App per i turisti») */
.p-cats { display: flex; gap: 2px; margin: -2px -16px 0; padding: 2px 10px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; }
.p-cats::-webkit-scrollbar { display: none; }
.p-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 72px; padding: 4px 0; color: var(--p-ink); text-decoration: none; }
.p-cat-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 19px; background: var(--p-accent-soft); color: var(--p-accent); transition: background .2s ease, color .2s ease; }
.p-cat-t { overflow: hidden; max-width: 72px; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.p-cat[aria-current="true"] .p-cat-ico { background: var(--p-accent); color: var(--p-on-accent); box-shadow: 0 8px 18px var(--p-glow); }
.p-cat[aria-current="true"] .p-cat-t { font-weight: 800; }

/* 2.10 «Scopri <paese>» a schede grandi (disegno «App per i turisti») */
.p-scards { display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.p-scards::-webkit-scrollbar { display: none; }
.p-scard { position: relative; flex: none; width: 210px; height: 260px; overflow: hidden; border-radius: 26px; scroll-snap-align: start; color: #FFFFFF; text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.16); transition: transform .15s ease; }
.p-scard:active { transform: scale(.97); }
.p-scard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-scard-art { position: absolute; left: 50%; top: 22px; margin-left: -75px; color: rgba(255,255,255,.62); }
.p-scard-art svg { stroke-width: 1; }
.p-scard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.74) 100%); pointer-events: none; }
.p-scard-tag { position: absolute; z-index: 1; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(0,0,0,.36); font-size: 12px; font-weight: 700; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.p-scard-tag svg { stroke-width: 2.4; }
.p-scard-credit { position: absolute; z-index: 1; right: 10px; top: 44px; max-width: 70%; color: rgba(255,255,255,.85); font-size: 9.5px; line-height: 1.25; text-align: right; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.p-scard-t { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 3px; }
.p-scard-t b { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 19px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.p-scard-t > span:not(.p-scard-go) { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.3; opacity: .88; }
.p-scard-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 800; }
.p-scard-go svg { stroke-width: 2.6; }
.p-scards.is-list { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
.p-scard.is-wide { width: 100%; height: 230px; }

/* 2.10 pagina dell'articolo (disegno «App per i turisti»): foto grande che sfuma, come la pagina del locale */
.p-ahero.is-art .p-vhero-amb, .p-ahero.is-art .p-vhero-media { background: var(--a-bg); }
.p-ahero-ico { position: absolute; left: 50%; top: 70px; margin-left: -95px; color: rgba(255,255,255,.62); }
.p-ahero-ico svg { stroke-width: .9; }
.p-art { position: relative; }
.p-art-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-art-top .p-pill svg { color: var(--p-accent); }
.p-art-credit { max-width: 60%; color: var(--p-muted); font-size: 11px; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
.p-art-credit a { color: inherit; }
.p-art-k { color: var(--p-accent); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; }
.p-art h1 { margin-top: -6px; font-size: 30px; line-height: 1.1; }
.p-art-lead { font-size: 17px; line-height: 1.45; }
.p-art-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.p-art-acts .p-btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.p-art-go svg { fill: currentColor; }
.p-art-p { font-size: 16px; }

/* 2.10 redazione: testo dell'articolo con sottotitoli, elenchi e grassetto (services/redazione.render_body) */
.p-art-body { display: flex; flex-direction: column; gap: 12px; }
.p-art-h { margin: 8px 0 0; font-size: 19px; line-height: 1.25; }
.p-art-ul { margin: 0; padding-left: 20px; font-size: 15.5px; line-height: 1.6; }
.p-art-body strong { font-weight: 700; }

/* 2.10 «Ora sei qui · Birrificio · Tavolo 7 — Torna al menu»: sopra la barra in basso, in tutte le pagine (services/qui_ora.py) */
.p-here[hidden] { display: none; }
.p-here { position: fixed; z-index: 31; left: 14px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 8px 8px 16px; border-radius: 20px; text-decoration: none;
  background: var(--p-chip); color: var(--p-on-chip); box-shadow: 0 12px 30px rgba(31,14,21,.28); animation: p-here-in .45s cubic-bezier(.2,.9,.3,1.2) both; }
body.has-tabs .p-here { bottom: calc(90px + env(safe-area-inset-bottom)); }
body.has-here { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-tabs.has-here { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
.p-here-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: p-here-pulse 2s infinite; }
.p-here-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.p-here-txt small { font-size: 11.5px; font-weight: 600; opacity: .7; }
.p-here-txt b { font-size: 15px; font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.p-here-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 14px;
  background: var(--p-accent); color: var(--p-on-accent); font-size: 14px; font-weight: 800; white-space: nowrap; }
.p-here svg { fill: none; stroke: currentColor; }
.p-here.is-closed { min-height: 48px; background: var(--p-solid); color: var(--p-ink); border: 1px solid var(--p-line2); box-shadow: var(--p-shadow); }
.p-here.is-closed .p-here-go { height: 34px; background: var(--p-accent-soft); color: var(--p-accent); }
.p-here:active { transform: scale(.98); }
@keyframes p-here-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes p-here-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.6); } 70% { box-shadow: 0 0 0 9px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
@media (prefers-reduced-motion: reduce) { .p-here, .p-here-dot { animation: none; } }
@media (max-width: 420px) { .p-here-go { padding: 0 11px; font-size: 13.5px; } .p-here-txt b { font-size: 14.5px; } }

/* 2.10 intestazione e pagina vuota più ordinate (Scontrini): titolo con respiro, scheda al centro, piede in fondo */
.p-head { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.p-head .p-lead { line-height: 1.45; }
.p-emptycard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 22px 26px; }
.p-emptycard h2 { margin: 4px 0 0; font-size: 19px; font-weight: 800; }
.p-emptycard p { margin: 0; max-width: 340px; color: var(--p-muted); font-size: 15px; line-height: 1.5; }
.p-emptycard .p-btn { margin-top: 8px; max-width: 100%; text-align: center; }
.p-emptyico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--p-accent-soft); color: var(--p-accent); }
body.has-tabs .p-wrap { min-height: calc(100dvh - 130px); }
body.has-tabs .p-foot { margin-top: auto; padding-top: 12px; }
/* 2.10 pagina «Asporto» / «A domicilio»: i locali che lo fanno, per tipo e «Aperti adesso»; «Ordina» a destra */
.p-ordhead h1 { margin: 0; }
.p-ordseg { padding: 4px; }
.p-ordseg a { gap: 6px; min-height: 42px; font-size: 14.5px; }
.p-ordseg small { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--p-bg); color: var(--p-muted); font-size: 11.5px; font-weight: 800; }
.p-ordseg [aria-current="true"] small { background: var(--p-accent-soft); color: var(--p-accent); }
.p-ordopen { gap: 7px; min-height: 34px; padding: 0 13px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.p-ordopen i { width: 8px; height: 8px; border-radius: 50%; background: #34C759; }
.p-ordrow { gap: 10px; }
.p-ordlink { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.p-ordrow > .p-btn.small { flex: none; min-height: 40px; padding: 0 18px; box-shadow: none; }
@media (min-width: 700px) { .p-ordrow { padding: 12px 0; } }
/* 2.10 locale chiuso: «Per le 19:30» / «Per domani» (si prenota per la riapertura), piu' tenue di «Ordina» */
.p-ordrow > .p-btn.small.is-later { background: var(--p-accent-soft); color: var(--p-accent); }

/* 2.10 (13/10) blu del logo nuovo: sul nero la scheda attiva della barra usa il blu chiaro, cosi' si legge */
:root[data-theme="scuro"] .p-tabs a[aria-current="page"] { color: var(--p-link); }
@media (prefers-color-scheme: dark) { :root[data-theme="sistema"] .p-tabs a[aria-current="page"] { color: var(--p-link); } }

/* 2.10 (13/10) scontrino di un ordine d'asporto o a domicilio: a che punto e' e come si paga; annullato ben visibile */
.p-ostate { display: flex; flex-direction: column; gap: 10px; }
.p-ostate-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-ostate-pill { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--p-accent-soft); color: var(--p-link); font-size: 13px; font-weight: 800; }
.p-ostate-pill.is-pronto, .p-ostate-pill.is-ritirato, .p-ostate-pill.is-consegnato { background: var(--p-ok-bg); color: var(--p-ok-ink); }
.p-ostate-pill.is-annullato { background: color-mix(in srgb, var(--p-danger) 16%, transparent); color: var(--p-danger); }
.p-ostate-when { margin: 0; font-size: 15px; } .p-ostate-when b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.p-ostate-pay { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--p-bg2); font-size: 14px; font-weight: 600; }
.p-ostate.is-annullato .p-ostate-pay { background: color-mix(in srgb, var(--p-danger) 10%, transparent); color: var(--p-danger); }
.p-rclines .p-item.is-cancelled { color: var(--p-muted); }
.p-rccard.is-cancelled .p-rctotal b { color: var(--p-muted); }
.p-ostate-tag { font-weight: 700; color: var(--p-link); }
.p-ostate-tag.is-annullato, .p-amount.is-cancelled { color: var(--p-danger); }
.p-amount.is-cancelled { font-size: 14px; }

/* 2.10 (13/10) chiaro: niente scritte in blu elettrico (Antonio: «molte cose non si leggono e alcune scritte in blu
   elettrico non mi piacciono affatto»). Il blu resta nei pulsanti pieni, nelle icone e nei riquadri; i testi «accento»
   (link, «Mappa ›», prezzi, schede attive della barra, etichette) sono nel colore del testo. Sul nero restano azzurri. */
:root:not([data-theme="scuro"]) :is(h1 em, .p-kicker, .p-more, .p-favsmall[aria-pressed="true"], .p-live-k, .p-vshow-price, .p-art-k,
  .p-ordseg [aria-current="true"] small, .p-ostate-pill, .p-ostate-tag, .p-tab-spark[aria-current="page"] > span:last-child,
  .p-maplayers-menu button[aria-pressed="true"], .p-here.is-closed .p-here-go, .p-ordrow > .p-btn.small.is-later) { color: var(--p-ink); }
:root:not([data-theme="scuro"]) .p-tabs > a[aria-current="page"]:not(.p-tab-spark) { background: rgba(10,10,20,.07); color: var(--p-ink); }
:root:not([data-theme="scuro"]) .p-tabs a[aria-current="page"] { color: var(--p-ink); }
:root:not([data-theme="scuro"]) .p-tab-scan { color: var(--p-ink) !important; }
:root:not([data-theme="scuro"]) .p-habits .p-stat b { color: var(--p-ink); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="sistema"] .p-tabs a[aria-current="page"], :root[data-theme="sistema"] .p-tabs > a[aria-current="page"]:not(.p-tab-spark) { color: var(--p-link); }
  :root[data-theme="sistema"] .p-tabs > a[aria-current="page"]:not(.p-tab-spark) { background: var(--p-accent-soft); }
}


/* 2.13 (14/10) Pagina del locale: «Prenota l'ombrellone» per i lidi con la Spiaggia (la spiaggia in piccolo) */
.p-vbeach { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 26px; color: var(--p-ink); text-decoration: none; }
.p-vbeach:active { transform: scale(.98); }
.p-vbeach-art { flex: none; width: 76px; height: 76px; border-radius: 18px; }
.p-vbeach .p-vtext { flex: 1; min-width: 0; }
.p-vbeach .p-vtext small:first-child { font-size: 12px; font-weight: 700; color: var(--p-accent); }
.p-vbeach .p-vtext b { margin-top: 1px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.p-vbeach .p-vtext small:last-child { color: var(--p-muted); }
.p-vbeach-go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p-accent); color: var(--p-on-accent); }

/* 2.79 (24/10) la lista sotto la mappa segue la parte di mappa che si vede (static/profilo.js › listNear): la riga
   quando li' non c'e' niente e «Altri N: avvicina la mappa» in fondo */
.p-near-none { margin: 6px 4px 4px; line-height: 1.45; }
.p-setlist > button + a, .p-setlist > a + button { border-top: 1px solid var(--p-line); }

/* 3.76 gli eventi del locale si aprono: la riga e' un link (con la foto dell'evento, se c'e') e «Prenota» resta a destra */
.p-evrow .p-evopen { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.p-evrow .p-evpic { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: var(--p-accent-soft) center / cover no-repeat; overflow: hidden; }
.p-evrow .p-evpic i { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 4px 4px; font: 800 10.5px/1 Inter, system-ui, sans-serif; font-style: normal; text-align: center; color: #fff; text-transform: uppercase; letter-spacing: .02em; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62)); }

/* 3.93 la scheda del locale: «Segui» accanto al nome (è il cuore) e le righe degli eventi che presenta o sostiene */
.p-vfollow { display: contents; }
.p-followbtn { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--p-accent); color: #FFFFFF; font: 600 15px var(--p-font); text-decoration: none; cursor: pointer; }
.p-followbtn.is-on { background: var(--p-bg2); color: var(--p-ink); }
.p-followbtn:active { transform: scale(.96); }
.p-evlink { color: inherit; text-decoration: none; }
.p-evlink > svg { flex: none; color: #A0A0A8; }
.p-evdate { flex: none; display: grid; align-content: center; justify-items: center; width: 56px; height: 64px; border-radius: 15px; background: var(--p-bg2); color: var(--p-accent); line-height: 1; }
.p-evdate small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.p-evdate b { font-size: 23px; font-weight: 800; line-height: 1.15; }
