/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/

/* 050418 / TM */
article.w-grid-item {
    color: #000;
}

/* 200516 / pl */
.w-btn .w-btn-label {
  white-space: normal;
}
@media all and (max-width: 1000px) {
  .two-thirds,
  .one-third {
    width:100% !important;
    float:none !important;
    margin:20px 0 0 0 !important;
  }
}

/** 251116 / Pl **/
.w-btn {
line-height:1;
padding:0.65em 1.8em;
}
.w-btn .w-btn-label {
    vertical-align: sub;
}
.w-tabs-sections-h {
    margin-bottom: 40px;
}

#footer-valikko a {
    color: white;
}


/*** TAPAHTUMA ***/
.single-tapahtuma-wrapper .l-section {
    padding-top: 0 !important;
}
.tapahtuma-row {
    display: flex;
    color: #25cc97;
    background: #fff;
    padding: 10px;
    margin: 10px 0;
    position: relative;
    border-bottom: 2px #25cc97 solid;
    font-family: "Muli", sans-serif;
    font-size: 15px;
}
.tapahtuma-row .tapahtuma-link p {
	color: #000;
}
.tapahtuma-row a {
    color: #000;
/*    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 10px 0 0 145px;*/
}
.tapahtuma-row .tapahtuma-date {
    margin-right: 15px;
    min-width: 120px;
}
.tapahtuma-kuukausi {
    text-align: center;
    color: rgb(237, 103, 65);
}


/*** RUOKALISTA ***/
.ruoka-template {
    font-size: 26px;
    font-family: "Muli", sans-serif;
}
.ruoka-template-header {
    height: 42px;
    margin: 10px 0;
}
.ruoka-header-pvm {
    color: #25cc97;
    font-weight: 700;
}
.ruoka-template-header .ruoka-header-ruoka,
.ruoka-template-header .ruoka-header-kasvisruoka {
    padding-left: 15px;
}
.ruoka-header-pvm,
.ruoka-header-ruoka,
.ruoka-header-kasvisruoka {
    float: left;
    height: 100%;
    line-height: 42px;
}

#ruoka-tanaan .ruoka-header-ruoka,
#ruoka-tanaan .ruoka-header-kasvisruoka {
	color: #000;
}

/**** TIEDOTE ****/
.tiedote-template-row-header {
    width: 100%;
    display: flex;
}

.tiedote-published,
.tiedote-topic {
    padding: 10px;
}

/**** HENKILÖ ****/
.henkilo-template {
    width: 25%;
    padding: 0 0 0 15px;
	box-sizing: border-box;
	min-height: 170px;
	margin-bottom: 10px;
}
.henkilo-img {
    min-width: 280px;
    height: 260px;
    position: relative;
}
.henkilo-img img {
    width: 280px;
    max-height: 260px;
}
.henkilo-header .henkilo-title {
	font-weight: 700;
}
.henkilo-description {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #25cc97;
    color: #fff;
    opacity: 0;
    transition: 0.5s ease;
}
.henkilo-description:hover {
    opacity: 1;
}
.henkilo-description p {
    text-align: center;
}
.henkilo-name-title h4,
.henkilo-name-title p {
    margin-bottom: 0;
}
.henkilo-name-title h6 {
    margin: 5px 0;
    padding-top: 0;
}
.henkilo-content a {
    padding: 5px 10px;
    background: #25cc97;
    color: #fff;
    border-radius: 4px;
}
.henkilo-content p {
    margin: 10px 0;
}

@media screen and (max-width: 1200px) {
    .henkilo-template {
        width: 33%;
    }
}

@media screen and (min-width: 1000px) {
    #ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-pvm {
        width: 250px;
        padding: 0 0 20px 0;
    }
}

@media screen and (max-width: 999px) {
    #ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-pvm {
        width: 100%;
    }
    #ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-ruoka {
        padding: 0;
    }
    #ruoka-viikko-wrapper .ruoka-template .ruoka-template-header {
        height: auto;
    }
}

@media screen and (max-width: 900px) {
	.henkilo-template {
		width: 50%;
	}
}

@media all and (max-width: 870px) {
	footer.l-footer .vc_empty_space {
		display:none;
	}

	.l-footer .vc_wp_custommenu.layout_hor ul li {
		display:block;
    	padding: 8px 0;
	}
	.ruokatyyppi {
		display: none;
	}
}

@media screen and (max-width: 768px) {
	.henkilo-template {
		min-height: auto;
	}
	.ruoka-wrapper-single-day .ruoka-template-header {
		height: auto;
	}
	.ruoka-wrapper-single-day .ruoka-header-pvm,
	.ruoka-wrapper-single-day .ruoka-header-ruoka,
	.ruoka-wrapper-single-day .ruoka-header-kasvisruoka {
		display: block;
		width: 100%;
		text-align: center;
		padding: 5px 0;
	}
}

@media screen and (max-width: 500px) {
    .ruoka-template {
        font-size: 22px;
    }
    .ruoka-header-pvm,
    .ruoka-header-ruoka,
    .ruoka-header-kasvisruoka {
        width: 100%;
    }
}
@media all and (max-width: 400px) {
	h1 {
    	font-size: 26px !important;
	}
}

.l-footer { font-size: 0.9rem; line-height: 1.5rem; }

@media all and (max-width: 870px) {
	footer.l-footer .vc_empty_space {
		display:none;
	}

	.l-footer .vc_wp_custommenu.layout_hor ul li {
		display:block;
	}
}

@media all and (max-width: 767px) {
.g-cols .front_box {
    float: none;
    width: 100%;
    margin: 0 0 2rem;
    border-bottom: solid white 10px;
    min-height: 341px;
}
/*.l-canvas {
	overflow:visible;
}*/
}

body.page-id-327 footer.l-footer div.upb_row_bg,
body.page-id-1792 footer.l-footer div.upb_row_bg {
	display: none;
}

#ruoka-viikko-wrapper .ruoka-template .ruoka-template-header {
	height: auto;
}
#ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-pvm,
#ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-ruoka,
#ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-kasvisruoka {
	float: none;
	height: auto;
	padding: 0;
	margin-bottom: 0;
	font-size: 16px;
	line-height: 100%;
}
#ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-ruoka,
#ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-kasvisruoka {
	padding: 9px 0 5px 0;
	border-bottom: 1px solid #25cc97;
}
#ruoka-viikko-wrapper .ruoka-template .ruoka-template-header .ruoka-header-pvm {
	padding: 10px 0;
}
.ruokatyyppi {
	float: right;
}

/*** KIELIVALIKKO ***/
html[lang="fi"] .w-dropdown.source_polylang .w-dropdown-h .w-dropdown-list,
html[lang="en-US"] .w-dropdown.source_polylang .w-dropdown-h .w-dropdown-list {

	display: block !important;
	position: relative !important;
	padding: 0;
	height: auto;
	overflow: visible;
	box-shadow: none;
	opacity: 1;
}
html[lang="fi"] .w-dropdown.source_polylang .w-dropdown-h .w-dropdown-list a.w-dropdown-item,
html[lang="en-US"] .w-dropdown.source_polylang .w-dropdown-h .w-dropdown-list a.w-dropdown-item {
	padding-top: 10px;
}

html[lang="fi"] .w-dropdown.source_polylang .w-dropdown-h .w-dropdown-current,
html[lang="en-US"] .w-dropdown.source_polylang .w-dropdown-h .w-dropdown-current {
	display: none;
}

/*** FB FEED ***/
.fbfeed {
	text-align: center;
}