/*
 Theme Name:   Fabrica Child Theme
 Theme URI:    http://fabrica.ancorathemes.com/
 Description:  Fabrica Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com/
 Template:     fabrica
 Version:      1.0.0
 Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
 Text Domain:  fabrica
*/


/* =Theme customization starts here
------------------------------------------------------------ */

:root {
  --color-blue: #4968bf;
  --color-green: rgb(74, 188, 136);
  --color-dark-blue: #0b0d26;
}

.menu_hover_zoom_line .sc_layouts_menu_nav > li.current-menu-item > a, .menu_hover_zoom_line .sc_layouts_menu_nav > li.current-menu-parent > a,
.sc_layouts_row_type_compact .sc_layouts_item a:not(.sc_button):not([class*=button]), [class*=scheme_].sc_layouts_row_type_compact .sc_layouts_item a:not(.sc_button):not([class*=button]),
.menu_hover_zoom_line .sc_layouts_menu_nav > li.current-menu-ancestor > a{
    color:#646464 !important;
    font-weight: 400;
}

.menu_hover_zoom_line .sc_layouts_menu_nav > li:not(.menu-collapse) > a:after{
    background-color: var(--color-blue) !important;
}

.header_position_over .top_panel.top_panel_custom_header-tesifer-blog{
    position: static;
    background-color: #fff !important;


}

#menu-blog{
    position: absolute;
    width: 100%;

    #logo{
        z-index: 9999;
    }
}

/* Disabilita la sillabazione automatica in tutto il sito */
* {
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.top_panel_custom_header-portfolio-title{
    h1{
        color: var(--color-blue) !important;
    }
}

.portfolio_page_details_item_title{
    color: var(--color-green) !important;
}

.portfolio_page_content.entry-content :is(h1, h2, h3, h4, h5, h6) {
    color: var(--color-blue) !important;
}

.portfolio_page_details_wrap.sc_column_fixed .portfolio_page_context_title{
    font-size: var(--theme-font-h3_font-size);
    color: var(--color-blue) !important;
    margin-top: 0;
}

.blog .content h2 a{
    color: var(--color-blue) !important;
}

.blog .content h2{
    margin-bottom:15px;
}

.header_position_over .top_panel.top_panel_custom_header-portfolio-title{
    position: static;
}

#prodotti-box .sc_layouts_column_icons_position_left{
    padding:0 0 30px 0;

    .elementor-image-box-content{
        padding:0 15px
    }
}

.cpt_services-template .page_content_wrap{
    padding-top:0; 
    padding-bottom: 0;

    .content_wrap{
        width:100%;

        .content{
            padding:0;

            .column-about-sx > .elementor-widget-wrap {
                justify-content: center;
                
                   & > .elementor-element {
                    max-width: 100%;
                   }
            }

            ul li{
                position: relative;
                list-style: none;
                line-height: 1.3;
                margin: 0 0 5px 0;

                &::before{
                    content: '';
                    position: absolute;
                    left: -24px;
                    top: 5px;
                    width: 20px;
                    height: 20px;
                    background-image: url(img/check.png);
                    background-size: contain;
                    background-repeat: no-repeat;
                }
            }
        }
    }

    h2.sc_item_title_tag + .sc_item_descr{
        margin-top:10px;   
    }

    .sc_title_descr h3{
        margin-top:0;
        font-weight: 400;
        color: var(--color-green) !important;
    }
}

.sc_layouts_row_type_compact .sc_layouts_menu_mobile_button_burger .sc_layouts_item_icon:before{
    color: #000000;
}

.elementor-button{
    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    padding: 18px 30px;
    @media screen and (max-width: 768px) {  
        padding:10px 15px
    }
}

.sc_blogger_lay_portfolio.sc_blogger_lay_portfolio_style_15 .sc_blogger_item .sc_blogger_item_body .post_featured .post_info_bc:before{
    background-color: rgb(18, 178, 147,0.8) !important;
}

.sc_services_default .sc_services_item .sc_services_item_title, .sc_services_default .sc_services_item .sc_services_item_title a{
    color: var(--color-blue) !important;
    font-size:1.2rem;
}

.sc_services_default .sc_services_item_info {
    padding: 2.9em 1em;
}
.sc_services_accent .sc_services_item .sc_services_item_title, .sc_services_accent .sc_services_item .sc_services_item_title a{
    color: var(--color-blue);
}

.sc_services_accent .sc_services_item:not(.with_image):hover,
.scroll_to_top_style_default{
    background-color: var(--color-blue);
}

.scroll_to_top_style_default:hover,
.wpcf7 .wpcf7-submit-style .wpcf7-submit:hover{
    background-color: var(--color-green) !important;
}

.page_content_wrap, .page_content_wrap .content{
    background-color: #ffffff !important;
}

.white h1.sc_layouts_title_caption {
    color: #fff !important;
    max-width: 1200px;
}
.single_style_style-1 .page_content_wrap{
    padding-bottom:0;
}

.wpcf7 .wpcf7-submit-style .wpcf7-submit{
    background-color: var(--color-blue) !important;
    padding: 13px 30px 13px 30px !important;
}

.wpcf7 .wpcf7-submit-style .submit-style-in{
    display: none !important;
}

header [class^=icon-]:before, header [class*=" icon-"]:before{
    color: #515050;
}

.header_position_over.single_style_style-1 .page_content_wrap>.content_wrap{
    padding-top:50px;
}

.custom-background .content_wrap > .content, .background_banner_wrap ~ .content_wrap > .content{
    padding: 0 4rem;
}

footer ul{
    padding-left:0;
}

#footer .widget_custom_links ul>li.custom_links_list_item .custom_links_list_item_title,
#footer a, #footer p{
        color:#fff !important;
        font-size:13px;
 }

#copyright a:hover{
    color:#fff ;
  }

 #footer .footer-text p{
    margin-bottom:16px;
 }

 #footer .widget_custom_links ul.custom_links_list .custom_links_list_item + .custom_links_list_item {
    margin-top: 6px !important;
}

#footer #links ul li{
    margin-bottom:22px;
    list-style: none;
}

#footer #links ul li a{
    position: relative !important;
    display: inline-block;
}

#footer #links ul li a:after{
    content: "";
    display: block;
    position: relative;
    z-index: 1;
    top: auto;
    bottom: -5px;
    left: 0;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    width: 0;
    height: 1px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background-color: var(--theme-color-text_dark);
}

#footer #links ul li a:hover:after{
    width: 100%;
}

#footer #links ul li a:hover{
    margin-left:9px;
}

.column-about-sx > .elementor-widget-wrap {
    justify-content: center;
    
       & > .elementor-element {
        max-width: 500px
    }
}

/* Sfondo .testata-inner da campo ACF "testata" (--portfolio-testata-bg iniettata da functions.php sul singolo portfolio) */
.cpt_portfolio-template-default .testata-inner {
    background-image: var(--portfolio-testata-bg, none) !important;

}

form .column-1_2 br{
    display: none;
}

/* Container del campo file per dargli spazio */
.column-1_1 .wpcf7-file {
    display: block;
    margin-top: 10px;
}

/* Stilizzazione del bottone di caricamento */
input[type="file"]::file-selector-button {
    background-color: var(--color-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0px; /* Leggermente arrotondato come da immagine */
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: none;
    margin-right: 15px;
}

/* Overlay sfumato sopra l’immagine di sfondo: bianco in alto → trasparente entro 100px */
.testata-inner {
    position: relative;
}

.testata-inner::before,.post_header_wrap_style_style-1.with_featured_image:before,#testata::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 140px;
    z-index: 1;
    pointer-events: none;
    z-index: 99;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.5) 70%,
        rgba(255, 255, 255, 0) 100%
    );
}

#testata .e-con-inner{
    z-index: 99;
}

.post_header_wrap_style_style-1.with_featured_image:after,#testata::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
         to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}

.testata-inner > * {
    position: relative;
    z-index: 2;
}
@media screen and (max-width: 1279px) {
    #menu-mobile {
        z-index: 9999;
    }
}

@media screen and (min-width: 1650px) and (max-width: 1920px) {
    #testata {
        height: 850px;
    }

    #testata  #slogan{
        padding-block-end: 4%;
     }
}

@media screen and (min-width: 1921px) {
    #testata{
        height: 90vh;
    }

    #testata #slogan{
        padding-block-end: 6%;
    }

}

@media (max-width: 1023px) {
    .cpt_portfolio-template-default ,
    .blog .page_content_wrap {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .cpt_portfolio-template-default.custom-background .content_wrap>.content{
        padding:20px 0;
    }
}


@media screen and (max-width: 767px) {
    #testata .e-con-inner {
         margin-left: 20px !important; 
         flex-direction: column; 
    }

    .column-about-sx > .elementor-widget-wrap{
        justify-content: flex-start;
    }

    body:not(.expand_content):not(.body_style_fullwide):not(.body_style_fullscreen) [class*=content_wrap]>.content {
        margin-bottom: 0;
        padding: 0 !important;
    }

    .blog.custom-background .content_wrap>.content{
        padding-left:0;
        padding-right:0;
    }
}

@media (max-width: 479px) {
    .menu_mobile.menu_mobile_fullscreen .menu_mobile_header_wrap {
        padding: 24px var(--theme-var-page_extra);
    }

    .cpt_portfolio-template-default.custom-background .content_wrap>.content {
        padding: 10px 0;
    }

    .menu_mobile.menu_mobile_fullscreen .sc_layouts_logo img {
        max-height: 30px;
    }

    .cpt_portfolio-template-default .page_content_wrap,
    .blog .page_content_wrap {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .header_position_over.single_style_style-1 .page_content_wrap>.content_wrap {
        padding-top: 30px !important;
    }
}

