/* Valitun (eli hiirellä maalatun) tekstin väri. */
::-moz-selection {
   color: #171717;
   background: #ef8621;
}
::selection {
   color: #171717;
   background: #ef8621;
}

/* Palaa ylös napin muotoilu */
.et_pb_scroll_top:before {
   content: "2";
}

/* Valikon hover palkit */
#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before, body.single #menu-item-157 a::before {
   content: "";
   position: absolute;
   z-index: 2;
   left: 0;
   right: 0;
}
#top-menu li * {
   transition: all linear .3s;
}
#top-menu li a {
   font-weight: 900 !important;
   letter-spacing: .05em !important;
}
#top-menu li a:before {
   content: "";
   position: absolute;
   z-index: -2;
   left: 0;
   right: 100%;
   background: #ef8621; /*** Palkin väri ***/
   height: 3px; /*** Palkin koko ***/
   -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:not(.et-fixed-header) #top-menu li a:before {
   bottom: 60%;
}
#main-header.et-fixed-header #top-menu li a:before {
   bottom: 58%;
}
#top-menu li a:hover {
   opacity: 1 !important;
}
#top-menu li a:hover:before {
   right: 0;
}
#top-menu li li a:before {
   bottom: 10%;
}

/*::-webkit-calendar-picker-indicator {
    filter: invert(1);
} */
/* 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/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;
}
/* Ylimääräinen tyhjä pois listoista sisältöalueella. */
#et-main-area ul {
  padding-bottom: 0 !important;
}
.wpcf7-form-control-wrap {
   margin-right: .3rem;
}
.nostot .et_pb_promo {
   transition: all ease-in-out .6s;
}

/*.wpcf7-list-item {
   margin-left: 0 !important;
}
.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;
}
.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;
}*/

/* Muuta alavalikon yläreunan viivan kokoa ja tyyliä */
/*.nav li ul {
   border-top: 8px solid #2ea3f2;
}*/


/* Siirrä pääkuva valikon alle. */
/* html:not(.et-fb-preview--phone, .et-fb-preview--tablet) #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;
}
/* Päävalikon teksti valkoiseksi kuvan päällä ainoastaan. */
/* #main-header:not(.et-fixed-header) #top-menu > li > a {
   color: #fff !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, #footer-bottom .copyright a {
   font-family: Inter, sans-serif;
   color: #ddd !important;
}

/* Piilota gallerian kuvalaskuri- ja tekstipalkki */
.mfp-bottom-bar { display: none }

/* Drag & drop -kentän tuunaukset */
/*.dnd-upload-status .name *, .dnd-upload-status .dnd-upload-image, .dnd-upload-status .dnd-upload-image * {
    color: #fff !important;
    filter: brightness(2);
}
.dnd-upload-status .dnd-icon-remove {
   filter: invert(1);
} */

/* Responsiivisuussäädöt */


/* Tapa etusivun pääkuvan animaatiot mobiilissa ja Safarissa */ 
/* .home.et_mobile_device #paakuva .et_pb_image, .home.et_mobile_device #paakuva .et_pb_text, .home.et_mobile_device .et_pb_blurb, .home.et_mobile_device .et_pb_blurb * {
   opacity: 1 !important;
   -o-transition-property: none!important;
   -moz-transition-property: none!important;
   -webkit-transition-property: none!important;
   transition-property: none!important;
   -o-transform: none!important;
   -moz-transform: none!important;
   -ms-transform: none!important;
   -webkit-transform: none!important;
   transform: none!important;
   -webkit-animation: none!important;
   -moz-animation: none!important;
   -o-animation: none!important;
   animation: none !important;
} */

/* Hakukenttä nopsemmin näkyviin ja poijjes */

/* .et_pb_search_visible.et_pb_no_animation {
    opacity:unset!important;
}
.container.et_search_form_container.et_pb_search_visible {
  animation: fadeInTop 0.2s 1 cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 1;
}
.et_pb_search_form_hidden {
  animation: fadeOutTop 0.2s 1 cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
}
.et_pb_menu_hidden #top-menu,
.et_pb_menu_hidden #et_search_icon:before,
.et_pb_menu_hidden .mobile_menu_bar {
  animation: fadeOutBottom 0.2s 1 cubic-bezier(0.77, 0, 0.175, 1);
}
.et_pb_menu_visible #top-menu,
.et_pb_menu_visible #et_search_icon:before,
.et_pb_menu_visible .mobile_menu_bar {
  animation: fadeInBottom 0.2s 1 cubic-bezier(0.77, 0, 0.175, 1);
} */

/* Etusivun kenburns */
/*.kb-zoomin .et_parallax_bg { 
   animation: zoomin 17s forwards; 
  -ms-animation: zoomin 17s forwards; 
  -webkit-animation: zoomin 17s forwards; 
  -o-animation: zoomin 17s forwards; 
  -moz-animation: zoomin 17s forwards; 
} 

@keyframes zoomin{ 
   0%{ 
       -ms-transform: scale3d(1.0, 1.0, 1.0) translate3d(0,0,0); 
       -webkit-transform: scale3d(1.0, 1.0, 1.0) translate3d(0,0,0); 
       -o-transform: scale3d(1.0, 1.0, 1.0) translate3d(0,0,0); 
       -moz-transform: scale3d(1.0, 1.0, 1.0) translate3d(0,0,0); 
       transform: scale3d(1.0, 1.0, 1.0) translate3d(0,0,0); 
       animation-timing-function: linear; 
   } 
    
   100%{ 
       -ms-transform: scale3d(1.5, 1.5, 1.5) translate3d(0,0,0); 
       -webkit-transform: scale3d(1.5, 1.5, 1.5) translate3d(0,0,0); 
       -o-transform: scale3d(1.5, 1.5, 1.5) translate3d(0,0,0); 
       -moz-transform: scale3d(1.5, 1.5, 1.5) translate3d(0,0,0); 
       transform: scale3d(1.5, 1.5, 1.5) translate3d(0,0,0); 
   } 
} */

/* Fancybox-gallerioiden tuunaus */
.fancy-ico span { 
   border-radius: 0;
   border: none;
   box-shadow: none;
   width: 20px;
   height: 20px;   
}
#fancybox-prev, #fancybox-next {
   position: fixed;
}
#fancybox-next {
   right: 6px;
}
#fancybox-prev {
   left: 6px;
}
#fancybox-prev span::after, #fancybox-next span::after {
   top: 6px;
}
#fancybox-close span::after, #fancybox-close span::before {
   top: 11px;
   left: 4px;
}
.fancy-ico {
   transform: scale(1.32); 
}
#fancybox-close:hover span, #fancybox-next:hover span, #fancybox-prev:hover span {
   transform: none !important;
}
#fancybox-outer {
   box-shadow: 0 0 40px rgba(0,0,0,.16);
   -moz-box-shadow: 0 0 40px rgba(0,0,0,.16);
   -webkit-box-shadow: 0 0 40px rgba(0,0,0,.16);
}
#fancybox-close span::before, #fancybox-close span::after {
   margin-top: -2px;
}

/* Refesivun navikossa Referenssikohteet-valinta oranssiksi */
body.single #menu-item-157 a {
   color: #ef8621 !important;
}


/* Vain desktop */
@media only screen and (min-width: 981px)  {
   /* Yläpalkin taustan sumennus */
   #main-header.et-fixed-header {
      -webkit-backdrop-filter: saturate(180%) blur(13px) !important;
      backdrop-filter: saturate(180%) blur(13px) !important;
   }       
   h1 span {
      line-height: 1.6em;      
   }  
   body:not(.home) h1 span {
      font-size: 1.2rem;
   }
   small {
      font-size: 70%;
   }
   /* Perusyhteyslomakkeen säätöjä */
   .wpcf7-spinner {
      right: 6rem;
      margin-bottom: -.38rem !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: 230px;
      left: 20rem;
      top: 1.54rem; 
   }  
   /* 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;
   }*/
   /* Kavenna välejä valikossa */
   /*#top-menu li {
      padding-right: 14px;
   }*/
   .br_paalle_mobiilissa br {
      display: none;
   }
}

/* Vain mobiili */

/* Puhelinkoot */
@media only screen and (max-width: 980px)  {
   #logo {
      transform: scale(1.2);      
      -webkit-transform:scale(1.2, 1.2);  
   }  
   body:not(.home) #logo {
      opacity: 1 !important;
   }
   /* Yläpalkin taustan sumennus */
   /*#mobile_menu {
      -webkit-backdrop-filter: saturate(180%) blur(13px) !important;     
      backdrop-filter: saturate(180%) blur(13px) !important;
   }*/   
   /* Valikkopalkin logo piiloon aloitusnäkymässä */
   body.home #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;
   }  
   #main-header #logo {
      transition: all ease-in-out .4s;
   }
   h1 span {
      line-height: 1.5em;
   }
   body:not(.home) h1 span {
      font-size: .75rem;
      margin-top: .5rem;
   }   
   small {
      font-size: 85%;
      line-height: 120%;
      display: inline-block;
   }
   /* ®- ja ™-merkit mobiilissa. */
   sup {
      bottom: .4em;
   }
   /* 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: 32%;
      margin-bottom: -2.4% !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;
   }
   .br_pois_mobiilissa br {
      display: none;
   }
/*   .wpcf7-form-control.h-captcha {
      transform: scale(.8);      
      -webkit-transform:scale(.8, .8);  
      margin-left: -12%;
   } */
   /* Vaihda palstojen järjestys mobiilissa */
   .vaihda_mobiilissa_jarjestys {
      display: -webkit-box;
      display: -moz-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-flex-wrap: wrap; /* Safari 6.1+ */
      flex-wrap: wrap;
   }
   .vaihda_mobiilissa_jarjestys .et_pb_column:nth-child(2) {
      -webkit-order: 1;
      order: 1;
   }
   .vaihda_mobiilissa_jarjestys .et_pb_column:nth-child(1) {
      -webkit-order: 2;
      order: 2;
   }   
   /* Galleriatuunaukset */
   #fancybox-outer {
      max-width: 90vw;
   }
   .single-post .gallery .gallery-item, .single-post .gallery .gallery-item a {
      width: 100% !important;
   }   
}

/* Täppärit ja pienet läppärit */
@media only screen and (min-width: 981px) and (max-width: 1280px) {

}


/* 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: #ef8621 !important;
}
/* Viiva avatun mobiilivalikon yläreunassa */
.et_mobile_menu {
   border-top: 3px solid #ef8621;
}
#et_mobile_nav_menu a {
   font-size: .65rem;
   letter-spacing: .12em;
}

/* Korosta tämänhetkinen sivu valikossa myös mobiilissa */
#mobile_menu .current_page_item > a {
/*   text-decoration: underline;
   text-underline-offset: 4px;
   text-decoration-thickness: 3px; */
   color: #ef8621;
}
/* Muut menuvaihtoehdot */
/*#mobile_menu li:not(.current_page_item) > a {
   color: #000 !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) {
   
}