There should be play in the bolts where the hinges attache to the lid, sometimes you can loosen them a little bit and close the lid then push in place then open and tighten. In the trunk lid the bolt thread into a floating bar the was designed to give you this alignment.
Alan