Yes, the law adopted on the 25 of march now says that the hotel can refuse to refund you, and instead give you a voucher, valid for 18 months.
The answer that your hotel gave you is correct regarding the applicable law and understandable especially if it's a small hotel.
Note that this applies for stays between the 1st of march and the 15th of september.