/*
Theme Name: Vihreä Pohjola
Theme URI: https://sorjaproductions.fi/
Author: Markkinointi Ukkonen Oy
Author URI: https://sorjaproductions.fi/
Description: Vihreä Pohjolalle tehty WordPress-teema
Version: 1.0
Text Domain: vihreapohjola
*/

:root {
	--musta: #000000;
	--valkoinen: #FFFFFF;
	--harmaa: #3D433A;
	--tummanvihrea: #3D433A;
	--vaaleanvihrea: #A0BB5C;
	--vaalea: #F2ECEB;
}

html, body {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	color: var(--harmaa);
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

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

blockquote {
	quotes: '"' '"' '"' '"';
	font-style: italic;
}

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

.alignleft {
    float: left;
    margin: 0.3em 2em 2em 0;
}

.aligncenter {
	display: block;
	margin: 2em auto;
}

.alignright {
    float: right;
    margin: 0.3em 0 2em 2em;
}

.wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 0.25em;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
    /*-webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;*/
}

.kehys {
	width: 1464px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 50px;
	padding-right: 50px;
	max-width: 100%;
}

.rivi {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.solu {
	display: block;
	box-sizing: border-box;
}

.solu12 {
	width: 100%;
}

.solu11 {
	width: calc(100% / 12 * 11);
}

.solu10 {
	width: calc(100% / 1.2);
}

.solu9 {
	width: 75%;
}

.solu8 {
	width: calc(100% / 1.5);
}

.solu7 {
	width: calc(100% / 12 * 7);
}

.solu6 {
	width: 50%;
}

.solu5 {
	width: calc(100% / 2.4);
}

.solu4 {
	width: calc(100% / 3);
}

.solu3 {
	width: 25%;
}

.solu2 {
	width: calc(100% / 6);
}

.solu1 {
	width: calc(100% / 12);
}

h1,
h2,
.koko2 {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.222em;
}

h3,
.koko3 {
	font-size: 1.667rem;
	font-weight: 800;
}

h4,
.koko4 {
	font-size: 1.222rem;
	font-weight: 800;
}

p {
	line-height: 1.556em;
	margin: 1.5em 0;
}

.ylapalkki nav > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 2.222rem;
    list-style: none;
}

a {
    color: var(--tummanvihrea);
    text-decoration: none;
	transition: 0.25s color;
}

a:hover {
    color: var(--vaaleanvihrea);
    text-decoration: none;
}

header.ylapalkki {
    display: block;
    padding-top: 1.667rem;
    padding-bottom: 1.389rem;
}

section.hero {
    display: flex;
    width: calc(100% - 8.889rem);
    margin: 0 auto;
    background: url(images/header.jpg);
    box-sizing: border-box;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-align: center;
    flex-direction: column;
    color: var(--valkoinen);
    padding: 2rem;
    min-height: calc(100vh - 83px - 4.444rem);
    justify-content: center;
    margin-bottom: 4.444rem;
}

.kuvabanneri_teksti > *:first-child,
section.hero > *:first-child {
    margin-top: 0;
}

.kuvabanneri_teksti > *:last-child,
section.hero > *:last-child {
    margin-bottom: 0;
}

.ylapalkki a {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1em;
}

section.hero p {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0;
    line-height: 1.2em;
}

section.hero h1 {
    margin-bottom: 4.278rem;
}

section.hero img {
    display: block;
    margin: 0 auto;
}

.kuva_ja_teksti {
    margin-top: 15.556rem;
    grid-template-columns: 47.2141% 1fr;
    gap: 4.278rem;
    align-items: normal;
    margin-bottom: 9rem;
    max-width: 100%;
}

.kuva_ja_teksti {
    display: grid;
}

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

.kuva_ja_teksti_kuva {
    display: block;
    position: relative;
    padding-top: 0.25rem;
}

span.kuva_label {
    display: inline-block;
    position: absolute;
    left: -3.667rem;
    top: -2.028rem;
    font-size: 2.500rem;
    font-weight: 800;
    background: var(--harmaa);
    color: var(--valkoinen);
    padding: 0.6112em 0.6692em;
    line-height: 1em;
}

.kuva_ja_teksti_teksti > *:first-child {
    margin-top: 0;
}

.kuva_ja_teksti_kuva img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kuvabanneri_teksti {
    display: block;
    background: var(--harmaa);
    color: var(--valkoinen);
    z-index: 2;
    position: relative;
    width: 61.437%;
    box-sizing: border-box;
    padding: 3.333rem 4.167rem;
}

.kuvabanneri {
    display: block;
    padding: 6.167rem 0;
    background: var(--valkoinen);
    position: relative;
    margin-top: 5.444rem;
    margin-bottom: 16.333rem;
}

.kuvabanneri_kuva {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 67.45%;
    background: url(images/ammattilainen.jpg);
    background-size: cover !important;
    background-position: center !important;
    z-index: 1;
}

.kuvabanneri_teksti p {
    font-size: 1.222rem;
    line-height: 1.455em;
}

div#palvelut {
    display: block;
    padding-top: 1rem;
    padding-bottom: 1.056rem;
}

.kuva_ja_teksti.koko_2 {
    margin: 7rem 0;
    grid-template-columns: 39.7361% 1fr;
    gap: 4.500rem;
}

.kuva_ja_teksti form {
    display: grid;
    grid-template-columns: 81.06% 1fr;
    gap: 1.111rem;
    width: 586px;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 0px;
    margin-top: 3rem;
}

.kuva_ja_teksti  input[type="email"] {
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    padding: 0.5612em 1em;
    line-height: 1em;
    border: 1px solid var(--harmaa);
    color: var(--harmaa);
    display: block;
    width: 100%;
}

.nappula, input[type="submit"] {
    display: block;
    cursor: pointer;
    background: var(--valkoinen);
    border: 1px solid var(--harmaa);
    font-size: 1rem;
    font-family: inherit;
    color: var(--harmaa);
    transition: 0.25s background, 0.25s color;
    padding: 10px;
}

.nappula:hover, input[type="submit"]:hover {
    background: var(--harmaa);
    color: var(--valkoinen);
}

section.referenssit {
    padding-top: 4rem;
}

section.referenssit > h2 {
    margin-top: 0;
    margin-bottom: 5.278rem;
}

.kuvagalleria {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.556rem;
    margin-bottom: 3.722rem;
}

.kuvagalleria_aspectratio {
    display: block;
    padding-top: 100%;
    position: relative;
}

.kuvagalleria_aspectratio > img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.yksi_referenssi {
    display: block;
    margin-bottom: 7rem;
}

.referenssigalleria {
    display: block;
    margin-top: 15rem;
    box-sizing: initial;
}

.referenssit p {
    width: 1200px;
    display: block;
    max-width: 100%;
}

.referenssigalleria > h2 {
    margin-top: 0;
    margin-bottom: 5.389rem;
}

.referenssigalleria_slider {
    /* display: none; */
    margin-left: -5px;
    margin-right: -5px;
}

.referenssigalleria_slider img {
    display: block;
}

.testimoniaalit {
    display: block;
    background: var(--vaalea);
    text-align: center;
    box-sizing: border-box;
    padding: 5.056rem 6.722rem;
    padding-top: 4rem;
}

.testimoniaalit > h2 {
    display: block;
    margin-top: 0;
    margin-bottom: 3.333rem;
}

.testimoniaalit_slider {
    font-size: 1.222rem;
}

section#testimoniaalit {
    display: block;
    padding-top: 4rem;
    margin-top: 11.444rem;
}

section.miksi {
    display: block;
    padding-top: 4rem;
    margin-top: 10.944rem;
}

section.miksi > h2 {
    display: block;
    margin-top: 0;
}

section.miksi > h3 {
    margin-top: 3.056rem;
    margin-bottom: 1.611rem;
}

.miksi p {
    width: 1225px;
    max-width: 100%;
}

footer.alapalkki {
    display: block;
    margin-top: 15rem;
    background: var(--harmaa);
    padding-top: 7.167rem;
    padding-bottom: 7.167rem;
    color: var(--valkoinen);
    width: calc(100% - 8.889rem);
    margin-left: auto;
    margin-right: auto;
}

.alapalkki .kehys {
    display: grid;
    grid-template-columns: 1fr 359px;
    gap: 10rem;
}

.alapalkki_vasen > h2 {
    margin-top: 10px;
}

.otayhteytta_laatikko {
    display: grid;
    margin-top: 6.722rem;
    grid-template-columns: 271px 1fr;
    gap: 4.444rem;
}

.otayhteytta_laatikko a {
    color: var(--valkoinen);
    text-decoration: underline;
}

.otayhteytta_laatikko a:hover {
    color: var(--vaaleanvihrea);
}

.otayhteytta_laatikko_teksti > h3 {
    margin-top: 0;
}

.otayhteytta_laatikko > img {
    display: block;
    margin-top: 13px;
}

.otayhteytta_laatikko_teksti h4 {
    margin-bottom: 0;
}

.otayhteytta_laatikko_teksti h4+p {
    margin-top: 0;
}

.alapalkki_oikea > p {
    text-align: center;
    margin-top: 5rem;
}

.nappula {
    display: inline-block;
    margin: 0.556rem;
    padding: 0.82em 1.02em;
    line-height: 1em;
}

.alapalkki_oikea .nappula {
    border: 1px solid var(--valkoinen);
    background: var(--harmaa);
    color: var(--valkoinen);
}

.alapalkki_oikea .nappula:hover {
    background: var(--valkoinen);
    color: var(--harmaa);
}

.footnote {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.556rem;
    padding: 1.444rem;
}

.yksi_kuva {
    padding: 5px;
}

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

.slick-prev, .slick-next {
    width: 38px;
    height: 59px;
    z-index: 10;
    transition: 0.25s background;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 1.0 !important;
}

.slick-prev,
.slick-prev:focus {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_40" data-name="Path 40" d="M46.085,13.247,38.838,6,8,36.838,38.838,67.676l7.247-7.247L22.545,36.838Z" transform="translate(-8 -6)" fill="%233D433A"/></svg>');
}

.slick-next,
.slick-next:focus {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_42" data-name="Path 42" d="M15.837,6,8.59,13.247,32.129,36.838,8.59,60.429l7.247,7.247L46.675,36.838Z" transform="translate(-8.59 -6)" fill="%233D433A"/></svg>');
}

.slick-prev:hover {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_40" data-name="Path 40" d="M46.085,13.247,38.838,6,8,36.838,38.838,67.676l7.247-7.247L22.545,36.838Z" transform="translate(-8 -6)" fill="%23A0BB5C"/></svg>');
}

.slick-next:hover {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="38.085" height="61.676" viewBox="0 0 38.085 61.676"><path id="Path_42" data-name="Path 42" d="M15.837,6,8.59,13.247,32.129,36.838,8.59,60.429l7.247,7.247L46.675,36.838Z" transform="translate(-8.59 -6)" fill="%23A0BB5C"/></svg>');
}

.slick-next:before,
.slick-prev:before {
    display: none !important;
}

.slick-next {
    right: 0px;
}

.slick-prev {
    left: 0px;
}

a.sahkopostiosoite > i {
    display: none !important;
}

@media screen and (max-width: 1000px) {
    .slick-slider {
        padding-left: 50px;
        padding-right: 50px;
    }

    .slick-prev, .slick-next {
        width: 19px;
        height: 30px;
    }
}

/* V1 */
.slick-prev, .slick-next {
    width: 21px;
    height: 36px;
    z-index: 10;
}

.slick-prev:before, .slick-next:before {
    font-size: 50px;
    color: red;
    transition: 0.25s opacity;
    opacity: 1.0;
}

.slick-prev:hover:before, .slick-prev:focus:before, .slick-next:hover:before, .slick-next:focus:before {
    opacity: 0.5;
}

.slick-next {
    right: -67px;
}

.slick-prev {
    left: -67px;
}

.yksi_kuva_aspect_ratio {
    display: block;
    width: 100%;
    padding-top: 133%;
    position: relative;
}

.yksi_kuva_aspect_ratio img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slick-dots li button:before {
    font-size: 20px;
    color: var(--harmaa);
}

ul.slick-dots {
    margin-top: 3.667rem;
}

p.testimoniaali_antaja {
    margin-bottom: 3.667rem;
}

.testimoniaalit_slider p:first-child {
    margin-top: 0;
}

.kuva_ja_teksti_teksti > *:last-child {
    margin-bottom: 0;
}

.otayhteytta_laatikko_teksti > *:last-child {
    margin-bottom: 0;
}

.kuva_ja_teksti_teksti a.nappula {
    margin-bottom: 0;
}

.koko_1 .kuva_ja_teksti_kuva img {
    height: calc(100% - 5px);
}

h3 {
    font-family: "Poppins", "Apple Color Emoji", sans-serif;
}

.miksi a {
    color: var(--vaaleanvihrea);
}

.miksi a:hover {
    text-decoration: underline;
}

.wpcf7 form .wpcf7-response-output {
    grid-column: -1 / 1;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    background: #801818;
    border: 0;
    margin: 0;
    padding: 20px;
    color: #fff;
}

.wpcf7-not-valid-tip {
    background: #801818;
    color: #fff;
    padding: 0.5em 1em;
}

.wpcf7-spinner {
    display: none;
}

.submitting .wpcf7-spinner {
    display: inline-block;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #478018;
    border: 0;
    margin: 0;
    padding: 20px;
    color: #fff;
    }

@media screen and (max-width: 1600px) {
	.referenssigalleria > h2 {
		text-align: center;
	}

	.referenssigalleria_slider {
		padding-left: 50px;
		padding-right: 50px;
	}

	.slick-prev {
		left: 0px;
	}

	.slick-next {
		right: 0;
	}
}

@media screen and (max-width: 1550px) {
    section.hero,
    footer.alapalkki {
        width: calc(100% - 100px);
    }
}

@media screen and (max-width: 1500px) {
	html, body {
		font-size: 17px;
	}
	
	span.kuva_label {
		left: 0;
		top: 0.25rem;
	}
}

@media screen and (max-width: 1400px) {
	html, body {
		font-size: 16px;
	}

	section.hero {
		min-height: 50vh;
	}

	.kuva_ja_teksti {
		margin-top: 10rem;
		margin-bottom: 1rem;
	}

	.kuvabanneri_teksti {
		width: 80%;
	}

	.kuvabanneri {
		margin-bottom: 8rem;
	}

	.kuva_ja_teksti.koko_2 {
		margin: 5rem 0;
	}

	.referenssigalleria {
		margin-top: 10rem;
	}

	section#testimoniaalit {
		margin-top: 6rem;
	}

	section.miksi {
		margin-top: 5rem;
	}

	footer.alapalkki {
		margin-top: 10rem;
	}

	.kuva_ja_teksti {
		gap: 2rem;
	}

	.kuva_ja_teksti.koko_2 {
		gap: 2rem;
	}

	.alapalkki .kehys {
		grid-template-columns: 1fr 28%;
		gap: 5rem;
	}

	.kuva_ja_teksti form {
		width: 100%;
	}
}

@media screen and (max-width: 1200px) {
	.otayhteytta_laatikko {
		gap: 2rem;
		margin-top: 3rem;
		grid-template-columns: 30% 1fr;
	}
}

@media screen and (max-width: 1000px) {
	html, body {
		font-size: 18px;
	}
	
	.kuva_ja_teksti, .kuva_ja_teksti.koko_2 {
		display: block;
		width: 700px;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
	}

	.kuva_ja_teksti_kuva > img {
		display: block;
		width: 100%;
	}

	section.hero {
		width: calc(100% - 100px);
	}

	.kuvabanneri_kuva {
		left: 0;
		width: 100%;
		position: relative;
		height: 500px;
		max-height: 40vh;
	}

	.kuvabanneri_teksti {
		width: 100%;
		margin-left: 0;
	}

	.kuva_ja_teksti_kuva {
		margin-bottom: 2rem;
	}

	.testimoniaalit {
		padding: 3rem;
	}

	.alapalkki .kehys {
		display: flex;
		flex-direction: column-reverse;
		padding-bottom: 120px;
		position: relative;
	}

	.alapalkki_oikea {
		margin-top: 0;
	}

	.alapalkki_oikea > img {
		display: block;
		width: 500px;
		margin: 0 auto;
		max-width: 80%;
	}

	.alapalkki_vasen {
		text-align: center;
	}

	.otayhteytta_laatikko {
		display: block;
	}

	.otayhteytta_laatikko > img {
		width: 300px;
		margin: 0 auto 2rem auto;
	}

	.alapalkki_oikea > p {
		margin-top: 3rem;
	}

	footer.alapalkki {
		padding-top: 5rem;
		padding-bottom: 5rem;
	}

	.footnote {
		display: block;
		text-align: center;
	}

	.footnote > * {
		display: block;
		width: 100%;
		margin: 0.5rem 0;
	}
		
	span.kuva_label {
		font-size: 1.5rem;
	}

	section.hero p {
		font-size: 2rem;
	}

    .alapalkki_oikea > p {
        margin: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
    }
}

@media screen and (min-width: 801px) {
    .mobile_nav_toggle {
        display: none !important;
    }

    .ylapalkki nav {
        display: block !important;
    }
}

@media screen and (max-width: 800px) {
	h1,
	h2,
	.koko2 {
		font-size: 1.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
	}

	h3,
	.koko3 {
		font-size: 1.2rem;
		font-weight: 800;
	}

	h4,
	.koko4 {
		font-size: 1.1rem;
		font-weight: 800;
	}

	.ylapalkki nav > ul {
		display: block;
		text-align: center;
	}

	.ylapalkki a {
		display: block;
		margin: 0;
		padding: 0.65rem 0;
	}

	header.ylapalkki {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	section.hero, footer.alapalkki {
		width: calc(100% - 40px);
		margin-bottom: 0;
	}

	.kehys {
		padding-left: 20px;
		padding-right: 20px;
	}

	.kuva_ja_teksti {
		margin-top: 5rem;
	}

	.kuvabanneri_teksti {
		width: 100%;
		margin-left: 0;
		padding: 2rem;
	}

	.kuvabanneri {
		margin-bottom: 5rem;
	}

	.kuva_ja_teksti.koko_2:last-child {
		margin-bottom: 2rem;
	}

	.yksi_referenssi {
		margin-bottom: 5rem;
	}

	.referenssigalleria > h2 {
		margin-bottom: 3rem;
	}

	section#testimoniaalit {
		margin-top: 3rem;
	}

	section.miksi {
		margin-top: 2rem;
	}

	footer.alapalkki {
		margin-top: 5rem;
	}

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

	.kuva_ja_teksti form {
		display: block;
	}

	.kuva_ja_teksti input[type="email"] {
		display: block;
		width: 100%;
		margin-bottom: 1rem;
	}
        
    .kuvagalleria > .kuvagalleria_kohde:first-child {
        grid-column: -1 / 1;
    }

    .kuvagalleria {
        grid-template-columns: 1fr 1fr;
    }

    .testimoniaalit_slider {
        font-size: 1rem;
    }

    .kuvabanneri_teksti p {
        font-size: 1rem;
    }

    .ylapalkki nav {
        display: none;
    }

    .mobile_nav_toggle {
        display: block;
        width: 29px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 0;
        margin: 1rem auto;
    }

    .viiva1, .viiva2, .viiva3 {
        width: 29px;
        height: 5px;
        background-color: var(--tummanvihrea);
        margin: 6px 0;
        transition: 0.4s;
    }

    .avattu .viiva1 {
        -webkit-transform: rotate(-45deg) translate(-9px, 6px);
        transform: rotate(-45deg) translate(-8px, 7px);
    }

    .avattu .viiva2 {
        opacity: 0;
    }

    .avattu .viiva3 {
        -webkit-transfom: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
    }
}