A lock, comprising: - an outer body, adapted to be secured to a movable leaf; - a hooking element, housed in the outer body and comprising a portion adapted to accommodate a fastening element, said hooking element being pivotable, with respect to the outer body, around a first axis (x) between a first disengagement position, in which the fastening element is insertable into the hooking element, and a second engagement position, in which the hooking element is configured to engage the fastening element in such a way that said fastening element and said outer body are integral with each other; - a slide, slidingly housed in the outer body and translatable along a direction parallel to the first axis (x), between a position distal to the hooking element and a position proximal to the hooking element; - a first actuating device, supported by the outer body 10 and adapted to move the slide between said positions distal and proximal to the hooking element 12; - first elastic elements, which engage the outer body and the slide in such a way as to push said slide towards said position proximal to the hooking element; - a locking element, elongated in a direction parallel to the first axis (x) and movable along a direction parallel to the first axis (x) between a first retracted position, in which said locking element avoids engaging the hooking element, which hooking element is free to rotate around the first axis (x), and a second advanced position, in which said locking element engages the hooking element, locking the latter in the second engagement position thereof; and - second elastic elements, which engage the outer body and the locking element in such a way as to push said locking element towards said second locking position; said locking element having a slot extended along a direction parallel to the first axis (x) between a first end and a second end, opposite to the first end, said slot slidingly accommodating a drag formation, protruding from the slide and movable integrally with the latter, the second elastic elements being capable of pushing the locking element towards the drag formation in such a way that, when the slide is in the position distal to the hooking element, the drag formation abuts against the first end of the slot and the locking element is in the first retracted position, and in such a way that, when the slide is in the position proximal to the hooking element, the locking element is in the second advanced position, the drag formation abutting against the first end of the slot; the lock further comprising a second actuating device, supported by the outer body and adapted to move the locking element from said second advanced position to said first retracted position, avoiding moving the slide. - an outer body, adapted to be secured to a movable leaf; - a hooking element, housed in the outer body and comprising a portion adapted to accommodate a fastening element, said hooking element being pivotable, with respect to the outer body, around a first axis (x) between a first disengagement position, in which the fastening element is insertable into the hooking element, and a second engagement position, in which the hooking element is configured to engage the fastening element in such a way that said fastening element and said outer body are integral with each other; - a slide, slidingly housed in the outer body and translatable along a direction parallel to the first axis (x), between a position distal to the hooking element and a position proximal to the hooking element; - a first actuating device, supported by the outer body 10 and adapted to move the slide between said positions distal and proximal to the hooking element 12; - first elastic elements, which engage the outer body and the slide in such a way as to push said slide towards said position proximal to the hooking element; - a locking element, elongated in a direction parallel to the first axis (x) and movable along a direction parallel to the first axis (x) between a first retracted position, in which said locking element avoids engaging the hooking element, which hooking element is free to rotate around the first axis (x), and a second advanced position, in which said locking element engages the hooking element, locking the latter in the second engagement position thereof; and - second elastic elements, which engage the outer body and the locking element in such a way as to push said locking element towards said second locking position;