:root {

--padding:clamp(2.188rem, 18.417vw - 6.802rem, 9.313rem); /* 781 - 1400px : 38 - 149px */

}

:root :where(.is-layout-constrained) > * {margin-block-start: 20px;}
:root :where(.is-layout-flow) > * {margin-block-start: 0;}

body:not(.wp-admin) { background-color: var(--wp--preset--color--dark-grey); color: var(--wp--preset--color--white); }

body :is(.is-root-container,.wp-site-blocks) {font-family:var(--wp--preset--font-family--body); font-size:var(--wp--preset--font-size--normal); font-weight:300; line-height: 120%; color:var(--wp--preset--color--white); }

body :is(.is-root-container,.wp-site-blocks) h1 {font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--heading-1); text-transform:uppercase; line-height:100%; font-weight:600; color:var(--wp--preset--color--white); }
body :is(.is-root-container,.wp-site-blocks) h2 {font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--heading-2); margin-bottom: 20px !important; text-transform:uppercase; line-height:100%; font-weight:600; color:var(--wp--preset--color--green); }
body :is(.is-root-container,.wp-site-blocks) h3 {font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--heading-3); margin-bottom: 18px; line-height:120%; font-weight:600; color:var(--wp--preset--color--green); }
body :is(.is-root-container,.wp-site-blocks) h4 {font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--heading-4); margin-bottom: 18px; line-height:1.5; font-weight:600; color:var(--wp--preset--color--green); }
body :is(.is-root-container,.wp-site-blocks) h5 {font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--heading-5); margin-bottom: 18px; line-height:1.5; font-weight:600; color:var(--wp--preset--color--green); }
body :is(.is-root-container,.wp-site-blocks) h6 {font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--heading-6); margin-bottom: 18px; line-height:1.5; font-weight:600; color:var(--wp--preset--color--nre); }

/* Container -leveyksien määritykset */
header.wp-block-template-part .main-navigation > .wp-block-group { max-width: 1440px !important; margin: 0 auto; padding: 0 20px; box-sizing: content-box;}
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group > :is(.wp-block-group, .wp-block-columns) { max-width: 1176px; margin: 0 auto; padding: 0 var(--padding); box-sizing: content-box;}
footer.wp-block-template-part > .wp-block-group > .wp-block-group { max-width: 1214px; margin: 0 auto; padding: 0 clamp(1.875rem, -4.4288rem + 13.1329vw, 7.0625rem); box-sizing: content-box;}
body :is(.is-root-container, .wp-site-blocks) .entry-content {margin-top:0;}

.wp-block-group.has-white-background-color, .wp-block-group.has-white-background-color p { color: var(--wp--preset--color--black); }
.wp-block-group.has-white-background-color :is(h2,h3,h4,h5,h6) { color: var(--wp--preset--color--green); }

body :is(.is-root-container, .wp-site-blocks) .entry-content > .wp-block-group {padding: 42px 0; z-index: 1;}
body .wp-site-blocks {overflow-x: hidden;}
:root :where(.editor-styles-wrapper) :where(.is-layout-flow) > * {margin-block-start: 0 !important;}

strong {font-weight: 800;}
.has-bigger-font-size {font-weight: 400; line-height: 125%; }
.has-dark-grey-background-color p > a {color:#fff;}
.has-dark-grey-background-color p > a:is(:hover, :focus) {color:var(--wp--preset--color--green); }
.has-white-background-color p > a {color:var(--wp--preset--color--green);}
.has-white-background-color p > a:is(:hover, :focus) {color:var(--wp--preset--color--green); }
.text-column > p:not(:last-child) {margin-bottom: 1rem;}
.text-column > .wp-block-group > p {margin-bottom: 1rem;}
.text-column > .wp-block-group > h1 {margin-bottom:33px;}
.text-column > .wp-block-group > h2:not(:first-child) {margin-top:33px;}
.text-column > .wp-block-group > h3 {margin-top:24px;}
.product-description > p {margin-bottom: 1rem;}

.has-dark-grey-background-color+.has-dark-grey-background-color {padding-top: 0 !important;}


/*Valikko */
.main-navigation {padding-top: 24px; padding-bottom: 25px;}
.main-navigation .wp-block-columns {align-items:center !important; flex-wrap: nowrap !important; column-gap:20px;}
.main-navigation .wp-block-columns > .wp-block-column:first-child {flex-basis:auto !important;}
.main-navigation .wp-block-columns > .wp-block-column:last-child {flex-grow:1;}
.menu-navigations .navigation ul {list-style:none; padding: 0;}
.menu-navigations .navigation > ul {display:flex; column-gap: clamp(1.25rem, -9.0019rem + 14.9254vw, 3.125rem); margin:0; justify-content:flex-end;}
.menu-navigations .navigation > ul > li {display:flex; align-items:center;}
.menu-navigations .navigation > ul li a {color: #00A298; font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-style: normal; font-weight: 600; line-height: 40px; text-decoration:none; text-align: left;}
.menu-navigations .navigation > ul li a:is(:hover, :focus, :active) {color:var(--wp--preset--color--yellow);}
.menu-navigations .navigation > ul li .dropdown-toggle {cursor: pointer; padding:0; width: 26px; height: 26px; background-color: transparent; border: none; background:url("../../assets/images/Caret_Down_MD.svg") no-repeat; background-size:cover; background-position:center center; vertical-align: middle; margin-left: 11px;}
.menu-navigations .navigation > ul li .dropdown-toggle:is(:hover, :focus, :active) {background:url("../../assets/images/Caret_Down_MD-yellow.svg");}
.menu-navigations .navigation > ul li .dropdown-toggle[aria-expanded="true"] {transform: rotate(180deg);}
.menu-navigations .navigation > ul li .dropdown-toggle[aria-expanded="false"]+.dropdown {display:none;}
.menu-navigations .navigation > ul li > .dropdown {position:absolute; top:100%; z-index: 12; border-radius: 4px; border: 1px solid #F0F0F0; background: #FFF; box-shadow: 0 4px 14px 0 rgba(6, 25, 43, 0.10); min-width:125px;}
.menu-navigations .navigation > ul li > .dropdown .dropdown-menu > li:first-child a {padding-top:30px;}
.menu-navigations .navigation > ul li > .dropdown .dropdown-menu > li:last-child a {padding-bottom:30px;}
.menu-navigations .navigation > ul li > .dropdown .dropdown-menu > li:not(:last-child) {border-bottom:1px solid #F0F0F0;}
.menu-navigations .navigation > ul li > .dropdown .dropdown-menu > li a {padding:20px 30px; display:block; line-height:100%;}
.menu-navigations .navigation .current-lang {display:none;}

.mobile-menu-toggle {display:none; width: 40px; height: 28px; border: none; padding: 0; mask-image:url("../../assets/images/list.svg"); mask-size: cover; mask-repeat:no-repeat; mask-position:center center; background-color: var(--wp--preset--color--green); }
.mobile-menu-toggle[aria-expanded="true"] {mask-image:url("../../assets/images/close.svg");}

@media (max-width: 1199px) {
    .main-navigation .wp-block-columns > .wp-block-column:first-child .wp-block-image img {width: 140px;}
}
@media (max-width: 1024px) {
    .mobile-menu-toggle {display:block; position: absolute; right: 1px; top: 50%; transform: translateY(-50%);}
    nav {display:none;}
    .menu-navigations .navigation > ul li a {text-align:left; }
    .mobile-navigation-visible nav {display:block; position: absolute; z-index: 1234; background: #fff; width: 100%; left: 0; top: 100%; left: -45px; padding: 0 45px 20px; height:100vh; margin-top: 25px;}
    .mobile-navigation-visible .mobile-nav-button-wrapper {display:flex; margin-top: 40px;align-items: center; justify-content: space-between;}
    .menu-navigations .navigation > ul {flex-direction:column;}
    .menu-navigations .navigation > ul > li {display:block;}
    .menu-navigations .navigation > ul li a {display: inline-block;width: calc(100% - 26px);}
    .menu-navigations .navigation > ul li .dropdown-toggle {margin-left: 0; display:inline-block;}
    .menu-navigations .navigation > ul > li { border-bottom:1px solid #F0F0F0;}
    .menu-navigations .navigation > ul > li > a {padding: 20px 0;}
    .menu-navigations .navigation > ul li > .dropdown {position:static; border:none; box-shadow:none; }
    .menu-navigations .navigation > ul li > .dropdown .dropdown-menu > li:not(:last-child) {border:none; }
    .menu-navigations .navigation > ul li > .dropdown .dropdown-menu > li a {padding: 20px 10px; }
    .menu-navigations .navigation > ul li > .dropdown .dropdown-menu > li:first-child a {padding-top:20px;}
}

@media (max-width:575px) {
    .main-navigation .wp-block-image img {width: 140px;}
    header.wp-block-template-part .main-navigation > .wp-block-group {padding-left: 20px; padding-right: 20px;}
}

/* Herobanneri */
.herobanner {padding: 0 !important; }
.herobanner > .wp-block-group { max-width: 1440px !important; padding: 0 !important;}
.herobanner .wp-block-cover { padding: 0; height:663px; overflow-y: visible;}
.herobanner .wp-block-cover .wp-block-cover__background {background-color:unset; background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), var(--wp--preset--color--dark-grey);}
.herobanner .wp-block-cover .wp-block-cover__inner-container {height:100%; display:flex; align-items:center; justify-content:center;}
.herobanner .wp-block-cover .wp-block-cover__inner-container .wp-block-heading {text-align:center; text-align: center; max-width: 740px; padding: 0 16px;}
body.home .herobanner .wp-block-cover .wp-block-cover__inner-container .wp-block-heading {max-width: 740px; text-align:center; text-align: center; padding: 0 16px;}
body.home .herobanner .wp-block-cover::before {content:""; background:url("../../assets/images/harjateras.webp") no-repeat; background-size: 100% auto; background-position: bottom left; position: absolute;top:121px; left: 60px; z-index: 1; max-width:100%; transform-origin: 50% 100%; width: 169.508px; height: 881.962px; transform: rotate(-13deg); aspect-ratio: 169.51/881.96; }
body.home .herobanner .wp-block-cover::after {content:""; background:url("../../assets/images/harjateras.webp") no-repeat; background-size: 100% auto; background-position: bottom right; position: absolute; top:121px; right: 60px;  z-index: 1; max-width:100%; transform-origin: 50% 100%; width: 169.508px; height: 881.962px; transform: rotate(13deg); aspect-ratio: 169.51/881.96; }
@media (min-width: 576px) and (max-width: 781px) {
    body.home .herobanner .wp-block-cover::before {left: 0;}
    body.home .herobanner .wp-block-cover::after {right: 0;}

}
@media (max-width: 575px) {
    .herobanner .wp-block-cover {height: 303px; min-height: 303px; }
    body.home .herobanner .wp-block-cover::before {width: 98px; height: 509px; top: 142px; left: 25px;}
    body.home .herobanner .wp-block-cover::after {width: 98px; height: 509px; top: 142px; right: 25px;}
}

/* Herobanneri video */
.video-banner { aspect-ratio: 16 / 9; padding: 0 !important; position:relative; max-width: 1440px !important; margin: 0 auto; }
.wp-site-blocks .video-banner .wp-block-embed { margin-top: 0; }
.wp-site-blocks .video-banner .wp-block-heading {text-align: center; max-width: 740px; padding: 0 16px;}
/*.video-banner:not(.block-editor-block-list__block)::after {content:""; position:absolute; top:0; left: 0; width: 100%; height:100%; background: #FFF; background: linear-gradient(0deg, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0.80) 68.27%, rgba(255, 255, 255, 0.80) 100%); z-index:1;}*/
/*.video-banner:not(.block-editor-block-list__block)::after {content:""; position:absolute; top:0; left: 0; width: 100%; height:100%; background: #FFF; background: linear-gradient(90deg,rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%); z-index:1;}*/
.wp-site-blocks .video-banner video { position: fixed; width:100%; height:100%; top:0; left:0; object-fit: cover; z-index:1; }
.is-root-container .video-banner .wp-block-video { position: absolute; width:100%; height:100%; top:0; left:0; object-fit: cover; z-index:0; }
/*.wp-site-blocks .video-banner .wp-block-embed { position: fixed; width:100%; height:100%; top:0; left:0; object-fit: cover; z-index:0; } */
.is-root-container .video-banner .wp-block-embed { position: absolute; width:100%; height:100%; top:0; left:0; object-fit: cover; z-index:0; }
.video-banner .wp-block-video { margin-top:0;}
.video-banner .wp-block-group { z-index: 12;display: flex; height: 100%; position: absolute;flex-direction: column; justify-content: center; row-gap:1.5rem; left: 50%; width: 100%; max-width: 100% !important; transform: translateX(-50%); padding: 0 !important; overflow: hidden;}
.video-banner iframe {position: absolute; right: 0; top: 0; width: 100%; max-width: 1440px; left: 50% !important; transform: translateX(-50%);}

.video-banner:not(.block-editor-block-list__block) .wp-block-group::before {content:""; background:url("../../assets/images/harjateras.webp") no-repeat; background-size: 100% auto; background-position: bottom left; position: absolute;top:121px; left: 60px; z-index: 1; max-width:100%; transform-origin: 50% 100%; width: 169.508px; height: 881.962px; transform: rotate(-13deg); aspect-ratio: 169.51/881.96; }
.video-banner:not(.block-editor-block-list__block) .wp-block-group::after {content:""; background:url("../../assets/images/harjateras.webp") no-repeat; background-size: 100% auto; background-position: bottom right; position: absolute; top:121px; right: 60px;  z-index: 1; max-width:100%; transform-origin: 50% 100%; width: 169.508px; height: 881.962px; transform: rotate(13deg); aspect-ratio: 169.51/881.96; }

@media (min-width: 576px) and (max-width: 781px) {
    .video-banner .wp-block-group::before {bottom: -10px; top: unset;}
    .video-banner .wp-block-group::after {bottom: -10px; top: unset;}

}

@media (max-width: 781px) {
    .wp-site-blocks .video-banner .wp-block-heading {max-width: 610px;}
	.video-banner .wp-block-embed__wrapper {height: 100%;}
	.video-banner .wp-block-embed__wrapper::before {padding-bottom:100%;}
	.video-banner iframe {max-width: unset; width: auto !important; aspect-ratio: 16 / 9; transform: translateX(-25%);}
    .video-banner { aspect-ratio: 16 / 9; }
}

@media (max-width: 575px) {
    .video-banner .wp-block-group::before {width: 98px; height: 509px; top: unset; bottom:-10px; left: 25px;}
    .video-banner .wp-block-group::after {width: 98px; height: 509px; top: unset; bottom:-10px; right: 25px;}
}
@media (max-width: 399px) {
    .wp-site-blocks .video-banner .wp-block-heading {font-size: 44px !important; }
}

/* Ingressi */
.ingress {padding: 42px 0;}
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.ingress > .wp-block-group { max-width: 350px; text-align: center; }
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.ingress .wp-block-heading {margin-bottom: 38px !important; line-height:100% !important;}
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.ingress p:not(:last-child) {margin-bottom: 1rem;}

@media (max-width:575px ) {
    body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.ingress {padding: 46px 0 70px !important; }
    body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.ingress > .wp-block-group  {max-width: 250px;}
}
@media (max-width:400px) {
    body.home .herobanner .wp-block-cover::before {left: 10px;}
    body.home .herobanner .wp-block-cover::after {right: 10px;}
}

/* Kaksi tekstipalstaa kapea */
.two-narrow-columns {padding: 42px 0;}
.two-narrow-columns h2.wp-block-heading {margin-bottom: 37px !important;}
.two-narrow-columns .wp-block-columns {max-width: 803px !important; column-gap: clamp(1.5rem, -4.0443rem + 11.5506vw, 6.0625rem);}
.two-narrow-columns .wp-block-columns .wp-block-column p:not(:last-child) {margin-bottom: 1rem !important; }

/* Kapea tekstipalsta */
.text-column {padding: 42px 0;}
.narrow-text-column.has-dark-grey-background-color:has(.wp-block-heading) {padding-top: 0 !important;}
.narrow-text-column p {margin-bottom: 1rem !important;}
.narrow-text-column:not(.has-white-background-color) :is(p, .wp-block-heading, ul) {max-width:600px; margin:0 auto; }
.narrow-text-column.has-white-background-color > .wp-block-group {max-width:600px !important; margin:0 auto; }
.narrow-text-column figure img {margin:68px 0; width:100%;}
.narrow-text-column figure:last-child img {margin-bottom: 0; }
.narrow-text-column.has-dark-grey-background-color {margin:0 0 68px;}
.narrow-text-column.has-dark-grey-background-color >.wp-block-group {position: relative; padding-top:127px !important; }
.narrow-text-column.has-dark-grey-background-color >.wp-block-group::before {content:""; background:url("../../assets/images/pieni-vihrea-elementti.svg") no-repeat; background-position:center center; background-size: cover; width: 329px; height: 170px; position:absolute; left: 0; top: -19px; transform: rotateY(180deg);}
@media (max-width:1099px) {
    .narrow-text-column.has-dark-grey-background-color >.wp-block-group::before {width: 260px; height: 125px; left: -20px; top: -10px;}
}
@media (max-width:575px) {
    .narrow-text-column.has-dark-grey-background-color >.wp-block-group::before {width: 184px;height: 95px; left: -14px; top: -10px;}
}

/* Kuva ja tekstipalsta vierekkäin tumma*/
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text {position: relative; z-index: 2; padding: 0; }
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text > .wp-block-group {padding-top: 154px; padding-bottom: 134px; }
.image-and-text .wp-block-columns {column-gap: 0; align-items: center !important;}
.image-and-text .wp-block-column .wp-block-heading {margin-bottom:26px;}
.image-and-text .wp-block-empa-button-group {margin-top:60px;}

.image-and-text.has-dark-grey-background-color .image-column {position:relative;}
.image-and-text.has-dark-grey-background-color .image-column::before {content:""; background:url("../../assets/images/iso-vihrea-elementti.svg") no-repeat; background-position:center center; background-size: cover; width: 997.225px; height: 739px; position: absolute; top: 125px; left: -570px; z-index: -1; }
.image-and-text.has-dark-grey-background-color .image-column:last-child::before {left:unset; right: -570px; z-index: -1; transform: rotateY(180deg);}
.image-and-text.has-dark-grey-background-color .image-column+.text-column {padding: 0 45px 0 80px;}
.image-and-text.has-dark-grey-background-color .text-column:first-child {padding: 0 80px 0 45px;}
.image-and-text.has-dark-grey-background-color .text-column::before {content:""; background:url("../../assets/images/pieni-vihrea-elementti.svg") no-repeat; background-position:center center; background-size: cover; width: 250px;height: 129px; position: absolute; top: -14px; right: -18px; z-index: -1;}
/*.image-and-text.has-dark-grey-background-color .text-column:first-child::before {content:none; background:url("../../assets/images/kotelo.png") no-repeat; background-position:center center; background-size: cover;position: absolute; top: -220px;left: -450px;width: 760px; height: 507px; z-index: -1;}*/
.block-editor-block-list__block.image-and-text.has-dark-grey-background-color .text-column::before {top: -43%; right: -30%;}
@media (max-width: 1200px) {
    .image-and-text.has-dark-grey-background-color .image-column+.text-column {padding: 0 40px;}
    .image-and-text.has-dark-grey-background-color .text-column:first-child {padding: 0 40px;}
    .image-and-text.has-dark-grey-background-color .image-column::before {height: 580px; top: 150px;}
    /*.image-and-text.has-dark-grey-background-color .text-column:first-child::before {top: -190px; }*/
}
@media (max-width: 991px) {
    .image-and-text.has-dark-grey-background-color .image-column::before {top: 150px; }
}
@media (max-width: 781px) {
    .image-and-text .wp-block-columns {row-gap: 60px;}
    .image-and-text.has-dark-grey-background-color .image-column { order:2;}
    .image-and-text.has-dark-grey-background-color .text-column {padding: 0 24px !important; order:1;}
    .image-and-text.has-dark-grey-background-color .image-column::before {width: 587px; height: 435px; left: -260px; bottom: -300px; top: unset;}
    .image-and-text.has-dark-grey-background-color .image-column:last-child::before {width: 587px; height: 435px; left:unset; right: -260px; bottom: -300px; top: unset;}

    /*.image-and-text.has-dark-grey-background-color .text-column:first-child::before {width: 467px;height: 311px; left: -270px; top: -117px;}*/
}
@media (max-width: 575px) {
    body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text > .wp-block-group {padding-top:112px; padding-bottom:120px; }
    .image-and-text.has-dark-grey-background-color .image-column::before {left: -320px;}
    .image-and-text.has-dark-grey-background-color .image-column:last-child::before {right: -320px;}
}

/* Kuva ja tekstipalsta vierekkäin valkoinen*/
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white {padding: 91px 0 82px;}
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white .wp-block-columns {align-items: center !important;}
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white+.image-and-text-white {padding-top: 0; padding-bottom:102px;}
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white h2.wp-block-heading {margin-bottom: 41px; }
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white h3.wp-block-heading {margin-bottom: 18px; }
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white .wp-block-columns {column-gap:60px; }
body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white .text-column {padding: 0 80px; box-sizing: border-box;}
.image-and-text-white .wp-block-empa-button-group {margin-top:30px; }

@media (max-width: 1200px) {
    body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white .text-column {padding: 0 40px;}

}
@media (max-width: 781px) {
    body :is(.is-root-container, .wp-site-blocks .entry-content) > .wp-block-group.image-and-text-white .text-column {padding: 0 24px;}
}
@media (max-width: 575px) {
    .image-and-text.has-dark-grey-background-color .text-column::before { width: 184px; height: 95px; right: -45px; top: -10px; }
}

/* Segmenttinostot */
body :is(.is-root-container, .wp-site-blocks .entry-content) > .segment-highlights {padding: 110px 0 112px; }
body :is(.is-root-container, .wp-site-blocks .entry-content) > .segment-highlights+.segment-highlights {padding-top: 0; }
.segment-highlights .wp-block-columns .wp-block-column {text-align: center; display:flex; flex-direction:column; }
.segment-highlights .wp-block-columns .wp-block-column .wp-block-image {position:relative;}
/*.segment-highlights .wp-block-columns .wp-block-column .wp-block-image::before {content:""; background:url("../../assets/images/segmentti-elementti.svg") no-repeat; background-size: cover; background-position:center center; width: 122px; height: 63px; position:absolute; left: -28px; top: -32px;}*/
.segment-highlights .wp-block-columns .wp-block-column .wp-block-heading {font-size: var(--wp--preset--font-size--heading-2); color: var(--wp--preset--color--green); margin-top:14px; margin-bottom: 23px !important;}
.segment-highlights .wp-block-columns .wp-block-column p {margin-bottom:1rem; color:var(--wp--preset--color--black);}
.segment-highlights .wp-block-columns .wp-block-column .wp-block-empa-button-group {margin-top: auto; padding-top:7px;}
.segment-highlights .wp-block-columns .wp-block-column .wp-block-image+p {margin-top:23px; }

.segment-highlights-2 .wp-block-columns .wp-block-column .wp-block-image > img {width: 100%; }

body.home .segment-highlights {position: relative; z-index: 3 !important;}
body.home .segment-highlights::after {content:""; background:url("../../assets/images/teraselementti.webp") no-repeat; background-size:contain; background-position:center center; width: 319px;height: 170px; position:absolute; bottom: -90px; left: 50%; transform: translateX(-50%);}
@media (max-width: 575px) {
    body :is(.is-root-container, .wp-site-blocks) .entry-content > .segment-highlights {padding: 61px 0 106px; }
    body :is(.is-root-container, .wp-site-blocks) .entry-content > .segment-highlights .wp-block-columns {row-gap:74px;}
    body.home .segment-highlights::after {width: 293px; height: 130px; bottom: -60px; }
}

/* Segmenttinostot ilman kuvaa*/
body :is(.is-root-container, .wp-site-blocks .entry-content) > .segment-highlights-without-image {padding: 80px 0 95px; }
.segment-highlights-without-image .wp-block-columns .wp-block-column {text-align: center; display:flex; flex-direction:column;}
.segment-highlights-without-image .wp-block-columns .wp-block-column .wp-block-heading {font-size: var(--wp--preset--font-size--heading-3); color: var(--wp--preset--color--green); margin-top:14px; margin-bottom:23px !important;}
.segment-highlights-without-image .wp-block-columns .wp-block-column p {margin-bottom:1rem;}
.segment-highlights-without-image .wp-block-columns .wp-block-column .wp-block-empa-button-group {margin-top: auto; padding-top:7px;}
@media (max-width: 575px) {
    body :is(.is-root-container, .wp-site-blocks) .entry-content > .segment-highlights-without-image {padding: 45px 0 58px;}
    body :is(.is-root-container, .wp-site-blocks) .entry-content > .segment-highlights-without-image .wp-block-columns {row-gap:60px;}
}

/* Henkilönostot */
body :is(.is-root-container, .wp-site-blocks .entry-content) > :is(.wp-block-group:has(.persons-highlights), .block-editor-block-list__block:has(.wp-block-empa-person-highlights)) {padding: 80px 0 187px; }
.wp-block-group:has(.persons-highlights) .wp-block-heading {font-size: var(--wp--preset--font-size--heading-3); text-transform: uppercase; margin-bottom:46px;}
.persons-highlights {display: flex; column-gap: 49px; row-gap:60px; justify-content: center; flex-wrap:wrap; }
.persons-highlights .person-container-item {flex-basis: 33.333%; max-width: 280px; }
.persons-highlights .person-container-item .person-container-item-content {text-align:center; color: #000; font-size: 1.25rem; line-height: 125%;}
.persons-highlights .person-container-item .person-container-item-content h3 {margin:10px 0 0; font-family: var(--wp--preset--font-family--body); font-size: 1.25rem; font-weight:800; }
.persons-highlights .person-container-item .person-container-item-content p {margin:0; }
.persons-highlights .person-container-item .person-container-item-content .segments {margin-top: 20px; }
.persons-highlights .person-container-item .person-container-item-content a {color:#000; font-size: 1.25rem; }
.persons-highlights .person-container-item .person-container-item-content a:is(:hover, :focus) {color:var(--wp--preset--color--green); text-decoration:underline; }
@media (max-width: 575px) {
    .persons-highlights {row-gap:40px; }
    .wp-block-group:has(.persons-highlights) .wp-block-heading {margin-bottom: 25px;}

    iframe {height: 489px;}
}

/* Kuvabanneri */
body :is(.is-root-container, .wp-site-blocks .entry-content) > .banner-image {padding: 0 !important;}
/*body :is(.is-root-container, .wp-site-blocks .entry-content) > .banner-image > .wp-block-group {padding: 0; margin: 0; max-width: 1440px !important;}*/
body :is(.is-root-container, .wp-site-blocks .entry-content) > .banner-image > .wp-block-group {padding: 0; margin: 0; max-width: 1176px !important;}
body :is(.is-root-container, .wp-site-blocks .entry-content) > .banner-image figure > img {width: 100%;}

/* Kuvagalleria */
.image-gallery .wp-block-gallery {display: grid;grid-template-columns: repeat(7, 1fr);grid-template-rows: repeat(4, 1fr);grid-column-gap: 20px;grid-row-gap: 20px; }
.image-gallery .wp-block-gallery .wp-block-image {width:auto !important; }
.image-gallery .wp-block-gallery .wp-block-image:first-child {grid-area: 1 / 1 / 5 / 6; width:auto !important; }
.image-gallery .wp-block-gallery .wp-block-image:nth-child(2) {grid-area: 1 / 6 / 3 / 8; width:auto !important; }
.image-gallery .wp-block-gallery .wp-block-image:last-child {grid-area: 3 / 6 / 5 / 8; width:auto !important;}
@media (max-width: 575px) {
    .image-gallery .wp-block-gallery {grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);}
    .image-gallery .wp-block-gallery .wp-block-image:first-child {grid-area: 1 / 1 / 6 / 9;}
    .image-gallery .wp-block-gallery .wp-block-image:nth-child(2) {grid-area: 6 / 1 / 9 / 5;}
    .image-gallery .wp-block-gallery .wp-block-image:last-child {grid-area: 9 / 5 / 6 / 9;}
}

/* Tuotenostot*/
.wp-block-group.products {padding: 110px 0 72px !important;}
.products-listing-block {display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 56px;}
.products-listing-block .product-highlight {flex-basis: calc(33.333% - 19px);}
.products-listing-block .product-highlight .product-highlight-image {height:0; padding-bottom:66.666%; position:relative; }
.products-listing-block .product-highlight .product-highlight-image img {position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;}
.products-listing-block .product-highlight a {text-decoration:none; display: flex; flex-direction: column; height: 100%;}
.products-listing-block .product-highlight h3 {margin: 0; font-size: 1.875rem; text-align: center; color: #fff; background-color: var(--wp--preset--color--green); padding: 16px 9px 18px; transition: 0.2s ease-in; flex-grow:1; display: flex; justify-content: center; align-items: center;}
.products-listing-block .product-highlight a:is(:hover, :focus) h3 {background-color:var(--wp--preset--color--yellow);}
@media (max-width: 1024px) {
    .products-listing-block .product-highlight {flex-basis: calc(50% - 14px);}
}
@media (max-width: 781px) {
    .products-listing-block .product-highlight {flex-basis: 100%;}
}
@media (max-width: 575px) {
    .wp-block-group.products {padding: 72px 0 101px !important;}
    .products-listing-block {row-gap: 35px;}
}

/* Yksittäinen tuote */
/*.single-product .entry-content.wp-block-post-content { max-width: 1176px; margin: 0 auto; padding: 0 var(--padding); box-sizing: content-box;} */
.single-product header+.wp-block-group.entry-content {background-color:#fff; color:var(--wp--preset--color--black); }
.single-product h1.wp-block-post-title {font-size: 50px; line-height: 120%; font-weight: 600; margin-bottom:25px; color:var(--wp--preset--color--green);}
.single-product h2 {font-size: 23px !important;}
.single-product ul {margin-bottom: 1rem;}
.single-product .product-description p+:is(h2, h3, h4) {margin-top: 20px; }
.single-product .product-description .wp-block-empa-button-group {flex-direction: column; align-items: flex-start; row-gap:13px; margin-top: 25px; }
.single-product .product-description .wp-block-empa-button-group .wp-block-empa-button-group-item > a {font-size: 1.438rem; }
.single-product .product-description .wp-block-empa-button-group .wp-block-empa-button-group-item:last-child > a {padding: 0 20px;}
.single-product .product-description .wp-block-empa-button-group .wp-block-empa-button-group-item:last-child > a::before {content:"← "; }
.single-product .entry-content .wp-block-columns {gap:37px;}
.single-product .product-content:not(:has(.wc-block-product-description)) {display:none;}
.single-product .product-content {background: #F1F1F1; box-shadow: 0 -4px 4px 0 rgba(0, 0, 0, 0.25); color: var(--wp--preset--color--black);}
.single-product .product-content .wc-block-product-description p:first-child {background: #fff; margin-top:0; }
.single-product .product-content .wc-block-product-description p+.dt-container {padding: 0 25px 25px !important; background: #fff;}
.single-product .product-content .wc-block-product-description p {padding: 25px;margin-top:47px; background:#fff;}
.single-product .banner-image {margin-top: 95px !important; padding: 0 !important; }


.single-product .product-files {margin-top:53px !important;}
.single-product .product-files .product-files-container {border: 3px solid #00A298; padding: 42px 30px 35px; display: flex; align-items:center;}
.single-product .product-files .product-files-container > div {flex-basis:50%;}
.single-product .product-files .product-files-container .product-files-heading > .wp-block-heading {font-size: 1.875rem !important; margin: 0 auto !important;padding: 0 !important; max-width:353px; }
.single-product .product-files .product-files-container > .product-files-list ul {list-style:none; padding:0; display:flex; row-gap:20px;flex-direction: column; align-items: flex-start;}
.single-product .product-files .product-files-container > .product-files-list ul li a {padding: 0 40px;border-radius: 0;text-decoration: none; text-align:center; font-size: 1.438rem;background: var(--wp--preset--color--yellow); color: #fff; display: flex; transition: 0.2s ease-in; font-family: var(--wp--preset--font-family--heading);font-weight: 600; line-height: 40px;}
.single-product .product-files .product-files-container > .product-files-list ul li a:is(:hover, :focus, :active) {background:var(--wp--preset--color--green); }
@media (max-width: 781px) {
    .single-product .product-description, .single-product .wp-block-post-title {text-align:center;}
    .single-product .product-description .wp-block-empa-button-group {align-items: center;}


    .single-product .product-files .product-files-container {flex-direction:column; padding: 25px 18px 30px;}
    .single-product .product-files .product-files-container > div {flex-basis:100%;}
    .single-product .product-files .product-files-container .product-files-heading {margin-bottom: 34px;}
    .single-product .product-files .product-files-container .product-files-heading > .wp-block-heading {text-align:center; }
    .single-product .product-files .product-files-container > .product-files-list ul {align-items:center;}
    .single-product .product-files .product-files-container > .product-files-list ul li a {padding: 0 20px;}

}

/* Tablepress */
.tablepress thead th, .tablepress tfoot th {background-color: var(--wp--preset--color--green); color: #fff; padding: 10px 20px; font-weight:800; font-size: 1.125rem; border: 1px solid var(--wp--preset--color--green);}
.tablepress tbody tr:first-child td {padding: 10px 20px;}
.tablepress tbody tr td {padding: 6px 20px; background-color: #fff !important;}
.tablepress tbody td, .tablepress tfoot th {border: 1px solid var(--wp--preset--color--green);}
.tablepress > .row-hover > tr:has(+ .child:hover) > *, .tablepress > .row-hover > tr:hover + :where(.child) > *, .tablepress > .row-hover > tr:where(:not(.dtrg-group)):hover > * {background-color: #f3f3f3 !important;}

@media (max-width:768px) {
	table.tablepress :is(colgroup, caption) { display: none !important; }
	table.tablepress { display: flex; }
	table.tablepress > thead { display: block; }
	table.tablepress > thead > tr { display: flex; flex-direction: column; }
	table.tablepress > thead > tr > th { flex-grow: 1; white-space: nowrap; }
	table.tablepress > tbody { display: flex; overflow-x: auto; }
	table.tablepress > tbody > tr { display: flex; flex-direction: column; }
	table.tablepress > tbody > tr > td { flex-grow: 1; white-space: nowrap; }
    .tablepress thead th, .tablepress tfoot th, .tablepress tbody tr td {font-size: 0.875rem; padding: 10px 15px;}
}

/* Sertifikaattigalleria */
.certificate-gallery > .wp-block-group {max-width: 650px !important;}
.certificate-gallery figure.wp-block-gallery.has-nested-images {align-items:center; column-gap:31px; flex-wrap: nowrap;}
.certificate-gallery figure.wp-block-gallery .wp-block-image {width: auto !important;}

/* Alatunniste*/
footer.wp-block-template-part .wp-block-group > .wp-block-group > .wp-block-columns {column-gap:60px;}
footer.wp-block-template-part > .wp-block-group  > .wp-block-group {position: relative;}
.footer {margin:0; padding: 78px 0 10%; background-color:rgba(48, 51, 52, 1); color:#fff;}
.footer .text-column {padding:0 !important;}
.footer .wp-block-heading {text-transform:uppercase; font-size: 2.188rem; margin-bottom: 20px; }
.footer .contacts-column .wp-block-heading { margin-bottom:24px; }
.footer .contacts-column {color: var(--wp--preset--color--white); font-size: 1.125rem; font-weight: 400; font-family: var(--wp--preset--font-family--heading); text-decoration: none; line-height: 28px;}
.footer .contacts-column p {margin-top:0; color:var(--wp--preset--color--white); }
.footer .links-column ul { list-style:none; padding: 0; display: flex; flex-direction: column;}
.footer .links-column ul li a { color: var(--wp--preset--color--white); font-size: 1.25rem; font-weight: 400; font-family: var(--wp--preset--font-family--heading); text-decoration: none; line-height: 28px;}
.footer .links-column ul li a:is(:hover, :focus, :active) {text-decoration:underline;}
/*.footer.wp-block-group .wp-block-column:not(.certificates) {max-width:230px;} 
.footer.wp-block-group .wp-block-column.certificates .wp-block-columns {gap: 17px; align-items: center !important;}*/
.footer .wp-block-empa-button-group {margin-top:20px; }
@media (max-width: 575px) {
    .footer .links-column ul li a {font-size: 1.125rem; }
    .footer .contacts-column .wp-block-heading {margin-bottom:1rem;}
}

/* Painikkeet*/
p+.wp-block-empa-button-group {margin-top: 21px;}
.wp-block-empa-button-group {display: flex; column-gap: 10px;}
.wp-block-empa-button-group:where(.align-left) {justify-content:flex-start;}
.wp-block-empa-button-group:where(.align-center) {justify-content:center; }
.wp-block-empa-button-group:where(.align-right) {justify-content:flex-end; }
.wp-block-empa-button-group .wp-block-empa-button-group-item {display:inline-block;}
.wp-block-empa-button-group .wp-block-empa-button-group-item > a {font-family:var(--wp--preset--font-family--heading); font-size: 25px; text-align:center; font-weight: 600; line-height: 40px; letter-spacing: 0px; padding:0 40px; border-radius:0; text-decoration:none; }

.wp-block-empa-button-group .wp-block-empa-button-group-item.yellow-button > a { background:var(--wp--preset--color--yellow); color:#fff; display:flex; transition: 0.2s ease-in;}
.wp-block-empa-button-group .wp-block-empa-button-group-item.yellow-button > a:is(:hover, :focus, :active) { background:var(--wp--preset--color--green); color:var(--wp--preset--color--white); }

@media (max-width: 575px) {
    .wp-block-empa-button-group .wp-block-empa-button-group-item > a {font-size: 23px; }

}

/* 404 sisältö */
.error404 .content-404 h1 { text-align: center; margin-bottom: 46px; }
.error404 .content-404 p { text-align: center; font-size: 22px; line-height: 1.4; font-weight: 500; }

/* LinkedIn feed */
.image-and-text+.wp-block-group:has(.es-embed-root) { z-index: 3 !important; }