/*
Theme Name: FFSistemi_site
Theme URI: https://www.ffsistemi.it
Author:
Author URI:
Description: Company website
Vesion: 2.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://wwww.gnu.org/licenses/gpl-2.0.html
Text Domain:
This theme, like WordPeess, is licensed under the GPL.
*/

body,
html{
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*,*:before, *:after{
    box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6,p,ol,ul{
    margin: 0;
    padding: 0;
}
ol,ul{
    list-style-type: none;
}
img{
    height: auto;
}


/* ! ---------------------------- Base ---------------------------- ! */
body{
    font-family: lato, system-ui, "Helvetica Neue", Arial, sans-serif;
    background: var(--bodyBG);
}

h1,h2,h3,h4,h5,h6,p,ol,ul{
    margin-bottom: 15px;
}
h1{font-size: 60px; line-height: 1; font-weight: 800; color: var (--headlineColor);}
h2{font-size: 40px; line-height: 1.3; font-weight: 800; color: var(--headlineColor);}
h3{font-size: 30px; line-height: 1.3; font-weight: 800; color: var(--headlineColor);}
h4{font-size: 25px; line-height: 1.3; font-weight: 800; color: var(--headlineColor);}
h5{font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--paragraphColor);}
h6{font-size: 15px; line-height: 1.3; font-weight: 800; color: var(--paragraphColor);}
p{
    color: var(--paragraphColor);
    font-size: 17px;
}

.justify-cont{
    text-align: justify !important;
}

.img-res{
    width: 100%;
    height: auto;
}
.mb-1{margin-bottom: 20px;}
.mb-2{margin-bottom: 40px;}

@media (max-width: 768px) {
    h1{font-size: 40px;}
    h2{font-size: 30px;}
    h3{font-size: 25px;}
}

a{
    text-decoration: none;
    color: #4fc4cf;
}
p{line-height: 1.5;}
.single p{font-size: 18px; line-height: 1.7;}

.li{
    margin-left: 20px !important;
}

.eplus-wrapper li{
    color: var(--paragraphColor);
}

.col-1-servizi-offerti, 
.col-2-servizi-offerti, 
.col-3-servizi-offerti,
.col-4-servizi-offerti{
    background: var(--colBG);
    width: 400px;
    height: auto;
    border-radius: 10px;
    padding: 20px 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.col-1, .col-2, .col-3, .col-4{
    background: var(--colBG);
    height: auto;
    border-radius: 10px;
    padding: 20px 20px;
}

.tip-lav-1 img, .tip-lav-2 img, .tip-lav-3 img, .tip-lav-4 img{
    border-radius: 10px !important;
}

.col-scegliere-noi-1, .col-scegliere-noi-2, .col-scegliere-noi-3,
.col-scegliere-noi-4, .col-scegliere-noi-5, .col-scegliere-noi-6{
    background: var(--colBG);
    width: 400px;
    height: auto;
    border-radius: 10px;
    padding: 20px 20px;
    margin-top: 15px;
}

.col-cont{
    background: var(--colBG);
    padding: 20px 10px;
    border-radius: 10px !important;
}

.center-div{
    text-align: center !important;
}

@media (max-width: 820px) {
    .col-1-servizi-offerti{
        margin-top: 50px;
    }

    .col-serv-off-gen{
        display: flex !important;
        width: 100% !important;
    }

    .col-1-servizi-offerti, 
    .col-2-servizi-offerti, 
    .col-3-servizi-offerti,
    .col-4-servizi-offerti{
        flex: 1 !important;
        padding: 10px 10px;
    }

/*    .col-scegliere-noi-gen-1, 
    .col-scegliere-noi-gen-2{
        margin-bottom: 0;
    }*/
    
 /*   .col-home-gen-1,
    .col-home-gen-2{
        margin-bottom: 1.75em !important;
    }*/

    .col-1, .col-2, .col-3, .col-4{
        padding: 10px 10px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .tip-lav-1 img, .tip-lav-2 img, .tip-lav-3 img, .tip-lav-4 img{
        display: none;
    }

    .tw{
        color: white !important;
    }
    .tb{
        color: #000 !important;
    }

    .col-1{
        background: url("https://www.ffsistemi.it/wp-content/uploads/2022/02/sis_automazioni_mobile.png")  !important;
    }
    .col-2{
        background-image: url("https://www.ffsistemi.it/wp-content/uploads/2022/02/sis_mt-bt_mobile.png") !important;
    }
    .col-3{
        background-image: url("https://www.ffsistemi.it/wp-content/uploads/2022/02/sis_scada_mobile.png") !important;
    }
    .col-4{
        background-image: url("https://www.ffsistemi.it/wp-content/uploads/2022/02/sol_soft_mobile.png") !important;
    }

    .col-1 p, .col-2 p, .col-3 p, .col-4 p{
        text-align: center !important;
    }
    .center-content {
        display: flex;
        justify-content: center !important;
    }

    .center-div{
        text-align: center !important;
    }

    h2.center-content{
        text-align: center !important;
    }

    .btn-servizi-offerti-chi-siamo{
        margin-bottom: 50px;
    }

    .hiddenMob{
        display: none;
    }

    .mapsMobile{
        width: 250px;
        height: 200px;
    }

    .col-cont{
        background: transparent;
    }

    .col-cont-1, .col-cont-2, .col-cont-3{
        background: var(--colBG);
        padding: 20px 10px;
        border-radius: 10px !important;
    }

}

/* ! ---------------------------- Layout ---------------------------- ! */
.container, article{
    margin: 10px;
    padding: 10px;
}

.container{
    max-width: 800px;
    margin: 0 auto;
}

.page .container{
    max-width: 1200px;
}

/* ! ---------------------------- Header ---------------------------- ! */
.header{
    top: 10px;
    z-index: 100;
    position: fixed;
    display: flex;
    justify-content: space-between;
    background: var(--headerBG);
    padding: 5px;
    border-radius: 10px;
    /* margin: 5px; */
    left: 2%;
    right: 2%;
    /*Per creare l'opacità sotto all'header*/
    box-shadow: 0 5px 10px rgba(0,0,0,.5);
    align-items: center;
}

.menu-items{
    margin:0 10px !important;
}
.menu-items ul {
    display: flex;
    align-items: start;
    list-style-type: none;
}

.menu-items li {
      padding: 5px 0;
}

.menu li a {
    padding: 10px;
    display: block;
    color: var(--menuItemColor);
}

.menu-items a{
    position: relative;
    display: block;
    padding: 4px 0;
    color: var(--menuHoverColor);;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
}

.menu-items a:not(.evi > a)::after {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--menuHoverColor);;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}
  
.menu-items a:not(.evi > a):hover {
    color: var(--menuHoverColor);;
}

.menu-items a:not(.evi > a):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ! Il primo (.menu-items.. ecc) si riferisce al menu nel header  */
.menu-items .current_page_item a:not(.evi > a){
    color: var(--menuHoverColor);
    border-bottom: 2px solid var(--menuHoverColor) !important;
}

.menu-items .current_page_item a:is(.evi > a){
    background: #225DC6 !important; 
}

.logo{
    z-index: 2;
    display: inline-block;
    margin-left: 10px;
}

.menu li{ display: inline-block;}
/* Per mettere il padding ci vuole il display: block */
.menu li.evi a {
    background: #6CA1FF;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    padding: 10px 20px;
}
.menu li.evi a:hover{ background: #225DC6; }

.wp-block-button__link:hover{ background:#225DC6 !important; }

.wp-block-navigation ul{
    font-size: 17px !important;
}

@media (max-width: 820px) {
    .logo{
        width: 100%;
        text-align: center;
    }
    .header{
        top: 5px;
        display: block;
    }
    .menu ul{
        overflow-x: scroll;
        white-space: nowrap;
    }

    .menu ul::-webkit-scrollbar {
        display: none;
    }

    .header{
        transition: top 0.2s ease-in-out;
    }

    .nav-up {
        top: -300px;
    }

    .menu li a{
        padding: 5px 5px;
        margin: 0px 0px;
    }

    .menu ul{
        text-align:center;
    }

}

/* ! ---------------------------- Hero ---------------------------- ! */
.hero{
    padding: 20px;
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    width: 100%;
    align-items: center;
    background-size: cover;
    overflow: hidden;
}

.hero:after{
    content: ' ';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0; left: 0;
    background: #000;
    opacity: 0.4;
}

.hero__content{
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    margin-top: 80px;
    padding: 30px;
    z-index: 1;
    position: relative;
}

.hero--small{
    height: 300px;
    text-align: center;
}

.hero h1{
    color: whitesmoke;
    margin: 0 auto;
    padding: 10px 10px; }
.hero h5{ 
    /* color: whitesmoke; */
    padding: 10px 10px; }
/* .page .hero h1{padding: 250px;} */
/* .single .hero { display: none;} */

.hero404{
    padding: 20px;
    text-align: center;
    background-color: transparent;
    background-size: cover;
    position: relative;
    height: 20vh;
    display: flex; 
    width: 100%; 
    align-items: center;
    background-size: cover;
    overflow: hidden;
}

/* ! ---------------------------- Blocks ---------------------------- ! */
.panel-info{
    margin-top: 100px;
}

.panel-info .wp-block-media-text__media{
    background: var(--colBG);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.panel-info .wp-block-media-text__media img{
    margin-bottom: -60px;
    border-radius: 10px;
}

.post-img{
    background: var(--colBG);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 60px;
}
.post-img img{
    margin-bottom: -60px;
    border-radius: 10px;
}


/* ! ---------------------------- Footer ---------------------------- ! */
.footer{
    background: var(--footerBG);
    padding: 30px 10px;
    text-align: center;
}
.headlineColor{ color: #fffffe; }
.paragraphColor{ color: #ddd6d6; }
.linkColor{ color: #225DC6; }

.padd{
    padding-top: 30px;
}

/* ! Grid */
.grid{
    display: flex;
    max-width: 1350px;
    margin: 0 auto;
}

.grid .col{
    width: 100%;   
    padding: 10px 10px;
    margin: 0 auto;
}

.coll{
    margin-top: 15px !important;
}

@media (max-width: 768px) {
    .grid{ 
      flex-wrap: wrap; 
    }
    
    /* Nascondo il menu nel footer*/
    /* .menu-footer {
        display: none;
    } */

    .grid .col{
        margin-top: 30px;
    }

    .coll{
        margin-top: 80px;
    }
}

.dark-light-mode-butt{
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.contact_butt{
    position: fixed;
    bottom: 55px;
    right: 10px;
}

.color-mode__btn{
    background-color: transparent;
    border: none;
}

/* Any element with the class "light--hidden" will be hidden when the site is set to Light Mode */
/* :root [color-mode="light"] */
.light--hidden {
    display: none;
}
    
/* Any element with the class "dark--hidden" will be hidden when the site is set to Dark Mode */
/* :root [color-mode="dark"] */
.dark--hidden {
    display: none;
}

/* ----------- Dark mode manuale ------------- */
/* Color for light mode of website */
/* :root [color-mode="light"] { */
:root{
    --headerBG: #ffffff;
    --bodyBG: #fffffe;
    --footerBG: #001E53;
    --colBG: #F3F3F3 !important;  

    --headlineColor: #181818;
    --paragraphColor: #2e2e2e;
    --menuItemColor: #000;
    --menuHoverColor: #225DC6;

    --formsLabelColor: #fffffe;
    --borderFormsLabColor: #D9D4CA;

    --ballsSlideShow: #000D25;

    --darkLightHeroFirstBalls: #FFFFFF;
}

/* Color for dark mode of website */
/* :root[color-mode="dark"]{ */
.dark-mode{
    --headerBG: #1C1C1C;
    --bodyBG: #1D1E20;
    --footerBG:#000D25;
    --colBG: #282A2A !important;  

    --headlineColor: #D9D4CA;
    --paragraphColor: #ddd6d6;
    --menuItemColor: #DDD6D6;
    --menuHoverColor: #6CA1FF;

    --formsLabelColor: #16161a;
    --borderFormsLabColor: #181818;

    --ballsSlideShow: #F3F3F3;

    --darkLightHeroFirstBalls: #000000;
}

@media (prefers-color-scheme: dark) {
    .carousel .one, .carousel .two, .carousel .three,
    .panel-info .wp-block-media-text__media img,
    .tip-lav-1 img, .tip-lav-2 img, .tip-lav-3 img, .tip-lav-4 img,
    .wp-block-media-text.is-image-fill .wp-block-media-text__media{
        opacity: .75;
        transition: opacity .5s ease-in-out;
    }

    .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_image{
        opacity: .80;
        transition: opacity .5s ease-in-out;
    }
}
  /*********************************************************************/
  
.slide a {
    text-decoration: none;
	color: inherit;
}
	
.slide-btn {
	display: none;
}

.carousel {
	position: relative;
	width: 100%;
	height: 65vh;
	overflow: hidden;
}

.carousel h1{
    position: relative;
    top: 40%;
    transform: translateY(-50%);
    text-align: center;
    color: #000421;
	font-size: 10vmin;
    white-space: normal;
	text-shadow: 1vmin 1vmin rgba(0,0,0,0.1);
}

.carousel h6{
    position: relative;
    top: 40%;
    transform: translateY(-50%);
    text-align: center;
    color: #000421;
	font-size: 4vmin;
    white-space: normal;
    padding: 0 20px;
  }

.slide {
	float: left;
	height: 100%;
	width: 0;
	transition: width .3s linear;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
}
	
.slide > * {
	transition: transform .15s linear;
	transform: scale(0);
}
	
.labels {
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
}

.labels label {
	display: inline-block;
	background-color: transparent;
	width: 25px;
    height: 25px;
	border-radius: 25px;
	margin: .5vmin 2vmin;
	border: 3px solid var(--darkLightHeroFirstBalls);
}
	
.carousel .one,
.carousel .two,
.carousel .three{
/* .carousel .four, */
/* .carousel .five { */
	background-position: center center;
	background-size: cover;
}
	
.carousel .one {
	background-image: url(https://www.ffsistemi.it/wp-content/uploads/2022/02/carousel_one_light.png);
}
.carousel .two {
	background-image: url(https://www.ffsistemi.it/wp-content/uploads/2022/02/carousel_two_light-1.png);
}
.carousel .three {
	background-image: url(https://www.ffsistemi.it/wp-content/uploads/2022/02/carousel_three_light.png);
}
/* .carousel .four {
	background-image: url(https://picsum.photos/id/43/1920/810);
}
.carousel .five {
	background-image: url(https://picsum.photos/id/44/1920/810);
	} */

#slide-btn-1:checked ~ .one,
#slide-btn-2:checked ~ .two,
#slide-btn-3:checked ~ .three {
/* #slide-btn-4:checked ~ .four, */
/* #slide-btn-5:checked ~ .five { */
	width: 100%;
}

#slide-btn-1:checked ~ .one > *,
#slide-btn-2:checked ~ .two > *,
#slide-btn-3:checked ~ .three > * {
/* #slide-btn-4:checked ~ .four > *, */
/* #slide-btn-5:checked ~ .five > * { */
    transform: scale(1);
}
	
#slide-btn-1:checked ~ .labels label[for="slide-btn-1"],
#slide-btn-2:checked ~ .labels label[for="slide-btn-2"],
#slide-btn-3:checked ~ .labels label[for="slide-btn-3"] {
/* #slide-btn-4:checked ~ .labels label[for="slide-btn-4"], */
/* #slide-btn-5:checked ~ .labels label[for="slide-btn-5"] { */
	background-color: var(--darkLightHeroFirstBalls);
}

/********* FORM EMAIL *********/
    /*Colori sopra label*/
    .wpforms-field-label{
        color: var(--headlineColor);
    }

    /*Colori sotto label*/
    .wpforms-field-limit-text,
    .wpforms-field-sublabel{
        color: var(--paragraphColor);
        padding-left: 5px;
    }

    .wpforms-required-label{
        color: var(--headlineColor) !important;
        font-size: 20px !important;
    }

    /* Colori Label Forms*/
    #wpforms-851-field_0,
    #wpforms-851-field_1,
    #wpforms-851-field_1-secondary,
    #wpforms-851-field_2,
    #wpforms-851-field_3,
    #wpforms-851-field_4
    {
        font-family: lato, system-ui, "Helvetica Neue", Arial, sans-serif !important;
        border-color: var(--borderFormsLabColor);
        background: var(--formsLabelColor);
        border-radius: 10px;
    }

    div.wpforms-container-full .wpforms-form input[type=text],
    div.wpforms-container-full .wpforms-form input[type=email],
    div.wpforms-container-full .wpforms-form input[type=number],
    div.wpforms-container-full .wpforms-form textarea{
        color: var(--menuItemColor);
    }

    #wpforms-851-field_1-error, 
    #wpforms-851-field_0-error, 
    #wpforms-851-field_2-error{
        color: #cf2e2e;
        font-size: 14px;
        margin-left: 10px;
    }

    .contact-form-block{
        background: var(--colBG);
        border-radius: 10px;
        padding: 10px 20px;
    }

    @media (max-width: 768px) {
      .contact-form-block{
          padding: 5px 10px;
      }

      #wpforms-851-field_1-error, 
      #wpforms-851-field_0-error, 
      #wpforms-851-field_2-error{
        text-align: center;
      }
    }

    .wpforms-submit{
        background: #6CA1FF !important;
        color: white !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
        border-radius: 5px !important;
        padding: 10px 20px !important;
    }

    .wpforms-submit:hover{ 
        background: #225DC6 !important;
    }

    .wpforms-submit-container{
        display: flex;
        justify-content: center !important;
    }

    .wpforms-submit{
        padding: 15px 50px !important;
    }

    .wpforms-confirmation-container-full{
        font-family: lato, system-ui, "Helvetica Neue", Arial, sans-serif !important;
        font-size: 20px !important;
        border: 0px !important;
        margin: auto;
        text-align: center !important;
        background-color: transparent !important;
    }

    div.wpforms-container-full {
        margin-bottom: 0 !important;
    }
    
    #wpforms-field-limit-text-851-3, #wpforms-field-limit-text-851-2{
        display: none;
    }


/* **** FLEXBOX **** */
    .flex-container {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        height: 100%;
        justify-content: center; /*Center horiz*/
        align-items: stretch;     /*Center vert */
        flex-direction: row;
        text-align: center;
        gap: 30px;
    }

    @media (max-width: 768px) {
        .flex-container{
            flex-direction: column;
        }
    }

    .item1{
        display: flex;

        flex-direction: column;
        /* justify-content: center;    */
        align-items: center;   
    }

    .item1:first-child, 
    .item1:last-child {
        background-color: var(--colBG);
        border-radius: 10px ;
        padding: 20px 20px;
        flex: 1;                   
    }

    .wp-block-navigation__container{
        flex-direction: column;
        gap: 20px !important;
    }


    /* *** JETPACK BALLS SLIDESHOW *** */
    .wp-block-jetpack-slideshow .wp-block-jetpack-slideshow_pagination.swiper-pagination-bullets .swiper-pagination-bullet{
        background: var(--ballsSlideShow) !important;
        color: var(--ballsSlideShow) !important;
    }

    .space-btw-sep{
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /****************** Privacy Policy *****************/
    .custom-list-pp{
        line-height: 1.5;
    }

    .toggle-item-cont-mod{
        padding: 20px;
    }

    .p-toggle-title{
        margin-bottom: 5px;
    }
    .p-toggle-desc{
        margin-bottom: 25px;
    }

    /* Style the buttons that are used to open and close the accordion panel */
    .accordion {
        background-color: #6CA1FF;
        color: white;
        border-radius: 10px;
        cursor: pointer;
        padding: 20px;
        width: 100%;
        text-align: left;
        border: none;
        outline: none;
        margin-top: 10px;
        transition: 0.5s;
    }
  
    /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
    .active, .accordion:hover {
        background-color: var(--menuHoverColor);
    }
  
    /* Style the accordion panel. Note: hidden by default */
    .panel {
        margin-top: 10px;
        padding: 0 20px;
        border-radius: 10px;
        background-color: var(--colBG);
        color: var(--paragraphColor);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .accordion:after {
        content: url(https://www.ffsistemi.it/wp-content/uploads/2022/02/plus.svg); /* Unicode character for "plus" sign (+) */
        font-size: 13px;
        color: white;
        float: right;
        margin-left: 5px;
    }
      
    .active:after {
        content: url(https://www.ffsistemi.it/wp-content/uploads/2022/02/minus.svg); /* character for "minus" sign (-) */
    }

    @media (max-width: 768px) {
        .p-toggle-desc{
            text-align: justify !important;
        }
    }
    
    /*Modifica estetica switc lingua*/
    #trp-floater-ls.trp-bottom-left {
        left: 1% !important;
    }
    
    @media (prefers-color-scheme: dark) {
        #trp-floater-ls.trp-color-dark{
            background: rgb(214,214,214) !important;
            background: linear-gradient(0deg, rgba(214,214,214,1) 0%, rgba(250,250,250,1) 100%) !important;
        }
        
        .trp-color-dark #trp-floater-ls-current-language a,
        .trp-color-dark #trp-floater-ls-language-list a {
            color: #000000 !important;
        }
        
        #trp-floater-ls-language-list a:hover {
            color: #FFFFFF !important;
            background-color: #656565 !important;
}
    }
    
    .page-id-1334 header, .page-id-1334 footer {
        display: none !important;
    }