/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* Custom thumbs about us */
.custom-thumbs {
    margin-left: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.custom-thumbs .thumb {
    width: auto;
    height: 100px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    background-size: cover;
    background-position: center;
}

.custom-thumbs .thumb.active {
    opacity: 1;
}

/* Fix mobile menu */
@media all and (max-width: 1024px) {
    li.menu-item:has(.close-btn) {
        height: 0;
        padding: 0 !important;
    }

    .megamenu-shadow {
        display: none !important;
    }
}

/* Fix WPML */
.wpml-ls-legacy-list-horizontal li {
    border: none !important;
}

.wpml-ls-legacy-list-horizontal>ul li a:after {
    content: '/';
    margin-left: 10px;
}

.wpml-ls-legacy-list-horizontal>ul li:last-child a:after {
    content: '';
    margin-left: 0;
}

/* Header */
#header-wrap.scrolled {
    transition: background-color 0.3s, box-shadow 0.3s;
}

#header-wrap.scrolled {
    position: fixed;
    top: 0;
    transition: top 0.3s ease;
    z-index: 30;
    top: -117px;
    animation: slideDown 0.3s ease 0.1s forwards;
}

@keyframes slideDown {
    to {
        top: 0;
    }
}

/* Hotspots */
.imp-tooltip-content {
    border: 4px solid red;
    padding: 0;
}

.imp-tooltip-content:has(.hotspot-celeste) {
    border-color: #508BC8 !important;
}

.imp-tooltip-content:has(.hotspot-fucsia) {
    border-color: #DD2E77 !important;
}

.imp-tooltip-content:has(.hotspot-viola) {
    border-color: #9747FF !important;
}

.imp-tooltip-content h3 {
    font-size: 20px !important;
    text-transform: uppercase !important;
    font-family: 'Inter', sans-serif !important;
    padding: 15px !important;
    font-weight: 400 !important;
}


.hotspot-fucsia {
    color: #DD2E77 !important;
}

.hotspot-celeste {
    color: #508BC8 !important;
}

.hotspot-viola {
    color: #9747FF !important;
}



.imp-tooltip-wrap .imp-tooltip {
    transition-duration: 0.8s !important;
    -webkit-transition-duration: 0.8s !important;

}

.imp-tooltip-content>div {
    padding: 0 !important;
}

.imp-container {
    margin: 0 auto;
}

@keyframes pulse-grow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.imp-object-spot img {
    animation: pulse-grow 1.5s ease-in-out infinite;
}



/* Video player */
.video-navigation {
    cursor: pointer;
}

.video-navigation.active h3 {
    text-decoration: underline;
}

.video-player {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.video-player.active {
    opacity: 1 !important;
    max-height: none !important;
}

/* Popup mobile */
@media all and (max-width: 1024px) {
    .brx-popup .brx-popup-content {
        width: 90% !important;
        height: 90% !important;
    }
}

li[data-script-id="kbmgck"] .brx-submenu-toggle {
    cursor: default !important;
}

/* Hotspot multilingua */
html[lang="it-IT"] .single-machine span.en {
    display: none;
}

html[lang="en-US"] .single-machine span.it {
    display: none;
}