I want comment on this, not to disagree, but clarify on this point.
1) Focusing on a point. This is how you would keep your beam focused if you knew exactly how far your enemy is, which presumably you would, You dont shoot in a strait parallel beam of light rather you start with a wide beam and angle it so it gets smaller and smaller over distance until it his a focal point, then starts spreading out again. Best way to visualize this is if you have played with a magnifying glass, if you put the magnifing glass just far enough away, you could start a fire with it, by getting the kindling right at the fixed focal point. It would be necessary to have sci fi tech that would allow you to use variable curves on your lasers so you could focus your beam properly at a given distance. But this isn't exactly easy. Again, sci fi, but changing the focus point on a beam on the fly so that it focuses on the correct point to hit a target would be challenging and you would actually introduce a new way to miss your shots, if target range isn't clear because of target stealth. If the target is hard to properly aim at, and you aren't clear exactly how far it is, you could well lose some power to your lasers because they might not be correctly focused. If the target is further or closer than the focal point of your beam, then the effect of beam will be spread out over larger area.
In sci fi we see lasers that travel purely parallel and keep nice and tight forever, but in real life, if you are using a focused beam to hit your target, instead of a perfectly parrallel beam which would work across any distance, you will have problems with regards to getting the focus point properly adjusted every time you make a shot, but perfectly parallel beams like we normally think of when we talk lasers (like a laser pointer) would just not work across long distance because they would spread out.
2) Why diameter matters. You could hit mars, or power a solar sail across the solar system, if you start with a laser that is kilometers wide. The size of the beam, or mirror used to power the laser plays a big role. Yes you could properly hit mars with a mirror several kilometers wide, curved to microns worth of percision to properly focus for that exact distance, but a warship can probably only fit lens of so much aperture. You won't see anything past a few meters, and the larger the lens, the more tricky it becomes to adjust it for different focus points. With a lens of "only" one meter of width, hitting a rock mars would be just as hard as seeing a rock on mars with a telescope of only 1 meter width lens. Basically impossible. If you think about how fuzzy things look through your average hobbiest telescope, that same fuzziness would apply to any beam projected through a lens of simular size.
I hope that helps explains a little about how optics would work, because honestly the above is about my limit on how much I understand it.