I'm not even a hard worker but having so little to do gets old and boring quickly.
Unless you’re taking a 2 week task and estimating 2 years or something, and then just goofing off in the slack time, which I’d consider... somewhat less than ethical?
Just focus on doing what's important in a timely basis and happily deprioritize the useless stuff.
In some roles you have to fight for work because different departments are fighting for org budgets. Some places are afraid to make code changes so you go to meetings while some people signoff others raise random issues with the project. Scheduling the project takes months. Then months of finding the perfect slot to release.
I also been in places that bill every 15 minutes. All client billing time was added up and should equal 8 hours. But there were never enough hours to go around. And clients would nickel and dime over hours.
With employers I'm not sure ethical matters as long as a need is met. But be ethical to yourself. Always work hard learn and grow because the industry changes.
If the deadlines are reasonable I wouldn't care. If they aren't, it's time to start reviewing glassdoor before finding a job.
This is also by and large a mindset you foster. There are plenty of companies where you have engineers on both ends of the spectrum (both having a lot of leisure time and little).
E.g. I would be happier if I could work fully focussed for 3-4 hours and then go home, instead of working at a slow pace for 8 hours so I don't get tired after 4.
If you are keeping up with your commitments, and the company is not crashing, is morale the main problem?
Fasting won't give you mountains of physical pep. Sure, there is that golden time after you have done it for a while where you get great mental clarity and you feel good but you will not be voluntarily running laps or pushing your absolute peak weight in the gym.
That barrier is something you'll always feel, even if you're not pushing the limits. The fact of the matter is that barrier is closer when you are fasting.
Their bodies (and brains) are doing a lot more developing than just growth spurting, which is why such a teenager can eat huge portions[0] per day and not put on any fat at all. Because their bodies use it all up, because of all the transformations and puberty things going on.
I would suggest, in that stage, just giving the body everything it craves, and worry about the benefits of fasting later.
[0] obviously doesn't hold in parts of the world where these are considered "normal" portions.
Instead of bitching about morale it is best to see it as an opportunity. Use time to better yourself, find new job, start your own business etc. etc.
As for how well it plays for the business owners, it is their problem, not yours.
My last software job was supposedly 40 hours/week. I'd usually come in for two hours and leave. They wouldn't be an intense two hours either. Once in a while I'd stay all day. Based on what I hear from my friends from university, this experience is not the median but it's not uncommon either.
Many managers really don't know how to manage. Morale goes down the shitter, and unless you have children it's unlikely you'll care about getting caught.