User blog:Johnysayzhi/ame ame no mi

A logia can't be hit by a non-haki punch or any contact unless off guard but Luffy punched Gasparde and won while he was clearly using his fruit. So why is the Ame Ame no Mi not in the Paramecia type but a Logia class?