* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Verdana_Bold";
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #eae6ca;
    min-height: 100%;
    z-index: 0;
    position: relative;
    overflow-x: hidden;
}



.logoSection {
    margin-top: 1%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    width: 80%;
    height: auto;
}

.logoSection p {
    padding-top: 24px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    text-align: end;
    font-style: italic;
}

.current-section-label-mobile {
    display: none;
}

.tabs {
    display: none;
}

.mobile-menu-btn {
    position: fixed;
    top: max(3.5%, env(safe-area-inset-top, 20px));
    left: max(3.5%, env(safe-area-inset-left, 20px));
    z-index: 1001;
    width: clamp(70px, 17vw, 110px);
    height: clamp(70px, 17vw, 110px);
    background-color: #4c2f27;
    color: #fefee9;
    border: none;
    border-radius: 125px;
    font-size: clamp(28px, 8vw, 45px);
    cursor: pointer;
    font-size: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.mobile-tabs-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;

    background-color: #4c2f27;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: scroll;
}

.mobile-tabs-menu.open {
    transform: translateX(0);
}

.mobile-close-btn {
    position: absolute;
    top: 5%;
    left: 5%;
    border-radius: 50px;
    border: 2px;
    border-color: #fefee9;
    width: clamp(70px, 17vw, 110px);
    height: clamp(70px, 17vw, 110px);
    background: transparent;
    border: none;
    font-size: clamp(28px, 8vw, 45px);
    cursor: pointer;
    color: #fefee9;


    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-tabs-menu.open .mobile-close-btn {
    opacity: 1;
    pointer-events: auto;
}

.mobile-tabs-menu {
    font-size: 18px;
    padding: 14px 22px;
}

.tab-button-mobile {
    color: #fefee9;
    background-color: #4c2f27;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-color: #fefee9;
    border-style: ridge;
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(20px, 5.5vw, 30px);
    text-align: end;
    height: 10%;
    z-index: 1000;
}

.noBorderMobileContatti {
    border-color: transparent !important;
}


.grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.grid-item {
    width: 100%;
    max-width: 90vw;
    margin-top: 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    flex-direction: column;
    box-shadow: #333;
    position: static;
    transition: transform 0.6s ease-in-out;
}

.hide-grid-item-state {
    display: none;
}

.grid-item:hover>div {
    display: block;
}

.grid-item>img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.location-title h3 {
    font-size: clamp(14px, 3.5vw, 20px);
    margin: 0.5rem 0;
    text-align: center;
}

.location-info p {
    font-size: clamp(12px, 3vw, 16px);
    margin: 0;
    text-align: center;
}

.generalTabsContainer {
    margin-top: 20px;
    height: min-content;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 0;
    width: 90%;
}

.search-container {
    display: none;
}

.search-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5%;
}

.filters-first-row {
    width: 100%;
    display: flex;
    gap: 20px;
}

.filters-second-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: start;
    justify-content: stretch;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar input[type="number"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button {
    padding: 8px 12px;
    border: none;
    background: #ad49ad;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.didascalia-grid-item {
    font-size: 17px;
}

.footer {
    width: 100%;
    margin-top: 5%;
    background-color: #e0e0e0;
    padding: 20px 0;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2%;
    padding: 0 10px;
    margin-top: 3%;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-section a {
    text-decoration: none;
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.footer-section a:hover {
    text-decoration: underline;
}

select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.locationDetailContainer {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin-top: 2%;
}

#location-map-section {
    display: flex;
    justify-content: center;
    width: 80%;
    margin-top: 5%;
}

.mappa-box {
    width: 100%;
}

#map {
    width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 10px;
}


.location-name-detail {
    margin-top: 2%;
    margin-bottom: 1%;
    text-align: center;

    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.25em;

    text-transform: uppercase;

    color: #444;
}

.tab-Home {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.textHomeItem {
    margin-top: 3%;
    font-size: 24px !important;
    font-style: italic;
    font-weight: bold;
}

.cardContentHomepage {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content: space-between;
    margin: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
    width: 60%;
    height: 32%;
    overflow: hidden;
    position: relative;
    background-color: ghostwhite;

}

.cardContentHomepage:nth-child(odd) {
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.cardContentHomepage:nth-child(even) {
    align-self: flex-end;
    margin-right: 0;
    margin-left: auto;
}

.imageContentHomepage {
    width: 30%;
    height: 70%;
    object-fit: cover;
    border-radius: 5px;
}

.cardContentHomepage:nth-child(even) {
    flex-direction: row-reverse;
}

.textContentHomepage {
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
    height: 10%;
    overflow: hidden;
}

.titleSezioneContentHomepage {
    margin-bottom: 30px;
    font-size: 28px;
}

.tab-ExtraServices {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.containerExtraServices {
    width: 90%;
    display: flex;
    flex-direction: column;
}

.cardContentExtraServices {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: fit-content;
    background-color: #fefee9;
}

.cardContentExtraServices:nth-child(odd) {
    flex-direction: column-reverse;

}

.cardContentExtraServices:nth-child(even) {
    flex-direction: column-reverse;

}

.containerMainImageExtra {
    height: 50%;
    width: 100%;
    margin-left: 5%;
    margin-top: 2%;
    margin-bottom: 2%;
    border-radius: 10px;
}

.imageContentExtraServices {
    width: 30%;
    height: 70%;
    object-fit: cover;
    border-radius: 20px;
}



.textContentExtraServices {
    font-size: clamp(16px, 4vw, 26px);
    text-align: center;
    overflow: visible;
    margin: 2% !important;
}

.previewImages {
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #eaeaea;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    margin-left: 5%;
}

.titleSezioneContentExtraServices {
    margin-top: 10px;
    font-size: clamp(18px, 4.5vw, 28px);
    text-align: center;
    font-weight: bold;
    overflow: visible;
    margin: 2%;
}

.main-image-extra {
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 5%;
    height: 50%;
    max-width: 90%;
    width: 90%;
}

.thumbnail-container {
    width: 100%;
    height: min-content;
    margin-bottom: 1%;
    display: grid;
    grid-template-columns: repeat(3, 0fr);
    justify-content: center;
    gap: 10px;
    border-radius: 20px;
    position: initial;
}

.thumbnail {
    width: clamp(80px, 25vw, 130px);
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    border-radius: 10px;
}

.thumbnail:hover {
    border-color: #000;
}

.customerServicesDescription {
    display: flex;
    flex-direction: column;
    max-height: 20%;
    overflow: visible;
}

.general-tab {
    width: 100%;
}


.homeDivsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: auto;
    margin-top: 5%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fefee9;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
    justify-items: center;
    align-items: start;
    align-content: center;
    row-gap: 0px;
}

.homeDivsItem {
    text-align: center;
    justify-content: stretch;
    width: 100%;
    height: 40%;
    padding: 10px;
    border-radius: 8px;
}

.homeDivsItem img {
    margin-top: 3%;
    width: 80%;
    height: auto;
    border-radius: 5px;
}


@media (max-width: 1024px) {

    .thumbnailsDetail {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        margin-bottom: 5%;
    }

    .thumbnail-label {
        display: none !important;
    }

    .footer-images {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 3%;
    }

    .footer-images {
        display: flex;
        gap: 20px;
    }

    .social-item {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 50vw;
    }

    .social-label {
        margin-top: 5px;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        font-size: 12px;
        pointer-events: none;
    }

    .social-item:hover .social-label {
        opacity: 1;
        transform: translateY(0);
    }


    .stylefooterImagesSocial {
        height: auto;
        width: 70px !important;
        display: block;
    }

    .footer-images {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .social-item {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 40px;
    }

    .social-label {
        margin-top: 5px;
        font-size: 18px;
        opacity: 1 !important;
    }

    .social-item:hover .social-label {
        opacity: 1;
        transform: translateY(0);
    }

    .portfolio-image {
        max-width: 20vh !important;
        max-height: 20vh !important;
        object-fit: contain !important;
    }

    .portfolio-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .mobilePecContact {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        display: block !important;
        max-width: 100% !important;
        font-size: clamp(11px, 3vw, 16px) !important;
        /* riduce il font se necessario */
        text-align: center !important;
        white-space: normal !important;
        /* annulla qualsiasi nowrap ereditato */
    }

    .risultatiLabelMobile, .sortingLabelMobile {
        width: 100%;
        text-align: start;
        font-size: clamp(16px, 4.5vw, 26px) !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .location-name-detail {
        text-align: center !important;
        letter-spacing: 0.1em !important;
        font-size: clamp(14px, 4vw, 20px) !important;
        padding: 0 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .image-filename {
        transform: translateX(-50%) !important;

        width: auto !important;
        max-width: 100% !important;

        height: auto !important;
        padding: 4px 10px;

        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        font-size: clamp(12px, 3vw, 18px) !important;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        text-align: center;
        border-radius: 6px;
        pointer-events: none;
    }

    .mobileImgMiInteressa {
        align-items: center !important;
    }

    .popup-container {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 9999 !important;
        padding: 70px 16px 30px 16px;
        background: rgba(0, 0, 0, 0.55);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        border-radius: 0 !important;
    }

    #interessePopup>*:not(.popup-close) {
        width: 100%;
    }

    /* il tasto × resta fisso in alto */
    .popup-close {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1001;
        font-size: 32px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mailContact {
        margin-top: 2%;
        margin-left: 0% !important;
        padding: 2%;
        width: 100% !important;
        max-width: 100% !important;
        background: #fffaf0;
        padding: 30px;
        border-radius: 10px;
        border: 1px solid #ccc;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

    .ilguscioIMG {
        object-fit: fill;
        height: auto;
        max-height: 80%;
    }

    .tab-Partner {
        width: 100% !important;
    }

    .logoSection {
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding-top: 3%;
        box-sizing: border-box;
    }

    .logoSection img {
        flex: none;
        max-width: 100%;
        width: auto;
        height: auto;
        align-self: center;
    }

    .logoSection p {
        text-align: center;
        width: 100%;
    }

    .current-section-label-mobile {
        display: block;
        font-family: 'Times New Roman', Times, serif;
        font-size: clamp(16px, 4.5vw, 22px);
        font-style: italic;
        font-weight: bold;
        text-align: center;
        color: #4c2f27;
        width: 100%;
        padding-top: 4px;
    }

    .slideshow-container {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
        width: 100%;
    }

    .slides {
        position: relative;
        width: 100%;
        min-height: clamp(200px, 50vw, 500px);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slide {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        transition: opacity 1s ease-in-out;
    }

    .slide img {
        width: 100%;
        height: auto;
        border-radius: 15px;
        object-fit: cover;
        min-height: clamp(200px, 45vw, 380px);
    }

    .rightButtonsSlideshow {
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
        position: static;
        margin-top: 0.5rem;
        flex-direction: row;
    }

    .prevButtonSlideshow {
        display: none;
    }

    .buttonSlideshow,
    .rightSectionButton {
        padding: 12px;
        width: clamp(60px, 13vw, 90px);
        height: clamp(60px, 13vw, 90px)
    }

    .rightSectionButton {
        background-color: #fefee9;
        border-radius: 50px;
        border-color: transparent
    }

    .slideButtonIcon {
        width: clamp(24px, 6vw, 44px);
    }

    .prevButtonSlideshowMobile {
        background-color: #fefee9;
        border-radius: 50px;
        border-color: transparent;
    }

    .nextButtonSlideshow {
        order: 4
    }

    .prevButtonSlideshowMobile:active,
    .rightSectionButton:active {
        background-color: rgba(0, 0, 0, 0.15) !important;
    }

    .tab-About {
        width: 100%;
        display: flex;
        position: relative;
        flex-direction: column;
        justify-content: center;
    }

    .aboutSection {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .cardContentAbout {
        margin-top: 3%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .cardContentPartner {
        flex-direction: column !important;
        align-items: center !important;
    }

    .main-image-Partner {
        object-fit: cover;
        height: auto;
    }

    .aboutHeader {
        padding: 2%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #fefee9;
        border-radius: 10px;
    }

    .flexHorizontal {
        display: flex;
        flex-direction: row;
        align-content: baseline;
        justify-content: center;
        flex-wrap: wrap;
    }

    .aboutItems {
        width: 100%;
        height: min-content;
        display: flex;
        position: relative;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 5%;
        padding: 20px;
        border-radius: 8px;
        background-color: #fefee9;
        box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
    }

    .imageContentAbout {
        width: clamp(80px, 30vw, 140px);
        height: clamp(80px, 30vw, 140px);
        object-fit: cover;
        align-self: center;
        flex-shrink: 0;
        margin: 20px auto;
        border-radius: 100%;
    }


    .titleSezioneContentAbout {
        font-size: clamp(20px, 5vw, 32px) !important;
        font-weight: bold;
        text-align: center;
    }

    .textContentAbout {
        font-size: clamp(16px, 4.5vw, 26px) !important;
        text-align: center;
    }

    .mobileOverflowingText {
        font-size: clamp(16px, 4vw, 26px) !important;
    }

    #textContentPopupAbout {
        white-space: pre-line;
    }

    .filter-open-btn {
        display: block !important;
        align-items: center;
        justify-content: center;
        width: 40%;
        margin: 1rem auto;
        padding: 0.9rem 1rem;
        font-size: clamp(16px, 3.5vw, 22px) !important;
        border-radius: 14px;
        border: none;
        background: #111;
        color: #fff;
        cursor: pointer;
        font-size: 28px !important;
    }

    .popup-box {
        background: white;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        max-width: 80% !important;
    }

    .mobileMiInteressaButton {
        width: 60%;
        height: 40%;
        font-size: clamp(18px, 5vw, 32px) !important;
    }

    .desktopOnly {
        display: none;
    }

    .mobileOnly {
        display: flex;
    }

    .viewerDetail {
        flex-direction: column;
    }

    .imageAreaDetail {
        width: 95%;
    }

    /* Mobile Controls */
    .mobileControls {
        margin-top: 15px;
        gap: 15px;
        justify-content: center;
    }

    .mobileBtn {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        border: none;
        background-color: #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        transition: 0.2s ease;
    }

    .mobileBtn img {
        width: 22px;
        height: 22px;
    }

    .mobileBtn:active {
        transform: scale(0.92);
    }

    .imageFilenameDetail {
        text-align: center;
    }

    .mobile-filters-menu {
        position: fixed;
        inset: 0;
        z-index: 1100;

        background: rgba(30, 30, 30, 0.94);

        display: flex;
        justify-content: center;
        align-items: flex-start;
        /* NON center */

        padding-top: 150px;
        /* spazio per la X */
        padding-bottom: 40px;

        transform: translateX(100%);
        transition: transform 0.35s ease;

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-filters-menu.open {
        transform: translateX(0);
    }

    .filters-container {
        width: 85%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .filters-container input,
    .filters-container select,
    .filters-container button {
        padding: 12px;
        font-size: clamp(14px, 3.5vw, 20px);
        border-radius: 8px;
        border: none;
    }

    .filters-container label {
        padding: 12px;
        font-size: 26px;
        border-radius: 8px;
        border: none;
        color: white;
    }

    .filters-container select {
        min-height: 100px;
    }

    .mobile-filters-close-btn {
        position: fixed;
        /* non absolute */
        top: max(2%, env(safe-area-inset-top, 10px));
        right: max(5%, env(safe-area-inset-right, 20px));
        background: transparent;
        border: none;
        font-size: clamp(40px, 10vw, 60px);
        color: white;
        cursor: pointer;

        z-index: 1200;
    }

    .filters-action-btn {
        padding: 14px;
        font-size: 18px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
    }

    .filters-action-btn.secondary {
        background: #ccc;
    }

    .dropdown-menu-mobile {
        display: block;
        background: #fff;
        border: 0.2% solid #ddd;
        padding: 2%;
    }

    .dropdown-menu-mobile label {
        color: black !important;
    }

    .checkbox-item-mobile {
        display: flex;
        align-items: center;
        margin-bottom: 1%;
    }

    .checkbox-item-mobile input {
        margin-right: 6px;
    }

    #closeZoomDetail {
        top: 12px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.6rem !important;
    }

    #zoomedPlayDetail {
        top: 12px !important;
        right: 65px !important;
        width: 44px !important;
        height: 44px !important;
    }

    #zoomedPauseDetail {
        top: 12px !important;
        right: 118px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .zoomOverlayDetail .zoom-nav {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.4rem !important;
    }

    .zoomOverlayDetail .prev {
        left: 8px !important;
        top: 80% !important;

    }

    .zoomOverlayDetail .next {
        right: 8px !important;
        top: 80% !important;
    }
}

.filter-open-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40%;
    margin: 1rem auto;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 14px;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.filter-fullscreen {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;

    display: flex;
    flex-direction: column;

    /* stato CHIUSO */
    transform: translateX(100%);
    pointer-events: none;

    transition: transform 0.35s ease;
}

.filter-fullscreen.open {
    transform: translateX(0);
    pointer-events: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.filter-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.filter-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-body input[type="text"],
.filter-body input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;

    border-radius: 10px;
    border: 1px solid #ccc;
}

.filter-body select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;

    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
}

.filter-footer button {
    flex: 1;
    padding: 0.9rem;

    font-size: 1rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
}

.filter-footer .btn-reset {
    background: #eee;
    color: #000;
}

.filter-footer .btn-search {
    background: #111;
    color: #fff;
}

body.filters-open {
    overflow: hidden;
}


.btn-reset,
.btn-search {
    flex: 1;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 1rem;
    border: none;
}

.btn-reset {
    background: #eee;
}

.btn-search {
    background: #111;
    color: white;
}


.styleFooterTitles {
    text-decoration: solid;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    text-align: center;
    margin-bottom: 5%;
    margin-left: 2%;
    margin-right: 2%;
}


.layout-informazioni {
    display: flex;
    flex-direction: column;
    width: 30%;
    justify-content: start;
    margin-right: 5%;
}

.styleTextInformazioni {
    margin: 15px;
}

.styleTextEndFooter {
    margin-top: 4%;
}

.flexDirectionColumn {
    flex-direction: column;
}

.w-auto {
    width: auto;
}

.layout-social {
    width: 30%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-right: 7%;
}

.layout-contatti {
    height: min-content;
    width: 40%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.textAlignCenter {
    text-align: center;
}

.styleTextTitle {
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
}

.styleTextTitleMin {
    font-size: 19px;
    font-family: 'Times New Roman', Times, serif;
}


.styleTextNormal {
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
}


.tab-Portfolio {
    width: 100%;
}

.portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
}

.portfolio-item {
    width: 33%;
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;
}

.portfolio-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tab-Partner {
    width: 90%;
}

.containerPartner {
    display: flex;
    flex-direction: column;
}

.cardContentPartner {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 40%;
    max-height: fit-content;
    background-color: #fefee9;
}

.containerMainImagePartner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
    gap: 5%;
    margin: 5%;
}

.descriptionPartner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
}

.cardContentPartner:nth-child(odd) {
    flex-direction: row;

}

.cardContentPartner:nth-child(even) {
    flex-direction: row;

}

.layout-partner {
    margin-top: 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.partnerSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    max-width: 20%;
}


.detailMainImage {
    max-width: 60%;
    height: auto;
}


.dati-generali-box {
    background-color: rgba(128, 128, 128, 0.3);
    width: 100%;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    display: block;
}

#location-description {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.dati-generali-box p {
    margin-bottom: 15px;
    font-size: clamp(14px, 3.5vw, 20px);
    line-height: 1.6;
}

.titolo-sezione {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.popup-overlay {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    justify-content: center;
    align-items: center;
}

.popup-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 60%;
}

.popup-box h2 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}

.close-btn {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.popup-overlay-privacy {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.popup-box-privacy {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
}

.popup-box-privacy::-webkit-scrollbar {
    width: 8px;
}

.popup-box-privacy::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.popup-box-privacy::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.popup-box-privacy h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.textContentAbout {
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

.close-btn-privacy {
    display: block;
    margin: 20px auto 0 auto;
    padding: 8px 15px;
    border: none;
    background: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.popup-box-privacy ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.popup-box-privacy li {
    margin-bottom: 5px;
}

.w-100 {
    width: 100%
}

.m-t-30 {
    margin-top: 30px;
}

.m-r-10 {
    margin-right: 10px;
}

.m-l-10 {
    margin-left: 10px;
}

.m-t-1 {
    margin-top: 1%;
}

.textAlignStart {
    text-align: start;
}

.galleryDetail {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.viewerDetail {
    margin-top: 1%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10%;
}

/* Main Image */
.imageAreaDetail {
    position: relative;
    width: 85%;
    max-width: 1100px;
}

.mainImageContainer {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

#mainImageDetail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    max-height: 70vh;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Desktop Navigation */
.navBtn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.navBtn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Overlay Controls Desktop */
.controlsOverlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.controlBtn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.controlBtn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.controlBtn img {
    width: 20px;
    height: 20px;
}

.controlBtn:hover {
    transform: scale(1.1);
}

.imageFilenameDetail {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.thumbnailsDetail {
    text-align: center;
    margin-bottom: 5%;
}

.thumbnailsDetail img {
    margin: 4px;
    width: 180px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s ease;
}

.thumbnailsDetail img:hover {
    opacity: 1;
}

.thumbnailsDetail img.activeDetail {
    opacity: 1;
    border: 3px solid #000;
    box-sizing: border-box;
}

.mobileOnly {
    display: none;
}

#zoomBtnDetail {
    font-size: 20px;
    color: white;
    pointer-events: auto;
}

#zoomBtnDetail:hover {
    background: #444;
}


.zoomOverlayDetail {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.zoomOverlayDetail .zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.zoomOverlayDetail .zoom-nav:hover {
    background: rgba(255, 255, 255, 0.6);
}

.zoomOverlayDetail .prev {
    left: 5%;
}

.zoomOverlayDetail .next {
    right: 5%;
}

#closeZoomDetail {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#closeZoomDetail:hover {
    background: rgba(255, 255, 255, 0.6);
}

.image-filename-zoom {
    position: absolute;
    top: 4.5%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border-radius: 6px;
    pointer-events: none;
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.location-TitleZoomed {
    position: absolute;
    top: 0.5%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border-radius: 6px;
    pointer-events: none;
    padding: 8px;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s;
}

.polaroidFrame {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: transparent;
    border-radius: 6px;

    width: 95vw;
    max-width: 1400px;
    height: 85vh;

    padding: 20px 20px 70px 20px;
    pointer-events: none;
}

/* IMMAGINE GRANDE */
.polaroidFrame img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    pointer-events: none;
}

/* Caption */
.polaroidCaption {
    position: absolute;
    bottom: 20px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    text-align: center;
}

#zoomedPlayDetail {
    position: absolute;
    top: 20px;
    right: 10%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#zoomedPlayDetail:hover {
    background: rgba(255, 255, 255, 0.6);
}

#zoomedPauseDetail {
    position: absolute;
    top: 20px;
    right: 5.5%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#zoomedPauseDetail:hover {
    background: rgba(255, 255, 255, 0.6);
}


#miInteressaBtn {
    background-color: #5c4033;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

#miInteressaBtn:hover {
    background-color: #4a3227;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

#miInteressaBtn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.filter-label {
    width: 8.5%;
}

.searchBarRicerca {
    height: 10%;
    margin-bottom: 30px;
}

.searchBarInputDati {
    margin-right: 10%;
}

.filter-label-ubicazione {
    width: 100% !important;
    font-size: 20px;
}

.filterUbicazione {
    display: flex;
    flex-direction: column;
    width: 70% !important;
}

.filterCodice {
    display: flex;
    flex-direction: column;
    width: 20% !important;
    margin-left: 10%;

}

.filter-label-codice {
    width: 100% !important;
    font-size: 20px;
    text-align: center;
    padding-right: 2%;
}

.inputCodice {
    width: 100%;
}

.buttonBarRicerca {
    margin-top: 18px;
    width: 20%;
    height: 30px !important;
}

.popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fffaf0;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #ccc;
    width: 90%;
    max-width: 90%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: Arial, sans-serif;
}

.popup-title {
    margin: 0 0 15px;
    font-size: 22px;
    color: #5a3e2b;
    text-align: center;
}

.popup-note {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: justify;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 14px;
}

.popup-submit {
    background: #8b5e3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
}

.popup-submit:hover {
    background: #6f4b2f;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.popup-reset {
    flex: 1;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-reset:hover {
    background-color: #5a6268;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: none;
    background: none;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #444;
}

.location-info-popup {
    font-weight: bold;
    color: #5a3e2b;
    margin: 5px 0 15px;
    padding: 8px;
    background: #f7f2eb;
    border-radius: 6px;
    white-space: pre;
    word-wrap: break-word;
}

.locationDetailFormLayoutMobile {
    flex-direction: column !important;
}

#confermaPopup {
    background: #fffaf0;
}

.tab-Contact {
    width: 100%;
    display: flex;
    gap: 10%;
}

.contactHeader {
    left: 2%;
    margin-left: 10%;
    margin-right: 10%;
    padding: 2%;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fffaf0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    font-size: 1.3rem;
}

.contactHeader h2 {
    margin-bottom: 3%;
}

.mailContact {
    margin-top: 2%;
    left: 2%;
    margin-left: 10%;
    margin-right: 10%;
    padding: 2%;
    width: 80%;
    background: #fffaf0;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.styleTextTitleContact {
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
}

.mailContact {
    background: #fffaf0;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 80%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.direct-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.direct-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3%;
    width: 100%;
    background: #fff5e0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 3%;
}

.direct-left h3 {
    margin-bottom: 5%;
}

.direct-form {
    width: 100%;
}

.direct-form .form-group {
    margin-bottom: 15px;
}

.direct-form input,
.direct-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #aaa;
    background: #fff;
    font-size: 0.95rem;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

.form-buttons.three-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.popup-captcha {
    background: #aaa;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.popup-captcha:hover {
    background: #888;
}

.filter-block {
    display: flex;
    flex-direction: column;
    margin-right: 2%;
    position: relative;
    width: 100%;
}

.filter-block-buttons {
    display: flex;
    flex-direction: row;
    gap: 5%;
    width: 40%;
    position: relative;
    justify-content: flex-end;
    margin-right: 0%;
}

.dropdown-filter {
    position: relative;
    width: 200px;
}

.dropdown-button {
    width: 100%;
    padding: 1%;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    width: 100%;
    background: #fff;
    border: 0.2% solid #ddd;
    padding: 2%;
    box-shadow: 0 0 3% rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.dropdown-section {
    margin-bottom: 3%;
}

.dropdown-section-title {
    font-weight: bold;
    margin-bottom: 1%;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 1%;
}

.checkbox-item input {
    margin-right: 6px;
}

.dropdown-menu.show {
    display: block !important;
}

.captchaContact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 10px;
}

.captchaContact-content {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    max-width: 350px;
    width: 100%;
    text-align: center;
    animation: captchaContactFadeInScale 0.3s ease forwards;
}

@keyframes captchaContactFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.captchaContact-content img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.captchaContact-content input {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #aaa;
    border-radius: 6px;
    margin-bottom: 15px;
    outline: none;
}

.captchaContact-content input:focus {
    border-color: #333;
}

.captchaContact-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.captchaContact-buttons button {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s;
}

#captchaConfirmContactDirect,
#captchaConfirmContactLocation {
    background: #2d7df4;
    color: #fff;
}

#captchaConfirmContactDirect:hover,
#captchaConfirmContactLocation:hover {
    background: #1d5fcc;
}

#captchaCancelContactDirect,
#captchaCancelContactLocation {
    background: #ddd;
}

#captchaCancelContactDirect:hover,
#captchaCancelContactLocation:hover {
    background: #bdbdbd;
}

.language-switcher {
    display: none;
}

.language-switcher-mobile {
    position: fixed;
    top: max(4%, env(safe-area-inset-top, 16px));
    right: max(3%, env(safe-area-inset-right, 12px));
    display: flex;
    gap: 8px;
}

.lang-btn-mobile {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-btn-mobile img {
    width: clamp(28px, 6vw, 50px);
    height: clamp(20px, 4vw, 35px);
    display: block;
}

.lang-btn-mobile:hover {
    transform: scale(1.1);
}

.image-filename {
    transform: translateX(-50%);
    margin-left: 20%;
    width: 20%;
    max-width: 20%;
    height: 120%;
    padding: 4px 10px;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border-radius: 6px;
    pointer-events: none;
    margin-bottom: 2vh;
}

.row-descrizione-uk {
    display: none;
}

.hidden {
    display: none;
}

.youtube-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
}

.youtube-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.youtube-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 4px;
}

.planimetria-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    margin-top: 10%;
}

.planimetria-wrapper {
    background: #f5f5f5;
    padding: 10px;
}

.planimetria-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.planimetria-label {
    position: relative;
    left: 10px;
    padding: 4px 10px;
    font-size: 16px;
    border-radius: 4px;
}

@media (min-width: 1024px) {

    .thumbnail-wrapper {
        position: relative;
        display: inline-block;
    }

    .thumbnail-label {
        position: absolute;
        left: 50%;
        bottom: 5px;

        transform: translateX(-50%);
        opacity: 0;

        background: rgba(255, 255, 255, 0.75);
        color: black;

        padding: 4px 8px;
        border-radius: 4px;

        font-size: 14px;
        white-space: nowrap;

        transition:
            opacity 0.3s ease,
            transform 0.3s ease;

        pointer-events: none;
    }

    .thumbnail-wrapper:hover .thumbnail-label {
        opacity: 1;
        transform: translateX(-50%) translateY(-3px);
    }

    .thumbnailsDetail img {
        margin: 4px;
        width: 220px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        opacity: 0.7;
        transition: 0.2s ease;
    }

    .main-image-Partner {
        object-fit: cover;
        width: 40% !important;
        height: auto;
    }

    .ilguscioIMG {
        object-fit: fill;
        width: 30% !important;
        height: auto;
        max-height: 80%;
    }

    .logoSection {
        margin-top: 1%;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 80%;
        height: auto;
    }

    .logoSection img {
        max-width: 25%;
        height: auto;
        flex: 1;
        text-align: center;
    }

    .logoSection p {
        font-family: 'Times New Roman', Times, serif;
        font-size: 32px !important;
        text-align: end;
        font-style: italic;
    }

    .current-section-label-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin-top: 2%;
        background-color: #fefee9;
        width: 90%;
        max-width: 90%;
        min-width: 90%;
        height: auto;
        min-height: 80px;
        align-items: center;
        align-content: center;
        border-radius: 10px;
    }

    .tab-button {
        padding: 10px 15px;
        margin: 5px;
        border-radius: 5px;
        border-color: transparent;
        background-color: transparent;
        cursor: pointer;
        font-size: 22px;
        transition: background-color 0.3s;
    }

    .tab-button:hover {
        background-color: #ddd;
    }

    .tab-button.active {
        background-color: #4c2f27;
        border-color: #4c2f27;
        color: #fefee9;
        border: none;
        border-radius: 6px;
        letter-spacing: 0.5px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    }

    .language-switcher {
        position: fixed;
        top: 16px;
        right: 16px;
        display: flex;
        gap: 8px;
    }

    .lang-btn {
        background: transparent;
        border: none;
        padding: 4px;
        cursor: pointer;
        border-radius: 6px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        z-index: 9999;
    }

    .lang-btn img {
        width: 28px;
        height: 20px;
        display: block;
    }

    .lang-btn:hover {
        transform: scale(1.1);
    }

    .slideshow-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;

        background-color: #fefee9;

        height: 650px;
        margin: 1rem auto 2rem;
        padding: 1rem;

        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .slides {
        grid-column: 2;
        position: relative;

        display: flex;
        justify-content: center;
        align-items: center;

        height: 100%;
    }

    .slide {
        position: absolute;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .slide:first-child {
        opacity: 1;
    }

    .slide img {
        width: 90%;
        height: 500px;
        border-radius: 20px;
        object-fit: cover;
    }

    .rightButtonsSlideshow {
        grid-column: 3;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 10em;
    }

    .prevButtonSlideshow {
        grid-column: 1;
        justify-self: center;
    }

    .rightSectionButton {
        padding: 14px;
        border: none;
        border-radius: 10px;
        background: transparent;
        cursor: pointer;

        transition: background-color 0.15s ease, transform 0.1s ease;
    }

    .rightSectionButton:hover {
        background-color: #eaeaea;
        border-radius: 50px;
    }

    .rightSectionButton:active {
        background-color: rgba(0, 0, 0, 0.15);
        transform: scale(0.95);
    }

    /* ---------- ICONE ---------- */

    .slideButtonIcon {
        width: 28px;
        display: block;
    }

    .prevButtonSlideshowMobile {
        display: none;
    }

    .homeDivsContainer {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;
        margin: auto;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 20px;
        background-color: #fefee9;
        box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
        justify-items: space-around;
        align-items: center;
        align-content: center;
        row-gap: 0px;
        height: 400px;
    }

    .homeDivsItem {
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 10px;
        border-radius: 8px;
        width: 33%;
        height: 80%;
        gap: 1.5rem;
    }

    .homeDivsItem img {
        margin-top: 3%;
        border-radius: 5px;
        object-fit: cover;
        width: 70%;
        height: auto;
        transition: transform 0.6s ease-in-out;
    }

    .homeDivsItem img:hover {
        transform: scale(1.30);
    }

    .footer {
        width: 100%;
        margin-top: 5%;
        background-color: #e0e0e0;
        padding: 20px 0;
        font-size: 17px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2%;
        padding: 0 10px;
        margin-top: 3%;
    }

    .footer-title {
        font-weight: bold;
        margin-bottom: 10px;
    }

    .footer-section a {
        text-decoration: none;
        color: #000;
        text-decoration: underline;
        text-decoration-thickness: 1px;
    }

    .footer-section a:hover {
        text-decoration: underline;
    }

    .footer-images {
        display: flex;
        flex-direction: row;
        justify-content: center;
        justify-items: center;
        align-items: start;
        margin-top: 2%;
        width: 100%;
        transition: transform 0.6s linear;
        gap: 20px;
    }

    .social-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .social-label {
        margin-top: 15px;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        font-size: 17px;
        pointer-events: none;
    }

    .social-item:hover .social-label {
        opacity: 1;
        transform: translateY(0);
    }

    .footer-images img {
        width: 55px !important;
        height: auto !important;
    }

    .footer-images img:hover {
        transform: scale(1.25);
    }

    .footer-images a {
        display: inline-flex;
    }

    .generalTabsContainer {
        margin-top: 20px;
        height: min-content;
        text-align: center;
        flex: 1;
        position: relative;
        z-index: 0;
        width: 90%;
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        width: 100%;
        gap: 3rem;
        margin-top: 0px;
        min-height: 50vh;
    }

    .grid-item {
        width: 100%;
        height: 60%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 5px;
        flex-direction: column;
        position: static;
        transition: transform 0.6s ease-in-out;
    }

    .grid-item:hover {
        transform: scale(1.25);
    }

    .hide-grid-item-state {
        display: none;
    }

    .grid-item:hover>div {
        display: block;
    }

    .grid-item>img {
        width: 80%;
        min-height: 25vh;
        max-height: 25vh;
        object-fit: cover;
        display: block;
        border-radius: 20px;
    }

    .tab-About {
        width: 100%;
        display: flex;
        position: relative;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .aboutSection {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .cardContentAbout {
        margin-top: 2%;
        margin-left: 3%;
        margin-right: 5%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .aboutHeader {
        left: 2%;
        margin-left: 10%;
        margin-right: 10%;
        padding: 2%;
        width: 80%;
        display: flex;
        flex-direction: column;
        background-color: #fefee9;
        border-radius: 10px;
        margin-bottom: 3%;
    }

    .flexHorizontal {
        display: flex;
        flex-direction: row;
        align-content: baseline;
        justify-content: center;
    }

    .aboutItems {
        width: 25vw;
        height: auto;
        display: flex;
        position: relative;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        margin: 3%;
        margin-left: 5%;
        margin-right: 10%;
        padding: 20px;
        border-radius: 8px;
        background-color: #fefee9;
        box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
    }

    .imageContentAbout {
        border-radius: 100%;
        margin: 40px;
        border: 1px solid #fff;
    }


    .titleSezioneContentAbout {
        font-size: 30px;
        font-weight: bold;
        text-align: center;
    }

    .textContentAbout {
        font-size: 24px;
        text-align: center;
    }

    #textContentPopupAbout {
        white-space: pre-line;
    }

    .textContentAboutDescr {
        font-size: 20px !important;
        text-align: justify;
        background-color: #ddd;
        padding: 5%;
        border-radius: 20px;
    }

    .cardContentPartner {
        display: flex;
        justify-content: center;
        align-content: center;
        margin: 20px auto;
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 90%;
        height: 40%;
        max-height: fit-content;
        background-color: #fefee9;
    }

    .locationDetailContainer {
        display: flex;
        gap: 40px;
        align-items: flex-start;
        justify-content: center;
        width: 80%;
        margin-top: 2%;
    }

    .location-title h3 {
        font-size: 24px;
        margin: 0.5rem 0;
        text-align: center;
    }

    .location-info p {
        font-size: 20px !important;
        margin: 0;
        text-align: center;
    }

    .tab-ExtraServices {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .containerExtraServices {
        width: 90%;
        display: flex;
        flex-direction: column;
    }

    .cardContentExtraServices {
        display: flex;
        justify-content: space-between;
        align-content: center;
        margin: 20px auto;
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 90% !important;
        max-height: fit-content;
        background-color: #fefee9;
    }

    .cardContentExtraServices:nth-child(odd) {
        flex-direction: row-reverse;

    }

    .cardContentExtraServices:nth-child(even) {
        flex-direction: row-reverse;

    }

    .containerMainImageExtra {
        height: 100%;
        width: 50%;
        margin-left: 5%;
        margin-bottom: 2%;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5%;
    }

    .imageContentExtraServices {
        width: 30%;
        height: 70%;
        object-fit: cover;
        border-radius: 20px;
    }



    .textContentExtraServices {
        margin-top: 10px;
        font-size: 24px !important;
        text-align: center;
        overflow: visible;
        margin: auto;
    }

    .previewImages {
        margin: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background-color: #eaeaea;
        padding: 20px;
        border-radius: 20px;
        width: 40%;
        margin-left: 4%;
    }

    .titleSezioneContentExtraServices {
        font-size: 28px;
    }

    .main-image-extra {
        border-radius: 20px;
        object-fit: fill;
        margin-bottom: 5%;
        height: 30vh;
        max-width: 25vw;
        width: 25vw;
    }

    .thumbnail-container {
        width: 100%;
        height: min-content;
        margin-bottom: 1%;
        display: grid;
        grid-template-columns: repeat(3, 0fr);
        justify-content: center;
        gap: 10px;
        border-radius: 20px;
        position: initial;
    }

    .thumbnail {
        width: 9vw;
        height: 12vh;
        cursor: pointer;
        border: 2px solid transparent;
        transition: 0.3s;
        border-radius: 10px;
    }

    .thumbnail:hover {
        border-color: #000;
    }

    .customerServicesDescription {
        display: flex;
        flex-direction: column;
        max-height: 20%;
        overflow: visible;
    }

    .tab-Portfolio {
        width: 100%;
    }

    .portfolio-grid {
        width: 90%;
        margin: 0 auto;
        /* center grid */
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
        align-items: center;
    }

    /* Grid item constraints */
    .portfolio-item {
        min-width: 140px;
        max-width: 220px;
        min-height: 100px;
        max-height: 140px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 auto;
    }

    /* Image normalization */
    .portfolio-image {
        max-width: 400px !important;
        max-height: 100%;
        object-fit: contain;
    }

    .direct-wrapper {
        display: flex;
        gap: 30px;
        margin-top: 20px;
        flex-direction: row !important;
    }

    .direct-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3%;
        width: 30%;
        background: #fff5e0;
        padding: 20px;
        border-radius: 10px;
        border: 1px solid #ddd;
        font-size: 0.9rem;
        box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 3%;
    }

    .direct-left h3 {
        margin-bottom: 5%;
    }

    .direct-form {
        width: 70%;
    }

    .direct-form .form-group {
        margin-bottom: 15px;
    }

    .direct-form input,
    .direct-form textarea {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #aaa;
        background: #fff;
        font-size: 0.95rem;
    }

    .form-group label {
        font-weight: bold;
        margin-bottom: 6px;
        display: block;
    }

    .form-buttons.three-buttons {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .popup-container {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fffaf0;
        padding: 30px;
        border-radius: 12px;
        border: 1px solid #ccc;
        width: 40% !important;
        max-width: 50% !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        font-family: Arial, sans-serif;
    }

    .locationDetailFormLayoutMobile {
        flex-direction: row !important;
    }

    .dati-generali-box {
        background-color: rgba(128, 128, 128, 0.3);
        width: 80% !important;
        margin: 40px auto;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        color: #333;
        display: block;
    }

    .dati-generali-box p {
        margin-bottom: 16px;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .imageWrapperDetail {
        width: 100%;
        max-width: 900px;
        height: 600px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        background-color: #000;
    }

    .search-container {
        display: block;
        position: relative;
        width: 100%;
        border-radius: 8px;
    }

    .filter-fullscreen {
        display: none;
    }

    .mobile-filters-menu {
        display: none !important;
    }

    .m-t-3p {
        margin-top: 3%;
    }

    .risultatiLabel {
        width: 100%;
        text-align: start;
        font-size: 20px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .risultatiLabelMobile, .sortingLabelMobile {
        display: none !important;
    }
}

@media (max-width: 430px) {

    .homeDivsItem img {
        width: 90%;
    }

    .popup-box {
        max-width: 95% !important;
        padding: 14px;
    }

    .popup-box-privacy {
        max-width: 98%;
        padding: 14px;
    }

    .filter-open-btn {
        width: 65%;
    }

    .mobileMiInteressaButton {
        width: 80%;
    }
}