.vh10 {
    height: 10vh;
}
.vh25 {
    height: 25vh;
}
.vh50 {
    height: 50vh;
}
.vh75 {
    height: 75vh;
}
.vh33 {
    height: 33vh;
}
.vh66 {
    height: 66vh;
}

img {
    display: block;
    width: 100%;
}

.sizeIcona-1, .sizeIcona-2, .sizeIcona-3, .sizeIcona-4, .sizeIcona-5 {
    width: fit-content;
    display: inline-block;
}

.sizeIcona-1 i {
    font-size: 1em;
}

.sizeIcona-1 img {
    width: 1em;
}

.sizeIcona-2 i {
    font-size: 2em;
}

.sizeIcona-2 img {
    width: 2em;
}

.sizeIcona-3 i {
    font-size: 3em;
}

.sizeIcona-3 img {
    width: 3em;
}

.sizeIcona-4 i {
    font-size: 4em;
}

.sizeIcona-4 img {
    width: 4em;
}

.sizeIcona-5 i {
    font-size: 5em;
}

.sizeIcona-5 img {
    width: 5em;
}

.opacity-10 {
    opacity: .10 !important;
}

.max-800 {
    max-width: 800px;
}

div.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 2;
}

    div.mobile-menu.open {
        width: 100%;
        height: 100vh;
    }

div.mobile-circle {
    border-radius: 50%;
    position: absolute;
    width: 284vmax;
    height: 284vmax;
    top: -142vmax;
    left: -142vmax;
    transform: scale(0);
    transform-origin: 50% 50%;
    transition: transform .5s cubic-bezier(0.755, 0.050, 0.855, 0.060);
    will-change: transform;
}

    div.mobile-circle.expand {
        transform: scale(1);
    }

.mobile-navmenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 5;
    transform: scale(0);
    transition: transform .5s cubic-bezier(0.755, 0.050, 0.855, 0.060);
    will-change: transform;
    list-style-type: none;
    padding-left: 0;
}

.mobile-menu.omopen .mobile-navmenu {
    transform: scale(1);
}

.mobile-navmenu-item {
    opacity: 0;
    transition: all .5s cubic-bezier(0.755, 0.050, 0.855, 0.060);
}

.mobile-menu.omopen .mobile-navmenu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-navmenu-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.bodylocked {
    overflow-y: scroll;
    pointer-events: none;
}

    .bodylocked > * {
        pointer-events: auto;
    }

    /* Nasconde visivamente la scrollbar ma mantiene lo spazio */
    .bodylocked::-webkit-scrollbar {
        background: transparent;
    }

    .bodylocked::-webkit-scrollbar-thumb {
        background: transparent;
    }


.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.carousel {
    max-width: 900px; 
    margin: 0 auto;
}

.carousel-caption {
    width: 100%;
    left: 0;
    background-color: rgba(0,0,0,0.7);
}

.carousel-caption h5 {
    color: white;
}

.carousel .carousel-inner {
    overflow: hidden;
}

.carousel-item {
    overflow: hidden;
}


.menuBurger {
    width: 30px;
    height: 30px;
    position: relative;
    transition: .1s;
    margin: 10px 10px;
    cursor: pointer;
    display: inline-block;
    z-index: 10000;
}

#checkMenuBurger { opacity: 0;}

    .menuBurger span {
        width: 5px;
        height: 5px;
        background-color: #fff;
        display: block;
        border-radius: 50%;
        position: absolute;
    }

    .menuBurger:hover span {
        transform: scale(1.2);
        transition: 350ms cubic-bezier(.8, .5, .2, 1.4);
    }

    .menuBurger span:nth-child(2) {
        left: 0;
        top: 0;
    }

    .menuBurger span:nth-child(3) {
        left: 12px;
        top: 0;
    }

    .menuBurger span:nth-child(4) {
        right: 0;
        top: 0;
    }

    .menuBurger span:nth-child(5) {
        left: 0;
        top: 12px;
    }

    .menuBurger span:nth-child(6) {
        position: absolute;
        left: 12px;
        top: 12px;
    }

    .menuBurger span:nth-child(7) {
        right: 0px;
        top: 12px;
    }

    .menuBurger span:nth-child(8) {
        left: 0px;
        bottom: 0px;
    }

    .menuBurger span:nth-child(9) {
        position: absolute;
        left: 12px;
        bottom: 0px;
    }

    .menuBurger span:nth-child(10) {
        right: 0px;
        bottom: 0px;
    }

    .menuBurger.open {
        transform: rotate(180deg);
        cursor: pointer;
        transition: .2s cubic-bezier(.8, .5, .2, 1.4);
    }

        .menuBurger.open span {
            border-radius: 50%;
            transition-delay: 200ms;
            transition: .5s cubic-bezier(.8, .5, .2, 1.4);
        }

            .menuBurger.open span:nth-child(3) {
                left: 6px;
                top: 6px;
            }

            .menuBurger.open span:nth-child(5) {
                left: 6px;
                top: 18px;
            }

            .menuBurger.open span:nth-child(7) {
                right: 6px;
                top: 6px;
            }

            .menuBurger.open span:nth-child(9) {
                left: 18px;
                bottom: 6px;
            }

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}

.masonry-item {
    background-color: #eee;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

    .masonry-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .masonry-item:hover img {
        transform: scale(1.05);
    }

    .masonry-item.Wide {
        grid-column: span 2;
    }

    .masonry-item.Tall {
        grid-row: span 2;
    }

#lightboxContent {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    bottom: 2em;
}

    #lightboxContent h5 {
        color: white;
        margin-bottom: 0.5rem;
    }

    #lightboxContent p {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 0;
    }

.lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

    .lightbox-spinner .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 0.3rem;
    }

#lightboxImage {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    #lightboxImage.loaded {
        opacity: 1;
    }

.card .card-img-top {
    /*max-height: 250px;*/
}

.newsletter-form {
    max-width: 600px;
}

/* Slimsy Picture - responsive */
slimsy-picture {
    display: block;
    width: 100%;
    height: 100%;
}

slimsy-picture picture {
    display: block;
    width: 100%;
    height: 100%;
}

slimsy-picture picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Importante: sovrascrive width/height inline */
    max-width: 100% !important;
    height: auto !important;
}

/* Per mantenere aspect-ratio nei container con altezza fissa */
.position-absolute slimsy-picture picture img,
.vh10 slimsy-picture picture img,
.vh25 slimsy-picture picture img,
.vh33 slimsy-picture picture img,
.vh50 slimsy-picture picture img,
.vh66 slimsy-picture picture img,
.vh75 slimsy-picture picture img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
}

.container-logo-partner {
    height: 200px;
    overflow: hidden;
    border: 1px dashed #ccc;
}

.container-image-progetti {
    height: 400px;
    overflow:hidden;
}

.testo-categoria {
    color: #c5a059;
    letter-spacing: 2px;
    font-size: 0.9em;
}