/*
Theme Name: ARDE (2026)
Theme URI: https://markkinointiukkonen.fi/kotisivut-hinta/
Author: Markkinointi Ukkonen Oy
Author URI: https://markkinointiukkonen.fi/
Description: ARDElle tehty WordPress-teema
Version: 1.0
Text Domain: ardetheme
*/

:root {
	--musta: #221f21;
	--valkoinen: #FFFFFF;
}

html, body {
	margin: 0;
	font-family: "utopia-std", serif;
	font-weight: 400;
	font-style: normal;
	font-size: 20px;
}

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;
    font-family: altivo, sans-serif;
    font-weight: 500;
    max-width: 1300px;
    line-height: 1.1em;
}

.kehys {
	width: 850px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	text-align: center;
	position: relative;
}

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

nav.paavalikko {
    display: block;
    padding: 1rem 0 1.25rem 0;
    position: relative;
    min-height: 72px;
    box-sizing: border-box;
}

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

nav.paavalikko a {
    text-transform: uppercase;
    text-decoration: none;
    color: #545454;
    font-size: 30px;
    font-family: "myriad-pro", sans-serif;
    font-weight: 600;
    opacity: 1.0;
    transition: 0.25s opacity;
}

nav.paavalikko a:hover {
	opacity: 0.7;
}

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

h1 {
    font-size: 3.5rem;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4,
p.nostoteksti {
    font-family: "utopia-std", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.6rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.6em;
}

img.etusivuhero {
    display: block;
    margin-bottom: 4rem;
	margin-left: auto;
  	margin-right: auto;
}

.etusivuhero+h1 {
    margin-bottom: 3rem;
}

hr {
    display: block;
    margin: 3rem 0;
    width: 100%;
    margin-left: 0;
}

.sisaltorajoittaja img {
    display: block;
    margin: 4rem auto;
}

.sisaltorajoittaja {
    display: block;
    width: 100%;
    padding-left: 100px;
    padding-right: 100px;
    box-sizing: border-box;
}

.google-maps,
.sisaltorajoittaja img.kokolevea {
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-right: -100px;
    max-width: calc(100% + 200px);
}

.mediumteksti {
    font-size: 1.4rem;
    font-size: 1.5rem;
    font-family: altivo, sans-serif;
}

p {
    line-height: 1.6em;
}

.lisateksti {
    text-align: initial;
    display: block;
    margin: 6rem 0;
}

p.isoteksti {
    font-size: 3rem;
    line-height: 1em;
    width: 1000px;
    max-width: 100%;
    margin: 6rem auto;
    color: #6a6d70;
    font-weight: 300;
}

a.nappula {
    display: inline-block;
    text-decoration: none;
    background: red;
    color: var(--valkoinen);
    text-transform: uppercase;
    padding: 0.4em 3em;
    font-family: altivo, sans-serif;
    font-weight: 700;
}

p > a.nappula:first-child:last-child {
    margin: 2rem 0;
}

footer.alapalkki {
    background: #e4e7e8;
    padding-top: 4rem;
    padding-bottom: 6rem;
    font-size: 1.5rem;
    font-family: altivo, sans-serif;
    margin-top: 6rem;
}

.header_logo,
.footer_logo {
    display: block;
    font-size: 2.5rem;
    font-family: altivo, sans-serif;
    font-weight: 300;
    line-height: 1em;
    margin-bottom: 2rem;
    text-decoration: none;
    color: inherit;
}

.header_logo {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.header_logo > span,
.footer_logo > span {
    display: block;
    font-size: 1rem;
    line-height: 1.4em;
}

.mediumteksti p {
    line-height: 1.6em;
}

h3 {
    font-weight: 700;
}

.sisaltorajoittaja img.onkuvateksti {
  	margin-bottom: 0.75rem;
}

.kuvateksti {
	display: block;
	width: 100%;
	text-align: center;
	margin-bottom: 4rem;
	font-style: italic;
}

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

.alapalkki a {
	text-decoration: none;
	color: inherit;
	opacity: 1.0;
	transition: 0.25s opacity;
}

.alapalkki a:hover {
	opacity: 0.5;
}


form.wpcf7-form input, form.wpcf7-form textarea {
    display: block;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 3px;
    margin-bottom: 15px;
    border: 1px solid #a3a3a3;
    font-family: inherit;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1.1em;
}

form.wpcf7-form {
	position: relative;
    text-align: left;
    background: #fff;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

form.wpcf7-form textarea {
    height: 150px;
    padding: 16px;
}

form.wpcf7-form  > p {
    display: block;
    width: 100%;
    text-align: center;
}

form.wpcf7-form input[type="submit"] {
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    background: red;
    color: var(--valkoinen);
    text-transform: uppercase;
    padding: 0.4em 3em;
    font-family: altivo, sans-serif;
    font-weight: 700;
    border: 0;
    transition: 0.25s background;
    cursor: pointer;
    margin: 25px auto 0 auto;
    -webkit-appearance: none !important;
    border-radius: 0 !important;
    width: auto;
    line-height: 1.6em;
}

.wpcf7-form:not(.submitting) .wpcf7-spinner {
    display: none;
}

.wpcf7-spinner {
    display: block;
    width: 30%;
    height: 30px;
    margin: 2rem auto;
    margin-left: calc(50% - 15px);
    margin-right: calc(50% - 15px);
}

.wpcf7-not-valid-tip {
    background: #830707;
    color: #fff;
    padding: 10px;
    margin-top: -15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    line-height: 1em;
}

.wpcf7 form.invalid .wpcf7-response-output {
    background: #830707;
    border: 0;
    text-align: center;
    color: #fff;
    margin: 2rem 0;
    padding: 20px;
}

.yhteydenottolomake, .google-maps {
    display: block;
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.google-maps {
	position: relative;
	padding-bottom: 50%;
	overflow: hidden;
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.google-maps {
    width: calc(100% + 444px);
    max-width: calc(100% + 444px);
    margin-left: -222px;
    margin-right: -222px;
}

.home .header_logo {
  visibility: hidden;
}

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

    .sisaltorajoittaja {
        width: 100%;
        /*! padding-left: 222px; */
        /*! padding-right: 222px; */
        max-width: 100%;
    }

    .sisaltorajoittaja img.kokolevea {
        width: calc(100% + 444px);
        max-width: calc(100% + 444px);
        margin-left: -222px;
        margin-right: -222px;
    }
    
    nav.paavalikko a {
      font-size: 26px;
    }
}

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

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

    .sisaltorajoittaja {
        width: 100%;
        padding-left: 10vw;
        padding-right: 10vw;
        max-width: 100%;
    }

    .google-maps,
    .sisaltorajoittaja img.kokolevea {
        width: calc(100% + 20vw);
        max-width: calc(100% + 20vw);
        margin-left: -10vw;
        margin-right: -10vw;
    }
    
    nav.paavalikko a {
        font-size: 23px;
    }
}

@media (max-width: 1024px) {
    footer.alapalkki {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
		
	.alapalkki p:last-child {
	    margin-bottom: 0;
	}

	hr {
		display: block;
		width: 100%;
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}
}

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

    h4, p.nostoteksti {
        font-size: 1.3rem;
    }

    footer.alapalkki {
        font-size: 1.25rem;
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
}

@media screen and (max-width: 1100px) {
    h1 {
        font-size: 2.8rem;
    }
	
	.kehys {
		width: 100%;
	}

    p.isoteksti {
        font-size: 2.5rem;
        line-height: 1.3em;
    }

    h4,
    p.nostoteksti {
        font-size: 1.4rem;
    }

    img.etusivuhero {
        width: 100%;
        min-height: 400px;
        max-height: calc(100vh - 76px);
        object-fit: cover;
        object-position: center;
        aspect-ratio: 13 / 15;
    }

    nav.paavalikko ul {
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        z-index: 2;
        display: block;
        text-align: right;
        padding: 1.5rem 2rem;
        transform: scaleY(0);
        transform-origin: top center;
        transition: 0.5s transform;
    }

    nav.paavalikko a {
        margin: 0.5rem 0;
        display: block;
    }

    nav.paavalikko.auki ul {
        transform: scaleY(1.0);
    }

    nav.paavalikko {
        display: flex;
		justify-content: flex-end;
		align-items: center;
		padding: 0 1rem;
		position: absolute;
		top: 27px;
		right: 0;
		min-height: 0;
    }

    .mobile_nav_toggle {
        display: block;
        width: 48px;
        box-sizing: border-box;
        cursor: pointer;
        padding: 5px 10px;
        z-index: 100;
        top: 0;
        right: 0;
        background: var(--valkoinen);
    }

    .viiva1,
    .viiva2,
    .viiva3 {
        width: 29px;
        height: 5px;
        background-color: #545454;
        margin: 6px 0;
        transition: 0.4s;
        border-radius: 20%;
    }

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

    .avattu .viiva2 {
        opacity: 0;
    }

    .avattu .viiva3 {
        -webkit-transform: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
    }
    
    nav.paavalikko a {
        font-size: 30px;
		white-space: nowrap;
    }

    .google-maps {
        padding-bottom: 80%;
    }
}

@media screen and (max-width: 500px) {
    /*
    html, body {
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
	*/

    html, body {
        font-size: 17px;
		word-break: break-word;
		overflow-wrap: break-word;
    }

    h1 {
        font-size: 2.4rem;
    }

    p.isoteksti {
        font-size: 2.2rem;
    }

    footer.alapalkki,
    .mediumteksti {
        font-size: 1rem;
    }

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

    .google-maps,
    .sisaltorajoittaja img.kokolevea {
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .google-maps {
        padding-bottom: 100%;
    }
	
	nav.paavalikko {
		top: 20px;
		padding: 0 1rem;
	}
	
	nav.paavalikko a {
        font-size: 25px;
		white-space: nowrap;
    }
}

@media screen and (max-width: 300px) {
	nav.paavalikko {
	  position: relative;
	  top: unset;
	  left: unset;
	  right: unset;
	  justify-content: center;
	}
	nav.paavalikko ul {
	  right: 0;
	  left: 0;
	  text-align: center;
	}
}

@media screen and (min-width: 2600px) {
	.kehys {
	  width: 33vw;
	}
}
	
@media screen and (min-width: 2800px) {
	html, body {
	  font-size: 22px;
	}
}
