.md-title {
    font-size: 99px;
}

/* ---- Mobile fix: carosello "I nostri clienti" + pull-to-refresh ---- */
html,
body {
    overscroll-behavior-y: auto;
}

@media (max-width: 768px) {

    .nayla-dynamic-carousel.mobile-native-scroll {
        overflow: visible !important;
    }

    .nayla-dynamic-carousel.mobile-native-scroll .carousel--wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        transform: none !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 10px;
        width: 100%;
        max-width: 100%;
    }

    .nayla-dynamic-carousel.mobile-native-scroll .carousel--wrapper::-webkit-scrollbar {
        display: none;
    }

    .nayla-dynamic-carousel.mobile-native-scroll .carousel--item {
        flex: 0 0 85%;
        scroll-snap-align: start;
        margin: 0 !important;
        transform: none !important;
    }
}

#materiali-tabs {
    display: block;
    float: left;
    width: 100%;
}

#materiali-tabs .tab-title-wrap {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    padding: 0 0 16px;
    margin: 0;
    position: relative;
    padding-bottom: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
}

#materiali-tabs .tab-title-wrap.is-dragging {
    cursor: grabbing;
}

#materiali-tabs .tab-title-wrap::-webkit-scrollbar {
    display: none;
}

#materiali-tabs .tab-title {
    flex: 0 0 auto;
    margin-right: 0;
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
    opacity: 0.05;
    transition: opacity .4s ease-out;
    cursor: pointer;
    user-select: none;
    line-height: 1.2;
}

#materiali-tabs .tab-title.active {
    opacity: 1;
}

#materiali-tabs .tab-contents-wrap {
    position: relative;
    width: 100%;
    padding-top: 100px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

#materiali-tabs .tab-contents-wrap::-webkit-scrollbar {
    display: none;
}

#materiali-tabs .tab-contents-wrap::before {
    position: absolute;
    content: '';
    width: 100%;
    left: 0;
    height: 1px;
    background: #191919;
    opacity: .1;
    top: 25px;
}

#materiali-tabs .tab-content {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    opacity: 0.45;
    transition: opacity .4s ease;
    display: block;
}

#materiali-tabs .tab-content.active {
    opacity: 1;
}


/* MOBILE ONLY */
@media (max-width: 768px) {
    .home-title {
        font-size: 40px;
    }

    .footer-text {
        font-size: 25px;
    }

    .footer-bottom-wrapper {
        flex-wrap: wrap;
    }

    .footer-bottom-wrapper>div {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .footer-bottom-wrapper .align-right {
        text-align: left;
    }

    .footer-bottom-wrapper .menu.horizontal {
        flex-wrap: wrap;
    }

    .m-m-10 {
        margin-bottom: 20px;
    }

    .section.fullscreen {
        min-height: 60vh;
    }

    .section.fullscreen .section-background {
        position: relative;
    }

    .section.fullscreen .section-background .single-image img {
        width: 100%;
        height: 60vh;
        object-fit: cover;
    }

    .tab-content {
        flex-wrap: wrap;
    }

    .tab-material-image {
        margin-bottom: 15px;
    }

    .tab-material-image .single-image img {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }

    #materiali-tabs .tab-title-wrap {
        gap: 32px;
        padding-bottom: 12px;
    }

    .mobile-w-100 {
        width: 100%;
    }
}

.bg_white {
    background-color: white;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mb-5 {
    margin-bottom: 5px;
}

#footer {
    background-color: #AA603C !important;
}

.section-fullscreen-menu.active,
#site-navigation.fullscreen_menu.active {
    background-color: #AA603C !important;
}


.nayla-divider {
    background-color: inherit !important;
}

.project-page-header.half-image .project-image {
    opacity: 0.5;
}

/* ==========================================
   PROJECT GALLERY MASONRY
   ========================================== */
.project-gallery-masonry {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.project-gallery-masonry .grid-sizer,
.project-gallery-masonry .gallery-item {
    width: calc(33.333% - 14px);
    box-sizing: border-box;
}

.project-gallery-masonry .gallery-item {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
}

.project-gallery-masonry .gallery-item a {
    display: block;
    position: relative;
    overflow: hidden;
}

.project-gallery-masonry .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-gallery-masonry .gallery-item a:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Overlay on hover */
.project-gallery-masonry .gallery-item a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.project-gallery-masonry .gallery-item a:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* Tablet */
@media (max-width: 1024px) {

    .project-gallery-masonry .grid-sizer,
    .project-gallery-masonry .gallery-item {
        width: calc(50% - 10px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .project-gallery-masonry {
        padding: 0 10px;
    }

    .project-gallery-masonry .grid-sizer,
    .project-gallery-masonry .gallery-item {
        width: 100%;
        margin-bottom: 15px;
    }

    .site-branding {
        padding-right: 35px;
    }
}

/* GLightbox customization */
.glightbox-container .gslide-description {
    background: transparent;
}

.glightbox-container .gslide-title {
    color: #fff;
    font-family: inherit;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.next-project-category,
.next-project-title {
    color: white;
}

/* ==========================================
   PROJECTS MASONRY GRID
   ========================================== */
.projects-masonry-grid {
    width: 100%;
    margin-top: 40px;
}

.projects-masonry-grid .grid-sizer,
.projects-masonry-grid .masonry-item {
    width: calc(33.333% - 14px);
}

.projects-masonry-grid .masonry-item {
    margin-bottom: 20px;
}

.projects-masonry-grid .masonry-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.projects-masonry-grid .masonry-image {
    overflow: hidden;
    border-radius: 4px;
}

.projects-masonry-grid .masonry-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.projects-masonry-grid .masonry-item a:hover .masonry-image img {
    transform: scale(1.03);
}

.projects-masonry-grid .masonry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    text-transform: uppercase;
}

.projects-masonry-grid .masonry-title {
    font-weight: 500;
}

.projects-masonry-grid .masonry-year {
    opacity: 0.6;
}

/* Tablet */
@media (max-width: 1024px) {

    .projects-masonry-grid .grid-sizer,
    .projects-masonry-grid .masonry-item {
        width: calc(50% - 10px);
    }
}

.mt-project-0 {
    margin-top: 0 !important;
}

.pt-project-200 {
    padding-top: 200px !important;
}

.mb-project-0 {
    margin-bottom: 0 !important;
}

/* Mobile */
@media (max-width: 600px) {

    .pt-project-200 {
        padding-top: 100px !important;
    }


    .projects-masonry-grid .grid-sizer,
    .projects-masonry-grid .masonry-item {
        width: 100%;
    }

    .projects-masonry-grid .masonry-item {
        margin-bottom: 25px;
    }

    .wrapper-full {
        padding-left: 15px;
        padding-right: 15px;
    }

    .wrapper {
        margin-left: 15px;
        margin-right: 15px;
    }

    .section-gallery-projects {
        padding-top: 15px;
    }

    .nayla-next-project {
        height: 70vh;
    }

    main {
        padding-top: 15px;
    }

    .site-header .wrapper-full {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-content {
        margin-top: 120px !important;
    }

    .page-material {
        margin-top: 20px !important;
    }

    .page-material .section .wrapper-full {
        margin-bottom: 0px !important;
    }

    .page-contact {
        margin-top: 20px !important;
    }
}

.w-60_p{
    width: 60%;
}

.mb-50{
    margin-bottom: 50px !important;
}

@media only screen and (max-width: 450px) {
    .text-wrapper br {
        display: block;
    }

    .w-60_p {
        width: 100%;
    }

    .pt-0-m{
        padding-top: 0 !important;
    }

    .mb-10-m{
        margin-bottom: 0px !important;
    }

    .client-mb-m{
        margin-bottom: 20px;
    }

    .footer-top-wrapper{
        margin-bottom: 20px;
    }

    .mt-0-m{
        margin-top: 0 !important;
    }

    #materiali-tabs .tab-title{
        font-size: 34px;
    }

    .mt-450-m{
        margin-top: 450px !important;
    }

    .dnone-m{
        display: none !important;
    }
}

.pt-0{
    padding-top: 0 !important;
}

.no-mb{
    margin-bottom: 0 !important;
}


