I’d go for an ESP32 with an MCP23017 expansion board…
If WiFi signal strength is an issue then choose a board that has an external antenna connector, or use a Wemos D1 Mini Pro and a couple of MCP23017 boards. If you do that then don’t forget to move the zero ohm resistor on the D1 Mini Pro to enable the external antenna.