Pihole -g reads only one list

That file has not been used since version 4.0. In Pi-hole version 5.0 and later (5.0 was released in May 2020), adlists are stored in the gravity database at /etc/pihole/gravity.db.

Copy the contents of what you pasted into the adlists.list file, then manually enter them into the web GUI. You can paste the lot of them at once from the clipboard. Then update gravity.

Web Admin GUI > Group Management > Adlists

For adding adlists, the web UI is the simplest method. You can install lighttpd and move it to a port other than 80 to remove the Apache conflict.

A permanent way to change the lighttpd port is:

https://discourse.pi-hole.net/t/lighttpd-daemon-wont-start/44985/13

Edit: You can also insert adlists directly into the database using SQL commands. One at a time:

sudo sqlite3 /etc/pihole/gravity.db "INSERT INTO adlist (address, enabled, comment) VALUES ('https://domain.com/blocklist.txt', 1, 'comment')"

or with this Pi-hole command from the terminal:

pihole -a adlist add/del/enable/disable address comment