@media (max-width: 900px) {
  body.mob .search input, body.mob .map-search input, body.mob .as-form input { font-size: 16px; height: 40px; }
  body.mob .im-bar { gap: 10px; }
  body.mob .im-search { flex: 1 1 100%; max-width: none; }
  body.mob .im-bar .b-tabs { display: flex; width: 100%; overflow-x: auto; }
  body.mob .im-wrap { background: none; border: 0; padding: 0; overflow: visible; }
  body.mob .im-table, body.mob .im-table tbody, body.mob .im-table tr, body.mob .im-table td { display: block; width: 100%; }
  body.mob .im-table thead { display: none; }
  body.mob .im-table tr { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 6px; margin-bottom: 12px; }
  body.mob .im-table td { border: 0; padding: 8px 0; min-width: 0; border-top: 1px solid var(--line); }
  body.mob .im-table td:first-child { border-top: 0; padding-top: 0; min-width: 0; }
  body.mob .im-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-3); margin-bottom: 4px; }
  body.mob .im-hit { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  body.mob .im-hit-c { text-align: left; }
  body.mob .im-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  body.mob .im-foot .b-criteria { grid-template-columns: minmax(0, 1fr); }
  body.mob .im-title h2 { font-size: 20px; }

  /* assistente: a tutta larghezza */
  body.mob.drawer .assistant { grid-column: 1 / -1; width: 100%; max-width: 100%; }

  /* mappa */
  body.mob .map-controls { top: 8px; left: 8px; right: 8px; width: auto !important; max-width: none; max-height: calc(100% - 64px); }
  body.mob .map-controls.collapsed { right: auto; }
  body.mob .mc-resize { display: none; }
  body.mob .map-controls:not(.collapsed) ~ .map-ask { display: none; }
  body.mob .map-ask { top: 8px; right: 8px; padding: 8px 12px; }
  body.mob .map-zoom { left: 8px; bottom: 8px; }
  body.mob .map-view { left: auto; right: 8px; bottom: 8px; }
  body.mob .map-hint { display: none; }
  body.mob .map-slow { bottom: 62px; flex-wrap: wrap; max-width: calc(100% - 16px); }
  body.mob .map-wrap:has(.node-panel:not([hidden])) .map-zoom { top: 56px; bottom: auto; }
  body.mob .map-wrap:has(.node-panel:not([hidden])) .map-view { top: 56px; bottom: auto; }
  body.mob .map-wrap:has(.node-panel:not([hidden])) .map-ask { display: none; }
  body.mob .node-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 54%; }
  body.mob .np-scroll { padding: 14px 14px 12px; }
  body.mob .np-actions { padding: 10px 14px 12px; }
}
