/* YouppyHome, correzioni 02.11.2026 */
/* barre di scorrimento: pollice nel colore del tema, senza frecce */
*::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--brand) 75%, var(--bg)); border-radius: 8px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--brand); }
*::-webkit-scrollbar-button, *::-webkit-scrollbar-button:single-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: var(--bg); }
.chips { cursor: grab; }

/* sezione Cerca con due parti: Immobili | Progetti */
.segment.wide { display: flex; width: 100%; margin-bottom: 14px; }
.segment.wide button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; }

/* + al centro: anello del colore della pagina */
.tabbar button .pub { border: 4px solid var(--bg); box-sizing: content-box; width: 40px; height: 40px; margin-top: -10px; }

/* Chat e filtri personali */
.filtri-pers { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.filtri-pers .row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.filtri-pers .row3 .field label { font-size: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; padding: 4px 2px; }
.fumetto { max-width: 90%; padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.fumetto.io { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 16px 16px 5px 16px; }
.chat-scrivi { display: flex; gap: 8px; margin-top: 10px; }
.chat-scrivi .input { flex: 1; min-width: 0; }
.chat-res { margin-top: 18px; }
@media (min-width: 900px) {
  .chatv { display: grid; grid-template-columns: minmax(340px, 400px) 1fr; gap: 26px; align-items: start; }
  .chat-col { position: sticky; top: 16px; }
  .chat-res { margin-top: 0; }
  .chat-res .grid.g3 { grid-template-columns: 1fr 1fr; }
}

/* post delle imprese */
.post { cursor: pointer; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.post-head .av { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.post-head b { display: block; font-size: 14px; }
.post-head span:not(.av) { font-size: 12px; color: var(--muted); }
.post .media { position: relative; }
.post .playbadge { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.post-t { margin: 0 0 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.chip.glass { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.35); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.chatv, .chat-col, .chat-res, .filtri-pers, .filtri-pers > * { min-width: 0; max-width: 100%; }
.filtri-pers .chips { overflow-x: auto; }
/* su telefono la colonna non si allarga oltre lo schermo (le file di chip scorrono dentro) */
.app { grid-template-columns: minmax(0, 1fr); }
.col, .main, .view { min-width: 0; max-width: 100%; }
@media (min-width: 900px) { .app { grid-template-columns: 240px minmax(0, 1fr); } }
