/*
	Theme Name: Contract Barcelona
	Description: Tema creat per al web de Contract Barcelona.
	Author: Clara Esclusa

	Version: 1.0.0

	Template: oceanwp

	Text Domain: contract
*/

/*
	Colors
	- Principal: #355E69
*/

*:focus {
    outline: none !important;
}

.home #main::before {
    content: "";
    position: absolute;
    left: 120px;
    top: 50px;
    z-index: 1000;
    background: url(/wp-content/themes/contractbarcelona/images/Contract-Barcelona-logo-blanc.png) no-repeat center center;
    width: 200px;
    height: 50px;
    display: block;
    background-size: contain;
}

@media (max-width:767px) {
    .home #main::before {
        left: 30px;
        top: 100px;
    }
}

#site-logo #site-logo-inner a img {
    height: 40px;
}

.background-image-page-header {
    min-height: 400px !important
}

.background-image-page-header::before {
    content: "";
    display: block;
    width: 2px;
    height: 40%;
    position: absolute;
    background: #fff;
    top: 0;
    left: calc(50% - 1px);
    z-index: 100;
}

@media (max-width: 480px) {
    .background-image-page-header {
        min-height: 300px !important
    }
}

.page-header-title::after {
    content: "";
    width: 100px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    visibility: visible;
    left: calc(50% - 50px);
}


.titol-linia h2::before {
	display: block;
	content: '';
	position: absolute;
	width: 60px;
	height: 2px;
	background: rgba(21, 21, 21, 1);
	top: 10px;
	left: -75px;
}

.img-col {
	max-width: 400px;
}

.img-quadre {
    display: inline-block
}

.img-quadre {
    position: relative;
    padding: 0 0 15px 15px
}

.img-quadre .elementor-image:before {
    border: 2px solid #151515;
    bottom: 0;
    content: "";
    display: inline-block;
    left: 0;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: -1;
}



#llista-projectes .portfolio-entries .portfolio-filters li a {
    background-color: #fff;
    color: #000;
}

#llista-projectes .portfolio-entries .portfolio-filters li.active a,
#llista-projectes .portfolio-entries .portfolio-filters li a:hover {
    background-color: #000;
    color: #fff;
}


@media (min-width: 768px) {
    
    div#portfolio-86 {
        display: flex;
        margin-left: 50px;
    }

    ul.portfolio-filters.filter-pos-left {
        display: block;
        width: 20%;
    }

    #llista-projectes .portfolio-entries .portfolio-filters li {
        position: relative;
    }

    #llista-projectes .portfolio-entries .portfolio-filters li.active::before {
        content: "";
        width: 45px;
        height: 2px;
        background-color: #000;
        position: absolute;
        top: 10px;
        left: -50px;
    }
    
    #llista-projectes .portfolio-entries .portfolio-filters li a {
        background-color: #fff;
        color: #000;
    }

    #llista-projectes .portfolio-entries .portfolio-filters li.active a,
    #llista-projectes .portfolio-entries .portfolio-filters li a:hover {
        background-color: #fff;
        color: #000;
    }

    .portfolio-wrap {
        width: 70%;
    } 

    #llista-projectes .portfolio-entries .portfolio-filters li {
        text-align: left;
        margin: 0;
    }
}
  
@media (min-width: 1100px) {
    
    ul.portfolio-filters.filter-pos-left {
        width: 15%;
    }
    
    .portfolio-wrap {
        width: 80%;
    }

}

@media (min-width: 1024px) {
    .seccio-columna > .elementor-container {
        padding-left: 40% !important;
    }
}




.bgColor {
    background-color: #355E69;
}


.home .hero:before {
    content: "";
    display: block;
    position: absolute;
    width: 200px;
    height: 150px;
    left: 50px;
    background: url(http://contract-barcelona.local/wp-content/uploads/2020/03/Contract-Barcelona-logo.svg) no-repeat center center
}

.icones-especialitats .columns {
    display: flex;
    margin-top: 0;
}

.icones-especialitats .columns .wpb_single_image {
    display: flex;
    flex-direction: column-reverse;
    padding: 25px;
}

.icones-especialitats .columns .wpb_single_image h2 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .5px
}

div#footer-inner {
    border-top: 1px solid #ccc;
}



.elementor-nav-menu a {
	flex-wrap: wrap;
	justify-content: center;
}
.elementor-nav-menu a > i {
	width: 100%;
	font-size: 32px;
	text-align: center;
}
.elementor-nav-menu .sub-arrow {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: rotate(-90deg);
	padding: 0;
}
.sub-menu.elementor-nav-menu--dropdown {
	box-shadow: 0 0px 0px 1px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.08), inset 10px -20px 20px -10px rgba(0,0,0,0.08);
	background: #fff;
	height: 100vh !important;
	position: fixed !important;
	top: 0 !important;
	left: 100px !important;
	margin: 0 !important;
	overflow-y: auto;
}


#barra-lateral-home .elementor-column {
    width: 50%;
}

#barra-lateral-home .oew-off-canvas-button {
    height: 70px;
}

#barra-lateral-home .oew-off-canvas-button a.button {
    width: 70px;
    height: 100%;
    line-height: 35px
}

#barra-lateral-home .oew-button-icon i {
    height: 2px; 
    width: 100%;
    background-color: #000;
    display: inline-block;
    position: relative;
    
}

#barra-lateral-home .oew-button-icon i:before,
#barra-lateral-home .oew-button-icon i:after {
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    content: "";
    background-color: #000;
}

#barra-lateral-home .oew-button-icon i:before {
    top: -7px;
    transition-timing-function: ease;
    transition-duration: .15s;
    transition-property: transform,opacity;
}

#barra-lateral-home .oew-button-icon i:after {
    top: 7px;
    transition-timing-function: ease;
    transition-duration: .15s;
    transition-property: transform,opacity;
}

#barra-lateral-home .oew-off-canvas-button:hover .oew-button-icon i:before {
    transform: translateY(-2px)
}

#barra-lateral-home .oew-off-canvas-button:hover .oew-button-icon i:after {
    transform: translateY(2px)
}

@media (min-width: 768px) {

    .home #main {
        padding-left: 70px
    }

    .home #footer-bottom-inner {
        padding-left: 70px;
    }
    
    #barra-lateral-home {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99999;
        width: 70px;
        height: 100vh;
        background-color: #fff;
        border-right: 1px solid #ddd
    }
    
    #barra-lateral-home .elementor-row {
        flex-direction: column;
    }
    
    #barra-lateral-home .elementor-column {
        width: 100%;
    }

    #barra-lateral-home .oew-off-canvas-button {
        border-bottom: 1px solid #ddd;
    }
    
    #barra-lateral-home .oew-off-canvas-button a.button {
        width: 100%;
    }

    .oew-off-canvas-wrap, .oew-off-canvas-wrap .oew-off-canvas-overlay {
        left: 70px !important;
    }

}

/*
    Menu offcanvas
*/


    .sidr.left .sidr-inner {
        padding: 35px;
    }

    #sidr-id-menu-menu-principal::before {
        content: '';
        display: block;
        height: 80px;
        width: 166px;
        background: url(https://contractbarcelona.cat/wp-content/uploads/2020/03/Contract-Barcelona-logo-blanc.svg) no-repeat left top;
        margin-top: 10px;
    }

    #menu-offcanvas,
    #sidr-id-menu-menu-principal {
        list-style-type: none;
        text-transform: uppercase;
        font-size: 18px;
        letter-spacing: 1px;
        margin-left: 0;
    }

    #menu-offcanvas li,
    #sidr-id-menu-menu-principal li {
        position: relative;
    }

    #menu-offcanvas > li > a,
    #sidr-id-menu-menu-principal > li > a {
        padding: 8px 20px 8px 0;
        display: inline-block;
        width:100%
    }

    #menu-offcanvas > li.menu-item:hover::after,
    #sidr-id-menu-menu-principal > li.sidr-class-menu-item:hover::after,
    #sidr-id-menu-menu-principal > li.sidr-class-current-menu-item::after {
        content: "";
        width: 20px;
        height: 1px;
        background-color: white;
        display: block;
        position: absolute;
        left: -25px;
        top: 25px
    }

    #menu-offcanvas .menu-item-home,
    #sidr-id-menu-menu-principal .sidr-class-menu-item-home {
        display: none
    }

    #menu-offcanvas .wpml-ls-first-item,
    #sidr-id-menu-menu-principal .sidr-class-wpml-ls-first-item {
    	margin-top: 30px;
    }

    #menu-offcanvas .wpml-ls-first-item::before,
    #sidr-id-menu-menu-principal .sidr-class-wpml-ls-first-item::before {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: #666;
        position: absolute;
        top: -15px;
        left: 0;
    }

/*
    Footer 
*/

#footer-bottom-inner {
    width: 100%
}