/*
 Theme Name:   SH Turvallisuussuunnittelu
 Template:     aate
 Text Domain:  sh-turvallisuussuunnittelu
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
  
html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-style: normal;
	color: #211E1C;
}


/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
	font-family: "Lato", sans-serif;
	color: #211E1C;
	margin-bottom: .5em;
	font-weight: 600;
}

h1 {
    font-weight: 600;
}

.home h1 {
    font-size: 2em;
}

h2.h1, .h2-h1 h2, .yhteydenotto h1 {
    font-size: 2.5em;
}

h2.h1 {
    margin-bottom: 0.4em;
}

h2 {
    font-size: 1.7em;
}

.sivun-alku h2 {
    font-size: 1.9em;
}

main h2:after, .home h1:after {
	content: '';
    display: block;
    background: #FF941D;
    width: 60%;
    max-width: 140px;
    height: 3px;
    margin-top: 10px;
    margin-bottom: 25px;
    margin-left: 0;
    margin-right: auto;
}

main h2.center:after {
    margin-left: auto;
    margin-right: auto;
}

.header-image h1 {
    color: #FF941D;
    margin-bottom: 0;
    font-size: 2.1em;
}

header p.nosto {
    text-align: left;
    color: #e3dcd3;
    margin-bottom: .5em;
    font-size: 1.8em;
    max-width: 500px;
    margin-left: 0;
}

main a, main a:hover, main a:focus, main a:visited {
    color: #FF941D;
}


.navbar a:hover {
    color: #FF941D;
}

main a:hover, main a:focus, footer a:hover, footer a:focus {
    text-decoration: underline;
}

main .tausta-harmaa a {
    color: #f28b19;
}

main a:focus, footer a:focus {
    color:#FF941D !important;
}

.tausta-tumma p, .tausta-tumma h2, .tausta-tumma h3, .tausta-tumma ul {
    color: #FFFFFF;
}

/***********************
*       HEADER         *
***********************/

header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
    z-index: 99;
}

.header-image-and-title {
    position: relative;
}

.header-image {
    position: relative;
	height: 80vh;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}
header .row {
    position: absolute;
    top: calc(50% + 20px);
    bottom: auto;
    transform: translateY(-50%);
}

header p.nosto {
    text-align: left;
}

.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: transparent;
    border: 0 solid transparent;
    color: #fff !important;
    height: 35px;
    width: 35px;
}

.header-fade {
    background: #262626;
    background: linear-gradient(60deg, rgba(38, 38, 38, .99) 36%, rgba(38, 38, 38, 0) 205%);
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
	z-index: 1;
}

.home .header-fade {
    background: linear-gradient(117deg, rgba(38, 38, 38, .99) 42%, rgba(38, 38, 38, 0) 95%);
}

.banner {
    position: relative;
    width: 100%;
    height: 30px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

/* Taustat */
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #EFEDED;
	background: linear-gradient(117deg,rgba(239, 237, 237, 0) 50%, rgba(255, 255, 255, 1) 50%);
}

/* Taustat */
.banner::before {
    background: #EFEDED;
	background: linear-gradient(117deg,rgba(239, 237, 237, 0) 50%, rgba(239, 237, 237, 1) 50%);
}


/* Oranssi elementti */
.banner-center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 55%;
    height: 100%;
    background: #FF941D;
    z-index: 1;
    clip-path: polygon(30px 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
}

header {
    position: relative;
}

.home-slider {
    height: 100vh;
    height: 100dvh;
    max-height: 470px;
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-slider-fade {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 999; 
    background: transparent;
    background: linear-gradient(117deg, rgba(38, 38, 38, .95) 46%, rgba(38, 38, 38, 0) 75%);
}

div#navbar-collapse-1 {
    padding-top: 10px;
}

#splide-header, #splide-header-track {
    height: 100%;
    width: 100%;
    z-index: 99;
}

.header-slider-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
}

.header-slider-teksti h2, .header-slider-teksti p {
    color: #fff;
}

.header-slider-teksti h2 {
    font-family: "Montserrat", sans-serif;
	font-size: 2.5em;
    margin-bottom: 0;
}

.header-slider-teksti p {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 1.7em;
}

.splide__pagination {
    bottom: 60px !important;
}

.splide__pagination__page {
    background-color: transparent !important;
    border: 1px solid #fff !important;
    height: 12px !important;
    width: 12px !important;
    opacity: 1 !important;
}

.splide__pagination__page.is-active {
    background-color: #fff !important;
}
.header-slider-slide {
    position: relative;
    overflow: hidden;
}

.header-slider-slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.video-slide video {
    width: 100%;
}

.header-slider-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    align-items: center;
}

.header-slider-teksti,
.header-slider-kuva {
    width: 80%;
    z-index: 999;
    padding-left: 25px;
    padding-right: 25px;
position: absolute;
}

.header-slider-inner .hero-slide-text {
    color: #fff;
    font-weight: 400;
font-size: 1.2em;
line-height: 130%;
}

header span.oranssi {
    color: #ff941d;
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 10px;
}

/***********************
*       NAV         *
***********************/
    
.navbar {
    padding-left: 25px;
    padding-right: 25px;
}
.menu-plus:before {
    content: '\002B';
    margin-left: 0;
    margin-top: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.menu-minus:before {
    content: "\2212";
    margin-left: 1px;
    margin-top: 0;
}

button.navbar-toggler {
    border: 0 solid transparent;
}

button.navbar-toggler:hover,
button.navbar-toggler:focus {
    border: 0 solid transparent;
    outline: none;
    box-shadow: none;
}

.custom-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 40px;
}

.custom-toggler .toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-menu-1 {
    padding-top: 30px;
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

ul.dropdown-menu, ul.dropdown-menu li {
    background-color: #262626;
}

ul.dropdown-menu:hover, ul.dropdown-menu li:hover {
    border-radius: 0;
}
    
/***********************
*        RAKENNE       *
***********************/

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 25px;
    padding-left: 25px;
}

.container, .container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

.row, .container {
    max-width: 1300px;
    margin: 0 auto;
}

.tausta-harmaa {
    background-color: #EFEDED;
}

.tausta-valkoinen {
    background-color: #fff;
}

.tausta-tumma {
    background-color: #262626;
}

.yhteydenotto .row {
    max-width: 1100px;
}

.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
    margin-top: 40px;
}
.container-fluid.wide .row {
    max-width: 100%;
}
.text {
    padding-top: 70px;
    padding-bottom: 70px;
    order: 2;
}

h2 {
    font-size: 2.2em;
}
    
.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}

.kapea .row {
    max-width: 700px;
}

.kapeish .row {
    max-width: 900px;
}

.kuva {
    order: 1;
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.background-image {
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 20px;
}

.alamargin {
    margin-bottom: 20px;
}

.logot-container {
    padding-top: 70px;
    padding-bottom: 60px;
}

.logo-otsikko h2 {
    margin-bottom: 30px;
}
.logot img {
    margin: 0 auto;
    width: 100%;
    max-width: 200px;
	margin-bottom: 25px;
}

.logot .col-md-12:last-child img {
    margin-bottom: 0;
}

ul.nav {
    padding-top: 20px;
}

a:focus {
    color: #0082ff !important;
    text-decoration: underline !important;
}

a.button:focus, nav a:focus {
    text-decoration: none !important;
}

img {
    width: 100%;
}
/*********************
*   KUVAGALLERIA     *
*********************/

.wrapper.galleria {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.kuvagalleriakuva {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: .3s all;
    cursor: pointer;
    margin-bottom: 15px;
}

.kuvagalleriakuva:last-child{
    margin-bottom: 0;
}

.kuvagalleriakuva:hover {
    opacity: .7;
}

.light-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    top: 0;
    left: 0;
    cursor: pointer;
}

.light-box img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    width: auto;
}
 
.light-box p {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
 .light-box img:hover {
    cursor: pointer;
}

/*********************
*  yleiset luokat  *
*********************/

.nosto p, p.nosto {
    font-size: 1.1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.padding-top-puolikas {
    padding-top: 40px;
}

.padding-top-0 {
    padding-top: 0;
}

.margin-top-minus {
    margin-top: -45px;
}

.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea {
    max-width: 900px;
}

/*********************
*    ARTIKKELIT      *
*********************/

.single main {
    padding-top: 60px;
}

.single .blogiteksti .row {
    max-width: 800px;
}

.artikkeli {
    padding-left: 15px;
    padding-right: 15px;
}

.artikkeli.is-visible {
    margin-bottom: 30px;    
}

.artikkelikirjoitus {
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.5s;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
    background: #efeded;
}

.artikkelikuva {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all .5s;
}

.artikkeliteksti {
    padding: 30px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artikkeliteksti h3 {
    margin-bottom: .2em;
}

.artikkeliteksti h3 a, .artikkeliteksti h3 a:visited, .artikkeliteksti h3 a:hover, .artikkeliteksti h3 a:focus {
    color: #211E1C;
}

.artikkeliteksti {
    background: #EFEDED;
    position: relative;
    padding: 50px 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artikkeliteksti-inner {
    display: flex;
    margin-top: 0;
    flex-wrap: wrap;
    flex-direction: column;
    flex-grow: 1;
}
.artikkeliteksti:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 40px solid #fff;
    border-left: 40px solid transparent;
}

a.text-button {
    margin-top: 20px;
    font-weight: 600;
}

.palvelukortti-outer:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 40px solid #fff;
    border-left: 40px solid transparent;
}

.js-artikkelit .artikkeli {
	max-height: 0;
	opacity: 0;
	transform: translateY(12px);
	overflow: hidden;
	transition: max-height 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
}

.js-artikkelit .artikkeli.is-visible {
	max-height: 500px;
	opacity: 1;
	transform: translateY(0);
}

p.julkaistu {
    font-size: .8em;
    text-align: left;
    margin-top: 0;
}

p.teksti {
    margin-bottom: 1.2rem;
}

p.alin {
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
}

.single h1 {
    font-size: 1.8em;
    margin-bottom: .5em;
}

.single h2 {
    font-size: 1.6em;
    margin-top: 2em;
}

.single h3 {
    font-size: 1.4em;
    margin-top: 1.5em;
    margin-bottom: .4em;
}

.single h4 {
    font-size: 1.2em;
    margin-top: 1.3em;
    margin-bottom: .4em;
}

/*********************
*    YHTEYSTIEDOT    *
*********************/

.henkilo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
    justify-content: center;
}

.henkilokuva, .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
    width: 100%;
    text-align: center;
}

.henkilokuva img {
    width: 100%;
    border-radius: 50%;
    max-width: 200px;
    margin: 0 auto;
}

/*****************
*  HINTAKORTIT  *
****************/

.container-fluid.hintakortit-container {
    position: relative;
}

.hintakortti {
    margin-bottom: 30px;
}

.hintakortit {
    justify-content: center;
}
.hintakortti-outer {
	background: #262626;
	position: relative;
	padding: 35px 50px;
	height: 100%;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.hintakortti-outer:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 40px solid #fff;
    border-left: 40px solid transparent;
}

.hintakortti-inner {
    display: flex;
    margin-top: auto;
    flex-wrap: wrap;
}

.hintakortit p, .hintakortit h3, .hintakortit ul {
    color: #FFFFFF;
    width: 100%;
}

.hintakortti h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 1em;
}

.hintakortit p.hinta {
    color: #FF941D;
    font-size: 3em;
    font-weight: 700;
    width: 100%;
    margin-bottom: 0;
}

.hintakortit h4 {
    font-size: 1.4em;
    margin-top: 0;
    font-weight: 600;
    color: #ff941d;
    width: 100%;
}

.hintakortit h4:before {
    content: '';
    display: block;
    background: #FF941D;
    widtH: 40%;
    max-width: 140px;
    height: 4px;
    margin-top: 25px;
        margin-bottom: 25px;
    margin-left: 0;
    margin-right: auto;
}

.hintaotsikko h2 {
    font-size: 1.8em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.hinta-ala {
     width: 100%;
}

.container-fluid.hintakortit-container {
    padding-bottom: 0;
}

p.cat-top {
    color: #ff941d;
    margin-bottom: 2em;
    font-size: 1.1em;
}

.hintakortit p.hinta:before {
    content: '';
    display: block;
    background: #FF941D;
    width: 40%;
    max-width: 140px;
    height: 4px;
    margin-top: 25px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: auto;
}

.hintakortti a.button, .hintakortti a.button:visited {
    background: #fff;
    border-color: #fff;
    color: #262626;
    padding: 4px 30px;
    letter-spacing: 0;
    margin-left: auto;
    margin-right: auto;
}

.hintakortti a.button:hover, .hintakortti a.button:focus {
    background-color: #FF941D !important;
    color: #262626 !important;
    border-color: #FF941D;
}

/****************
* PALVELUKORTIT *
****************/


.palvelukortit {
    justify-content: center;
}
.palvelukortti-outer {
    background: #EFEDED;
    position: relative;
    padding: 50px 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.palvelukortti-outer:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 40px solid #fff;
    border-left: 40px solid transparent;
}

.palvelukortti-inner {
    display: flex;
    margin-top: 0;
    flex-wrap: wrap;
    flex-direction: column;
    flex-grow: 1;
}

.palvelukortti h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 1em;
}


.palvelukortti h4 {
    font-size: 1.4em;
    margin-top: 0;
    font-weight: 600;
    color: #ff941d;
    width: 100%;
}

.palvelukortti h4:before {
    content: '';
    display: block;
    background: #FF941D;
    widtH: 40%;
    max-width: 140px;
    height: 4px;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 0;
    margin-right: auto;
}
.col-md-12.col-lg-4.palvelukortti {
    margin-bottom: 40px;
}

/********
*  UKK  *
********/


.accordion-header {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1em;
}

.accordion-item, .accordion-item:first-of-type>.accordion-header .accordion-button {
    border-radius: 0 !important;
}

.accordion-button {
    font-weight: 600;
    background: transparent !important;
    padding-left: 0;
    padding-right: 0;
    font-size: 1.1em;
}
.accordion-button:hover {
    cursor: pointer;
}

.accordion-body a.button {
    margin-top: 0;
}

.ukk .row {
    max-width: 1250px;
}

.faq-questions {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-kuva img {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -40px;
}

.faq-kuva-teksti .text h3 {
    margin-top: 0;
}

.ukk-laaja .row {
    max-width: 1200px;
}

.ukk-laaja h2 {
    font-size: 1.7em;
    max-width: 750px;
}

.faq-laaja-row {
    margin-top: 30px;
}

.faq-questions-laaja .accordion-item {
    border-bottom: 1px solid #d1d3de;
}

.ukk-laaja .violetti {
    display: block;
}

img.ukk-ikoni {
    width: 95px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.ukk-otsikko {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.faq-questions h2 {
    margin-bottom: .7em;
    font-size: 1.9em;
}

main .faq-questions h2:after {
    margin-top: 15px;
}
.accordion-item h4 {
    margin-top: 1.5em;
}

.accordion-button:not(.collapsed) {
    color: #211E1C;
}

.accordion, .accordion-item {
    background: transparent !important;
}

.accordion-item {
    border: 0;
    border-bottom: 2px solid #EFEDED;
}
.accordion-button:focus, .accordion-button:not(.collapsed) {
    box-shadow: none !important;
    outline: none !important;
}

.accordion-body {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

/*********************
*  SH  *
*********************/

.textblock .row {
    max-width: 780px;
}

.textblock h3, .yhteys h3 {
    margin-top: 1.4em;
    margin-bottom: .3em;
    font-size: 1.3em;
}

.yhteys h3 {
    margin-bottom: .6em;
}

.textblock h2 {
    margin-top: 1.9em;
}
.textblock .col-md-12.col-lg-12 h2:first-of-type {
    margin-top: 0;
}

h2 {
    font-size: 1.8em;
}

.sivun-alku h2 {
    font-size: 2em;
}

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 320px;
}

.home .header-image {
    max-height: 850px;
    min-height: 450px;
}

.ylapalkki {
    background-color: #262626;
}

a.nav-link {
    color: #fff;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 1.1em;
}

a.nav-link:hover, a.nav-link:focus, .current-menu-item a.nav-link {
    color: #FF941D !important;
}

.dropdown-item:focus {
    color: #FF941D !important
}

/*********
* YHTEYS *
**********/

.yhteys .row {
    max-width: 1200px;
}

/************
* ELEMENTIT *
*************/


main ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1em;
}

main ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

main ul li::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #FF941D;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 7px;
}

main ol li::marker {
    color: #FF941D;
    font-weight: 800;
}

p.info:before {
    content: "!";
    font-size: 2em;
    font-weight: 900;
    color: #ff941d;
    font-style: normal;
    left: 0;
    top: -2px;
    position: absolute;
}

p.info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 2em;
	font-weight: 700;
	font-style: italic;
	font-size: 1.1em;
	position: relative;
	padding-left: 20px;
	margin-bottom: 0;
}

.button, .button:visited, a.button, a.button:visited, button.more.js-show-more,
main .tausta-harmaa a.button {
    font-weight: 400;
    background-color: #FF941D;
    border: 1px solid #FF941D;
    padding: 6px 25px;
    color: #fff;
    display: inline-block;
    font-size: 1.1em;
    letter-spacing: 0em;
    text-transform: none;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    transition: all .2s ease-in-out;
    border-radius: 0;
    margin-top: 1.1em;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover,
.button:focus, .button:visited:focus, a.button:focus, a.button:visited:focus,
button.more.js-show-more:hover, button.more.js-show-more:focus,
main .tausta-harmaa a.button:hover, main .tausta-harmaa a.button:focus {
    text-decoration: none;
    background-color: #fff;
    color: #FF941D;
    border-color: #FF941D;
}


.button[type=submit]:hover, .button[type=submit]:focus {
    background-color: #fff;
    color: #FF941D;
    border-color: #FF941D !important;
}

/*******************
*   REFERENSSIT    *
*******************/

.col-md-12.col-lg-12.referenssit {
    margin-bottom: 40px;
}

.referenssi-inner {
    background: #fff;
    padding: 40px;
}

.textblock .referenssit h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.referenssit h3:after {
    content: '';
    display: block;
    background: #FF941D;
    width: 60%;
    max-width: 140px;
    height: 3px;
    margin-top: 10px;
    margin-bottom: 25px;
    margin-left: 0;
    margin-right: auto;
}

h4 {
    margin-top: 1.5em;
}

.cta .button {
    background: #211E1C !important;
    color: #fff !important;
    border-color: #211E1C !important;
}

.cta .button:hover, .cta .button:focus {
    background: #ffffff !important;
    color: #211E1C !important;
    border-color: #fff !important;
}


.yhteydenotto h2 {
    font-size: 1.6em;
    margin-top: 1.5em;
}

.wpcf7-textarea {
    max-height: 200px;
}

p.cta-nosto {
    max-width: 400px;
    font-size: 1.1em;
}

.cta-nosto a {
    display: inline-block;
}

.cta {
    background-image: url('https://sh-turvallisuussuunnittelu.fi/wp-content/uploads/cta_tausta_sh.jpg');
    background-size: cover;
    background-position: center;
}

.cta h2 {
    font-size: 2.1em;
    font-weight: 600;
    max-width: 900px;
    margin-top: 0;
}

.cta a {
    color: #211E1C;
}

.cta a:hover, .cta a:focus {
    color: #211E1C !important;
}

main .cta h2:after {
    background: #fff;
}

footer {
    background-color: #262626;
	position: relative;
}

.footer-top {
    position: absolute;
    left: auto;
    right: 0;
    top: 0;
    transform: none;
    width: 50%;
    height: 30px;
    background: #262626;
    z-index: 1;
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%);
    top: -27px;
}
.copyrow {
    padding: 0 0 20px 0;
}

footer a, footer a:visited, footer a:hover {
    color: #fff;
}

p.copyright {
    text-align: center;
    font-size: .8em;
    color: #a4a3a1;
}

p.copyright a {
    color: #a4a3a1 !important;
}

footer h2 {
    font-size: 1.4em;
    margin-top: 1em;
    color: #fff;
}

footer .container {
    max-width: 1100px;
    padding-top: 80px;
}

footer img {
    max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.wpcf7 form .wpcf7-response-output {
    margin-left: 0;
    margin-right: 0;
    border-width: 1px !important;
}

span.sitaatti {
    font-style: italic;
    font-size: 1.2em;
    margin-top: 1em;
    display: inline-block;
}

input, textarea {
    border-left: 0 solid transparent;
    background: #EFEDED;
    border-radius: 0;
    border: 1px solid #d9d9d9;
}

input:hover, textarea:hover,
input:focus, textarea:focus{
    border-color: #f28b19;
}

@media only screen and (min-width: 768px) {

	.header-fade {
		background: linear-gradient(60deg, rgba(38, 38, 38, .99) 36%, rgba(38, 38, 38, 0) 125%);
	}

	.home .header-fade {
		background: linear-gradient(117deg, rgba(38, 38, 38, .99) 42%, rgba(38, 38, 38, 0) 75%);
	}

	.splide__pagination {
		bottom: 90px !important;
	}

	.home .header-image {
		min-height: 550px;
	}

	.home-slider {
		max-height: 900px;
	}
	.banner {
		height: 50px;
	}

	.banner-center {
		width: 33%;
	}
	.header-slider-teksti {
		width: 50%;
		max-width: 720px;
	}

	.header-slider-inner .hero-slide-text {
		font-size: 1.9em;
	}

	header span.oranssi {
		font-size: 2em;
	}

	.footer-top {
		width: 33%;
		height: 50px;
		top: -47px;
	}
		
    main .row, .header-image .row {
        opacity:0;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
    
    .page-header {
		max-height: 400px;
	}
	.home h1 {
		font-size: 2.4em;
	}
    
    h2 {
        font-size: 1.9em;
    }
    
	.single main {
		padding-top: 90px;
	}

	.single h1 {
		font-size: 2.2em;
	}

	.single .blogiteksti h2 {
		font-size: 1.6em;
		margin-top: 2em;
	}

	.single .blogiteksti h3 {
		font-size: 1.35em;
		margin-top: 1.5em;
		margin-bottom: .4em;
	}

	.single .blogiteksti h4 {
		font-size: 1.2em;
		margin-top: 1.3em;
		margin-bottom: .4em;
	}
    
    .cta h2 {
		font-size: 2.8em;
    }
    
    .faq-questions h2 {
		font-size: 2.6em;
	}
	.hintaotsikko h2 {
		font-size: 2.4em;
	}
    
    .sivun-alku h2 {
        font-size: 2.2em;
    }

    h2.h1, .h2-h1 h2, .yhteydenotto h1 {
		font-size: 4em;
	}

	.header-image h1 {
		font-size: 3.7em;
	}

	header .row {
		position: absolute;
		bottom: 100px;
		top: auto;
		transform: none;
	}

    .fade-in-up {
		opacity: 0;
		transform: translateY(30px);
		transition: all 0.6s ease-out;
    }
    .fade-in-up-header {
		opacity: 0;
		transform: translateY(0);
		transition: all 0.6s ease-out;
    }
    .fade-in-up-header.visible {
		opacity: 1;
		transform: translateY(-50%);
    }
    
    .fade-in-up.visible {
		opacity: 1;
		transform: translateY(0);
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 250px;
        margin-bottom: 0;
    }
    .henkilotekstit {
        width: 50%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: left;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
    
    .accordion-header {
        font-size: 1em;
	}
    
	footer h2 {
		font-size: 1.5em;
		margin-top: 0;
	}

	footer img {
		max-width: 230px !important;
		margin-left: 0;
		margin-right: auto;
		margin-top: -10px;
	}

	footer h1, footer h2, footer h3, footer h4, footer p {
		text-align: left;
	}
}

@media only screen and (min-width: 992px) {
    .ylapalkki {
        padding: .2rem 0;
    }
    #menu-menu-1 {
        padding-top: 0;
    }
    .page-header {
		max-height: 430px;
	}

	header .row {
		top: calc(50% + 20px);
		bottom: auto;
	}

	.otsikko {
		max-width: 700px;
	}

	.yhteys .teksti {
		padding-left: 40px;
	}
    .logo img {
        height: 65px;
    }
    
    ul.nav {
        padding-top: 0;
    }
    
    a.nav-link {
        position: relative;
    }
    a.nav-link:hover, a.nav-link:focus, .current-menu-item a.nav-link {
        color: #fff !important;
    }
    a.nav-link:hover:after, .current-menu-item a.nav-link:after {
        content: "";
        width: 80%;
        height: 2px;
        background: #ff941d;
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: .7em;
        padding-right: .7em;
    }
    
    .text {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .background {
        height: auto;
    }
    .background, .text, .kuva, .teksti {
        order: inherit;
    }
    .teksti {
        margin-top: 0;
    }
	.laatikko {
	    margin-bottom: 0;
	}
	.artikkelit .col-lg-4 {
        padding-right: 15px;
        padding-left: 15px;
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 350px;
    }
    .teksti-vasemmalla p, .teksti-vasemmalla h2, .teksti-vasemmalla .button {
		max-width: 550px;
        margin-left: auto;
	}

	.hintakortit .hintakortti.kortti-2.nosto-kortti .hintakortti-outer {
		transform: scale(1.1);
	}

	.kortti-2.nosto-kortti .hintakortti-outer:after {
		transform: scale(1.1);
	}

	.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
		margin-top: 0;
	}

	.teksti-oikealla p, .teksti-oikealla h2, .teksti-oikealla .button {
		max-width: 550px;
	}

	.teksti-vasemmalla {
		padding-right: 90px;
		padding-left: 90px;
	}

	.teksti-oikealla {
		padding-left: 90px;
		padding-right: 90px;
	}

	.yhteydenotto .col-md-12.col-lg-6:first-child {
		padding-right: 40px;
	}

	.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
		padding-left: 40px;
	}

	.harmaa-tausta-hintakortit {
		position: absolute;
		height: 50%;
		width: 100%;
		background: #EFEDED;
		bottom: 0;
	}

	.hintakortti {
		margin-bottom: 0;
	}

	.container-fluid.hintakortit-container {
		padding-bottom: 90px;
	}

	.logot img {
		margin-bottom: 0;
	}
}

@media only screen and (min-width: 1400px) {
	.teksti-vasemmalla {
		padding-right: 150px;
		padding-left: 150px;
	}

	.teksti-oikealla {
		padding-left: 150px;
		padding-right: 150px;
	}

}


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}