With such custom requirements it’s unlikely you will just happen upon a snippet to achieve it. This is considerable chunk of customization and working with hierarchical data is always challenging.
When you are working with wp_list_pages()
what is happening in background is that it compiles data and passes to instance of Walker_Page
class, that extends generic Walker
class and is how typically output of hierarchical data is done in WP.
wp_list_pages()
can accept instance of custom walker, however putting one together takes some PHP chops. You might explore it some and extend your question with more specifics of desired output and how far you got with walker.
Otherwise you will have to build output completely from scratch.