That is _Syrigma sibilatrix_, the whistling heron. In Brazil we call it _"maria-faceira"_.
: <
Wiki Aves is by far the best source for birds in Brazil. It is a very well documented and reliable source, maintained by great ornithologists.
PS: Regarding the Southern lapwings: they are not really _attacking_ , they are just trying to drive off the intruder. And there is a reason: the lapwings nest on the ground. I was _"attacked"_ by them several times (I'm from the Southern Brazil), when I inadvertently approached their nest.