/*
 Theme Name:   HRV
 Template:     aate
 Text Domain:  hrv
*/

@import url("https://use.typekit.net/xke6lfy.css");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
    font-family: lato, sans-serif;
    font-weight: 300;
}

main {
    background: #EFEFF2;
    position: relative;
}

/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5, h3 a, h3 a:visited {
    font-family: museo-slab, serif;
    font-weight: 500;
    color: #0D65B1;
}

h1 {
    margin-bottom: 1.2em;
    text-align: center;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 1.2em;
}

.alaviiva h2:after {
    content: '';
    display: block;
    width: 190px;
    height: 2px;
    background: #0D65B1;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
}

.text h3, .text h4 {
    margin-top: 1.5em;
}

a, a:visited, summary {
    color: #3185e5;
}

a:hover {
   color: #0D65B1;
}

p {
    font-size: 1.1em;
    line-height: 160%;
}

i.fa-star {
    color: #e9be2c;
    margin-top: 15px;
}

i.fa-star {
    /*font-family: 'FONTAWESOME';*/
    font-style: normal;
}

.fa-solid, .fas {
    font-weight: 600 !important;
}


/*********************
*     BREADCRUMB     *
*********************/

.breadcrumb {
    background: transparent;
    padding: 0 0;
    font-weight: 500;
    margin-top: 0;
    text-align: center;
}

.breadcrumb ul {
    list-style: none;
    width: 100%;
    padding-inline-start: 0;
    margin-block-start: 0;
}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb .separator {
    margin: 0 5px;
}

.breadcrumb a {
    color: #333;
}

/***********************
*       HEADER         *
***********************/

header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}

header .row {
    position: absolute;
    top: calc(50% + 50px);
    transform: translateY(-50%);
}

header p.nosto {
    text-align: left;
}

button.navbar-toggler.nbta-to-x-left {
    display: none !important;
}

/* Slider */

div#n2-ss-2 .n2-ss-slide {
    height: calc(100vh - 150px) !important;
    min-height: 300px !important;
    max-height: 400px !important;
}

div#n2-ss-2 .n2-ss-slide-limiter {
    height: calc(100vh - 150px) !important;
    min-height: 300px !important;
    max-height: 400px;
}


/***********************
*         NAV          *
************************/

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    font-size: .9em !important;
    text-transform: none;
    color: #fff;
}

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
    padding: 6px 15px;
}

#mega-menu-wrap-primary .mega-menu-toggle + #mega-menu-primary {
    background: #16202D;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu {
    background: #19293E !important;
}

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu.mega-menu-item ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu {
    margin-left: 20px !important;
}
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu.mega-menu-item ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu  a.mega-menu-link {
    font-size: 1.1em !important;
    padding: 5px 0 !important;
}

.navbar a, .navbar a:visited {
    color: #fff !important;
}

/***********************
*        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;
}

.container-fluid.wide .row {
    max-width: 100%;
}

.container-fluid.padding-more {
    padding-top: 80px;
    padding-bottom: 80px;
}

.text {
    padding-top: 30px;
    padding-bottom: 30px;
    order: 2;
}

.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}

.align-center .row {
    align-items: center;
}

.kuva {
    order: 1;
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.ingressi .row {
    max-width: 630px;
}

.ingressi a.button {
    margin-top: 10px;
}

.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 img {
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

ul.nav {
    padding-top: 20px;
}

a:focus {
    color: #0082ff !important;
    text-decoration: underline !important;
}

a.button:focus, nav a:focus {
    text-decoration: none !important;
    color: #fff;
}

img {
    width: 100%;
}

/*********************
*   UKK              *
*********************/

.card-header, .card {
    background-color: transparent;
    border: 0 solid transparent;
    border-radius: 0;
}

.card-header {
    border-top: 1px solid #000;
    border-radius: 0 !important;
    padding: 10px 0 !important;
}

.card-header button.btn.btn-link {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

span.haitari-otsikko {
    width: calc(100% - 35px);
    margin-right: 10px;
    display: block;
}

.card-body {
    padding: 5px 15px 10px 15px;
}

.card button.btn.btn-link {
    background-image: none;
}

#accordion {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 0;
}

.page-template-page-alasivu #accordion {
    max-width: 850px;
}

#accordion .card:last-child {
    border-bottom: 1px solid #000;
}
#accordion button.btn:focus, #accordion button.btn:active, #accordion button.btn:hover{
   outline: none !important; 
   box-shadow: none !important;
   text-decoration: none;
}

button.btn.btn-link {
    height: 100%;
    width: 100%;
    text-align: left;
}
span.glyphicon.glyphicon-plus.subnav-icon {
    color: #16202d;
    background: transparent;
    width: 25px;
    border-radius: 50%;
    height: 25px;
    text-align: center;
    font-size: 1.2rem;
    float: right;
}

.card-header h3 {
    margin-bottom: 0;
}

span.haitari-otsikko {
    color: #0d65b1;
    font-size: 1.1em;
}

.glyphicon-plus:before {
    content: "\2212";
    margin-left: 2px;
      
}
.collapsed .glyphicon-plus:before {
    content: "\2b";
    margin-left: 2px;
}

/*********************
*   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;
}

/*********************
*    YHTEYSTIEDOT    *
*********************/

.tab.center.nappirivi {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

iframe {
    max-width: 100%;
    max-height: 200px;
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.tab.center.nappirivi {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.tab.center.nappirivi {
    padding-bottom: 0;
    padding-top: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.nappirivi button {
    width: auto;
    max-width: 100%;
}

.nappirivi button {
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 4px;
    margin-top: 4px;
    width: auto;
    padding: 9px 20px;
    width: 100%;
}

button.tablinks {
    width: 100%;
    margin: 10px 0;
}

.nappirivi button:hover, .nappirivi button.active {
    background-color: #B70E0C;
}

button.tablinks {
    border: 2px solid transparent;
}

button.tablinks:hover, button.tablinks.active  {
    background-image: none;
    background-color: transparent;
    border: 2px solid #2a6fce;
    color: #2a6fce;
}

.henkilot {
    width: 100%;
    padding: 20px;
}

.tabcontent {
    padding-bottom: 80px;
}

.tabcontent .row {
    max-width: 1100px;
}

.henkilot h4 {
    font-size: 1.2em;
    margin-bottom: 0.3em;
}

.henkilot p {
    line-height: 170%;
}

.henkilopalsta {
    width: 100%;
}

.lista-henkiloista {
    display: flex;
    flex-wrap: wrap;
}

.henkilopalsta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2em;
}

.laskutustiedot .row, .laskutustiedot .lomake {
    max-width: 1060px;
}

/* Lomake */

.wpcf7 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

input, textarea {
    border: none;
    border-left: 0 solid transparent;
    color: #333;
    display: inline-flex;
    padding: 0.5rem;
    width: 100%;
    resize: none;
    background-color: #fafafa;
    border-radius: 3px;
}

.wpcf7 label {
    font-family: museo-slab, serif;
    font-weight: 500;
    color: #2e4559;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output, .wpcf7 form.sent .wpcf7-response-output {
    border-color: #0d65b1;
    text-align: center;
    color: #000;
    font-size: 1.1em;
}

/*********************
*  yleiset luokat  *
*********************/

#CybotCookiebotDialog img {
    width: auto;
}

.nosto p, p.nosto, .kapea-nosto p {
    font-size: 1.1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    font-size: 1.2em;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.padding-top-0 {
    padding-top: 0;
}

.padding-top-puolikas {
    padding-top: 20px;
}

.padding-bottom-puolikas {
    padding-bottom: 20px;
}

.padding-0 {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.padding-0 .col-md-12.col-lg-12 {
    padding: 0 0;
}

.top-miinus {
    overflow: inherit;
}

.top-miinus .row {
    margin-top: -110px;
}

.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea .row {
    max-width: 900px;
}

.kapeampi .row {
    max-width: 1000px;
}

.row.kapea-nosto {
    max-width: 700px;
}

.keskitetty p, .keskitetty {
    text-align: center;
}

.sitaatit p {
    text-align: center;
    font-style: italic;
        max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tumma-tausta p {
    color: #fff;
}

.valkoinen-tausta {
    background-color: #FCFCFC;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.vasen-kappale {
	margin-right: 20px;
}
.oikea-kappale {
    font-family: museo-slab, serif;
    font-weight: 500;
    color: #0D65B1;
}

.teksti-vasemmalla .flex {
    margin-left: auto;
    max-width: 600px;
    text-align: left;
}

.teksti-vasemmalla .flex .puolikas-kappale.vasen-kappale {
    margin-left: 0;
}
.teksti-vasemmalla .flex .puolikas-kappale.oikea-kappale {
    margin-left: 0;
}
.margin-top-40 {
    margin-top: 40px;
}

.hide-mobile {
    display: none !important;
}

.hide {
    display: none !important;
}

/*********************
*    ARTIKKELIT      *
*********************/

.artikkeli {
    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;
}

.artikkelikuva {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all .5s;
}

.artikkeliteksti {
    padding: 30px 25px 25px 25px;
}


.artikkeliteksti h3 {
    margin-bottom: .2em;
}

p.julkaistu {
    font-size: .8em;
    text-align: left;
    margin-top: 0;
}

p.teksti {
    margin-bottom: 1.2rem;
}

.artikkeliteksti p.teksti {
    margin-top: 0;
}

p.artikkelitahdet {
    text-align: center;
    margin-top: -0.8em;
    margin-bottom: 1em;
    font-size: 1.4em;
}


p.alin {
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
}

.single h1 {
    margin-bottom: 0;
}

.single main h2 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}
.single p.paivays {
    margin-bottom: 35px;
    text-align: center;
}
p.artikkeli-ingressi {
    border-left: 2px solid #0d65b1;
    margin-top: 0;
    padding-top: 0;
    padding-left: 20px;
    font-style: italic;
    margin-bottom: 1.6em;
}

/*********************
*    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;
}

/*********************
*    ETUSIVU         *
*********************/

img.taustaelementti {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 900px;
    opacity: .09;
}

.palvelukortit {
    overflow: inherit;
    margin-top: 350px;
    position: relative;
}

.palvelukortit .palvelukortti {
    height: 520px;
    max-width: 350px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.home .palvelukortit .row:first-child {
    margin-top: -430px;
    align-items: flex-end;
}

.palvelukortti {
    background-image: url('https://hrv.fi/wp-content/uploads/tumma_kortti.jpg');
    background-size: cover;
    background-position: center bottom;
    padding: 40px 40px;
    position: relative;
}

.palvelukortti p {
	text-align: center;
	color: #fff;
	font-weight: 300;
}

.palvelukortti .hinta {
    font-size: 3em;
}

.palvelukortti .maara {
    font-size: 1.2em;
}
span.kortti-alk {
    font-size: .5em;
    margin-right: 10px;
}

.palvelukortti h3, .palvelukortti .hinta {
    font-family: museo-slab, serif;
    font-weight: 300;
    text-align: center;
    color: #fff;
}
.palvelukortti h3 {
    margin-bottom: 25px;
    color: #0D65B1;
    font-size: 1.7em;
}

.palvelukortti a.button:focus {
    color: #fff !important;
}

.palvelukortit .col-md-12.col-lg-4:nth-child(2) .palvelukortti {
    height: 520px;
}
.palvelukortit .palvelukortti {
    height: 520px;
}

.palvelukortti p.hinta {
    position: absolute;
    bottom: 270px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
}

.palvelukortti .kuvaus {
    position: absolute;
    top: 220px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 90px);
}

.palvelukortti .kuvaus:before {
    content: '';
    display: block;
    width: 160px;
    height: 1px;
    background: #ffffff;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}

.palvelukortti p.alin-nappi {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 50px);
}

.palvelukortti {
    transition: .4s all;
}
.palvelukortti:hover {
    transform: scale(1.05);
}

/*.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 10px;
    margin-top: 9px;
}



.ribbon .ribbon-text, .ribbon .ribbon-banner, .ribbon a {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

.ribbon .ribbon-banner::after, .ribbon .ribbon-banner::before {
    content: '';
    display: block;
    height: 12px;
    position: absolute;
    width: 30px;
}

.ribbon .ribbon-banner::before {
    -webkit-transform: skewY(-45deg) translate(50%, 15px);
    -moz-transform: skewY(-45deg) translate(50%, 15px);
    -ms-transform: skewY(-45deg) translate(50%, 15px);
    -o-transform: skewY(-45deg) translate(50%, 15px);
    -webkit-transform-origin: 100% center;
    -moz-transform-origin: 100% center;
    -ms-transform-origin: 100% center;
    -o-transform-origin: 100% center;
}

.ribbon .ribbon-text {
    position: relative;
    z-index: 2;
    padding: 6px 0;
    font-size: 15px;
    font-weight: bold;
    min-height: 18px;
    line-height: 18px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ribbon .ribbon-text {
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
}
.ribbon .ribbon-text::before, .ribbon .ribbon-text::after, .ribbon .ribbon-text {
    background-color: #ff0000;
}
.ribbon .ribbon-text::before {
    -webkit-transform: translateX(-15%) skewX(-45deg);
    -moz-transform: translateX(-15%) skewX(-45deg);
    -ms-transform: translateX(-15%) skewX(-45deg);
    -o-transform: translateX(-15%) skewX(-45deg);
}
.ribbon .ribbon-text::before, .ribbon .ribbon-text::after {
    content: '';
    display: block;
    height: 30px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.ribbon .ribbon-text::after {
    -webkit-transform: translateX(15%) skewX(45deg);
    -moz-transform: translateX(15%) skewX(45deg);
    -ms-transform: translateX(15%) skewX(45deg);
    -o-transform: translateX(15%) skewX(45deg);
}

.ribbon .ribbon-banner::after {
    -webkit-transform: translate(100%, -100%) skewY(45deg) translateX(-58%);
    -moz-transform: translate(100%, -100%) skewY(45deg) translateX(-58%);
    -ms-transform: translate(100%, -100%) skewY(45deg) translateX(-58%);
    -o-transform: translate(100%, -100%) skewY(45deg) translateX(-58%);
    -webkit-transform-origin: 0 center;
    -moz-transform-origin: 0 center;
    -ms-transform-origin: 0 center;
    -o-transform-origin: 0 center;
    right: -17px;
}
.ribbon .ribbon-banner {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    display: block;
    float: right;
    position: relative;
    right: -14px;
    top: 22px;
    width: 100px;
}
*/

.ribbon {
    position: absolute;
    top: 0;
    background: #dd0606;
    right: 0;
    padding: 4px 21px;
    color: #fff;
    font-weight: 800;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    /* margin-right: 10px; */
    top: -23px;
    right: 20px;
    -webkit-transform: rotate(15deg);
    -moz-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    -o-transform: rotate(15deg);
    transform: rotate(15deg);
}

.ribbon-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

img.desktop-kuva {
    display: none;
}

/********************
*      ALASIVU      *
********************/

.taustaelementti.alasivu {
    left: auto;
    width: 100%;
    max-width: 800px;
}

.row.arvostelut-alasivu {
    justify-content: space-evenly;
}

.arvostelu-alasivu {
    max-width: 450px;
	flex-basis: auto;
    margin-bottom: 20px;
}

.arvostelu-alasivu p.tahdet, p.arvostelu-alasivu, p.arvostelu-kirjoittaja {
    text-align: center;
}

p.arvostelu-alasivu {
    font-style: italic;
    font-size: 1.2em;
}

.alasivu .palvelukortit .col-md-12.col-lg-4:nth-child(2) {
    padding-left: 25px;
    padding-right: 25px;
}

.alasivu .palvelukortit .col-md-12.col-lg-4:nth-child(2) .palvelukortti , .alasivu .palvelukortit .palvelukortti {
    height: 570px;
}

.alasivu .palvelukortti p.hinta {
    position: absolute;
    bottom: 310px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
}

.alasivu .palvelukortti .kuvaus {
    position: absolute;
    top: 220px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 90px);
    padding-top: 25px;
}

.alasivu .palvelukortit .col-md-12.col-lg-4:nth-child(2) .palvelukortti .kuvaus {
    top: 220px;;
}

.alasivu .text a.button, .alasivu .text .button, .alasivu .text a.button:visited, .alasivu .text .button:visited {
    background: transparent;
    color: #2a6fce;
    border: 2px solid #2a6fce;
    font-weight: 700;
    font-size: .95em;
    padding: 3px 30px;
}

.alasivu a.button:hover {
    background-color: #2a6fce;
    color: #fff;
}

.alasivu .palvelukortit {
    overflow: inherit;
    margin-top: 0;
    position: relative;
}

.alasivu .cta {
    overflow: inherit;
}

.alasivu .call-to-action {
    padding-top: 35px;
    padding-bottom: 35px;
}

.cta-ihminen {
    display: none;
}

.cta-linkit {
    margin-top: 30px;
}

.cta-linkit a.button {
    max-width: 250px;
}

.palvelukortit.tumma-tausta.cta.container-fluid .col-lg-4 {
    margin-top: 30px;
}

.alasivu .cta h2 {
    color: #0D65B1;
    font-size: 2.6em;
    margin-bottom: 0.6em;
    text-align: center;
}

.alasivu .cta {
    background-image: url('https://hrv.fi/wp-content/uploads/cta_tausta-1.jpg');
}

span.paivystys-cta i.fa-solid.fa-phone {
    margin-right: 7px;
    margin-left: 7px;
}

p.sitaatti {
    font-family: museo-slab, serif;
    font-weight: 500;
    color: #0D65B1;
    text-align: center;
    font-size: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.kokokuva {
    height: 500px;
    background-size: cover;
    background-position: center;
}

/********************
*      EVASTEET     *
********************/

h2.valiotsikko {
    margin-bottom: 0.5em;
    margin-top: 1.5em;
    font-size: 1.5em;
}


/********************
*  ALAETUSIVU       *
********************/

.palvelut {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.palvelukuva {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.palveluteksti {
    width: 100%;
    padding: 40px;
}

.palveluteksti h3 {
    margin-bottom: 20px;
}

.palveluteksti .oikea-kappale {
    margin-left: 0;
    width: 100%;
}

.palveluteksti .flex.align-items-end {
    margin-top: 30px;
}

.palveluteksti a.button:focus {
    color: #fff !important;
}

.palveluteksti p.puolikas-kappale {
    width: 100%;
    text-align: center;
    margin-bottom: 0.6em;
}

.palvelu {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    transition: .2s all;
}

.palvelu:hover {
    box-shadow: 0 0 8px rgba(0,0,0,.1);
}

.row.alasivunostot {
    max-width: 1140px;
}

.row.alasivunostot h3 {
    margin-bottom: 0;
}

.palvelu .button, .palvelu .button:visited, .palvelu a.button, .palvelu a.button:visited {
    font-size: .9em;
    padding: 5px 25px;
}

/*********************
*  VAIN MALLIULKASSA *
*********************/

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 25vh;
    min-height: 15vh;
    position: relative;
}

.otsikko.keskella {
    position: absolute;
    left: 50%;
    top: calc(50% + 30px);
    transform: translate(-50%,-50%);
	width: 90%;
}
.page-header h1 {
    font-size: 2.4em;
    color: #eaebee;
    margin-bottom: 0;
    font-weight: 300;
}

.home .header-image {
    height: 100vh;
    max-height: 100vh;
}

.ylapalkki {
    background-color: #16202D;
    position: fixed;
    top: 0;
}

.ylapalkki::-webkit-scrollbar {
	width: 0 !important;
}

.home .ylapalkki {
	background-color: transparent;
	transition: .4s all;
}

.home.mega-menu-primary.mega-menu-primary-mobile-open .ylapalkki {
    background-color: #16202d;
}


.home .ylapalkki.shrink {
	background-color: #16202D;
}
.mega-menu-primary-mobile-open .ylapalkki {
    overflow: auto;
    height: 100vh;
}

a.nav-link {
    color: #b25c2e;
    text-transform: uppercase;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    font-size: 16px;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    font-size: 16px !important;
    font-weight: 400 !important;
}    
    
#mega-menu-wrap-primary .mega-menu-toggle {
    background-color: transparent !important;
}

.button, .button:visited, a.button, a.button:visited, button, .woocommerce a.button {
    background-color: #2a6fce;
    border: 0 solid transparent;
    padding: 6px 38px;
    color: #fff;
    display: inline-block;
    font-size: 1em;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    letter-spacing: .05em;
    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: 50px;
    background-image: url('https://hrv.fi/wp-content/uploads/palvelukortti.jpg');
    background-position: center;
    background-size: cover;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover, .tumma-tausta .button:hover, .button:focus  {
    background-image: none;
    text-decoration: none;
    background-color: #2a6fce !important;
    color: #fff !important;
    border-color: #2a6fce;
}

.woocommerce .verkkokauppa-napit a.button, .woocommerce a.wc-forward {
	 line-height: 170%;
}

.call-to-action .button, .call-to-action .button:visited, .call-to-action a.button, .call-to-action a.button:visited {
    background-color: #fff;
    color: #2a6fce;
    background-image: none;
}

/*******************
*  BLOGI-SLIDER    *
*******************/

.slideshow-container {
    widtH: 100%;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}



/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade-slid {
  -webkit-animation-name: fade-slid;
  -webkit-animation-duration: 2s;
  animation-name: fade-slid;
  animation-duration: 2s;
}

@-webkit-keyframes fade-slid {
  from {opacity: .5}
  to {opacity: 1}
}

@keyframes fade-slid {
  from {opacity: .5}
  to {opacity: 1}
}

.slide-inner {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.slide-inner p.tahdet {
    margin-top: 2em;
    margin-bottom: 0.3em;
}

.fade-slid .kuvapuoli {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.fade-slid .tekstipuoli {
    padding: 40px;
    width: 100%;
}

.next-prev {
    width: 100%;
    float: left;
    position: relative;
    padding-left: 30px;
    padding-bottom: 40px;
}

.prev, .next {
    padding: 3px 0 4px 0 !important;
    top: auto;
    bottom: 50px;
}
span.nuoli {
    font-size: 1.3em;
    display: block;
}

.next {
    left: 100px;
    right: auto;
}

.slide-inner h3 {
    font-size: 1.6em;
    font-weight: 200;
}

.slide-inner h2 {
    margin-bottom: 1.2em;
}

p.paivays {
    color: #0D65B1;
    font-size: 1em;
    margin-bottom: 25px;

}
.slide-inner h2:after {
    content: '';
    display: block;
    width: 160px;
    height: 2px;
    background: #0D65B1;
    margin-left: 0;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 30px;
}

.slide-inner .tekstipuoli h3, .slide-inner .tekstipuoli h3, .slide-inner .tekstipuoli p {
    max-width: 600px;
}

/********************
*    REKRY          *
********************/

.rekry h4 {
    margin-top: 3em;
    margin-bottom: .4em;
    font-size: 1.2em;
}

.rekry .oikea-kappale {
    margin-left: 15px;
}

.rekry .card-body {
    padding-bottom: 35px;
}
.rekry-img {
    margin-top: 10px;
    max-width: 100%;
    margin-bottom: 20px;
}

#tampere.tabcontent .row,
#riihimaki.tabcontent .row,
#espoo.tabcontent .row {
    max-width: 850px;
}

select {
    width: 100%;
    padding: 10px;
}

.wpcf7 input[type="file"] {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.rekrytointi h3 {
    margin-bottom: 0.5em;
    margin-top: 2em;
    border-top: 1px solid #cacaca;
    padding-top: 1.5em;
    font-size: 2em;
}
.rekrytointi h4 {
    margin-top: 2em;
    font-size: 1.4em;
}

#tampere h3:first-child,
#riihimaki h3:first-child,
#espoo h3:first-child  {
	border-top: 0 solid transparent;
	padding-top: 0;
	margin-top: 0;
}
/********************
*       CTA         *
********************/

.cta, .alasivu.karsittu .cta {
    background-image:url('https://hrv.fi/wp-content/uploads/cta_tausta.jpg');
    background-size: cover;
    background-position: center;
}

.alasivu.karsittu .cta h2 {
    color: #fff;
}

.cta h2 {
    color: #fff;
    font-size: 3.2em;
    margin-bottom: 0.4em;
    font-weight: 300;
}

.home .cta h2 {
	text-align: center;
	font-size: 3em;
}

.call-to-action {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.padding-top-90 {
    padding-top: 50px;
}

.puhnro-cta, .sahkoposti-cta {
    color: #fff;
    font-size: 1.1em;
}
.puhnro-cta i.fa-solid.fa-phone, .sahkoposti-cta i.fa-solid.fa-envelope {
    font-family: 'FontAwesome';
    margin-right: 11px;
}

.cta p {
    margin-bottom: 0.5em;
}

.call-to-action a.button {
    width: 100%;
    font-size: 1em;
    padding: 6px 25px;
    margin-bottom: 5px;
}

.call-to-action a:hover {
    color: #fff;
}

/*********************
*  POP UP            *
*********************/

.pum-overlay.pum-active, .pum-overlay.pum-active .popmake.active {
   display: block !important;
}


/********************
*    FOOTER         *
********************/

footer {
    background-color: #16202d;
}

footer .col {
    width: 100%;
    flex-basis: auto;
}

footer p {
    font-size: 1em;
}

footer h2 {
    color: #0D65B1;
    font-size: 1.6em;
    margin-bottom: 1em;
}

footer a, footer a:visited {
    color: #fff;
    font-family: museo-slab, serif;
    font-weight: 300;
    display: inline-block;
    margin-bottom: 0.6em;
}

#footer-palsta-3 a, #footer-palsta-3 a:visited {
    color: #fff;
	font-family: 'lato';
    font-weight: 300;
    display: inline-block;
    margin-bottom: 0;
}
footer .copyright a {
    font-size: 1em;
    color: #fff;
    font-family: 'lato';
    font-weight: 300;
}

footer img {
    max-width: 110px !important;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

#footer-palsta-1, #footer-palsta-2, #footer-palsta-3, #footer-palsta-4, #footer-palsta-5 {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
}

p.copyright {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #263549;
    padding-top: 30px;
    font-size: .8em;
}

footer .container {
    padding-bottom: 40px;
    padding-top: 60px;
}
.logo-kompassi {
    width: 100% !important;
    max-width: 130px !important;
    margin-top: 40px;
}

span#cookie_hdr_showagain {
  visibility: hidden;
	position: relative;
}
span#cookie_hdr_showagain::after {
    content: '\f564';
    visibility: visible;
    position: absolute;
    top: -5px;
    left: 3px;
    font-family: 'FontAwesome';
    font-size: 1.5em;
    color: #1c2532;
}

#cookie-law-info-bar {
    z-index: 99999999;
}

div#cookie-law-info-again {
    position: fixed;
    transform: rotate(45deg);
    left: -64px !important;
    bottom: -78px !important;
    box-shadow: 0 5px 20px rgb(0 0 0 / 16%) !important;
    z-index: 99999;
    background: white;
    cursor: pointer;
    padding: 13px 25px 60px 40px;
	right: auto !important;
}

#cookie-law-info-again {
    box-shadow: 0 0 1px rgb(0 0 0 / 20%);
}

@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
    .palvelut.kolmasosa .palveluteksti .oikea-kappale {
        width:auto;
        margin-left: 10px;
    }
    .palvelut.kolmasosa .vasen-kappale, .palvelut.kolmasosa .oikea-kappale {
        margin-bottom: 0.5em;
    }
}

@media only screen and (min-width: 576px) {
    h2 {
        font-size: 2.1em;
    }
    .slide-inner h3 {
        font-size: 2em;
    }
    .alasivu .cta h2 {
        font-size: 3.1em;
    }
    .palveluteksti .oikea-kappale {
        width: auto;
        margin-left: 10px;
    }
    .palvelukortti .maara {
        font-size: 1.3em;
    }
    /* Slider */

    div#n2-ss-2 .n2-ss-slide {
        height: calc(100vh - 150px) !important;
        min-height: 400px !important;
    	max-height: 500px !important;
    }
    
    div#n2-ss-2 .n2-ss-slide-limiter {
        height: calc(100vh - 150px) !important;
		min-height: 400px !important;
		max-height: 500px !important;
    }
}

@media only screen and (min-width: 768px) {
	.rekry-img {
		margin-top: 10px;
		max-width: 50%;
		float: right;
		margin-bottom: 40px;
		margin-left: 40px;
	}
    .page-header h1 {
        font-size: 3.5em;
    }
    main .row, .header-image .row {
        opacity:1;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
        .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 250px;
        margin-bottom: 0;
    }
    .henkilot {
        width: 50%;
        padding: 20px;
    }

    .henkilotekstit {
        width: 50%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: left;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
    .palvelukuva {
        width: 30%;
        height: auto;
    }
    
    .palveluteksti {
        width: 70%;
        padding: 20px;
    }
    
    .palvelut.kolmasosa {
        display: flex;
        flex-wrap: wrap;
    }

	.palvelut.kolmasosa .palvelukuva {
		height: 200px;
	}

    .palvelut.kolmasosa .palvelu {
        widtH: calc(50% - 20px);
        margin: 10px;
    }

    .palvelut.kolmasosa .palvelukuva, .palvelut.kolmasosa .palveluteksti {
        width: 100%;
    }

    .fade-slid .kuvapuoli {
        height: 300px;
    }

    button.tablinks {
        width: calc(33% - 15px);
        margin: 0 10px;
    }

    .nappirivi button:first-child {
        margin-left: 0;
    }
    
    .nappirivi button:last-child {
        margin-right: 0;
    }
    p.sitaatti {
        font-size: 2em;
    }
	.padding-top-90 {
		padding-top: 50px;
	}
	img.desktop-kuva {
		display: block;
	}
	img.mobiili-kuva {
		display: none;
	}

}

@media only screen and (min-width: 992px) {
	.home .ylapalkki.shrink {
		background-color: #0d0d0a;
	}
     /* Slider */
    div#n2-ss-2 .n2-ss-slide {
        height: calc(100vh - 150px) !important;
        min-height: 400px !important;
        max-height: 100% !important;
    }
    
    div#n2-ss-2 .n2-ss-slide-limiter {
        height: calc(100vh - 150px) !important;
        min-height: 400px !important;
        max-height: 100% !important;
    }
    .taustaelementti.alasivu {
        right: -70px;
    }
    h2.center {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }
    .hide-mobile {
        display: block !important;
    }
    .page-header {
        max-height: 300px;
        min-height: 300px;
    }
    .otsikko.keskella {
        top: calc(50% + 65px);
    }
    ul.nav {
        padding-top: 0;
    }
    .navbar a:hover {
        color: #3185e5;
    }
    .mega-menu-wrap {
        width: 100% !important;
    }
    nav.navbar.navbar-expand-lg {
        flex-wrap: wrap;
        justify-content: center;
    }
    #mega-menu-primary {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    a.mega-menu-link {
        font-family: museo-slab, serif !important;
        font-size: 1.1em !important;
    }
    #mega-menu-wrap-primary {
        background-color: transparent !important;
    }
    #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu.mega-menu-item ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu {
        margin-left: 0 !important;
    }
    #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu.mega-menu-item ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu  a.mega-menu-link {
        font-size: 1em !important;
        padding: 3px 0 !important;
    }
    ul.mega-sub-menu, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link:hover,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link,
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
        background-color: #19293E !important;
    }
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
        font-size: 1em !important;
    }
    .palvelukortit.tumma-tausta.cta.container-fluid .col-lg-4 {
		margin-top: 0;
	}
	.home .cta h2 {
		text-align: left;
		font-size: 3.2em;
	}
    .navikuva {
        height: 100%;
        width: 100%;
        background-size: cover;
        background-position: center;
    }
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item.widget_custom_html {
		font-size: .9em !important;
		color: #ccd0d1 !important;
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
		padding: 15px 15px 3px 15px !important;
		width: 100%;
	}
    a.mega-menu-link {
        color: #f7f7f7 !important;
        font-size: 1.1em !important;
        text-transform: none !important;
        font-weight: 400 !important;
    }
    ul.mega-sub-menu a.mega-menu-link:hover,   ul.mega-sub-menu a.mega-menu-link:focus {
        color: #3185e5 !important;
    }
    nav.navbar.navbar-expand-lg {
        padding-bottom: 0;
    }
    a.mega-menu-link {
        font-size: 1.1em !important;
    }
    ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu a.mega-menu-link {
        font-size: 1em !important;
        font-weight: 300 !important;
    }
	#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator:after {
		content: none !important;
	}
	.nav-flex {
		justify-content: space-between;
		width: calc(100% - 20px);
		font-family: museo-slab, serif;
		font-weight: 500;
		color: #f7f7f7;
	}
	.nav-flex p {
		margin-bottom: 0;
	}

	p.nav-phone a {
		font-size: 1.05em;
		font-weight: 200;
	}
	.nav-phone i.fa-solid.fa-phone {
		margin-left: 5px;
		margin-right: 5px;
	}
	.verkkokauppa-napit a.button {
		padding: 4px 40px 5px 40px;
		font-size: .95em;
	}
	.verkkokauppa-napit a.button:hover {
		color: #fff;
	}
    .ylapalkki {
        position: relative;
        background-color: rgba(22, 32, 45, .92);
    }
    .home .ylapalkki {
        background-color: #0d0d0a;
    }
    #mega-menu-wrap-primary .mega-menu-toggle + #mega-menu-primary {
        background: transparent;
    }
    .logo {
        margin-bottom: 20px;
    }
    .logo img {
        height: 50px;
    }
    .shrink .logo img {
        height: 50px;
    }
    .shrink {
        padding: 1rem 0;
    }
    .text {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 80px;
        padding-right: 80px;
    }
    .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 .text {
        text-align: left;
    }
    .teksti-vasemmalla p, .teksti-vasemmalla h2, .teksti-vasemmalla h3, .teksti-vasemmalla h4 {
        margin-left: auto;
        max-width: 600px;
        text-align: left;
    }  
    .teksti-oikealla p, .teksti-oikealla h2 {
        text-align: left;
        max-width: 600px;
    }
    .palvelukortit .col-md-12.col-lg-4:nth-child(2) .palvelukortti {
        height: 570px;
    }
    .palvelukortit .palvelukortti {
        height: 520px;
    }
    .palvelukortit .col-md-12.col-lg-4:nth-child(2) .palvelukortti .kuvaus {
        top: 270px;
    }
    .palvelukortit .col-md-12.col-lg-4:nth-child(2) {
        padding-left: 15px;
        padding-right: 15px;
    }
   .palvelukortti .maara {
        font-size: 1.1em;
    }
    .fade-slid .kuvapuoli {
        width: 40%;
        height: auto;
    }
    .fade-slid .tekstipuoli {
        padding: 100px 60px 170px 60px;
        width: 60%;
    }
    .next-prev {
        width: calc(60% - 60px);
        float: right;
        position: absolute;
        position: relative;
		float: right;
		padding-left: inherit;
		padding-bottom: 0;
    }
	
	span.cart-customlocation {
		background-color: #ff0000;
		height: 20px;
		width: 20px;
		display: inline-block;
		border-radius: 50px;
		color: #fff;
		position: relative;
		top: 5px;
		margin-left: 3px;
		font-size: 11px;
		position: relative;
	}

	span.cart-customlocation.cart-sininen {
		background-color: #3085e4;
	}

	span.contents-number {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		line-height: 100%;
	}

	.verkkokauppa-napit a.button {
		margin-right: 20px;
	}

    /* Next & previous buttons */
    .prev, .next {
		position: absolute;
		width: auto;
		color: white;
		font-weight: bold;
		font-size: 18px;
		transition: 0.6s ease;
		border-radius: 0 3px 3px 0;
		user-select: none;
		padding: 3px 0 4px 0 !important;
		top: auto;
		bottom: 100px;
    }
    
    .henkilot {
        width: 33%;
        padding: 20px;
    }
	#myynti .henkilot {
		width: 50%;
	}

	.mega-sub-menu h2 {
		padding-top: 10px;
		margin-bottom: -15px;
		padding-bottom: 0.6em;
		border-bottom: 1px solid #677a93;
		color: #eee;
		font-size: 1.4em;
	}

	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link 
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link,
	ul.mega-sub-menu a.mega-menu-link {
		font-weight: 500 !important;
		font-family: lato, sans-serif !important;
		letter-spacing: .3px;
	}
	#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link {  
		font-weight: 300 !important;
	}

	.textwidget a {
		font-weight: 500 !important;
	}
	.mega-sub-menu .textwidget {
		margin-top: 15px !important;
		margin-bottom: 20px !important;
	}
	.mega-sub-menu {
		padding-bottom: 15px !important;
	}

	/* ALASIVU */

    .cta-ihminen {
        display: block;
        position: absolute;
        bottom: 0;
        max-width: 370px;
        max-width: 430px;
        margin-left: -60px;
    }
    
    .cta-linkit {
        margin-top: 0;
    }
    .alasivu .cta h2 {
        text-align: left;
    }

    #accordion, #accordion-rii, #accordion-esp {
        margin-bottom: 130px;
    }
    
    .artikkeliteksti {
        padding: 30px 25px 25px 25px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .otsikkokorkeus {
        min-height: 130px;
    }
    
    .slide-inner {
        min-height: 720px;
    }

    /* Footer */
    
    footer .col {
        width: auto;
        flex-basis: 0;
    }
    footer img {
        max-width: 110px !important;
        margin-bottom: 40px;
        margin-left: 0;
        margin-right: auto;
    }
}


@media only screen and (min-width: 991px) {
	
.verkkokauppa-napit {
    display: flex;
	  flex-direction: row-reverse;
}
	
a.tarjous-btn {
    padding-right: 1em;
}
	
}


@media only screen and (min-width: 1200px) {
	.fade-slid .tekstipuoli {
        padding: 120px 0 190px 150px;
    }
    .next-prev {
        width: calc(60% - 150px);
    }
    .palvelut.kolmasosa .palvelu {
        widtH: calc(33.3333% - 30px);
        margin: 15px;
    }
    .palvelut.kolmasosa .palveluteksti {
        padding: 30px;
    }
    .palvelut.kolmasosa {
    	max-width: 1130px;
    }
    .palvelukortti .maara {
        font-size: 1.3em;
    }

}

@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}

/* Lisätty 1.6. jälkeen */

.woocommerce table.shop_table td small {
    font-size: 12px;
}

small.no-vat {
    clear: both;
    display: block;
    color: #b0b2b7;
}

section.up-sells.upsells.products {
    clear: both;
    padding-top: 2em;
}

.ylapalkki {
    z-index: 9999;
}

section.related.products {
    clear: both;
}
/* WooCommerce thank you*/

.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    font-family: museo-slab, serif;
    font-weight: 500;
    color: #0D65B1;
    margin-bottom: 2em;
    font-size: 2em;
}

ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
    margin-left: 0px!important;
    padding-left: 0px;
}

.woocommerce-order-received .woocommerce-column.woocommerce-column--1.woocommerce-column--billing-address.col-1, .woocommerce-order-received .woocommerce-column.woocommerce-column--2.woocommerce-column--shipping-address.col-2 {
    width: 100%;
    min-width: 50%;
		padding-left: 0px;
}

/* Woocommerce shop/archive */

.woocommerce ul.products li.product .price {
    color: #000;
    font-family: lato, sans-serif;
    font-weight: 300;
    font-size: 16px;
}

h2.woocommerce-loop-category__title mark.count {
    display: none;
}

.shop-sidebar ul.products img {
    display: none!important;
}

.shop-sidebar ul li{
    min-width:100%;
	  margin-bottom:0px!important;
}
a.added_to_cart.wc-forward {
    clear: both;
    display: block;
}

.shop-container{
   padding: 4vw;
}

.shop-sidebar {
    background: #fff;
	  padding: 4vw;
}

.row.full-width {
    width: 100%;
    min-width: 100%;
}

.woocommerce ul.products.columns-3 li.product, .woocommerce-page ul.products.columns-3 li.product {
    background: #fff;
    text-align: center;
    padding-bottom: 20px;
}

select.orderby {
    font-family: lato, sans-serif;
    font-weight: 300;
}

/* Woocommerce single product */

.single-product .row.full-width {
    background: #efeff2;
}

.single-product h1.product-title {
    text-align: left;
    margin-bottom: 0.5em;
}

.single-product div.product p.price, .single-product div.product span.price {
    color: #000;
    font-size: 1.25em;
    font-family: museo-slab, serif;
    font-weight: 500;
}


/* Woocommerce */

.container .single-product {
    margin-top: 2em;
}

.single-product .summary.entry-summary, .woocommerce div.product div.images {
    margin-top: 2em;
}

h1.product-title {
    text-align: left;
}

.woocommerce .quantity .qty {
    padding: 7px;
}

a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart, a.checkout-button.button.alt.wc-forward, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, button.single_add_to_cart_button.button.alt {
    background-color: #2a6fce;
    border: 0 solid transparent;
    padding: 11px 38px!important;
    color: #fff;
    display: inline-block;
    font-size: 1em;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    letter-spacing: .05em;
    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: 50px;
    background-image: url(https://hrv.fi/wp-content/uploads/palvelukortti.jpg);
    background-position: center;
    background-size: cover;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none;
}

a.button.wc-backward {
    padding: 10px 30px;
}

/* Woocommerce cart */

.woocommerce form.woocommerce-cart-form table.shop_table {
    border: none;
}

table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents button.button {
    border-radius: 50px;
}

input#coupon_code {
    min-width: 125px;
}

/* Woocommerce checkout */
p#billing_country_field {
    display: none;
}
.woocommerce-billing-fields h4 {
    margin-top: 2em;
}
form.checkout.woocommerce-checkout .col-1, form.checkout.woocommerce-checkout .col-2 {
    width: 100%;
    min-width: 100%;
    padding-left: 0px!important;
    margin-bottom: 2em;
}

form.checkout.woocommerce-checkout span.woocommerce-input-wrapper {
    width: 100%;
}

/* Product work list */

span.otsikko-tuotelista {
    max-width: 200px;
		min-width: 200px;
    display: inline-block;
}

span.maara-tuotelista, span.kplhinta-tuotelista, span.yhthinta-tuotelista {
    display: inline-block;
    min-width: 90px;
    margin-left: 3em;
}

ul.tuotelista {
    list-style: none;
    margin-left: 0px!important;
    padding-left: 0px!important;
    float: left;
    clear: both;
    display: block;
}

ul.tuotelista li {
    margin-bottom: 1em;
    border-bottom: 1px solid #c3dbff;
}

.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
    background: #0D65B1;
    color: #ffffff;
}

.woocommerce a.prev.page-numbers, .woocommerce a.next.page-numbers {
    display: none;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title, .woocommerce ul.products li.product .price {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.woocommerce .variations th.label, .woocommerce .variations td.value {
    width: 100%;
    display: block;
}

section.related.products {
    margin-top: 0;
	overflow: hidden;
}

table.woocommerce-grouped-product-list.group_table {
    margin-bottom: 1em;
}

.woocommerce-tabs.wc-tabs-wrapper {
    overflow: hidden;
}

.single.woocommerce main h2 {
    margin-top: 1em;
}

.woocommerce-tabs.wc-tabs-wrapper {
    margin-bottom: 1em;
}

@media only screen and (max-width: 768px) {

.woocommerce-page .page-header h1, .single-product .page-header h1 {
    font-size: 28px;
}

.woocommerce-page .otsikko.keskella , .single-product .otsikko.keskella {
    top: calc(65% + 30px);
}
	
ul.tuotelista li {
    margin-bottom: 15px;
    padding-bottom: 15px;
}
	
ul.tuotelista div span {
    width: 100%;
    margin-left: 5px;
    max-width: 100%;
}
	
span.maara-tuotelista, span.kplhinta-tuotelista, span.yhthinta-tuotelista {
    width: 30%!important;
}
	


}


a.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed {
    background-color: #2a6fce;
    border: 0 solid transparent;
    padding: 11px 38px!important;
    color: #fff;
    display: inline-block;
    font-size: 1em;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    letter-spacing: .05em;
    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: 50px;
    background-image: url(https://hrv.fi/wp-content/uploads/palvelukortti.jpg);
    background-position: center;
    background-size: cover;
}


@media only screen and (min-width: 991px) {
  .show-mobile {
    display:none!important;
  }
	
}

@media only screen and (max-width: 991px) {
.home .header-image-and-title {
    padding-top: 100px;
    background: linear-gradient(180deg, rgba(0,0,0,1) 29%, rgba(14,15,10,1) 65%);
}
	
	div#prodCats {
    	display: none;
	}
	ul#mega-menu-primary {
		padding-top: 2em!important;
	}

	nav.navbar-top {
		padding: 0px 10px 10px;
	}

	.nav-phone {
		text-align: left;
	}

	nav.navbar-top a.button {
		padding: 0px;
		min-height: 30px;
		line-height: 30px;
		width: 100%;
		font-size: 12px;
	}
	
	a.tarjous-btn {
        padding-left: 7%;
        font-size: 14px;
        min-width: 134px;
        display: inline-block;
		text-align: right;
	}
	
	.nav-phone, .services-btn {
    padding: 0px 7px;
}
	
span.cart-customlocation {
    background-color: red;
    height: 20px;
    width: 20px;
    border-radius: 100%;
    color: #fff;
    position: relative;
    top: 0px;
    margin-left: 3px;
    font-size: 11px;
    padding: 2px 6px;
}

	.col-left, .col-right {
		width: 50%;
		text-align: right;
		color: white;
		align-items: center;
		display: inline-block;
		max-width: 49%;
	}

	.page-header {
		max-height: 31vh;
	}

	.otsikko.keskella {
		top: calc(67% + 30px);
	}

	.page-template-page-alaetusivupalvelut .container-fluid.padding-bottom-0 {
		padding-top: 30px!important;
	}

	.page-template-page-alaetusivupalvelut .padding-top-puolikas {
		padding-bottom: 32px;
	}

	.tax-product_cat .page-header {
		max-height: 30vh;
	}

	.tax-product_cat .otsikko.keskella {
		top: calc(64% + 30px);
	}
	
	.woocommerce-checkout a.button.wc-forward {
    clear: both;
    display: block;
    width: 100%;
    margin-bottom: 14px;
}
	
}

@media only screen and (max-width: 321px) {
    a.tarjous-btn {
        padding-left: 3%;
        font-size: 13px;
        min-width: 114px;
    }
}