Hi!
To enter the castle, you have to go to the screen with the statue with its outstretched arm, climb onto the small platform, and shoot to break the statue's arm. Then, return to the first screen and you'll find an underground passage that leads into the castle.
Check out the image below. Let me know if you managed it!
bye!!