:root {
	--sininen: #1E104B;
	--turkoosi: #01AFAE;
	--vaaleanturkoosi: #00C2C1;
	--musta: #000000;
	--valkoinen: #FFFFFF;
}

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

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;*/
    font-weight: 800;
    color: var(--turkoosi);
}

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

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

a:hover {
	color: var(--vaaleanturkoosi);
}

h1 {
	font-size: 4.091rem;
	line-height: 1.111em;
}

h2 {
	font-size: 2.273rem;
}

h3 {
	font-size: 1.182rem;
}

h4, h5 {
	font-size: 1rem;
}

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

.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);
}

a.paalogo, a.paalogo img {
    display: block;
}

.mobile_nav_toggle {
    display: none;
}

.paavalikko > .kehys {
    padding-left: 3.636rem;
    padding-right: 3.636rem;
    display: grid;
    grid-template-columns: 280px 1fr;
}

a.paalogo {
    margin-top: 0.773rem;
    margin-bottom: 0.773rem;
    position: relative;
    z-index: 2;
    width: 280px;
    max-width: 100%;
    background: var(--valkoinen);
}

ul.navigaatio {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-decoration: none;
    padding: 0 0.682rem 0 0;
    margin: 0;
    list-style: none;
    gap: 2.045rem;
}

ul.navigaatio a {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: #1e104b;
}

@media screen and (min-width: 1001px) {
	ul.navigaatio a:hover {
		color: var(--turkoosi);
	}
}

li.menu-item-has-children {
    position: relative;
}

ul.navigaatio > li {
    display: block;
}

ul.sub-menu {
    display: block;
    position: absolute;
    left: -1.636rem;
    top: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--valkoinen);
    z-index: 100;
    padding: 1.636rem;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.25s transform;
}

.iso_hero {
    min-height: 500px;
    aspect-ratio: 1920 / 845;
    background: url(images/kuositausta.svg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.isohero_kuvio {
    position: absolute;
    display: block;
    background: url(images/pakattu-1.png);
    top: -50px;
    left: 25px;
    bottom: 0;
    width: 50%;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left bottom;
    z-index: 1;
}

.iso_hero .kehys {
    display: block;
    padding-left: 33.409rem;
    padding-right: 2rem;
}

.iso_hero h1 {
    margin: 0;
    color: var(--turkoosi);
    position: relative;
    z-index: 10;
}

ul.navigaatio li.menu-item-has-children > a {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17.838" height="10.823" viewBox="0 0 17.838 10.823"><path id="Union_1" data-name="Union 1" d="M7.574,10.265.557,3.249A1.9,1.9,0,0,1,3.249.557L8.919,6.23,14.59.559A1.9,1.9,0,1,1,17.281,3.25l-7.016,7.015a1.9,1.9,0,0,1-2.692,0Z" fill="%2301afae"/></svg>');
    background-size: 18px auto !important;
    background-repeat: no-repeat !important;
    background-position: center right !important;
    padding-right: 1.45em;
}

ul.sub-menu a {
    white-space: nowrap;
    text-transform: none;
    font-weight: 600;
    margin-bottom: 1em;
}

ul.sub-menu > li:last-child a {
    margin-bottom: 0;
}

li:hover > ul.sub-menu {
    transform: scaleY(1.0);
    transition: 0.5s transform;
}

main.teksti_ja_ote {
    display: grid;
    grid-template-columns: 34.6% 65.4%;
    margin-top: 11.364rem;
    margin-bottom: 11.364rem;
}

.teksti_ja_ote > .teksti {
    padding-left: 5.136rem;
    box-sizing: border-box;
    display: block;
}

.otayhteytta_vasen > *:first-child,
.ote > *:first-child, .teksti > *:first-child {
    margin-top: 0;
}

.otayhteytta_vasen > *:last-child,
.ote > *:last-child, .teksti > *:last-child {
    margin-bottom: 0;
}

.ote {
    display: block;
    font-size: 1.091rem;
    font-weight: 800;
    color: var(--turkoosi);
    line-height: 1.500em;
}

p {
    line-height: 1.5em;
    margin-bottom: 1.7em;
}

.bg_turkoosi {
    display: block;
    background: var(--turkoosi);
}

.nostolaatikot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.409rem;
    padding-top: 11.727rem;
    padding-bottom: 11.727rem;
}

a.nostolaatikko {
    display: block;
    background: var(--vaaleanturkoosi);
    color: var(--valkoinen);
    font-size: 1.227rem;
    font-weight: 800;
    padding: 5rem 2rem;
    text-align: center;
    transition: 0.25s background;
}

a.nostolaatikko:hover {
	background: var(--musta);
}

a.nostolaatikko > img {
    width: 100%;
    height: 120px;
    display: block;
    object-fit: contain;
    margin-bottom: 2.455rem;
}

aside.ajankohtaista {
    display: block;
    margin-top: 10.591rem;
    margin-bottom: 11.364rem;
}

article.ajankohtainen {
    display: block;
    margin: 5.636rem 0;
}

span.ajankohtainen_paivays {
    display: block;
    font-size: 0.909rem;
    color: var(--turkoosi);
    font-weight: 600;
    background: url(images/ikoni_paivays.svg);
    background-repeat: no-repeat;
    background-size: auto 100%;
    padding-left: 1.6em;
    line-height: 1em;
}

.ajankohtainen h3 {
    margin: 1.308em 0;
    color: var(--sininen);
}

.bg_sininen {
    display: block;
    background: var(--sininen);
    color: var(--valkoinen);
}

.teksti_ja_kuva {
    position: relative;
    padding-top: 7.091rem;
    padding-bottom: 7.682rem;
    display: block;
}

.teksti_ja_kuva > .teksti {
    display: block;
    width: 46%;
}

.kuva {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: calc(54% - 100px);
}

.kuva_kuva {
    display: block;
    position: absolute;
    top: -58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(images/tero_kuva.png);
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
}

.otayhteytta {
    display: grid;
    padding-top: 6.455rem;
    padding-bottom: 7.227rem;
    align-items: flex-start;
    grid-template-columns: 36.5% 63.5%;
    color: var(--valkoinen);
}

.otayhteytta_oikea {
    display: block;
    padding-left: 8.364rem;
    box-sizing: border-box;
}

.otayhteytta_vasen h2 {
    color: var(--valkoinen);
}

.otayhteytta a {
    color: var(--valkoinen);
}

.otayhteytta a:hover {
    color: var(--sininen);
}

.wpcf7-text, .wpcf7-textarea {
    display: block;
    width: 100%;
    border: 0;
    box-sizing: border-box;
    font-size: 0.909rem;
    color: var(--turkoosi);
    padding: 0.77em 1.300em;
    margin-bottom: 0.550em;
    font-family: "Rubik", sans-serif;
    font-style: normal;
    font-weight: 400;
}

.wpcf7-acceptance label, .wpcf7-acceptance input {
    cursor: pointer;
}

.wpcf7-acceptance input {
    width: 20px;
    height: 20px;
    margin: 0 0.5em 0 0;
}

wpcf7-acceptance label {
    display: flex;
    align-items: center;
}

.wpcf7-acceptance {
    display: block;
    margin: 1rem 0 2rem 0;
}

.wpcf7-submit.nappula {
    font-size: 1rem;
    background: none;
    border: 3px solid var(--valkoinen);
    color: var(--valkoinen);
    font-family: "Rubik", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    border-radius: 38px;
    padding: 0.47em 1.27em;
    cursor: pointer;
    transition: 0.25s color, 0.25s background;
}

.wpcf7-submit.nappula:hover {
    background: var(--valkoinen);
    color: var(--turkoosi);
}

p.leftborder {
    display: block;
    border-left: 3px solid var(--valkoinen);
    padding-left: 1.318rem;
    margin-top: 2.364rem;
}

footer.alapalkki {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.091rem 2rem 1.227rem 2rem;
    gap: 1.182rem;
}

footer.alapalkki a {
    color: var(--sininen);
}

footer.alapalkki a:hover {
    color: var(--turkoosi);
}

aside.ajankohtaista > h2 {
    color: var(--sininen);
}

@media screen and (min-width: 2400px) {
	.isohero_kuvio {
		background-position: right bottom;
	}

	.iso_hero .kehys {
	    padding-left: 38rem;
	}
}

@media screen and (min-width: 2600px) {
	.iso_hero {
		aspect-ratio: initial;
		height: 1137px;
	}
}

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

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

	h1 {
		font-size: 3.5rem;
	}

	h2 {
		font-size: 2.2rem;
	}

	.iso_hero .kehys {
		display: block;
		padding-right: 5rem;
	}

	.kehys {
		padding-left: 6rem;
		padding-right: 6rem;
	}

	.otayhteytta_oikea {
		padding-left: 6rem;
	}
}

@media screen and (max-width: 1400px) {
	h1 {
		font-size: 3rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.kehys {
		padding-left: 3rem;
		padding-right: 3rem;
	}

	.paavalikko > .kehys {
		padding-left: 3rem;
		padding-right: 3rem;
	}

	.iso_hero .kehys {
		padding-left: 30rem;
	}

	.otayhteytta_oikea {
		padding-left: 4rem;
	}

	aside.ajankohtaista,
	main.teksti_ja_ote {
		margin-top: 8rem;
		margin-bottom: 8rem;
	}

	.nostolaatikot {
		padding-top: 8rem;
		padding-bottom: 8rem;
	}

	article.ajankohtainen {
		margin: 3rem 0;
	}

	.isohero_kuvio {
		left: 0;
		top: 0;
	}

	.iso_hero .kehys {
		padding-left: 43%;
	}
}

@media screen and (max-width: 1200px) {
	main.teksti_ja_ote {
		display: block;
	}

	h1 {
		font-size: 2.6rem;
	}

	.ote {
		margin-bottom: 2rem;
	}

	.teksti_ja_ote > .teksti {
		padding-left: 0;
	}

	.kuva_kuva {
		right: -3rem;
	}

	.otayhteytta {
		display: block;
	}

	.otayhteytta_vasen {
		display: block;
		margin-bottom: 2rem;
	}

	.otayhteytta_oikea {
		padding-left: 0;
	}

	.iso_hero {
		aspect-ratio: initial;
		min-height: 500px;
	}

	aside.ajankohtaista, main.teksti_ja_ote {
		margin-top: 5rem;
		margin-bottom: 5rem;
	}

	.nostolaatikot {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.teksti_ja_kuva > .teksti {
		width: 55%;
	}

	.kuva {
		width: 45%;
	}
}

@media screen and (max-width: 1000px) {
	.isohero_kuvio {
		left: unset;
		right: 0;
	}

	.iso_hero .kehys {
		padding-left: 3rem;
	}

	.mobile_nav_toggle {
        display: block;
        width: 30px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 0;
        z-index: 100;
    }

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

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

    .avattu .viiva2 {
        opacity: 0;
    }

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

	.paavalikko > .kehys {
	    justify-content: space-between;
	    display: flex;
	    flex-wrap: wrap;
	    align-items: center;
	}
	
	ul.navigaatio {
	    display: flex;
	    width: 100%;
	    text-align: center;
	    padding-right: 0;
	    flex-direction: column;
	    gap: 1rem;
	    padding-bottom: 1.5rem;
	    position: absolute;
	    top: 100%;
	    left: 0;
	    z-index: 100;
	    background: var(--turkoosi);
	    padding-top: 1.5rem;
	    gap: 0;
	    transform: scaleY(0);
	    transform-origin: top;
	    transition: 0.25s transform;
	}
	
	.avattu+ul.navigaatio {
		transform: scaleY(1.0);
	}
	
	nav.paavalikko {
	    display: block;
	    position: relative;
	}
	
	ul.navigaatio a {
	    font-size: 1.25rem;
	    display: inline-block;
	    padding: 0.5rem 0;
	}
	
	ul.navigaatio li.menu-item-has-children > a {
	    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="17.838" height="10.823" viewBox="0 0 17.838 10.823"><path id="Union_1" data-name="Union 1" d="M7.574,10.265.557,3.249A1.9,1.9,0,0,1,3.249.557L8.919,6.23,14.59.559A1.9,1.9,0,1,1,17.281,3.25l-7.016,7.015a1.9,1.9,0,0,1-2.692,0Z" fill="%231e104b"/></svg>');
	}
	
	ul.sub-menu {
	    display: none;
	    position: relative;
	    transform: scaleY(1);
	    width: 100%;
	    background: var(--sininen);
	}
	
	ul.navigaatio > li {
	    width: 100%;
	}
	
	ul.sub-menu a {
	    margin: 0;
	    color: var(--valkoinen);
	    font-size: 1rem;
	}
	
	.isohero_kuvio {
	    background-position: right bottom;
	    left: 0;
	    right: 0;
	    width: 100%;
	    background-size: auto 90%;
	}

	a.nostolaatikko {
		font-size: 1rem;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

@media screen and (max-width: 800px) {
	.iso_hero {
		min-height: 450px;
	}
	
	.isohero_kuvio {
		background-size: 50% auto;
	}

	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	.teksti_ja_kuva > .teksti {
	    width: 100%;
	}
	
	.kuva {
	    position: relative;
	    top: unset;
	    left: unset;
	    right: unset;
	    width: 500px;
	    max-width: 80%;
	    margin: 3rem auto 0 auto;
	}
	
	.kuva_kuva {
	    padding-top: 135%;
	    position: relative;
	    top: 0;
	}
	
	.teksti_ja_kuva {
	    padding-bottom: 0;
	    padding-top: 4rem;
	}

	.nostolaatikot {
	    display: block;
	    padding-bottom: 1rem;
	}
	
	a.nostolaatikko {
	    margin-bottom: 2rem;
	    font-size: 1.227rem;
	    padding-left: 2rem;
	    padding-right: 2rem;
	}
}

@media screen and (max-width: 700px) {
	.iso_hero {
		display: block;
		padding: 4rem 2rem 0 2rem;
		text-align: center;
		min-height: unset;
	}

	.iso_hero .kehys {
		padding: 0;
	}

	.isohero_kuvio {
		position: relative;
		padding-top: 100%;
		background-size: contain;
		margin-top: 4rem;
	}

	footer.alapalkki a {
		display: block;
		margin: 0.5rem 0;
	}

	footer.alapalkki {
		display: block;
		text-align: center;
	}
}

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

	a.paalogo {
		width: 50%;
	}

	.paavalikko > .kehys {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.kehys {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	aside.ajankohtaista, main.teksti_ja_ote {
		margin-top: 3rem;
		margin-bottom: 3rem;
	}

	.teksti_ja_kuva {
		padding-top: 3rem;
	}

	.otayhteytta {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
}

@media screen and (max-width: 400px) {
	h1 {
        font-size: 1.75rem;
    }

	.paavalikko > .kehys {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.kehys {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

