/*
Theme Name: Valo24h - Mekanismi Custom
Theme URI:
Description:
Author: Mekanismi
Author URI:
Version: 1.0

License:
License URI:

*/


/* HTML5 fixes */
div,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
	display: block;
}

*{
  margin:0;
  padding:0;
}

html,body{

}

body {
	background: #fff;
	color: #333;
	text-align: left;
	font:400 17px/1.7 'Roboto',Arial,Helvetica,sans-serif;
}
p{
margin-bottom:15px;
}
h1, h2, h3, h4{
	font:700 2.6em/1 'Roboto',Arial,Helvetica,sans-serif;
	color:#fff;
	margin:0 0 15px;
	word-wrap: break-word;
}
p + h2, p + h3, p + h4{
	margin-top:30px;
}
h1{
/*font-family: "Berkshire Swash";
    font-weight: 400;
    letter-spacing: -2px; */
    text-transform: uppercase;
    font-weight: 900;
}

h2{
	font-size: 2.3em;
    font-weight: 300;
}
h3{
	font-size:1.4em;
	font-weight:700;
    color: #3e3d72;
}

h4{
	font-size:1.25em;
	margin-bottom: 10px;
}
a{
	color:#3E3D72;
	border: none;
    outline: none;
    text-decoration: none;
    -webkit-transition: color 0.5s;
    -o-transition: color 0.5s;
    transition: color 0.5s;
}
p a {
    text-decoration: underline;
}

a:hover{
	color:#f17f11;
}
.columns{
    /*border:1px #ccc dotted;*/
}
a img{
	border:none;
}
#content h1, #content h2, #content h3, #content h4, .linseed h3, #section-223 h3, #section-225 h3, #footer h3, .reseptikuvat a h4{
    color: #3e3d72;
}
#content ul:not(.menu), #content ol{
	margin:10px 0 10px 25px;
}
#content li{
	margin-left:15px;
    margin-bottom: 14px;
}
#content ul.menu li{
    margin-left: 0;
}
li a{
    text-decoration: none;
}
.clear{
	clear:both;
}
.left, .alignleft {float:left;}
.right, .alignright  {float:right;}

.aligncenter{
	display: block;
	margin-left: auto;
	margin-right: auto;
}


/* foundation tweak -> */
.row.full {
  width: 100%;
  max-width: 100%;
}

.text-right{
    text-align: right;
}
.text-left{
    text-align: left;
}
.text-center{
    text-align: center;
}
@media screen and (max-width: 768px){
    .full-768{
        width: 100%;
    }
}
@media screen and (max-width: 480px){
    .xsmall-12{
        width: 100%;
    }
    .xsmall-6{
        width: 50%;
    }
}
table tbody, table tfoot, table thead {
    border:0;
}

/* <- foundation tweak */

.has-tip {
    border-bottom: none;
    font-weight: 300;
    cursor: auto;
}

.padding-right-0{
    padding-right: 0;
}
.padding-left-0{
    padding-left: 0;
}

.columns.padding {
    padding: 0 2rem;
}

img{
	max-width:100%;
	height:auto;
}

blockquote{
    border: 1px solid #ccc;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ccc;
    font-style: italic;
    font-size: 1.4em;
    margin: 50px 0;
}
blockquote *{
    margin: 0;
    font-style: italic;
}

#header{
    background: url() no-repeat 50% 50%;
    background-size: cover;
    padding: 0 0 45%;
    padding: 0 0 85vh;
    max-height: 70vh;
    border-bottom: 10px solid #fff;
    margin-bottom: 50px;
}
.home #header{
    margin-bottom: 0;
    max-height: 100vh;
}
.middle h1,
header + h1{
    font-size: 2.7em;
    background-color: rgba(90,50,23,.4);
    width: 50%;
    display: inline-block;
    padding: 20px;
    text-transform: none;
    line-height: 1.2;
}
header + h1{
    background: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: block;
    color: #3e3d72;
}
.middle h2 {
    background-color: rgba(90,50,23,.4);
    width: 50%;
    display: inline-block;
    padding: 20px 50px;
    text-transform: none;
    line-height: 1.2;
    font-size: 2.7em;
    font-weight: 700;
}
.row.padding{
    padding: 40px 0;
}


.flexcontainer{
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    /*flex-direction: column-reverse;*/
    flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flexbox-direction: row;
    -moz-box-wrap: nowrap;
    -webkit-box-wrap: nowrap;
    -ms-flexbox-wrap: nowrap;
    flex-wrap: nowrap;
    align-items:center;
}
.flexitem{
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}

#top {
    background-color: rgba(255,255,255,.8);
    position: relative;
}
.language {
    display: inline-block;
    float: right;
    padding-right: 30px;
    margin-top: 15px;
}
.language a{
    margin-right: 5px;
}
.language a:hover{
    box-shadow: 0 0 3px 1px #3e3d72;
}
.separator{
    clear: both;
    background: url(img/separator.png) repeat-x 50% 0;
    height: 30px;
    margin-top: -15px;
}
.logo{
    text-align: center;
    display: inline-block;
    position: absolute;
    z-index: 10;
    max-width: 28%;
}
.middle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    text-align: center;
}

#menu-top{
    display:inline-block;
    padding: 10px 0px 10px min(170px, 11.5vw);
    margin-bottom:5px;
    min-width: 45%;

}

.menu{
    margin:0 auto;
    text-align:center;
}
.menu li{
    list-style: none;
    padding:5px 0;
    margin:0;
    display:inline-block;
}
.menu li li{
    font-size: 1em;
}
.menu li:first-child{
    border:none;
}
.menu li a, #menu-top .menu li .menu-label{
    display:inline-block;
    color: #000;
    text-decoration:none;
    margin:0;
    padding:9px 0.7em;
    font-size: 1.1em;
    line-height: 1.3;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}
.menu li a:hover, .menu li.current-menu-ancestor > a{
    color:#3E3D72;
}
.menu li.current-menu-ancestor > a{
    border: 1px solid #bdbdbd;
}
.menu li.current-menu-item > a{
    color:#3E3D72;
    border: 1px solid #333;
}

.menu li > ul {
    display: none;
}
#alamenu a, .ala-alamenu a{
    border: 1px solid #ccc;
}
.single-tuote #alamenu {
    display: none;
}
#alamenu{
    margin: -25px auto 25px;
}
#alamenu li, .ala-alamenu li{
    margin: 3px 5px;

}
.ala-alamenu{
    margin-top: -20px;
}
#alamenu li.current-menu-ancestor a, #alamenu li.current-menu-item a, .ala-alamenu li.current-menu-item a{
    border-color: #ffa454;
}
.menu li a:hover, #alamenu li a:hover{
    background: #3e3d72 !important;
    color: #fff;
}
#archive {
    text-align: left;
}
#content:not(.tuote) > .row:first-child {
    padding-bottom: 60px;
}
.atleast-large #content .menu li, .atleast-large #content .menu li a{
    display: block;
}
.atleast-large #content #alamenu{
    margin-top: 0;
}
.section{
    position: relative;
    padding: 11vh 0 13vh;
    background: #fff;
    text-align: center;
    min-height: 75%;
    min-height: 75vh;
}
.section.stripe {
    padding: 0 0 13vh;
}
.section.background {
    background-size: cover;
    background-position: 50% 50%;
}
.resepti {
    text-align: left;
}
.ainekset {
    background: #3e3d72;
    color: #fff;
    padding: 5% 8%;
    font-weight: 300;
}
.ravintosis p{
    margin-bottom: 1px;
    clear: both;
}
.ainekset strong, .tuote .ravintosis strong{
    display: block;
    float: left;
    clear: both;
    margin-bottom: 1px;
    margin-right: 10px;
    min-width: 100px;
    font-weight: 400;
}
.linkkibox{
    padding: 5% 8%;
    background: #efefe8;
}
.linkkibox a{
    word-wrap: break-word;
}
.resepti#content .columns{
    margin-bottom: 2.5em;
}
.tuote .blue .columns{
    padding-bottom: 30px;
    padding-top: 30px;
}
.atleast-large .tuote .blue{
    padding: 12vh 0;
}
.tuote .blue{
    background: #3E3D72;
    color: #fff;
    padding: 50px 0;
    font-weight: 300;
}
#content.tuote .blue h2,
#content.tuote .blue h3,
#content.tuote .blue h4{
    color: #fff;
}
.tuote .ravintosis strong{
    min-width: 190px;
    font-weight: 300;
}

.atleast-large .tuote .kuva{
    margin-bottom: -100px;
    margin-top: -80px;
    text-align: center;
}
.atleast-large #content.tuote{
    padding-top: 60px;
}

/*Tuotesivu*/

.page-id-281 #alamenu, .page-id-705 #alamenu, .page-id-706 #alamenu, .page-id-1464 #alamenu, .page-id-1523 #alamenu, .page-id-1527 #alamenu {
    display: none;
}

/*Tuoteloop*/

.grid-tuotteet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 40%), 1fr));
    gap: min(2em, 2vw);
    align-content: center;
    margin-bottom: 3em;
}

.grid-tuote h3 {
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5em;
    color: #fff;
}

.grid-tuote {
    padding: 1em;
    transition: all 0.4s ease;
}

.grid-tuote:hover {
    background-color: #3e3d72;
}

#content .grid-tuote:hover h3 {
    color: #fff;
}




#section-221, .Linseed #section-248{
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#3e3d72+0,207cca+0,207cca+0,2989d8+50,ffffff+50 */
    background: #3e3d72;
    background: -moz-linear-gradient(top,  #3e3d72 55%, #ffffff 55%);
    background: -webkit-linear-gradient(top,  #3e3d72 55%,#ffffff 55%);
    background: linear-gradient(to bottom,  #3e3d72 55%,#ffffff 55%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3e3d72', endColorstr='#ffffff',GradientType=0 );
}
.reseptikuvat {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.reseptikuvat a {
    display: block;
    padding: 5px;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.reseptikuvat a:hover {
    box-shadow: 0 0 7px #bbb;
}

.reseptikuvat p {
    font-size: 1.2em;
    margin-top: 5px;
    font-weight: 300;
    line-height: 1.3;
}
.reseptikuvat h4{
    margin-top: 10px;
    font-weight: 300;
}

.reseptikuvat .column {
    margin-bottom: 10px;
}
.kategoriat{
    list-style: none;
    text-align: center;
    margin: 10px 0 40px 0px;
}
.kategoriat li {
    display: inline-block;
    font-size: 1.05em;
    margin: 0 5px 15px;
}
.kategoriat a {
    border: 1px solid #3e3d72;
    padding: 5px 15px;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -o-transition: background 0.3s;
    transition: background 0.3s;
}
.kategoriat a:hover {
    background: #3e3d72;
    color: #fff;
}
.kategoriat a.active {
    background: #3e3d72;
    color: #fff;
}
#section-217 {
    padding: 5vh 0 10vh;
}
#section-227, .Linseed #section-249{
    background-color: #efefe8;
    padding: 0;
    border-bottom: 30px solid #fff;
}
#section-227 .columns, .Linseed #section-249 .columns {
    padding-top: 15vh;
    /*padding-bottom: 15vh;*/
    min-height: 75%;
    min-height: 75vh;
}
#section-227 .button, .Linseed #section-249 .button,
#section-227 .nappi, .Linseed #section-249 .nappi {
    font-size: 1.5em;
}
.linseed {
    text-align: left;
}
.linseed h3 {
    margin: 40px 0 10px 0;
}
.valo {
    background: #606060;
}
.valo img {
    height: 68px;
}
.valo h3 {
    color: #fff;
}
.lumina {
    background: #fff;
}
.valo h3,
.lumina h3 {
    margin: 40px auto 0;
    max-width: 250px;
}
.lumina h3 {
    color: #333;
}
.txt-center {
    text-align: center !important;
}
.stripe h2 {
    font-size: 2em;
    background-color: rgba(90,50,23,.7);
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 15px 0;
    margin: 0 0 11vh;
}
.stripe h2:after {
    border-color: transparent transparent rgba(90,50,23,.7) transparent;
}
.stripe h2:after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translate(-50%,0);
    -webkit-transform: translate(-50%,0);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 30px 0 30px;
    border-color: rgba(90,50,23,.7) transparent transparent transparent;
}
#section-221.stripe h2, .Linseed #section-248.stripe h2 {
    background-color: rgba(0,0,0,0);
    position: initial;
    padding: 11vh 0 0;
    margin: 0;
}
#section-225 {
    border-top: 10px solid #5A3217;
}
#section-223,
#section-225 .columns,
.Linseed #section-251 .columns {
    text-align: left;
}

#section-225 {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#3e3d72+0,3e3d72+50,3e3d72+50,ffffff+51 */
    background: #3e3d72; /* Old browsers */
    background: -moz-linear-gradient(left, #ffffff 50%,#3e3d72 50%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #ffffff 50%,#3e3d72 50%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #ffffff 50%,#3e3d72 50%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3e3d72', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
}
#section-225 .columns p,
.Linseed #section-251 .columns p {
    padding-right: 80px;
}
#section-225 .keho,
.Linseed #section-251 .keho {
    text-align: center;
}
.sertifikaatit {
    padding: 0 0 2em;
}
.sertifikaatit img {
    margin: 0 25px 25px 0;
}

.alert_banneri a {
    text-decoration: underline !important;
    color: #fff;
}



#footer{
    background: #efefe8;
    padding: 3em 0 0;
    min-height: initial;
}
#footer p {
    color: #000;
    margin: 10px 0 0;
}

#footer .yhteystiedot a:not(.button){
    text-decoration: underline;
}
#footer .yhteystiedot .button {
    margin-top: 58px;
}
#footer .button {
    font-size: 1.55em;
}
#footer .yhteystiedot a[class*=m-icon] {
    text-decoration: none;
    font-size: 4.3em;
    padding: 15px 20px 10px;
    display: inline-block;
}
#footer .yhteystiedot .columns {
    margin-top: 30px;
    font-size: 1.2em;
}
#footer .yhteystiedot .columns p:last-of-type{
    margin: 0;
}
a.m-icon-instagram2 {
    color: #000;
}
a.m-icon-facebook{
    color: #3b5998;
}
a.m-icon-twitter{
    color: #1D97E8;
}
a.m-icon-twitter::before{
    content: '';
    background: url(img/X-logo.png) no-repeat 50% 100%;
    height: 0.85em;
    width: 1em;
    display: inline-block;
    background-size: contain;
    mix-blend-mode: multiply;
}
#footer .yhteystiedot img {
    margin-right: 0;
}
#copy{
    font-size: .85em;
    padding: 60px 0 5px;
    background: #efefe8;
}
#copy, #copy a{
    color: #aaaaa9;
    text-decoration: none;
}
#copy a:hover{
    color: rgba(255,255,255,1);
    text-decoration: none;
}

/* wp muokkaa-nappi */
p.muokkaa{
    text-align:right;
    /*position: absolute;*/
    margin-bottom: 0;
}
p.muokkaa a{
    text-decoration:none !important;
    background:none !important;
}
p.muokkaa a:after{
    display:none;
}
p.muokkaa a:before{
    content: '\f464' !important;
    font: 400 22px/24px dashicons;
    background: #cfcfcf;
    color:#000;
    border-radius:24px;
    -moz-border-radius:24px;
    -webkit-border-radius:24px;
}
p.muokkaa a:hover:before{
    background:#243082;
    color:#fff;
}


a.nappi, .button, input[type="submit"]{
    font-size: 1.65em;
    line-height: 1;
    background: rgba(0,0,0,0);
    padding: 10px 45px;
    color: #3e3d72;
    display: inline-block;
    text-decoration: none;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -o-transition: background 0.3s;
    transition: background 0.3s;
    border: 2px solid #3e3d72;
    font-weight: 700;
    margin-top: 30px;
}
#section-227 .button.white, .Linseed #section-249 .button.white,
#section-227 .valo .nappi, .Linseed #section-249 .valo .nappi {
    color: #fff;
    border: 2px solid #fff;
}

a.nappi:hover, .button:hover, input[type="submit"]:hover{
    text-decoration: none;
    background: #3e3d72 !important;
    color: #fff;
}
#section-227 .button.white:hover, .Linseed #section-249 .button.white:hover, #section-227 .valo .nappi:hover, .Linseed #section-249 .valo .nappi:hover  {
    background: #fff !important;
    color: #606060;
}
#section-225 .button,
.Linseed #section-251 .button,
#section-225 .nappi,
.Linseed #section-251 .nappi {
    background: #fff;
}
#section-225 .button:hover,
.Linseed #section-251 .button:hover,
#section-225 .nappi:hover,
.Linseed #section-251 .nappi:hover {
/*    background: #3e3d72;
    color: #fff;*/
    border: 2px solid #fff;
}



textarea { overflow: auto; }
input, textarea{
    padding:3px 8px;
    font:inherit;
    max-width: 95%;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 3px;
    box-shadow: inset -1px -1px 0px rgba(255,255,255,.2), inset 1px 1px 0px rgba(0,0,0,.2);
}

form .col{
    width: 48%;
    min-width: 250px;
}

span.wpcf7-not-valid-tip{
    float:left;
    width: 100%;
    text-align: center;
}
.wpcf7-not-valid{
    border: 1px solid red !important;
}

/* FORMIDABLE FORMS */
/* .frm_forms input*/

.frm_forms fieldset{
    border: 0;
    margin: 0;
    padding: 0;
}


.frm_forms label, .frm_forms input[type=text], .frm_forms input[type=number], .frm_forms input[type=email], .frm_forms input[type=tel], .frm_forms input[type=url], .frm_forms select, .frm_forms textarea {
    font: inherit !important;
    font-family: 'Roboto' !important;
    color: inherit !important;
    display: inline-block !important;
}
/* Piilottaa honeypot kentän
Plukarin oma css ylikirjottuu noilla ylemmillä riveillä
*/
form input[type=text].frm_verify {
    display: none !important;
}
.frm_forms .frm_form_fields input[type=text], .frm_forms .frm_form_fields input[type=number], .frm_forms .frm_form_fields input[type=email], .frm_forms .frm_form_fields input[type=tel], .frm_forms .frm_form_fields input[type=url], .frm_forms .frm_form_fields select, .frm_forms .frm_form_fields textarea {
    color: #000 !important;
    border-color: #fff !important;
    box-shadow: none !important;
    background: #fff;
}
.frm_forms input, .frm_forms select, .frm_forms textarea{
   /* border: 1px solid #9cdbff !important;*/
    border-radius: 0 !important;
    width: 70% !important;
}
.frm_forms input, .frm_forms select, .frm_forms textarea, .frm_left_container, .frm_submit {
    /*max-width: 550px !important;*/
}
.frm_forms input:not(.button) {
    height: 2.2em !important;
}
.frm_forms .frm_required{
    display: inline-block;
    width: 10px;
    margin-top: -5px;
    color: #C70501 !important;
    font-weight: inherit !important;
    vertical-align: text-bottom;
}
.frm_forms label {
    width: 29% !important;
    /*font-weight: bold !important;
    font-size: 1.1em !important;*/
    vertical-align: top;
    text-align: right !important;
    padding: 5px 10px 0 0 !important;
    margin: 0 !important;
    font-size: 1.1em !important;
    color: #000 !important;
}
.frm_blank_field input, .frm_blank_field textarea, .frm_blank_field select{
    border: 1px solid #C70501 !important;
}
.frm_error, .frm_error_style, .frm_message {
    font: inherit !important;
    color: #C70501 !important;
    text-align: center !important;
    background: none !important;
}
.frm_error_style, .frm_message {
    background: rgba(255,255,255,.5) !important;
}
.frm_message {
    color: inherit !important;
}
.frm_forms .form-field {
    margin-bottom: 10px !important;
}
.frm_forms .frm_form_fields .frm_submit input[type="submit"]{
    font-family: 'Roboto' !important;
    box-shadow: none;
    display: inline-block;
    width: auto !important;
    margin: 10px 0;
    float: right;
    line-height: 1;
    background: rgba(0,0,0,0);
    padding: 10px 45px;
    color: #3e3d72;
    text-decoration: none;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -o-transition: background 0.3s;
    transition: background 0.3s;
    border: 2px solid #3e3d72;
    font-weight: 700;
}
.frm_forms .frm_form_fields .frm_submit input[type="submit"]:hover {
    background: #3e3d72;
    color: #fff;
}
.frm_forms .frm_error, .ui-datepicker, .ui-datepicker select{
    font: inherit !important;
}

.bg-video-block{
    position: relative;
}
#header.bg-video-block{
    max-height: 100vh;
}
.bg-video-block {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.bg-video-block .overlay{
    height: 100%;
    width: 100%;
    background: #000;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
}
.bg-video-block video.bg-video {
    background-size: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: top;
    backdrop-filter: opacity(0);
}
.bg-video-block video.mobile {
    display: none;
}
@media (max-width: 768px) {
    .bg-video-block video.bg-video:has(+ video.mobile) {
        display: none;
    }
    .bg-video-block video.mobile {
        display: block;
        object-position: top;
    }
    #header.bg-video-block {
        min-height: 80vh;
    }
}
.bg-video-block .content-container{
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 78vh;
}
.bg-video-block .content-container > div{
    flex-grow: 1;
}

.bg-video-block video{
    width: 100%;
    height: auto;
}

#mobilebuttons{
    padding: 0;
    display: none;
    position: fixed;
    bottom: 0;
    border-top: 1px solid #fff;
    font-size: 15px;
    width: 100%;
    z-index: 999;
}
#mobilebuttons .columns{
    background: rgba(15, 43, 119, 0.9);
}
#mobilebuttons a{
    color:#fff;
    text-align: center;
    display: block;
    padding: 5px 0;
    text-decoration: none;
    background: none;
    height: 50px;
    font-size: 14px;
    line-height: 40px;
}
#mobilebuttons a:before{
    content: '';
    font-family: 'meka-icons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    font-size: 30px;
    vertical-align: middle;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#mobilebuttons .mobile-Puhelin a:before{
    content: '\e15e';
}
#mobilebuttons .mobile-Email a:before{
    content: '\e162';
    font-size: 35px;
}
#mobilebuttons .mobile-Map a:before{
    content: '\e139';
}
#mobilebuttons .columns + .columns {
    border-left: 1px solid #fff;
}


a.mobilemenu{
    display: none;
    font-size: 13px;
    height: 2.2em;
    line-height: 2.2em;
    float: right;
}

a.mobilemenu span.teksti{
    float: left;
    text-decoration: none;
    color: #2e2e2e;
    font-size: 1.5em;
    padding-left: 10px;
    padding-right: 10px;
}
a.mobilemenu span.ikoni{
    position: relative;
    float: right;
    width: 3.5em;
    height: 3px;
    margin-top: 1em;
    background-color: #2e2e2e;
    -webkit-transition: -webkit-transform .5s;
    transition: transform .5s;

}

a.mobilemenu span.ikoni:before,
a.mobilemenu span.ikoni:after{
    content: '';
    display: block;
    width: 3.5em;
    height: 3px;
    background-color: #2e2e2e;
    position: absolute;
    transition: all .3s;
}
a.mobilemenu span.ikoni:before{
    top: -1em;
}
a.mobilemenu span.ikoni:after{
    bottom: -1em;
}
a.mobilemenu:hover{
    border-color: #ca0e04;
}


a.mobilemenu.open span.ikoni{
    background: transparent;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
a.mobilemenu.open span.ikoni:after{
    -webkit-transform: translateY(-1em) rotate(45deg);
    transform: translateY(-1em) rotate(45deg);
}
a.mobilemenu.open span.ikoni:before{
    -webkit-transform: translateY(1em) rotate(-45deg);
    transform: translateY(1em) rotate(-45deg);
}


@media screen and (max-width: 1200px){
    #menu-top {
        padding: 10px 0px 10px 140px;
    }
}
@media screen and (max-width: 1024px){
    .middle h1,
    .middle h2 {
        width: 90%;
    }
    #menu-top {
        display: block;
    }
    .frm_forms label {
        width: 20% !important;
    }
    #section-225 .columns p, .Linseed #section-251 .columns p {
        padding-right: 0;
    }
    .language {
        margin: 0;
    }
}

@media screen and (max-width: 800px){

}
@media screen and (min-width: 769px){
    div[class*='menu-paavalikko']{
        display: block !important;
    }
    #menu-top .sub-menu{
        display: none !important;
    }
}
@media screen and (max-width: 768px){
    #top {
        position: relative;
        z-index: 100;
    }
    .middle{
        top:40%;
    }

    .logo{
        float: none;
    }
	#mobilebuttons{
		display: block;
	}
    #menu-top {
        padding:10px 15px !important;

    }
    #menu-top.open {
        background: rgba(255,255,255,.4);
    }

    #alamenu, .ala-alamenu{
        display: none;
    }
    a.mobilemenu{
    display: block;
    }
    #menu-top div.menu-paavalikko-container{
    /*display: none;*/
    max-height: 0;
    overflow: hidden;
    margin-top: 30px;
    transition: all .5s;
    }
    #menu-top.open div.menu-paavalikko-container{
        max-height: 1000px;
        margin-top: 20%;
    }
    #menu-top .menu li {
        display: block;
        text-align: left;
        padding: 0 0 0 15px;
        margin-bottom: 2px;
    }
    .menu li.current-menu-ancestor > a{
        color: #000;
    }
    #menu-top .menu li a{
        border:0 !important;
        padding: 8px 5px;
    }
    #menu-top .menu li a, #menu-top .menu li .menu-label{
        padding-left: 10px;
        display: block;
    }
    #menu-top .menu li a:after{
        margin: 0;
    }
    #menu-top .menu ul{
        display: none;
        margin: 0;
        margin-left: 10px;
    }
    #menu-top ul.menu .plussa{
        font-size: 1.5em;
        color: #333;
        float: right;
        display: inline-block;
        background: #ddd;
        width: 40px;
        line-height: 35px;
        margin-top: -3px;
        text-align: center;
        cursor: pointer;
        font-family: 'dashicons';
    }
    #menu-top ul.menu .plussa:before{
        content: "\f347";
    }
    #menu-top ul.menu .plussa.open:before{
        content: "\f343";
    }
    #menu-top ul.menu .plussa:hover{
        background: #fff;
    }
    #header{
        padding: 0 0 60%;
        min-height: 350px;
    }
    .section {
        min-height: 55%;
        min-height: 55vh;
    }
    #section4 .columns {
        padding-top: 15vh;
        padding-bottom: 15vh;
        min-height: 55%;
        min-height: 55vh;
    }
    .middle h1,
    .middle h2 {
        font-size: 2em;
    }
    .frm_forms label {
        width: auto !important;
        text-align: left !important;
        display: block !important;
        width: 100% !important;
    }
    .frm_forms label, .frm_forms input, .frm_forms select, .frm_forms textarea, .frm_left_container, .frm_submit {
        width: 100% !important;
    }
    .frm_left_container, .frm_submit {
        margin: 0 auto;
    }
    .language{
        position: absolute;
        right: 120px;
        top: 10px;
    }

}

@media screen and (max-height: 460px){
    .middle {
        top: 210px;
    }
}

@media screen and (max-width: 640px){
    #menu-top.open div.menu-paavalikko-container{
        margin-top: 30%;
    }
    #section-227 .columns, .Linseed #section-249 .columns {
        min-height: 40%;
        min-height: 40vh;
        padding-bottom: 15vh;
    }
    #section-225 {
        background: #3e3d72;
        color: #fff;
    }
    #section-225 h3 {
        color: #fff;
    }
    #section-221, .Linseed #section-248 {
        background: #3e3d72;
    }
    #section-221 .button, .Linseed #section-248 .button{
        background: #3e3d72;
        color: #fff;
        border: 2px solid #fff;
    }
}

@media screen and (max-width: 480px){
	h1{
        font-size: 1.75em;
    }
    h2{
        font-size: 1.5em;
    }
    .middle h1, .middle h2 {
        padding: 20px;
    }
}

@media screen and (max-width: 420px){
    .xsmall-up-1 >.column,
    .xsmall-up-1 >.columns {
        width: 100%;
    }
    .language{
        right: 110px;
    }
}


@media screen and (max-width: 360px){
    .middle h1{
        font-size: 1.85em;
    }
}
@media screen and (max-width: 320px){
	body{
        font-size: 14px;
    }
}

#content > .row > .columns.small-12 > *:not(div) {
    max-width: 900px;
    margin-inline: auto;
}
.before-title{
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

#artikkelit .column-block a{
    text-align: center;
}
#artikkelit .column-block a h4{
    color: #3E3D72;
}
#artikkelit {
    margin-bottom: 50px;
}