﻿/*
 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
*/


/**************** Matpek-tyylit ****************/


body { background-color: #080f04; }

/* Valitun (eli hiirellä maalatun) tekstin väri. */
::-moz-selection {
   color: #fff;
   background: #003844;
}
::selection {
   color: #fff;
   background: #003844;
}
/* Placeholder-väri CF7-lomakkeissa */
/*::-webkit-input-placeholder {
    color: #000 !important;
    opacity: 1;
}
:-moz-placeholder {
    color: #000 !important;
    opacity: 1;
}
::-moz-placeholder {
    color: #000 !important;
    opacity: 1;
}
:-ms-input-placeholder {
    color: #000 !important;
    opacity: 1;
} */


/* Valikkopalkin logon vaihto aloitusnäkymässä vs. kiinteä päävalikko */
/* #main-header:not(.et-fixed-header) #logo {
   content: url(/wp-content/uploads/2023/10/White-logo-no-background.svg) !important;
}
#main-header.et-fixed-header #logo {
   content: url(/wp-content/uploads/2023/10/Color-logo-no-background.svg) !important;
} */

/* Ä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;
   font-family: 'Alegreya Sans',Helvetica,Arial,Lucida,sans-serif;
   font-weight: 700;
   text-shadow: 1px 1px 8px #1B1725DB;
}

.wpcf7-form-control-wrap {
   margin-right: .3rem;
}

/*.wpcf7-list-item {
   margin-left: 0;
}
.wpcf7-spinner {
   filter: invert(1) brightness(2);
   position: absolute;
   right: 11%;
   scale: 2.1;
   margin-top: 1rem;   
   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;
}
.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);
}*/

/* Kätke reCAPTCHA-lätkä muualla kuin yhteyslomakkeessa.
   Huom: vaatii myös koodinpätkän scripts.js:ään.  */
.grecaptcha-badge {
   opacity: 0;
   z-index: 9999999999;
}

/* Alavalikko leveämmäksi */
/*#top-menu .sub-menu {
   width:  360px !important;
}
#top-menu li li a {
   width: 100%;
}*/

/* Valikon hover-palkit */
/*#top-menu > .current-menu-item > a::before,
#top-menu > .current_page_item > a::before {
   content: "";
   position: absolute;
   z-index: 2;
   left: 0;
   right: 0;
}
#top-menu > li > a:before {
   content: "";
   position: absolute;
   z-index: -2;
   left: 0;
   right: 100%;
   background: #fff;
   -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.et-fixed-header #top-menu > li a:before {
   bottom: .9rem;
}
#main-header:not(.et-fixed-header) #top-menu > li a:before {
   bottom: 1.6rem;
}
#main-header #top-menu > li a:before {
   height: 4px;
}
#top-menu > li a:hover {
   opacity: 1 !important;
   color: #fff;
}
#top-menu > li a:hover:before {
   right: 0;
}
#top-menu > li li a:before {
   bottom: 8%;
} */


/* Pääkuvan zoomaus */
.kb-zoomout .et_parallax_bg {
   animation: zoomin 27s forwards;
   -ms-animation: zoomin 27s forwards;
   -webkit-animation: zoomin 27s forwards;
   -o-animation: zoomin 27s forwards;
   -moz-animation: zoomin 27s forwards;
}
@keyframes zoomin{
   0%{
       -ms-transform: scale3d(1.2, 1.2, 1.2) translate3d(0px, 0px, 0px);
       -webkit-transform: scale3d(1.2, 1.2, 1.2) translate3d(0px, 0px, 0px);
       -o-transform: scale3d(1.2, 1.2, 1.2) translate3d(0px, 0px, 0px);
       -moz-transform: scale3d(1.2, 1.2, 1.2) translate3d(0px, 0px, 0px);
       transform: scale3d(1.2, 1.2, 1.2) translate3d(0px, 0px, 0px);
       animation-timing-function: ease-out;
   }

   100%{
       -ms-transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
       -webkit-transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
       -o-transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
       -moz-transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
       transform: scale3d(1, 1, 1) translate3d(0px, 0px, 0px);
   }
}

/* 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 gre*/
#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-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);
}

/* Valikkopalkin logo piiloon aloitusnäkymässä */
.home #main-header:not(.et-fixed-header) .logo_container a {
   pointer-events: none;
}
.home #main-header:not(.et-fixed-header) #logo {
   opacity: 0;
}
.home #main-header.et-fixed-header #logo {
   opacity: 1;
}

/* Gallerian sivunumerointi piiloon */
.mfp-bottom-bar { display: none !important }

/* 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 {
  color: #aaa !important;
}


/* Responsiivisuussäädöt */


/* Vain desktop */
@media only screen and (min-width: 981px)  {
   h1 span {
      font-size: 1.2rem;
      line-height: 1.8em;   
   }
   .home h1 span {
      margin-top: -2.6rem;
   }
   small {
      font-size: 70%;
   }
   /* Varjo valikkoteksteille vain aloitusnäkymässä */
   #main-header:not(.et-fixed-header) li > a {
      text-shadow: 1px 1px 8px #1B1725DB;   
   }   
   /* Virheilmoitus hyväksymättömästä tietosuojaselosteesta */
   span[data-name="tietosuojaseloste"] .wpcf7-not-valid-tip {
      display: inline-block;
      position: absolute;
      width: 206px;
      left: 17vw;    
   }  
   /* Navigaatio keskelle */
   /* #et-top-navigation, #top-menu-nav, #top-menu {
      float: none !important;
      padding-left: 0 !important;
      text-align: center;
   } */
   /* 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;
   }
   .otsikkosaha {
      width: 48px;
      margin-right: 1rem;
   }
}

/* Vain mobiili */

/* Puhelinkoot */
@media only screen and (max-width: 980px)  {
   #logo {
      transform: scale(1.4);
      margin-left: 1rem;
      margin-top: -.5rem;    
   } 
   h1 span {
      font-size: .9rem;
      line-height: 1.6em;  
   }
   .home h1 span {
      margin-top: -1rem; 
   }
   small {
      font-size: 85%;
   }
   /* ®- ja ™-merkit mobiilissa. */
   sup {
      bottom: .4em;
   }
   /* Korosta tämänhetkinen sivu valikossa (myös mobiilissa) */
   #mobile_menu .current_page_item > a {
      color: #F3DFC1;
   }
   /* Complianz-napit erilleen toisistaan mobiilissa. */
   .cmplz-buttons button {
      margin-bottom: .5rem !important;
      display: block !important;
   }
   .cmplz-link.privacy-statement {
      padding-left: 1rem;
   }     
   /* 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;
   }   
   .copyright {
      line-height: 1.2;
      text-align: center;
      padding: 0 10vw;
   }
   .otsikkosaha {
      margin-right: .7rem;
   }
   .home .otsikkosaha {
      width: 32px;
   }
   body:not(.home) .otsikkosaha {
      width: 24px;
   }
}

/* 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
   }
}

/* Näillä voi jyrätä mobiilimenun värejä. */

/* Hampurilainen */
#main-header .mobile_menu_bar::before {
   color: #fff !important;
}
.et_mobile_menu {
   border-top: 2px solid #fff;
}
#et_mobile_nav_menu a {
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* 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) {
   
}

/* Isot näytöt */
@media only screen and (min-width: 1920px) and (orientation: landscape) {
   #boorilannoite {
      background-position: center top 62%;
   }   
}



/************* Matpek-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;
}
