@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --red: #E3122D;
  --red-dark: #B80D23;
  --red-soft: #FDE9EC;
  --ink: #0E1B33;
  --ink-2: #4A5670;
  --line: #DCE2EC;
  --bg: #EEF2F7;
  --night: #0E1B33;
  --night-2: #1B2D52;
  --sun: #FFC845;
  --lake: #3A7BFF;
  --alp: #14A06F;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --card: #FFFFFF;
  --ok: #1E7A43;
  --ok-soft: #E6F4EC;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 8px 24px rgba(20, 20, 20, .06);
  --shadow-lg: 0 20px 50px rgba(20, 20, 20, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--red); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }
@media (min-width: 600px) {
  body { background: #DFE5EE; }
  #app { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
}
.page { min-height: 100vh; padding-bottom: calc(110px + var(--safe-b)); animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- testata ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(238, 242, 247, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); padding: 14px 18px 12px; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.4px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--red); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(227, 18, 45, .35); }
.where { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.search { margin-top: 12px; position: relative; }
.search input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 16px 0 46px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 20, 20, .06); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }

.demo-banner { margin: 0 18px 4px; padding: 10px 14px; border-radius: 12px; background: #FFF7E0; color: #6B4E00; font-size: 13px; border: 1px solid #F2E1A6; }

/* ---------- hero ---------- */
.hero { margin: 8px 18px 6px; border-radius: 22px; padding: 22px; color: #fff; position: relative; overflow: hidden; background: var(--red); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hero::before { content: ""; position: absolute; right: 30px; bottom: -90px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.5px; position: relative; z-index: 1; }
.hero p { margin: 0 0 16px; color: #FFE3E7; font-size: 15px; position: relative; z-index: 1; max-width: 32ch; }
.hero .btn { position: relative; z-index: 1; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.red { background: var(--red); box-shadow: 0 10px 24px rgba(227, 18, 45, .28); }
.btn.red:hover { background: var(--red-dark); }
.btn.white { background: #fff; color: var(--red); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:active { background: rgba(0, 0, 0, .05); }

/* ---------- chip ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 18px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .2s var(--ease); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.soon { color: #8A8A84; }
.chip .tag { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--bg); color: #6E6E68; }
.wrap-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- griglia annunci ---------- */
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 18px 10px; }
.section-title h2 { margin: 0; font-size: 18px; letter-spacing: -.2px; }
.section-title span { font-size: 13px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px; }
.item { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s var(--ease); animation: rise .5s var(--ease) both; }
.item:active { transform: scale(.98); }
.item .ph { aspect-ratio: 1; background: #E1E7F0; position: relative; overflow: hidden; }
.item .ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.item .ph img.loaded { opacity: 1; }
.item .meta { padding: 10px 12px 12px; }
.item .price { font-weight: 800; font-size: 16px; }
.item .title { font-size: 14px; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .loc { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.badge-sold { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, #E2E8F1 0%, #F2F5FA 50%, #E2E8F1 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty { margin: 30px 18px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------- barra in basso ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30; display: flex; justify-content: space-around; align-items: center; padding: 8px 12px calc(10px + var(--safe-b)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #75756F; text-decoration: none; min-width: 64px; padding: 6px 0; }
.tab[aria-current="page"] { color: var(--ink); }
.fab { width: 60px; height: 60px; margin-top: -30px; border-radius: 20px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px rgba(227, 18, 45, .4); text-decoration: none; position: relative; }
.fab::after { content: ""; position: absolute; inset: -4px; border-radius: 24px; border: 2px solid rgba(227, 18, 45, .35); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.95); } 70% { opacity: 0; transform: scale(1.18); } 100% { opacity: 0; } }

/* ---------- flusso di creazione ---------- */
.flow-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; background: rgba(238, 242, 247, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.flow-top .t { flex: 1; }
.flow-top .t small { display: block; font-size: 12px; color: var(--ink-2); }
.flow-top .t strong { font-size: 17px; }
.steps { display: flex; gap: 6px; padding: 0 18px 8px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.steps i.on::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: fill .5s var(--ease) both; }
@keyframes fill { from { transform: translateX(-100%); } to { transform: none; } }
.pad { padding: 8px 18px; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; border: 2px dashed #CFCDC6; border-radius: 22px; background: #fff; padding: 38px 18px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); width: 100%; }
.drop:active { transform: scale(.99); }
.drop.over { border-color: var(--red); background: var(--red-soft); }
.drop .cam { width: 64px; height: 64px; border-radius: 20px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.drop strong { font-size: 18px; }
.drop span { color: var(--ink-2); font-size: 14px; max-width: 30ch; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #E1E7F0; animation: popIn .35s var(--ease) both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb .cover { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; background: #fff; padding: 2px 6px; border-radius: 6px; }
.thumb.add { display: grid; place-items: center; border: 1.5px dashed #CFCDC6; background: #fff; cursor: pointer; color: var(--ink-2); }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 20, 20, .06); }
.help { font-size: 12px; color: var(--ink-2); }
.bottom-cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; padding: 12px 18px calc(14px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, rgba(238, 242, 247, 0)); z-index: 25; }

/* ---------- magia IA ---------- */
.magic { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 26px; text-align: center; background: #111; color: #fff; animation: pageIn .4s var(--ease) both; }
.scan { width: 230px; aspect-ratio: 1; border-radius: 26px; overflow: hidden; position: relative; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.scan img { width: 100%; height: 100%; object-fit: cover; animation: breathe 3s ease-in-out infinite; }
.scan::before { content: ""; position: absolute; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, rgba(227, 18, 45, 0), rgba(227, 18, 45, .55), rgba(227, 18, 45, 0)); animation: scan 1.8s ease-in-out infinite; z-index: 1; }
.scan::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(255, 255, 255, .25); border-radius: 26px; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; z-index: 2; }
.corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
@keyframes scan { 0% { top: -80px; } 100% { top: 100%; } }
@keyframes breathe { 50% { transform: scale(1.05); } }
.magic h2 { margin: 32px 0 6px; font-size: 22px; }
.magic p { margin: 0; color: #B8B8B2; }
.checklist { list-style: none; margin: 26px 0 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 12px; min-width: 250px; }
.checklist li { display: flex; align-items: center; gap: 12px; color: #77776F; transition: color .4s; font-weight: 500; }
.checklist li .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #3A3A36; display: grid; place-items: center; flex: none; transition: all .4s var(--ease); }
.checklist li.active { color: #fff; }
.checklist li.active .dot { border-color: #fff; border-top-color: transparent; animation: spin .8s linear infinite; }
.checklist li.done { color: #fff; }
.checklist li.done .dot { background: var(--red); border-color: var(--red); animation: popIn .3s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- risultato ---------- */
.reveal { margin: 4px 18px 0; background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 5px 10px; border-radius: 999px; }
.found { margin: 10px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.caret::after { content: "|"; animation: blink 1s steps(1) infinite; color: var(--red); margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hl span { font-size: 13px; background: var(--ok-soft); color: var(--ok); padding: 5px 10px; border-radius: 999px; font-weight: 600; animation: popIn .35s var(--ease) both; }
.card { margin: 14px 18px 0; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.card .sub { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }

.seg { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg); border-radius: 12px; padding: 4px; }
.seg button { position: relative; z-index: 1; min-height: 38px; border: 0; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 9px; color: var(--ink-2); transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); background: #fff; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .35s var(--ease); }

.price-big { display: flex; align-items: baseline; gap: 8px; font-weight: 800; }
.price-big .cur { font-size: 18px; color: var(--ink-2); }
.price-big input { width: 140px; border: 0; font-size: 40px; font-weight: 800; letter-spacing: -1px; padding: 0; outline: none; background: transparent; }
input[type=range] { width: 100%; accent-color: var(--red); height: 28px; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }

.question { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FFF7E0; border: 1px solid #F2E1A6; margin-top: 8px; font-size: 14px; }
.question button { flex: none; }

.platforms { display: grid; gap: 8px; }
.platform { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.platform .pl-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.platform .pl-name { flex: 1; font-weight: 600; }
.platform .pl-name small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.copied { background: var(--ok-soft) !important; color: var(--ok) !important; }

/* ---------- pubblicato ---------- */
.success { text-align: center; padding: 50px 22px 10px; }
.check-big { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: var(--ok); display: grid; place-items: center; color: #fff; animation: popIn .5s var(--ease) both; box-shadow: 0 16px 40px rgba(30, 122, 67, .35); }
.check-big path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h1 { margin: 22px 0 6px; font-size: 26px; letter-spacing: -.5px; }
.success p { margin: 0 auto; color: var(--ink-2); max-width: 34ch; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ---------- pagina annuncio ---------- */
.gallery { position: relative; background: #111; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: all .3s; }
.dots i.on { background: #fff; width: 20px; border-radius: 4px; }
.gallery .back { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); }
.gallery .share { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); }
.detail { padding: 18px; }
.detail .price { font-size: 32px; font-weight: 800; letter-spacing: -.8px; }
.detail h1 { margin: 2px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.2px; }
.detail .desc { white-space: pre-line; line-height: 1.6; margin: 14px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font-size: 13px; padding: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch { display: flex; gap: 6px; margin-top: 12px; }
.lang-switch button { min-width: 44px; min-height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.owner-box { margin-top: 18px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; }
.contact-reveal { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 600; animation: popIn .3s var(--ease); word-break: break-word; }
.report { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--ink-2); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .35s var(--ease); z-index: 70; max-width: calc(100% - 40px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.error-box { margin: 14px 18px; padding: 14px; border-radius: 14px; background: var(--red-soft); color: var(--red-dark); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   SCOPRI (home) — dashboard di ricerca
   ========================================================= */
.logo-mark { text-decoration: none; flex: none; }
.home-top { padding: 18px 18px 6px; }
.home-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hello { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.ask { margin: 2px 0 0; font-size: 28px; line-height: 1.1; letter-spacing: -.8px; font-weight: 800; }
.home-search { position: sticky; top: 0; display: flex; gap: 8px; margin-top: 14px; }
.search-fake { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: #fff; color: #8A8A84; text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 6px 20px rgba(20,20,20,.07); border: 1px solid var(--line); font-size: 15px; transition: transform .15s var(--ease); }
.search-fake svg { color: var(--ink); flex: none; }
.search-fake span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-fake:active { transform: scale(.98); }
.loc-pill { flex: none; max-width: 46%; display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(20,20,20,.07); }
.loc-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-pill svg:first-child { color: var(--red); flex: none; }
.loc-pill svg:last-child { color: var(--ink-2); flex: none; }
.home .demo-banner { margin-top: 10px; }

.chips.recent { padding-top: 10px; align-items: center; }
.chips-label { flex: none; color: var(--ink-2); display: grid; place-items: center; width: 22px; }
.chips.recent .chip { text-decoration: none; color: var(--ink); min-height: 34px; font-size: 13px; }

.section-title .more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--red); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.home section { animation: rise .5s var(--ease) both; }
.home .section-title { margin-top: 22px; }

/* mondi: seconda mano + sezioni in arrivo */
.worlds { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 10px; padding: 0 18px; }
.world { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; min-height: 92px; padding: 12px; border-radius: 18px; border: 0; background: #fff; text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: transform .15s var(--ease); font: inherit; }
.world:active { transform: scale(.97); }
.world .w-e { font-size: 26px; line-height: 1; margin-bottom: auto; }
.world .w-t { font-weight: 700; font-size: 14px; line-height: 1.2; }
.world .w-s { font-size: 12px; color: var(--ink-2); }
.world.main { grid-row: span 2; background: var(--red); color: #fff; min-height: 194px; padding: 16px; overflow: hidden; }
.world.main::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.1); }
.world.main .w-e { font-size: 34px; }
.world.main .w-t { font-size: 19px; letter-spacing: -.3px; }
.world.main .w-s { color: #FFD9DE; font-size: 13px; font-weight: 600; }
.world.soon .w-s { display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 6px; background: var(--bg); font-size: 11px; font-weight: 600; color: #7A7A74; }

/* ricerche veloci */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 18px; }
.q { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 16px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); animation: rise .5s var(--ease) both; transition: transform .15s var(--ease); }
.q:active { transform: scale(.97); }
.q-e { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 20px; flex: none; }
.q-l { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.2; }
.n { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.n:empty { display: none; }
.q .n { background: var(--red-soft); color: var(--red); padding: 3px 8px; border-radius: 999px; }

/* card stagionale */
.season { margin: 22px 18px 0; border-radius: 22px; padding: 18px; color: #fff; position: relative; overflow: hidden; }
.season::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.season-head { display: flex; gap: 12px; align-items: center; position: relative; z-index: 1; }
.season-e { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 24px; flex: none; }
.season-head strong { display: block; font-size: 18px; letter-spacing: -.2px; }
.season-head span { font-size: 13px; opacity: .85; }
.season-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.season-chips a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .15s var(--ease); }
.season-chips a:active { transform: scale(.95); }

/* caroselli */
.carousel { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 8px; scroll-snap-type: x mandatory; scroll-padding: 18px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.item.mini { flex: none; width: 152px; scroll-snap-align: start; }
.item.mini .meta { padding: 8px 10px 10px; }
.item.mini .price { font-size: 15px; }
.item.mini .title { font-size: 13px; }
.item .loc { display: flex; align-items: center; gap: 3px; }
.item .loc svg { flex: none; }
.badge-new { position: absolute; left: 8px; top: 8px; background: #fff; color: var(--red); font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .2s var(--ease); }
.fav svg { width: 18px; height: 18px; }
.fav:active, .fav-big:active { transform: scale(.85); }
.fav[aria-pressed="true"], .fav-big[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] svg path, .fav-big[aria-pressed="true"] svg path { fill: currentColor; }
.fav[aria-pressed="true"] svg { animation: popIn .3s var(--ease); }

/* categorie */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 18px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); text-align: center; animation: rise .5s var(--ease) both; transition: transform .15s var(--ease); }
.cat:active { transform: scale(.96); }
.cat-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; }
.cat-ico.small { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; flex: none; }
.cat-l { font-size: 13px; font-weight: 600; line-height: 1.2; }
.cat .n { font-weight: 600; }

.invite { margin: 22px 18px 0; padding: 18px; border-radius: 18px; background: #fff; border: 1.5px dashed #D8D6CF; display: grid; gap: 6px; }
.invite strong { font-size: 16px; }
.invite span { color: var(--ink-2); font-size: 14px; }
.invite .btn { justify-self: start; margin-top: 6px; }

/* testate semplici */
.page-h { margin: 4px 0 2px; font-size: 26px; letter-spacing: -.6px; }

/* =========================================================
   CERCA
   ========================================================= */
.search-top { padding: 10px 10px 4px; }
.search-row { display: flex; align-items: center; gap: 4px; }
.search-row .search { flex: 1; margin-top: 0; }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.search .clear svg { position: static; transform: none; }
.search input { padding-right: 46px; }
.search input::-webkit-search-cancel-button { display: none; }
.chips.filters { padding: 10px 8px 8px; }
.fchip { min-height: 36px; font-size: 13px; font-weight: 600; padding: 0 12px; }
.fchip svg { color: var(--ink-2); }
.fchip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip.on svg { color: #fff; }
.res-head { margin: 10px 18px 10px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.load-more { margin: 16px 18px 0; width: calc(100% - 36px); }
.sugg-list { margin: 0 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.sugg { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 15px; cursor: pointer; }
.sugg:last-child { border-bottom: 0; }
.sugg > span:not(.cat-ico) { flex: 1; }
.sugg > svg { color: var(--ink-2); flex: none; }
.sugg:active { background: var(--bg); }
.pad-x { padding: 0 18px; }
.empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.empty-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }

/* foglio in basso */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.backdrop { position: absolute; inset: 0; background: rgba(15,15,15,.4); animation: pageIn .25s both; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 560px; max-height: 82vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 0 calc(16px + var(--safe-b)); transform: translate(-50%, 100%); transition: transform .3s var(--ease); outline: none; }
.sheet.on { transform: translate(-50%, 0); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #D9D7D0; margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 4px 20px; }
.sheet-head strong { font-size: 18px; }
.sheet-list { display: grid; padding: 4px 10px; }
.sheet-opt { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 12px; border: 0; border-radius: 12px; background: none; font-size: 16px; text-align: left; cursor: pointer; }
.sheet-opt .e { font-size: 20px; width: 26px; text-align: center; }
.sheet-opt .l { flex: 1; }
.sheet-opt:active { background: var(--bg); }
.sheet-opt[aria-pressed="true"] { background: var(--red-soft); color: var(--red-dark); font-weight: 700; }
.sheet-input { display: flex; align-items: center; gap: 8px; margin: 4px 20px 8px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 14px; }
.sheet-input svg { color: var(--red); flex: none; }
.sheet-input input { flex: 1; min-width: 0; border: 0; outline: none; height: 48px; font-size: 16px; background: none; }

/* pagina annuncio: azioni sulla foto */
.g-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.g-actions .icon-btn { background: rgba(255,255,255,.92); }
.fav-big { color: var(--ink); }

/* barra con 5 voci */
.tab { min-width: 54px; }
.world.main .n { color: #fff; font-size: 13px; }

/* =========================================================
   ACCESSO E ACCOUNT
   ========================================================= */
.auth-head { text-align: center; padding: 6px 24px 8px; }
.auth-head .logo-mark { margin: 0 auto 14px; width: 52px; height: 52px; border-radius: 16px; }
.auth-head h1 { margin: 0; font-size: 28px; letter-spacing: -.7px; }
.auth-head p { margin: 6px auto 0; color: var(--ink-2); max-width: 30ch; }
.auth-card { margin: 18px 18px 0; padding: 18px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.auth-card .btn { margin-top: 18px; }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg.two .pill { width: calc((100% - 8px) / 2); }
.pass-wrap { position: relative; }
.pass-wrap input { width: 100%; padding-right: 92px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg); border-radius: 9px; padding: 7px 10px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.form-err { color: var(--red-dark); font-weight: 600; font-size: 14px; min-height: 0; margin-top: 10px; }
.form-err:empty { display: none; }
.auth .help { margin: 12px 2px 0; }
.account-bar { display: flex; align-items: center; gap: 12px; margin: 4px 18px 14px; padding: 12px 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.acc-t { flex: 1; min-width: 0; }
.acc-t strong { display: block; }
.acc-t span { display: block; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* nome dell'app: logo lente (4C) + CatCH-app, font Sora */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.6px; color: var(--ink); text-decoration: none; margin-bottom: 12px; }
.wm-logo { width: 34px; height: 34px; flex: none; display: block; }
.wm-logo svg { width: 100%; height: 100%; display: block; }
.wordmark .wm-ch { color: var(--red); }
.wordmark.big { flex-direction: column; gap: 14px; font-size: 32px; letter-spacing: -1px; margin: 4px 0 14px; }
.wordmark.big .wm-logo { width: 72px; height: 72px; filter: drop-shadow(0 10px 22px rgba(20,20,20,.12)); }

/* pubblicazione sulle altre piattaforme */
button.platform { width: 100%; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 12px; }
button.platform:active { background: var(--bg); }
button.platform > svg { color: var(--ink-2); flex: none; }
.detail .card { margin: 18px 0 0; }
.pf { padding: 0 20px 6px; display: grid; gap: 10px; }
.pf > .sub { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.pf-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.pf-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }
.pf-b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pf-b strong { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pf-v { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-v.long { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pf-b small { font-size: 12px; color: var(--ink-2); }
.pf-row .btn { flex: none; }
.pf > .btn { margin-top: 6px; }

/* =========================================================
   ZONA, CARTINA, EVENTI E SERVIZI
   ========================================================= */
button.fab { border: 0; cursor: pointer; font: inherit; }
.sheet.full { height: 92vh; max-height: 92vh; display: flex; flex-direction: column; }
.sheet-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 16px 4px 6px; }
.sheet-list.tight .sheet-opt { min-height: 44px; }
.zone-box { padding: 0 16px 8px; display: grid; gap: 6px; }
.zone-box > .sheet-opt { width: 100%; }
.zone-box .sheet-input { margin: 0; }
.zone-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.km { padding: 4px 0; }
.canton-grid { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 0 4px; }
.suggest { position: relative; z-index: 5; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 15px; cursor: pointer; }
.suggest button:last-child { border-bottom: 0; }
.suggest button span { flex: 1; }
.suggest button small { color: var(--ink-2); font-weight: 600; }
.suggest button svg { color: var(--red); flex: none; }
.field .suggest { margin-top: 2px; }

.map-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.map-pick { flex: 1; min-height: 300px; }
.map-controls { padding: 12px 16px 4px; display: grid; gap: 10px; }
.map-info { font-weight: 700; }
.range-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.range-row input { flex: 1; }
.range-row strong { min-width: 56px; text-align: right; }
.map-pin { background: none; border: 0; }
.map-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); border: 2px solid var(--red); font-size: 17px; }
.map-pin span { line-height: 1; }
.map-pop { display: grid; gap: 2px; color: var(--ink); text-decoration: none; min-width: 160px; }
.map-pop span { color: var(--ink-2); font-size: 12px; }
.results-map { height: 62vh; margin: 0 18px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.detail-map { height: 180px; border-radius: 16px; overflow: hidden; margin-top: 16px; }
.leaflet-container { font: inherit; }

.tabs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: #E9E7E1; border-radius: 12px; padding: 4px; margin: 10px 8px 0; }
.tabs3 a { text-align: center; padding: 8px 0; border-radius: 9px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.tabs3 a[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.top .tabs3 { margin: 10px 0 2px; }
.chips.filters.sub { padding-top: 0; align-items: center; }
.sub-l { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.price-range { display: flex; align-items: center; gap: 8px; margin: 4px 20px 8px; }
.price-range input { width: 0; flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; }
.date-range { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin: 4px 20px 8px; }
.date-range label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.date-range input { height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; font-size: 15px; min-width: 0; }

.rows { display: grid; gap: 10px; padding: 0 18px; }
.row-skel { height: 84px; border-radius: 18px; }
.ev-card { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); animation: rise .5s var(--ease) both; }
.ev-card:active { transform: scale(.99); }
.ev-date { flex: none; width: 58px; height: 64px; border-radius: 14px; background: var(--red-soft); color: var(--red-dark); display: grid; place-items: center; align-content: center; line-height: 1.05; }
.ev-date span, .ev-date small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ev-date strong { font-size: 24px; }
.ev-b { flex: 1; min-width: 0; display: grid; gap: 2px; padding-right: 30px; }
.ev-cat { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ev-t { font-weight: 700; font-size: 16px; line-height: 1.25; }
.ev-s { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-free { justify-self: start; margin-top: 4px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.ev-fav { top: 50%; transform: translateY(-50%); right: 10px; box-shadow: none; background: var(--bg); }
.ev-card.mini { flex: none; width: 280px; scroll-snap-align: start; padding-right: 12px; }
.ev-card.mini .ev-b { padding-right: 0; }
.ev-row { gap: 10px; }
.ev-row .row-skel { flex: none; width: 280px; }

.pl-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); animation: rise .5s var(--ease) both; }
.pl-e { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; font-size: 22px; }
.pl-b { flex: 1; min-width: 0; display: grid; gap: 2px; padding-right: 36px; }
.pl-b strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-b span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-fav { top: 50%; transform: translateY(-50%); right: 10px; box-shadow: none; background: var(--bg); }
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 18px; }
.kind { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.kind .e { font-size: 20px; }
.chips.serv .chip { text-decoration: none; color: var(--ink); }
.credit { font-size: 12px; color: var(--ink-2); margin: 18px; line-height: 1.5; }
.credit a { color: var(--ink-2); }
.world .w-s.on { color: var(--ink-2); background: none; padding: 0; margin-top: 2px; }

.ev-hero { position: relative; height: 200px; background: linear-gradient(135deg, #FDE9EC, #EEF2F7); display: grid; place-items: center; overflow: hidden; }
.ev-hero.photo { height: auto; max-height: 420px; background: #111; }
.ev-hero img { width: 100%; max-height: 420px; object-fit: contain; }
.ev-hero-e { font-size: 72px; }
.ev-hero .back, .pl-hero .back { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); z-index: 500; }
.ev-hero .g-actions, .pl-hero .g-actions { z-index: 500; }
.pl-hero { position: relative; height: 230px; background: #E1E7F0; }
.pl-hero .detail-map { height: 100%; margin: 0; border-radius: 0; }
.ev-facts { display: grid; gap: 10px; margin: 12px 0 4px; }
.ev-facts > div { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ev-facts svg { flex: none; color: var(--red); margin-top: 2px; }
.ev-facts .chf { flex: none; font-size: 10px; font-weight: 800; color: var(--red); width: 16px; margin-top: 3px; }
.ev-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ev-actions.three { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.ev-actions .btn { min-height: 48px; }
.detail .help { margin-top: 8px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--red); }
.select-btn { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
.poster { width: 100%; max-height: 260px; object-fit: contain; border-radius: 14px; background: #111; margin-bottom: 10px; }
.attr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 10px; }
.field select, .field input[type=date], .field input[type=time] { min-width: 0; }

.map-pin i { display: block; transform: rotate(45deg); font-style: normal; }
.detail-map, .results-map, .map-pick { position: relative; z-index: 0; isolation: isolate; }

/* cartina MapLibre */
.map-wrap { position: relative; flex: 1; min-height: 320px; }
.map-wrap .map-pick { position: absolute; inset: 0; min-height: 0; }
.map-me { position: absolute; right: 10px; bottom: 34px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; }
.map-center { width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: grab; }
.map-edge { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: ew-resize; }
.map-me-dot { width: 16px; height: 16px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.2); }
.map-pin { cursor: pointer; }
.maplibregl-popup-content { border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); font-family: Inter, system-ui, sans-serif; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.detail-map .maplibregl-ctrl-attrib, .pl-hero .maplibregl-ctrl-attrib { font-size: 10px; }
.version { text-align: center; font-size: 12px; color: var(--ink-2); margin: 24px 18px 0; }
.map-style { position: absolute; left: 10px; top: 10px; z-index: 3; border: 0; border-radius: 12px; background: #fff; padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; }
.pl-hero .map-style { top: auto; bottom: 28px; }
.near-hint { display: flex; align-items: center; gap: 8px; width: calc(100% - 36px); margin: 8px 18px 0; padding: 12px 14px; border: 1px dashed #D2CFC7; border-radius: 14px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.near-hint svg { color: var(--red); flex: none; }
.ev-tags { display: flex; gap: 6px; margin-top: 4px; }
.ev-tags .ev-free { margin-top: 0; }
.ev-off { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: #E8F0FE; color: #1A4FA0; }
.ev-source { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ok-badge { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: #E8F0FE; color: #1A4FA0; }

/* barra in alto: lingua e utente */
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.brand-row .wordmark { margin-bottom: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-lang { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.top-lang svg { color: var(--ink-2); }
.top-user { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #F0C6CD; }
.top-login { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }
.acc-menu { padding: 0 10px 8px; }
.account-bar.flat { box-shadow: none; border: 1px solid var(--line); margin: 4px 6px 10px; }
.sheet-opt > svg { color: var(--ink-2); }
.sheet-opt.danger { color: var(--red-dark); }
.ev-source strong { display: block; color: var(--ink); margin-bottom: 2px; }
.ev-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.ev-links a { font-weight: 700; }

/* contatti nell'annuncio */
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.choice .e { font-size: 22px; }
.choice .t { display: grid; gap: 2px; }
.choice .t span { font-size: 13px; color: var(--ink-2); }
.choice[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.field[hidden] { display: none; }
/* barra in alto: messaggi */
.top-chat { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.badge-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.badge-n[hidden] { display: none; }
/* lista conversazioni */
.conv { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); animation: rise .5s var(--ease) both; }
.conv > img { flex: none; width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.conv-b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.conv-top strong { min-width: 0; }
.conv { min-width: 0; max-width: 100%; }
.conv-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-top span, .conv-who { font-size: 12px; color: var(--ink-2); flex: none; }
.conv-last { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .conv-last { color: var(--ink); font-weight: 600; }
.conv-n { flex: none; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
/* chat */
.chat-page { padding-bottom: calc(90px + var(--safe-b)); }
.chat-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: rgba(238, 242, 247, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.chat-head { flex: 1; min-width: 0; }
.chat-item { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.chat-item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.chat-item > div { min-width: 0; display: grid; }
.chat-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.chat-item span { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-tip { margin: 12px 18px 4px; padding: 10px 12px; border-radius: 12px; background: #FFF8E5; color: #7A5B00; font-size: 12.5px; line-height: 1.45; }
.msgs { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; }
.bubble { max-width: 78%; align-self: flex-start; background: #fff; border-radius: 18px 18px 18px 6px; padding: 9px 12px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); white-space: pre-wrap; word-break: break-word; animation: popIn .25s var(--ease); }
.bubble.me { align-self: flex-end; background: var(--red); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble time { display: block; text-align: right; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px; }
.chat-input { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--safe-b)); background: rgba(238, 242, 247, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 25; }
.chat-input[hidden] { display: none; }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; font: inherit; font-size: 16px; max-height: 140px; outline: none; background: #fff; }
.chat-input .send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-input .send:disabled { opacity: .5; }
/* servizi: logo e dati dal sito */
.pl-e.logo { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 4px; }
.pl-e.logo img { width: 100%; height: 100%; object-fit: contain; }
.pl-title { display: flex; gap: 14px; align-items: center; }
.pl-logo { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px; }
.web-row { display: flex; gap: 10px; margin-top: 6px; font-size: 14px; color: var(--ink); }
.web-row > span:first-child { flex: none; width: 70px; color: var(--ink-2); font-size: 13px; }
.warn-line { display: block; margin: 4px 0; color: var(--red); font-weight: 700; }
.linkish { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* prezzo e ricerca */
.research { margin-top: 14px; display: grid; gap: 8px; }
.research-load { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); padding: 12px; border-radius: 12px; background: var(--bg); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.research-h { font-size: 14px; }
.ex { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--ink); }
.ex-t { display: grid; min-width: 0; font-size: 14px; }
.ex-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-t small { color: var(--ink-2); font-size: 12px; }
.ex-p { flex: none; font-weight: 800; }
.ex-range { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 14px; }
.ex-range .btn { flex: none; }
.extra-box { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--bg); display: grid; gap: 4px; }
.extra-box .field { margin-top: 10px; }
.extra-box .btn { margin-top: 12px; }
textarea.flash { box-shadow: 0 0 0 4px rgba(46, 160, 90, .25); transition: box-shadow .3s; }
.opt-sub { display: block; font-size: 12px; color: var(--ink-2); font-weight: 500; }

.identify { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #FFF8E5; }
.identify input { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.identify .linkish { justify-self: start; font-size: 14px; }
.ex-new { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: #E8F0FE; color: #1A4FA0; font-size: 14px; }
.ex.local { background: var(--red-soft); }
.research > .linkish { justify-self: start; font-size: 13px; }
.chat-tip p { margin: 0; }
.chat-tip p + p { margin-top: 6px; }

/* veicoli */
.v-line { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.tg-row { display: flex; gap: 8px; }
.tg-row .btn { flex: none; }
.tg-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; background: #fff; }
.v-summary { display: grid; gap: 6px; margin-top: 12px; }
.v-summary:empty { display: none; }
.v-head { display: grid; gap: 2px; }
.v-head strong { font-size: 17px; }
.v-head span { font-size: 13px; color: var(--ink-2); }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chips span { padding: 4px 10px; border-radius: 999px; background: #E8EEF6; color: #1A3E70; font-size: 13px; font-weight: 600; }
.v-group { margin-top: 10px; }
.v-group > strong { display: block; font-size: 13px; margin-bottom: 6px; }
.chip .tag { margin-left: 4px; font-size: 11px; color: var(--ink-2); }
.chip[aria-pressed="true"] .tag { color: rgba(255,255,255,.75); }
.err-t { color: var(--red); font-weight: 600; }
.field select, .tax-sel select { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 12px; font-size: 16px; }
.vehicle-sec { margin-top: 18px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; }
.vehicle-sec h3 { margin: 0; font-size: 17px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 600; }
.v-optlist ul { margin: 6px 0 0; padding-left: 18px; columns: 2; font-size: 14px; }
.tax { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tax-sel { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tax-sel select { flex: 1; }
.tax-box { display: grid; gap: 4px; }
.tax-amount { display: flex; align-items: baseline; gap: 8px; }
.tax-amount strong { font-size: 24px; }
.tax-amount span { color: var(--ink-2); font-size: 14px; }
.v-opts .chip { min-height: 34px; font-size: 13.5px; padding: 0 12px; }

/* scelta IA / a mano, domande, targhe */
.bottom-cta.two { display: flex; flex-direction: column; gap: 8px; }
.bottom-cta.two .btn { margin-top: 0 !important; width: 100%; }
.hide-btn { position: absolute; left: 6px; top: 6px; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(20,20,20,.72); color: #fff; font-size: 16px; display: grid; place-items: center; cursor: pointer; }
.hide-stage { position: relative; touch-action: none; user-select: none; border-radius: 12px; overflow: hidden; }
.hide-stage img { display: block; width: 100%; height: auto; pointer-events: none; }
.hide-rect { position: absolute; border: 2px solid var(--red); background: rgba(227, 18, 45, .25); border-radius: 4px; }
.hide-rect[hidden] { display: none; }
.ask-head { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.ask-head img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.ask-status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.ok-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.ask-list { display: grid; gap: 12px; margin-top: 12px; }
.ask-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); animation: rise .4s var(--ease) both; }
.ask-card.skel { display: flex; align-items: center; color: var(--ink-2); font-size: 14px; }
.ask-card.answered { box-shadow: 0 0 0 2px var(--ok) inset, var(--shadow); }
.ask-card input { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.plate-prev { position: relative; border-radius: 12px; overflow: hidden; }
.plate-prev img { display: block; width: 100%; height: auto; }
.plate-box { position: absolute; border: 2px solid var(--red); background: rgba(200,16,46,.2); }
.chip.on-red { background: var(--red); color: #fff; border-color: var(--red); }
.two-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.two-btn .btn { min-height: 44px; font-size: 14px; }
.ex-other { font-size: 13px; color: var(--ink-2); }
.ex-other summary { cursor: pointer; padding: 6px 0; }
.ex-other .ex { margin-top: 6px; opacity: .75; }
.thumb.bad { outline: 3px solid var(--red); outline-offset: 2px; }
.pm-problem { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13.5px; font-weight: 600; }

.v-group { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; }
.v-group summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.v-group summary::-webkit-details-marker { display: none; }
.v-group summary::after { content: '▾'; color: var(--ink-2); margin-left: 8px; }
.v-group[open] summary::after { content: '▴'; }
.v-group summary strong { flex: 1; font-size: 14px; }
.v-count { font-size: 12px; color: var(--ink-2); }
.v-group .wrap-chips { padding-bottom: 12px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 110px; }
.mode { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.mode strong { color: var(--ink); font-size: 14px; }
.edit-panel { padding: 0 18px 24px; }
.edit-panel .wrap-chips { margin-bottom: 6px; }

/* ================= 0.18 · nuova grafica ================= */
h1, h2, .detail h1, .section-title h2, .item .price, .detail .price { font-family: var(--display); }
.section-title h2 { font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.item .price { font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.btn { border-radius: 999px; }
.btn.small { border-radius: 999px; }

/* --- testata della home: cielo notturno sul lago, con le Alpi --- */
.hero2 { position: relative; background: radial-gradient(120% 90% at 85% 0%, var(--hero-a) 0%, var(--hero-b) 62%); color: #fff; padding: calc(16px + env(safe-area-inset-top)) 18px 92px; overflow: hidden; }
.hero2 .brand-row { position: relative; z-index: 2; }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 84px; color: var(--ridge); z-index: 0; }
.wordmark.on-dark { color: #fff; }
.wordmark.on-dark .wm-ch { color: var(--hero-ch); }
.hero2 .top-lang { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.hero2 .top-lang svg { color: rgba(255,255,255,.75); }
.hero2 .top-chat { color: #fff; background: rgba(255,255,255,.1); }
.hero2 .top-login { background: #fff; color: var(--night); }
.hero2 .top-user { box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.greet { position: relative; z-index: 1; margin: 22px 0 18px; font-family: var(--display); font-size: clamp(34px, 10vw, 46px); line-height: 1.04; letter-spacing: -1.1px; font-variation-settings: "opsz" 96; }
.greet .g1 { display: block; font-weight: 800; animation: greetIn .7s var(--ease) both; }
.greet .g2 { display: block; font-weight: 400; color: var(--greet2); animation: greetIn .7s .12s var(--ease) both; }
@keyframes greetIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero2 .search-fake { position: relative; z-index: 1; display: flex; border: 0; height: 56px; border-radius: 999px; padding: 0 20px; color: #6B7894; box-shadow: 0 14px 30px rgba(3, 10, 30, .35); }
.hero2 .loc-pill { flex: none; max-width: 70%; height: 34px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; box-shadow: none; padding: 0 12px; font-size: 13px; }
.hero2 .loc-pill svg:first-child { color: var(--hero-ch); }
.hero2 .loc-pill svg:last-child { color: rgba(255,255,255,.7); }
.hero-recent { position: relative; z-index: 1; display: flex; gap: 8px; overflow-x: auto; margin: 12px -18px 0; padding: 0 18px; scrollbar-width: none; }
.hero-recent::-webkit-scrollbar { display: none; }
.hero-recent a { flex: none; height: 34px; gap: 6px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.08); color: #E4EBFA; font-size: 13px; font-weight: 500; text-decoration: none; }
.hero-recent a svg { width: 14px; height: 14px; opacity: .6; }
.home .demo-banner { margin: 12px 18px 0; }

/* --- vetrina "Per te": il momento wow --- */
.spot-wrap { position: relative; z-index: 3; margin-top: -78px; }
.spot-h { margin: 0 18px 10px; font-family: var(--display); font-size: 15px; font-weight: 600; color: #C9D6F2; letter-spacing: 0; }
.spot-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 18px; scrollbar-width: none; }
.spot-row::-webkit-scrollbar { display: none; }
.spot { --i: 0; position: relative; flex: none; width: 74%; max-width: 330px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; scroll-snap-align: start; scroll-margin-left: 18px; text-decoration: none; color: #fff; background: var(--night-2); box-shadow: 0 18px 40px rgba(14, 27, 51, .28); animation: spotIn .8s calc(.25s + var(--i) * .09s) cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes spotIn { from { opacity: 0; transform: translateX(60px) rotate(3deg) scale(.94); } to { opacity: 1; transform: none; } }
.spot.skeleton { box-shadow: none; }
.spot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 34, .35) 0%, rgba(8, 16, 34, 0) 28%, rgba(8, 16, 34, 0) 48%, rgba(8, 16, 34, .88) 100%); pointer-events: none; }
.spot > * { z-index: 1; }
.spot-why { position: absolute; top: 14px; left: 14px; max-width: calc(100% - 28px); display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--sun); color: var(--night); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.spot-why > span:first-child { margin-right: 2px; }
.spot-price { position: absolute; right: 14px; bottom: 92px; z-index: 2; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.6px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.spot-b { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.spot-t { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.12; letter-spacing: -.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-s { font-size: 13px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-date { position: absolute; right: 14px; top: 12px; z-index: 2; width: 54px; padding: 6px 0 7px; border-radius: 16px; background: #fff; color: var(--night); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.spot-date strong { font-family: var(--display); font-size: 24px; font-weight: 800; }
.spot-date span { font-size: 12px; font-weight: 600; color: var(--red); margin-top: 3px; }
.spot.ev .spot-why { max-width: calc(100% - 96px); }
.spot.nophoto { background: linear-gradient(160deg, var(--lake) 0%, #1F3F9E 100%); }
.spot-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 110px; padding-bottom: 60px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); }
.empty-spot { width: calc(100% - 0px); max-width: none; aspect-ratio: auto; min-height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.empty-spot::after { display: none; }
.empty-spot strong { font-family: var(--display); font-size: 20px; }
.empty-spot span { color: var(--ink-2); font-size: 14px; }
.spot-note { margin: -6px 18px 0; font-size: 12px; color: var(--ink-2); }

/* --- i quattro mondi --- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px; margin-top: 22px; }
.b { position: relative; min-height: 108px; padding: 14px; border-radius: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; text-decoration: none; overflow: hidden; transition: transform .15s var(--ease); }
.b:active { transform: scale(.97); }
.b-e { position: absolute; right: 12px; top: 10px; font-size: 34px; }
.b-t { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.b-s { font-size: 13px; opacity: .85; }
.b-ads { background: var(--tile1); color: var(--tile1-t); }
.b-ev { background: var(--tile2); color: var(--tile2-t); }
.b-serv { background: var(--tile3); color: var(--tile3-t); }
.b-car { background: var(--tile4); color: var(--tile4-t); }

.home .section-title { margin-top: 26px; }
.cat-ico { border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
  .spot, .greet .g1, .greet .g2 { animation: none; }
}

/* --- eventi: un giorno o più giorni --- */
.ev-date.range { background: #E6EEFF; color: #1D47B8; gap: 0; }
.ev-date.range span { font-size: 10px; text-transform: none; font-weight: 700; white-space: nowrap; }
.ev-date.range strong { font-size: 22px; line-height: 1; }
.ev-date.range.on { background: var(--lake); color: #fff; }
.ev-card.multi .ev-left { font-weight: 700; color: #1D47B8; }
.ev-bar { height: 4px; border-radius: 4px; background: #E3E9F3; margin-top: 6px; overflow: hidden; max-width: 180px; }
.ev-bar i { display: block; height: 100%; border-radius: 4px; background: var(--lake); }
.day-h { margin: 14px 0 0; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.day-h:first-child { margin-top: 2px; }
.day-h::first-letter { text-transform: uppercase; }
.multi-band { margin: 12px -18px 2px; padding: 14px 0 10px; background: linear-gradient(180deg, #E3EBFB, #EEF2F7); border-radius: 22px; }
.band-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 0 18px 10px; }
.band-head h3 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; }
.band-head span { font-size: 13px; color: var(--ink-2); }
.band-head .more { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--red); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.band-row .ev-card.mini { width: 270px; }
.spot-date.range { width: 64px; }
.spot-date.range span:first-child { font-size: 10px; color: var(--ink-2); margin: 0 0 2px; white-space: nowrap; }
.ev-span-fact { color: #1D47B8; font-weight: 600; }

/* --- ritrova: cronologia --- */
.history .section-title .more { font-weight: 500; color: var(--ink-2); font-size: 13px; }
.hist-q { padding-top: 0; }
.hist-q .chip svg { width: 14px; height: 14px; color: var(--ink-2); }
.hist-sub { margin: 6px 18px 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.b .n { color: inherit; font-size: inherit; font-weight: 700; }
a.chip { text-decoration: none; color: var(--ink); }
.rows > * { min-width: 0; }
.rows { grid-template-columns: minmax(0, 1fr); }

/* --- 0.20: sezioni in alto, vetrina più bassa --- */
.hero2 { padding-bottom: 78px; }
.greet { margin: 18px 0 16px; font-size: clamp(30px, 8.6vw, 40px); }
.bento-wrap { position: relative; z-index: 3; margin-top: -62px; }
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 14px; margin-top: 0; }
.b { min-height: 96px; padding: 10px 8px 10px; border-radius: 20px; align-items: center; justify-content: center; text-align: center; gap: 2px; box-shadow: 0 10px 24px rgba(14, 27, 51, .22); }
.b-e { position: static; font-size: 28px; line-height: 1; margin-bottom: 6px; }
.b-t { font-size: 14px; line-height: 1.1; letter-spacing: -.1px; }
.b-s { font-size: 12px; min-height: 14px; }
.cat-strip { display: flex; gap: 6px; overflow-x: auto; padding: 16px 14px 4px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cs { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--ink); }
.cs-e { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; }
.cs-l { font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; }
.spot-wrap { margin-top: 0; }
.spot { width: 58%; max-width: 250px; aspect-ratio: 4 / 4.6; border-radius: 22px; box-shadow: 0 10px 26px rgba(14, 27, 51, .18); }
.spot-t { font-size: 16px; }
.spot-s { font-size: 12px; }
.spot-b { left: 12px; right: 12px; bottom: 12px; }
.spot-why { top: 10px; left: 10px; height: 26px; font-size: 12px; padding: 0 10px; max-width: calc(100% - 20px); }
.spot.ev .spot-why { max-width: calc(100% - 82px); }
.spot-date { right: 10px; top: 10px; width: 46px; border-radius: 13px; }
.spot-date strong { font-size: 20px; }
.spot-date.range { width: 54px; }
.spot-price { right: 12px; bottom: 70px; font-size: 20px; }
.spot-emoji { font-size: 76px; padding-bottom: 50px; }
.spot-row { padding: 2px 18px 14px; }
.spot-wrap .section-title { margin-top: 14px; }

/* --- email da confermare, password dimenticata --- */
.verify-banner { margin: 14px 14px 0; padding: 12px 12px 12px 14px; border-radius: 18px; background: #FFF6DA; border: 1px solid #F3DE9B; display: flex; gap: 10px; align-items: center; }
.verify-banner .vb-e { font-size: 22px; flex: none; }
.verify-banner > div { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13px; color: #5B4600; }
.verify-banner strong { font-size: 14px; color: var(--ink); }
.verify-banner .btn { flex: none; }
.link-btn { background: none; border: 0; padding: 4px 0; margin-top: 6px; color: var(--red); font-weight: 600; font-size: 14px; cursor: pointer; justify-self: start; }

/* --- 0.23: vetrina più piccola, con locali e servizi --- */
.spot { width: 44%; max-width: 200px; aspect-ratio: 4 / 5; border-radius: 20px; }
.spot-t { font-size: 15px; -webkit-line-clamp: 2; }
.spot-s { font-size: 11.5px; }
.spot-why { height: 24px; font-size: 11.5px; padding: 0 9px; top: 9px; left: 9px; max-width: calc(100% - 18px); }
.spot.ev .spot-why { max-width: calc(100% - 70px); }
.spot-date { width: 42px; top: 8px; right: 8px; padding: 5px 0 6px; border-radius: 12px; }
.spot-date strong { font-size: 18px; }
.spot-date span { font-size: 11px; }
.spot-date.range { width: 50px; }
.spot-date.range span:first-child { font-size: 9px; }
.spot-price { font-size: 17px; bottom: 62px; right: 10px; }
.spot-emoji { font-size: 58px; padding-bottom: 44px; }
.spot-b { left: 11px; right: 11px; bottom: 11px; gap: 2px; }
.spot.place.food { background: linear-gradient(160deg, #FF9F43 0%, #E3122D 100%); }
.spot.place.svc { background: linear-gradient(160deg, #19B57E 0%, #0B6E54 100%); }
.spot.place::after { background: linear-gradient(180deg, rgba(8, 16, 34, 0) 45%, rgba(8, 16, 34, .55) 100%); }
.spot-logo { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.spot-logo img { position: static; width: 80%; height: 80%; object-fit: contain; }
.ai-note { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--red); }
.priv { padding: 4px 22px 40px; max-width: 64ch; }
.priv h1 { font-size: 28px; letter-spacing: -.5px; margin: 6px 0 8px; }
.priv-draft { padding: 10px 12px; border-radius: 12px; background: #FFF6DA; border: 1px solid #F3DE9B; font-size: 13px; color: #5B4600; }
.priv-s h2 { font-size: 18px; margin: 22px 0 6px; }
.priv-s p, .priv-s li { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.priv-s ul { padding-left: 20px; margin: 6px 0; }
.priv-s li { margin: 4px 0; }

/* --- tema colori (0.23) --- */
:root {
  --hero-a: #2A4378; --hero-b: #0E1B33; --ridge: #24407A; --greet2: #C9D6F2; --hero-ch: #FF4D63;
  --tile1: #E3122D; --tile1-t: #fff; --tile2: #3A7BFF; --tile2-t: #fff; --tile3: #FFC845; --tile3-t: #0E1B33; --tile4: #0E1B33; --tile4-t: #fff;
}

/* categorie dentro "Annunci" */
.res-cats { display: flex; gap: 6px; overflow-x: auto; padding: 2px 4px 12px; margin: 0 -4px; scrollbar-width: none; }
.res-cats::-webkit-scrollbar { display: none; }
button.cs { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
