I've have done questioning during trials, it can be nuanced and complex. It's not TV/a movie. A local criminal defense attorney, who is good at his/her job and is experienced, knows the judge and their rulings, the locals and thus the jury, and knows when to be subtle and when not to be. You only have to win over the jury and the judge, once your client is acquitted or convicted of a lesser charge, you have won. Prosecution cannot appeal (some states yes they can but its just one, I think, might be two or three at most). Just getting something in, over the objections of opposing counsel, is a win. Even if your client is convicted, you have to lay the groundwork for a successful appeal, right there during the trial.
Each judge has a their own style, for the lack of a better word. You have to know what they like and what they consider important. A local knows this, out of towners don't. You don't want to piss off the judge if you can help it but if you have to hit hard, you do. It goes way better for you and your client if you don't piss off the trial judge necessarily, saving it for when you absolutely have to.
I've seen attorneys piss judges off, when they were right and let me tell you it doesn't go down well. I personally fired three attorneys when I was in criminal court for a low level matter years ago and it paid off because I got a guy who knew his judges and I won. The other three were eliciting angry words and stares from the judge, and that was enough for me to utter the words "You're fired".
Remember, judges and lawyers often know each other and mix socially. You don't want them to talk about your as "that guy/girl" in negative tones. Dressing conservatively for court and being polite and friendly to everyone is essential, even to the court officers/clerks. You don't want a single person to think of you as anything other than sweet and nice, even if you clocked a jogger purse snatcher and gave them a broken nose that left them looking like a female punch drunk boxer.