img { max-width: 100%; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tripadvisor-label { color: #528743; font-size: 12px; font-weight: 700; }
.TA_links { list-style: none; padding: 0; margin: 0; }
.alert p:last-child { margin-bottom: 0; }
.gallery-dialog { border: 0; padding: 16px; border-radius: 8px; background: #fff; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
.gallery-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.gallery-dialog figure { margin: 0; text-align: center; }
.gallery-dialog img { display: block; max-width: min(1100px, calc(100vw - 56px)); max-height: calc(100vh - 150px); object-fit: contain; margin: auto; }
.gallery-dialog figcaption { padding-top: 10px; }
.gallery-controls { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.gallery-controls button { border: 1px solid #c7c7c7; border-radius: 4px; padding: 8px 16px; background: #fff; color: #333; cursor: pointer; }
.gallery-controls button:focus-visible { outline: 3px solid #528743; outline-offset: 2px; }
@media (max-width: 767px) {
    .sezione .titolo { font-size: clamp(32px, 9vw, 48px); overflow-wrap: anywhere; }
    .sottomenu { display: flex; flex-wrap: wrap; gap: 6px; }
    .sottomenu li { float: none; flex: 1 1 45%; width: auto; }
    .sottomenu li a { display: block; float: none; width: 100%; min-height: 52px; padding: 12px 8px; overflow-wrap: normal; }
    .headbar-contact .pull-right { float: none !important; clear: both; }
    .headbar-contact .list-contact-header { padding-left: 0; }
    .headbar-contact li { max-width: 100%; overflow-wrap: anywhere; }
    .navbar-brand { max-width: calc(100% - 75px); }
    .navbar-brand img { max-width: 100%; height: auto; }
    .home .logo { max-width: 100%; height: auto; }
    .footer { overflow-wrap: anywhere; }
}
