Team Magma’s hideout is located in the forest just before Lavaridge City. To enter, you need the Magma Emblem obtained at Mount Pyre. Go up the path before Lavaridge City and press A while using the emblem to reveal the entrance.