/*
Theme Name: Solatec Child
Theme URI: http://demo.cmssuperheroes.com/themeforest/solatec/
Description:  Solatec Child Theme
Author: CMSSuperHeroes
Author URI: https://cmssuperheroes.com/
Description: Solatec is a theme run on Elementor Page Builder Plugin
Version: 1.0.0
Requires at least: 4.7
Requires PHP: 5.2.4 or Higher
Tested up to: 5.4.2;
License: ThemeForest
License URI: https://themeforest.net/licenses
Text Domain: solatec-child
Template:     solatec
Tags: One Click Demo Import, Elementor Page Builder, Solar, Renewable and Green Energy WordPress Theme, Solar Power Panels & Wind Turbine WooCommerce Shop, WooCommerce Shop
*/

/* Global */
.mw-365 {
    width: 100% !important;
    max-width: 365px !important;
    min-width: unset !important;
}

/* END Global */


/* Logo */
a.logo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: stretch;
    gap: 5px;
    font-size: 33px;
    font-family: var(--body-font-family);
    line-height: 1.3;
    font-weight: 100;
    user-select: none;
}

a.logo.white {
    color: white;
}

a.logo.black {
    color: black;
    font-weight: 400;
}

a.logo b {
    color: var(--color-accent);
}

a.logo .logo-separator {
    background: var(--color-accent);
    width: 2px;
}

@media (max-width: 600px) {
    .cms-header-logo.col-auto {
        /* max-width: calc(100% - 50px); */
        max-width: 225px;
    }
}

/* END Logo */


/* Footer */
#cms-footer:after {
    display: none;
}

/* END Footer */


/* Menu */
.cms-header-wraps {
    background: white;
    position: sticky;
    top: 0;
}

.cms-header-wraps #cms-header {
    position: sticky !important;
    top: 0 !important;
    display: block !important;
    margin: 0 !important;
}

#cms-header #cms-primary-menu>li:before {
    transform: translateY(10px);
    top: 50%;
    bottom: unset;
    right: unset;
    max-width: 25px;
    width: 0;
    height: 2px;
    transition: width 0.75s ease-in-out;
}

#cms-header #cms-primary-menu>li.current-menu-ancestor:before,
#cms-header #cms-primary-menu>li:hover:before {
    width: 100%;
}

#cms-primary-menu .sub-menu {
    /* width: max-content; */
    width: 275px;
}

#cms-primary-menu>li a {
    color: black;
    border-color: transparent;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    font-size: 17px;
}

.cms-primary-menu .sub-menu a:before {
    display: none;
}

.cms-primary-menu .sub-menu a:hover {
    padding-left: 0;
}

/* END Menu */

/* SLider */
.cms-slick-nav-top-right .cms-slick-arrows,
.cms-slick-nav-bottom-right .cms-slick-arrows {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 15px;
}

.cms-client-item:nth-of-type(3n+1) {
    margin-top: 30px;
}

.cms-client-item:nth-of-type(3n+3) {
    margin-top: 50px;
}

.elementor-section-content-middle .elementor-container .elementor-row {
    justify-content: center;
}

@media (max-width: 1024px) {

    .cms-client-item:nth-of-type(3n+1),
    .cms-client-item:nth-of-type(3n+3) {
        margin-top: 0;
    }
}


@media (max-width: 768px) {

    .cms-slick-nav-top-right .cms-slick-arrows,
    .cms-slick-nav-bottom-right .cms-slick-arrows {
        justify-content: flex-end;
    }
}

/* END SLider */


/* Form */
.cms-cf7 {
    padding: 0;
    box-shadow: unset;
    background: transparent;
}

.cms-cf7 input,
.cms-cf7 textarea {
    background: transparent;
}

.wpcf7 .wpcf7-submit {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    border-radius: 0;
    background: var(--e-global-color-secondary);
    font-family: 'Exo';
    font-weight: 300;
    text-transform: uppercase;
    border: none;
    height: 55px;
    line-height: 0em;
}

.wpcf7 .wpcf7-submit:disabled {
    opacity: 0.75;
}

.form_container [class*="col"] {
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .form_container [class*="col"] {
        margin-bottom: 15px;
    }
}

/* END Form */


/* Contatti */
.contatti-icons .elementor-image {
    background: white;
    padding: 20px;
    border-radius: 100%;
    width: fit-content;
    margin: 0 auto;
}

/* END Contatti */


/* Portfolio */
.portfolio-wraper>div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.portfolio-wraper .simplefilter {
    margin-bottom: 50px;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

.portfolio-wraper .simplefilter li {
    padding: 5px 20px;
    background: unset !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2em;
    position: relative;
}

.portfolio-wraper #all-simplefilter li:after,
.portfolio-wraper .simplefilter li:not(:last-of-type):after {
    content: '/';
    position: absolute;
    right: 0;
    transform: translateX(50%);
    pointer-events: none;
}

.portfolio-wraper .simplefilter li:before {
    content: '';
    width: 30px;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 20px;
    background-color: var(--e-global-color-accent);
    opacity: 0;
    transition: opacity .2s ease;
}

.portfolio-wraper .simplefilter li:hover:before,
.portfolio-wraper .simplefilter li.active:before {
    opacity: 1;
}

.portfolio-wraper .filtr-container {
    overflow: unset;
    margin: 0;
}

.portfolio-wraper .item-desc {
    position: static;
    background: transparent;
    color: black;
    font-weight: 800;
    font-size: 1.25em;
    line-height: 1.2em;
    padding: 10px 15px;
}

/* END Portfolio */

/* Portfolio FIlter */
@media (max-width: 991px) {
    .portfolio-wraper>div:first-child {
        position: fixed;
        top: 130px;
        max-width: calc(100vw - 50px - 15px);
        background: #008136;
        border-radius: 0 0 0 5px;
        width: 300px;
        z-index: 2;
        padding: 15px;
        right: -300px;
        transition: 0.5s ease-in-out;
    }

    .portfolio-wraper>div.open {
        right: 0;
    }

    .portfolio-wraper .simplefilter {
        width: 100%;
        margin: 0;
        align-items: flex-end;
        flex-direction: column;
        align-content: flex-end;
    }

    .portfolio-wraper>div {
        flex-wrap: wrap;
    }

    .portfolio-wraper #all-simplefilter li:after {
        display: none;
    }

    .portfolio-wraper .simplefilter li {
        color: white !important;
    }

    .portfolio-wraper .simplefilter li:after {
        display: none;
    }

    .portfolio-wraper .simplefilter li:before {
        background: white;
        left: unset;
        right: 20px;
    }

    .portfolio-wraper>div:first-child:after {
        content: "\f536";
        font-family: 'dashicons';
        position: absolute;
        top: 0;
        right: 100%;
        width: 50px;
        height: 50px;
        background: #008136;
        border-radius: 5px 0 0 5px;
        color: white;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
        font-size: 2em;
    }

    .portfolio-wraper>div.open:after {
        content: "\f335";
    }
}

/* END Portfolio FIlter */

@media (max-width: 500px) {
    body .elementor-widget-heading .elementor-heading-title.elementor-size-xxl {
        font-size: 45px;
    }
}



/* CUSTOM RULE */

@media (min-width: 768px) {
	.lg-object.lg-image{
		margin-top:50px;
	}
}

@media (max-width: 768px) {
    .mobile-table {
        border: 0;
    }
    tr.headings {
        display: none;
    }
    tr.single-row td {
        display: block;
        border: 0;
    }
    tr.single-row td:before {
        content: attr(data-th) ': ';
        font-weight: bold;
    }
    tr.single-row {
        display: block;
        border: 1px solid gray;
        margin-bottom: 15px;
    }
}