﻿/*
 Theme Name:   MUUTU
 Theme URI:    https://www.muutu.fi
 Description:  Digitoimisto Muutu Custom WP
 Author:       Digitoimisto Muutu
 Author URI:   https://www.muutu.fi
 Template:     Divi
 Version:      6.8.0.10
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         responsive-layout
 Text Domain:  divi-child
*/


/*************** Arcic Piling -tyylit ****************/


/* Valitun (eli hiirellä maalatun) tekstin väri. */
::-moz-selection {
   color: #fff;
   background: #026B95;
}
::selection {
   color: #fff;
   background: #026B95;
}
::-webkit-calendar-picker-indicator {
    filter: invert(1);
}
/* Placeholder-väri CF7-lomakkeissa */
::-webkit-input-placeholder {
    color: #fff !important;
    opacity: 1;
}
:-moz-placeholder {
    color: #fff !important;
    opacity: 1;
}
::-moz-placeholder {
    color: #fff !important;
    opacity: 1;
}
:-ms-input-placeholder {
    color: #fff !important;
    opacity: 1;
}

.et_search_form_container input {
    outline-width: 0;
}

/* Valikkopalkin logon vaihto aloitusnäkymässä vs. kiinteä päävalikko */
/*#main-header:not(.et-fixed-header) #logo {
   content: url(/wp-content/uploads/2022/06/fama_logo_white.svg) !important;
   filter: saturate(0) invert(1) brightness(2);
}
#main-header.et-fixed-header #logo {
   content: url(/wp-content/uploads/2022/06/fama_logo.svg) !important;
   filter: saturate(1) invert(0) brightness(1);
}*/

/* Älä salli sivuttaisskrollausta pääsisältöalueessa. */
/*#et-main-area { overflow-x: hidden } */

/* Tee alaotsikko h1:n sisälle span-tagilla. */
h1 span {
   display: block;
   line-height: 1.05;
}

.wpcf7-form-control-wrap:not([data-name="hcap-cf7"]) {
   margin-right: .3rem;
}

table, td {
   border: none !important;
}
td {
   padding: 0 !important;
}

.wpcf7-list-item {
   margin-left: 0;
}
.wpcf7-spinner {
   filter: invert(1) brightness(2);
   background-color: #293b45 !important;   
}
.wpcf7-list-item.first input[type="checkbox"] {
   margin-left: 0;
}
.wpcf7-list-item:not(.first) input[type="checkbox"] {
   margin-left: 1rem;
}
.wpcf7-form table, .wpcf7-form td {
   border: none !important;
}
.wpcf7-form td {
   width: 50%;
   vertical-align: top;
}
.wpcf7-form p {
  text-align: left !important;
  color: #fff;
}
.wpcf7-form td:first-child {
   padding: 0 2rem 0 0;
}
.wpcf7-form td:last-child {
   padding: 0;
}
.wpcf7-form .tietosuojaselostelinkki {
   color: #333;
   text-decoration: underline;
   text-decoration-color: rgba(51, 51, 51, .45);
}

/* hCaptcha-bannerin tuunaukset. */
.wpcf7-form-control.h-captcha {
   display: block;
}

/* Alavalikko leveämmäksi */
/*#top-menu .sub-menu {
   width:  360px !important;
}
#top-menu li li a {
   width: 100%;
}
.sub-menu li {
   min-width: 180px;
}*/

/* Valikon hover-palkit */
/*#top-menu > .current-menu-item > a::before, #top-menu > .current_page_item > a::before, #top-menu > .current-menu-parent > a::before {
   content: "";
   position: absolute;
   z-index: 2 !important;
   left: 0 !important;
   right: 0 !important;
}
#top-menu > li > a:before, #top-menu > .current-menu-parent > a:before {
   content: "";
   position: absolute;
   z-index: -2;
   left: 0;
   right: 100%;
   background: #FFD239;
   -webkit-transition-property: right;
   transition-property: right;
   -webkit-transition-duration: 0.3s;
   transition-duration: 0.3s;
   -webkit-transition-timing-function: ease-out;
   transition-timing-function: ease-out;
}
#main-header #top-menu *, #main-header #top-menu > li a:before {
   transition: all .3s linear !important;
}
#main-header:not(.et-fixed-header) #top-menu > li a:before {
   bottom: 2.2rem;
}
#main-header.et-fixed-header #top-menu > li a:before, #main-header.et-fixed-header #top-menu > .current-menu-parent > a:before {
   bottom: 1.2rem;
}
#main-header #top-menu > li a:before {
   height: 4px;
}
#top-menu > li a:hover {
   opacity: 1 !important;
   color: #000;
}
#top-menu > li a:hover:before {
   right: 0;
}
#top-menu > li li a:before {
   bottom: 8%;
}*/


/* Tee yläpalkin sisään- ja ulosfeidauksesta pehmeämpää */
#main-header, #main-header li a, .et_pb_toggle_title, .et_pb_toggle_title::before {
   transition: all .3s linear !important;
   /* Palkin varjo pois. */
/* box-shadow: none; */
}

/* Yläpalkin taustan sumennus */
/* #main-header.et-fixed-header {
   backdrop-filter: saturate(180%) blur(13px);
} */
/* Muuta alavalikon yläreunan viivan kokoa ja tyyliä */
/*.nav li ul {
   border-top: 8px solid #2ea3f2;
}*/


/* Siirrä pääkuva valikon alle. */
#et-main-area {
   position: absolute;
   width: 100%;
   top: 0;  
}
#main-header:not(.et-fixed-header) {
/*   background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0.5) 100%); */
   background-color: transparent;
   -moz-box-shadow: 0 1px 0 rgba(0,0,0,0);
   -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0);
   box-shadow: 0 1px 0 rgba(0,0,0,0);
}
/* Päävalikon teksti valkoiseksi kuvan päällä ainoastaan. */
#main-header:not(.et-fixed-header) #top-menu > li > a {
   color: #fff !important;
}

/* Valikkopalkin logo piiloon aloitusnäkymässä */
/* #main-header:not(.et-fixed-header) .logo_container a {
   pointer-events: none;
}
#main-header:not(.et-fixed-header) #logo {
   opacity: 0;
}
#main-header.et-fixed-header #logo {
   opacity: 1;
} */

/* Copyright-footerin tuunausta */
#main-footer, #footer-bottom {
   background-color: transparent;
}
#main-footer {
   position: relative;
}
#footer-bottom {
   position: absolute;
   bottom: 0;
   z-index: 999;
   width: 100%;
}
#footer-bottom .copyright, #footer-bottom .copyright a {
  color: #ddd !important;
}

/* Piilota gallerian kuvalaskuri- ja tekstipalkki */
.mfp-bottom-bar { display: none }

.icon-email::before, .icon-mobile::before {
   margin-right: .5rem;
}

.et_pb_text_inner a, .wpcf7 p a {
   text-underline-offset: 2px;
}


/* Responsiivisuussäädöt */


/* Vain desktop */
@media only screen and (min-width: 981px)  {
   .home h1 span {
      font-size: 20%;
   }
   body:not(.home) h1 span {
      font-size: 40%;
   }   
   small {
      font-size: 70%;
   }
   /* Perusyhteyslomakkeen säätöjä */
   .wpcf7-spinner {
      right: 16.8%;
      margin-bottom: -1.3% !important;
      transform: scale(2.1);      
      -webkit-transform:scale(2.1, 2.1);  
   }   
   /* Virheilmoitus hyväksymättömästä tietosuojaselosteesta */
   span[data-name="tietosuojaseloste"] .wpcf7-not-valid-tip {
      display: inline-block;
      position: absolute;
      width: 206px;
      left: 17vw;    
   }  
   /* Esim. ®- ja ™-merkkien sijainnin säätöä.
      Huom: wrappaa ne <small><sup>-tägien sisään. */
   /* sup {
      bottom: .6em;
   }*/   
   /* Disabloi alavalikon päätaso css:llä;
      (katso valikon luokka inspectorilla) */
   /*.menu-item-122 > a {
      pointer-events: none;
   }*/
   /* Kustomoitu hoverväri alavalikossa */
/*   .et_mobile_menu li a:hover, .nav ul li a:hover, .et-fixed-header #top-menu .sub-menu li > a:hover {
      opacity: 1;
      color: #fff !important;
      background-color: #B50508;  
   }   */
   .align_center {
      align-items: center;
      display: flex;
   }
   .align_end {
      align-items: flex-end;
      display: flex;
   }  
   /* Navigaatio keskelle */
   /*#et-top-navigation, #top-menu-nav, #top-menu {
      float: none !important;
      padding-left: 0 !important;
      text-align: center;
   }*/
}

/* Vain mobiili */

/* Puhelinkoot */
@media only screen and (max-width: 980px)  {
   #logo {
      transform: scale(1.4);      
      -webkit-transform:scale(1.4, 1.4);       
   }
   .home h1 span {
      font-size: 29%;
   }
   body:not(.home) h1 span {
      font-size: 58%;
   }
   small {
      font-size: 85%;
      line-height: 120%;
      display: inline-block;
   }
   /* ®- ja ™-merkit mobiilissa. */
   sup {
      bottom: .4em;
   }
   /* Korosta tämänhetkinen sivu valikossa (myös mobiilissa) */
   #mobile_menu .current_page_item > a {
      color: #03A0DF;
   }
   /* Complianz-napit erilleen toisistaan mobiilissa. */
   .cmplz-buttons button {
      margin-bottom: .5rem !important;
      display: block !important;
   }
   .cmplz-link.privacy-statement {
      padding-left: 1rem;
   }     
   /* Perusyhteyslomakkeen säätöjä */
   .wpcf7-spinner {
      right: 29%;
      margin-bottom: -2.2% !important;
      transform: scale(2);      
      -webkit-transform:scale(2, 2);  
   }   
   /* Virheilmoitus hyväksymättömästä tietosuojaselosteesta */
   span[data-name="tietosuojaseloste"] .wpcf7-not-valid-tip {
      display: inline-block;
      position: absolute;
      width: 20vw;
      top: 6vw;
      left: -10vw;
   }   
   td {
      display: block;
   }
   .copyright {
      line-height: 1.2;
      text-align: center;
      padding: 0 10vw;
   }
   .wpcf7-form-control.h-captcha {
      transform: scale(.95);      
      -webkit-transform:scale(.95, .95); 
      margin-left: -2.5%; 
   }
}

/* Mistä leveydestä alaspäin näytetään hampurilaisvalikko.
   Palttiarallaa pienemmästä läppärinäytöstä alaspäin.  */
@media only screen and (max-width: 1280px) {
   #top-menu-nav {
      display: none;
   }
   #et_mobile_nav_menu {
      display: block
   }
}

/* Isot näytöt */
@media only screen and (min-width: 1920px) {
   
}

/* Näillä voi jyrätä mobiilimenun värejä. */

/* Hampurilainen */
#main-header:not(.et-fixed-header) .mobile_menu_bar::before {
   color: #fff !important;
}
#main-header.et-fixed-header .mobile_menu_bar::before {
   color: #03A0DF !important;
}

/* Viiva avatun mobiilivalikon yläreunassa */
.et_mobile_menu {
   border-top: 3px solid #03A0DF;
}

#et_mobile_nav_menu a {
   text-transform: uppercase;
   font-size: 1.1rem !important;
}

/* Vain mobiili; näyttö pystyasennossa */
@media only screen and (max-width: 980px) and (orientation: portrait) {
   
}

/* Vain mobiili; näyttö vaaka-asennossa */
@media only screen and (max-width: 980px) and (orientation: landscape) {
   
}


/********** Arctic Piling -tyylit päättyvät **********/


/* Mobile menu scrollable fix - cmon Divi WHY U NO 2019??*/
.et_mobile_menu {
  overflow-y:scroll!important;
  max-height:80vh!important;
  -overflow-scrolling:touch!important;
  -webkit-overflow-scrolling:touch!important;
}

/* SlideFix */
.mfp-title {display:none}

/* Piilota navigaation hakufunktio*/
#et_top_search {display:none!important}

/* GradientOverlay */
.gradient-overlay:before {
   content:"";
   position:absolute;
   z-index:1;
   background:inherit;
   top:0;
   bottom:0;
   width:100%;
}
.gradient-overlay .et_pb_row {
   z-index:2 !important;
}
.gradient-overlay {
   background-color: transparent;
}
/* GradientOverlay - END */

/* Easy icons - add these to links with e.g. class="icon-email" etc. */
.icon-email::before{font-family: 'ETmodules';content: '\e076';} /* Envelope */
.icon-phone::before{font-family: 'ETmodules';content: '\e090';} /* Phone */
.icon-mobile::before{font-family: 'ETmodules';content: '\e00b';} /* Mobile */
.icon-marker::before{font-family: 'ETmodules';content: '\e081';} /* Marker */
.icon-clock::before{font-family: 'ETmodules';content: '\e06b';} /* Clock */
/* Easy icons - END */

/* Services box-shadow + hover */
.services{
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	transition: all 100ms ease-out 0s;
}

.services:hover{
	box-shadow: 0 6px 9px rgba(0, 0, 0, 0.09);
}

/* Lisää sulkunappi haitareihin. */
.et_pb_accordion_item.et_pb_toggle_open .et_pb_toggle_title:before {
   display: block;
   content: "\e04f";
}

/* Mistä leveydestä alaspäin näytetään hampurilaisvalikko. */
@media only screen and (max-width: 1280px) {
   #top-menu-nav {
      display: none;
   }
   #et_mobile_nav_menu {
      display: block
   }
}

@media only screen and (max-device-width : 980px)  {
    /* Navigaatio seuraa mobiilissa */
   #main-header {
      position:fixed!important;
   }
   /* Mobile menu close icon */
   .mobile_nav.opened .mobile_menu_bar:before {
      content: '\4d';
      -webkit-transition: 0.3s;
      transition: 0.3s;
   }
}

/* Lightbox-näkymän sulkurasti hiukan kirkkaammaksi. */
.mfp-close {
	opacity: .6 !important;
}
.mfp-close:hover {
	opacity: 1 !important;
}
