ハットであれば
hattodeareba

Noun
Da Copula

The "-eba" conditional form ("if/when…") of ハット

1. If/when hat; If it were a hat

Ba Conditional