/*
 Theme Name:   TampereIN
 Template:     aate
 Text Domain:  tamperein
*/

@import url("https://use.typekit.net/uto1kxi.css");
@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: 300;
font-style: normal;
background-color: #245575;
}

main {
    background: #245575;
}


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

h1, h2, h3, h4, h5 {
  font-family: "scale-variable",sans-serif;
  font-variation-settings: 'wdth' 100, 'wght' 900;
font-style: normal;
color: #FFFFFF;
}

p, ul {
    color: #FFFFFF;
    font-weight: 400;
}


h3 {
  font-family: "scale-variable",sans-serif;
  font-variation-settings: 'wdth' 75, 'wght' 900;
}

h1.center {
    font-size: 2.2em;
    color: #FAE4CF;
    font-variation-settings: 'wdth' 130, 'wght' 700;
}

.home h1 {
    font-size: 3em;
    text-transform: uppercase;
    font-weight: 800;
}


p.header-nosto.showhead {
    font-size: 1.9em;
    font-weight: 700;
    color: #DDB56D;
    margin-top: 1em;
}

h2.center, h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: #FAE4CF;
}

h2.center {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

a, a:visited, summary, a:hover, a:focus {
    color: #eb9b50;
}

.showheadctn1,
.showheadctn2 {
  width: 100%;
  overflow: hidden;
}

.showheadctn1 {
  transform: translateX(50%);
}

.showheadctn2 {
  transform: translateX(-100%);
}

.showhead {

  width: 100%;
  transform: translateX(50%);
}

.showheadctn1,
.showheadctn2,
.showhead {
  animation: revealText 3s;
  animation-fill-mode: forwards;
 animation-delay: 1s;
}

@keyframes revealText {
  0% {}
  100% {
    transform: translateX(0%);
  }
}




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


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

header .row {
    position: absolute;
    top: calc(50% - 20px);
    left: 50%;
    transform: translate(-50%, -50%);
        width: 100%;
        max-widtH: 1200px;
}

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

.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: #63bb35;
    border: 2px solid #333;
    color: #fff !important;
    height: 35px;
    width: 35px;
}

.otsikko h1, .otsikko p {
    text-align: center;
    color: #fff;
}

.home header .container {
    padding-top: 0;
    padding-bottom: 0;
    height: 100%;
    height: 100vh;
    min-heighT: 700px;
}

    header .row {
        height: 100%;
    }
img.header-tahti {
height: 100%;
    width: 100%;
}

.otsikko {
    position: absolute;
    height: 80vh;
    width: 80vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
        min-height: 550px;
    min-width: 550px;
}


.home .header-image {
    height: calc(100vh + 300px);
    min-height: 700px;
}

.home .header-image-and-title {
    min-height: 900px;
}

.header-line {
    display: block;
    color: #fae4cf;
}

span.header-line.headerline-1 {
    margin-left: -19%;
}

span.header-line.headerline-2 {
    margin-left: -12%;
}

span.header-line.headerline-3 {
    margin-right: -28%;
}

img.header-logo {
    margin-bottom: 15%;
}

.oranssi {
    color: #EB9B50;
}

.home .container.padding-top-minus,
.home .container-fluid.padding-top-minus{
    padding-top: 0;
    margin-top: -260px;
}


.container.padding-top-minus,
.container-fluid.padding-top-minus{
    padding-top: 0;
    margin-top: -170px;
}




.header-logo-text {
    position: absolute;
    /* height: 80%; */
    width: 75%;
    /* height: 100%; */
    /* max-width: 550px; */
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .home .header-image h1 {
        font-size: 1.9em;
    }

video.header-video-left {
    position: absolute;
    left: 0;
    top: 8%;
    width: calc(((100vw - 80vh) / 2) + 60px);
    height: auto;

}

video.header-video-right {
    position: absolute;
    right: 0;
    top: 10%;
    width: calc(((100vw - 80vh) / 2) + 60px);
    height: auto;

}

/***********************
*       NAV         *
***********************/
    
.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"; /* Unicode character for "minus" sign (-) */
       margin-left: 1px;
    margin-top: 0;
}

nav.navbar.navbar-expand-lg {
    padding: 15px 15px;
}

/***********************
*        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%;
    position: relative;
}

.row, .container {
    max-width: 1400px;
    margin: 0 auto;
}

.container-fluid.wide .row {
    max-width: 100%;
}
.text {
    padding-top: 50px;
    padding-bottom: 50px;
    order: 2;
}

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

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

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.2em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.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: 80px;
}

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

.kapea {
    max-width: 900px;
}

/**********************
*      TAPAHTUMAT     *
**********************/


.tapahtumahaku {
    padding-bottom: 50px;
}

.tapahtumakuva-listalla {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

.tapahtumahaku .tapahtuma {
        margin-bottom: 40px;
        position: relative;
        padding: 0 15px 20px 15px;
}

.tapahtumahaku .tapahtuma p, .tapahtumahaku .tapahtuma a, .tapahtumahaku .tapahtuma h2, .tapahtumahaku .tapahtuma h3 {
    color: #ffffff;
}

.tapahtumahaku .tapahtuma h3, .tapahtumahaku .tapahtuma h3 a {
    color: #FAE4CF;
}

.tapahtumakuvaus-listalla {
    padding: 20px;
}

.tapahtumahaku .tapahtuma h3 {
    font-size: 1.6em;
}

.event-search input:first-child {
    width: calc(66.66666% - 10px);
    margin-right: 10px;
    margin-bottom: 20px;
}

section.event-search .choices__inner {
    border-radius: 50px;
    background-color: #fff !important;
}

section.event-search .choices {
    width: 33.3333333333333%;
       padding-left: 0;
       padding-right: 10px;
}

section.event-search .choices:last-child {
       padding-left: 0;
       padding-right: 10px;
}

.hidden-event {
  display: none;
}

.ajankohta-dropdown {
    position: relative;
    display: inline-block;
        width: 33.3333333333333%;
        padding-right: 10px
}


.form-control {
    padding: 10px 14px;
    border: 1px solid #afafaf;
    background: #fff;
    cursor: pointer;
    border-radius: 50px;
    color: #afafaf;
    width: 100%;
    text-align: left;
}
.form-control {
    position: relative;
    display: inline-block;
        width: 33.3333333333333%;
        padding-right: 10px
}



.form-control:disabled, .form-control[readonly],
.form-control {
    background: #fff;
}



.ajankohta-dropdown .dropdown-toggle {
    padding: 10px 14px;
    border: 1px solid #afafaf;
    background: #fff;
    cursor: pointer;
    border-radius: 50px;
    color: #afafaf;
    width: 100%;
    text-align: left;
}

.ajankohta-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 240px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
}

.ajankohta-dropdown .dropdown-menu.open {
    display: block;
}

.ajankohta-dropdown label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.ajankohta-dropdown input[type="date"] {
    width: 100%;
}

.tapahtumahaku .row {
    max-width: 1200px;
}

section.event-search {
    background: #fae4cf;
    padding: 40px 40px 20px 40px;
    border-radius: 20px;
        margin-bottom: 60px;
}

.tapahtumahaku .tapahtuma {
    width: 33%;
}
.events {
    display: flex;
    flex-wrap: wrap;
    padding-left: 25px;
    padding-right: 25px;
}

select[name="category[]"],
select[name="target[]"],
select[name="daytime[]"]{
    visibility: hidden; /* piilottaa elementin, mutta s채ilytt채채 tilan sivulla */
}

.choices {
    width: 30%;
}
form#event-filter {
    display: flex;
    flex-wrap: wrap;
        align-items: flex-start;
}

.event-search input, .event-search textarea {
    background: #fff;
}

.tapahtuma-date-absolute {
    position: absolute;
    background: #d67755;
    border-radius: 50px;
    padding: 4px 15px;
    top: -15px;
    left: 45px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
}

.daytime-checkboxes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 33%;
}

.daytime-checkboxes label {
    width: 50%;
    margin: 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.daytime-checkboxes input {
    margin-bottom: 0 !important;
}

.form-control:disabled, .form-control[readonly] {
    color: #454545 !important;
}

.event-search ::placeholder {
    color: #737373;
}

.event-search .daytime-checkboxes input {
    width: auto;
}

.tapahtumahaku p.tapahtuman-sijainti, .tapahtumahaku p.tapahtuman-kellonaika {
    color: #EB9B50;
    margin-bottom: .2em;
}


.event-search .choices__input {
    font-size: 1.1em !important;
padding-left: 0 !important;
padding-right: 0 !important;
    
}

.event-search .choices__inner {
     min-height: 0 !important;   
     padding: 4px 15px 0px 15px !important;
}


.daytime-checkboxes label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  display: none;
}


.event-search input, .event-search .choices__inner {
    border: 0 solid transparent !important;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  height: 25px;
  width: 25px;
  background-color: #fff;
}

.checkbox-date-text {
    padding-left: 35px;
}

/* When the checkbox is checked, add a blue background */
.daytime-checkboxes label input:checked ~ .checkmark {
  background-color: #d67755;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.daytime-checkboxes label input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.daytime-checkboxes .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.daytime-checkboxes {
  display: block;
  position: relative;
  padding-left: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1.1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.daytime-checkboxes {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    align-items: center;
    margin-top: 8px;
    max-width: 250px;
}

.tapahtumakuva-single img {
    margin-top: 30px;
    margin-bottom: 30px;
}

.row.tapahtuman-sisalto-single {
    padding-top: 70px;
}

.single.single-tapahtuma h2 {
    margin-top: 0;
    margin-bottom: 1em;
}

.tapahtuman-kuvapuoli-single .single-main-img {
    margin-bottom: 0;
    margin-top: 40px;
}

#show-all-events {
    background: #d67755;
    border: 2px solid #d67755;
    border-radius: 50px;
    padding: 7px 25px;
    color: #fff;
    font-weight: 700;
    font-size: 1.3em;
    box-shadow: 0 0 0 transparent;
    outline: none !important;
}

#show-all-events:hover, #show-all-events:focus {
        background: #fff;
        border-color: #fff;
    color: #d67755;
}
/**************
*  YRITYKSET  *
**************/

.page-template-page-yritykset h1.center {
    font-variation-settings: 'wdth' 75, 'wght' 900;
}

span.yhteiso-bottom {
    color: #EB9B50;
    display: block;
    padding-right: 160px;
    text-align: right;
    margin-top: -20px;
}

span.yritykset-top {
    display: block;
    margin-left: -110px;
    font-size: 1.5em;
}

.nosto-kortti-inner-text {
    padding: 25px 25px 25px 25px;
}

#yritys-kategoria {
    border-radius: 50px;
    padding: 7px 15px;
    max-width: 300px;
    width: 100%;
    float: right;
}


.nosto-kortti-inner {
  background: #fae4cf;
 height: 100%;
     border-radius: 20px;
}

.nosto-kortti h2, .nosto-kortti p, .nosto-kortti h2 a {
    color: #245575;
}
.nosto-kortti p, .sinun-yrityksesi p {
    line-height: 130%;
}


.nosto-kortti h2 {
    font-size: 1.4em;
    font-variation-settings: 'wdth' 75, 'wght' 900;
}

.nosto-kortti, .sinun-yrityksesi {
    padding-right: 10px;
    padding-left: 10px;
        margin-bottom: 50px;
}

.sinun-yrityksesi {
    min-height: 370px;
}

.yritysnosto-kuva {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#yritys-nostot {
    margin-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
}

button#toggle-view {
    background: #d67755;
    color: #fff;
    font-family: "scale-variable", sans-serif;
    font-variation-settings: 'wdth' 100, 'wght' 600;
    font-style: normal;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 5px 25px;
    border-color: #d67755 !important;
}

button#toggle-view:focus,
button#toggle-view:hover{
    outline: none !important;
    box-shadow: none !important;
    border-color: #d67755 !important;
}

.artikkelilinkki a, .ota-yhteys-linkki a {
    position: absolute;
    bottom: 0;
    background: #EB9B50;
    border: 2px solid #EB9B50;
    padding: 4px 27px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
        color: #fff;
    font-family: "scale-variable", sans-serif;
    font-variation-settings: 'wdth' 100, 'wght' 600;
    margin-bottom: -17px;
}

.ota-yhteys-linkki a {
    background-color: #fff;
    border-color: #fff;
    color: #d67755;
}

.artikkelilinkki a:hover, .artikkelilinkki a:focus{
    color: #EB9B50 !important;
    text-decoration: none !important;
    background: #fff;
}

.ota-yhteys-linkki a:hover, .ota-yhteys-linkki a:focus{
    color: #fff !important;
    text-decoration: none !important;
    background: #d67755;
}

p.card-text-osoite a, .card-text-www a {
    color: #d67755;
}

p.card-text-osoite {
    margin-bottom: .1em;
}

.nosto-kortti-inner i.fa-solid {
    color: #d67755;
    padding-right: 10px;
}

.nosto-kortti-inner i.fa-solid.fa-globe {
    font-size: .9em;
    padding-right: 20px;
}

div#view-map {
    padding-left: 25px;
    padding-right: 25px;
}


.kaikki-kortti-inner {
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
      position: relative;
}

.kaikki-kortti-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;           /* borderin leveys */
  height: 100%;
  background-color: #d67755;
  border-radius: 50px;
}

.kaikki-kortti-inner h2.card-title {
    font-variation-settings: 'wdth' 75, 'wght' 700;
    font-size: 1.5em;
    margin-bottom: 0
}

.page-id-861 main {
    min-height: 100vh;
}

p.toimiala {
    color: #fae4cf;
    margin-bottom: .1em;
}

.kaikki-kortti-inner p.card-text-osoite a, .kaikki-kortti-inner .card-text-www a,
.kaikki-kortti-inner p.card-text-osoite a:focus, .kaikki-kortti-inner .card-text-www a:focus {
    color: #EB9B50 !important;
}
.kaikki-kortti-inner i.fa-solid {
    color: #EB9B50;
    padding-right: 10px;
}

.kaikki-kortti-inner i.fa-solid.fa-globe {
    font-size: .9em;
    padding-right: 20px;
}

.kaikki-kortti-inner p.card-text-www {
    margin-bottom: 0;
}

.kaikki-kortti {
    margin-bottom: 20px;
}

.sinun-yrityksesi .nosto-kortti-inner {
    background: #d67755;
    padding: 50px 35px 40px 35px;
    background-image: url("https://tamperein.fi/wp-content/uploads/yrit_cta.jpg");
    background-size: cover;
    background-position: center bottom;
}

.sinun-yrityksesi .nosto-kortti-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sinun-kortti {
        display: flex;
        margin-top: auto;
            flex-wrap: wrap;
}

.sinun-kortti h2 {
    width: 100%;
    color: #fff;
}

.sinun-kortti p {
    width: 100%;
    margin-bottom: 2em;
        color: #fff;
}

.sinun-kortti p a, .sinun-kortti p a:hover, .sinun-kortti p a:focus {
    color: #fff !important;
}

.single main .container.yritystiedot {
    margin-top: 0;
    padding-bottom: 90px;
}

.yritystiedot p {
    font-size: 1.1em;
}
.yritystiedot p.card-text-osoite a, .yritystiedot .card-text-www a,
.yritystiedot p.card-text-osoite a:focus, .yritystiedot .card-text-www a:focus {
    color: #EB9B50 !important;
}
.yritystiedot i.fa-solid {
    color: #EB9B50;
    padding-right: 10px;
}

.yritystiedot i.fa-solid.fa-globe {
    font-size: .9em;
    padding-right: 22px;
}

.yritystiedot p.card-text-www {
    margin-bottom: 0;
}

.single .yritystiedot h2 {
    font-size: 1.7em;
    margin-top: 0;
}

.yritystiedot .row {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.yritystiedot img {
    border-radius: 30px;
        margin-bottom: 30px;
}

.single main {
    position: relative;
    background: transparent;
}

img.cat-yritysartikkeli.julkaisupolku {
    top: auto;
    bottom: 0;
}

#yritys-kategoria.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 6l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
    padding-right: 0;
}

.single main .artikkeli-galleria {
    margin-top: 50px;
}
.single main .artikkeli-galleria .wp-block-image img {
    margin-top: 0;
    margin-bottom: 0;
}

.single main .artikkeli-galleria .wp-block-image figure {
    margin-bottom: 0;
}



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

.artikkeli {
    margin-bottom: 30px;
}

.artikkelikirjoitus {
    height: 100%;
    width: 100%;
    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;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

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 {
    margin-bottom: 0;
    margin-bottom: .5em;
    font-size: 2em;
        color: #FAE4CF;
    font-variation-settings: 'wdth' 130, 'wght' 700;
    font-size: 1.8em !important;
    text-align: center;
    max-width: 920px;
        margin-left: auto;
        margin-right: auto;
}

.single h2 {
    margin-top: 1.5em;
    font-size: 1.8em;
    font-variation-settings: 'wdth' 75, 'wght' 900;
}

.single h3 {
    font-size: 1.1em;
    margin-top: 1.5em;
}

p.meta-tiedot {
    text-align: center;
    font-variation-settings: 'wdth' 75, 'wght' 500;
    font-family: "scale-variable", sans-serif;
    font-size: 1.8em;
    color: #EB9B50;
}

span.pystyviiva {
    padding: 0 8px;
}

p.kuvateksti {
    text-align: center;
    font-size: .9em;
    font-style: italic;
    color: #d5e1e9;
    margin-bottom: 2em;
    margin-top: -.5em;
}

.container.rakkaat-paikat {
    background: #FAE4CF;
    border-radius: 50px;
    margin-top: 0 !important;
    width: calc(100% - 50px);
}

.single main .container.rakkaat-paikat {
    margin-top: -50px !important;
    margin-bottom: 90px;
}

.single main .container {
    max-width: 1100px;
}

img.single-alaviiva.bottom-alaviiva {
    margin-top: 30px !important;
}

.single-main-img {
    margin-bottom: 50px;
}

.single-bottom-img {
    margin-top: 50px;
    margin-bottom: 50px;
}

.single main p, .single main ul, .single main h2, .single main h3 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rakkaat-paikat h2.center {
    color: #245575;
    font-size: 3em;
}

.rakkaat-paikat h3 {
    color: #245575;
    font-size: 1.8em;
    position: relative;
}
.rakkaat-paikat .inner {
    padding-left: 40px;
    padding-right: 20px;
}

.rakkaat-paikat p {
    color: #1F212C;
}

span.numero {
    /* margin-left: -20px; */
    color: #D67755;
    position: absolute;
    font-size: 1.5em;
    left: -67px;
    width: 60px;
    top: -13px;
}

span.numero-inner {
    text-align: right;
    width: 100%;
    display: block;
}

.container.rakkaat-paikat {
    padding-top: 80px;
    padding-bottom: 80px;
}

img.single-alaviiva.top-alaviiva {
    padding-bottom: 30px;
}

.artikkelin-kuva {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ETUSIVU */

.nahtavyys-slide {
    display: flex;
    flex-wrap: wrap;
        height: 100%;
}

.background-nahtavyys {
    width: 100%;
    background-size: cover;
    background-position: center;

    height: 250px;
}

.nahtavyys {
    background: #d67755;
}

.nahtavyys h2, .nahtavyys p {
    color: #fff;
}

.nahtavyys h2 {
    font-size: 2.5em;
        font-family: "scale-variable", sans-serif;
    font-variation-settings: 'wdth' 75, 'wght' 900;
}

.nahtavyys-slide .text-content {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 60px;
    padding-right: 60px;
}

.nahtavyys-slide .text-content p {
    max-width: 500px;
}

.nahtavyys-slide .ikoni-viiva {
    margin-bottom: .9em;
}

#splide-nahtavyys {
    width: 100%;
}


.nahtavyys-slide a.button, .nahtavyys-slide a.button:visited {
    margin-top: 1em;
    background: #FAE4CF;
    border-color: #FAE4CF;
}

.nahtavyys-slide a.button:hover, .nahtavyys-slide a.button:focus,
.nahtavyys-slide a.button:visited:hover, .nahtavyys-slide a.button:visited:focus{
    background-color: transparent !important;
    color: #245575 !important;
    border-color: #245575 !important;
}


.julkaisu p, .julkaisu h3 {
    color: #fffef1;
}
.julkaisut h3 a {
    color: #fff;
}

.julkaisu {
    padding: 15px;
}

.julkaisu-iso .julkaisu {
    padding: 15px 0 15px 0;
}

.julkaisut {
    max-width: 1300px;
}

.julkaisu-tekstipuoli {
    width: 70%;
    padding-left: 30px;
padding-top: 5px;
    padding-bottom: 20px;
}


.julkaisu-iso .julkaisu-img {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
}

.julkaisulista .julkaisu-img {
    width: 30%;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
height: 130px;
}

.julkaisulista-feed {
    margin-top: 40px;
}

p.julkaisupvm {
    color: #FAE4CF;
    font-size: 1.05em;
    font-family: "scale-variable", sans-serif;
    font-variation-settings: 'wdth' 75, 'wght' 400;
    margin-bottom: .1em;
}



.cat-nimi {
    margin-bottom: 2em;
    max-width: 1300px;
}

.cat-nimi h2 {
    font-size: 3.2em;
}

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


.julkaisu h3 {
    font-size: 1.4em;
}


p.cat-yritykset,
p.cat-ravintola,
p.cat-ihmiset {
    color: #245575;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    /* font-weight: 700; */
    font-family: "scale-variable", sans-serif;
    font-variation-settings: 'wdth' 95, 'wght' 700;
    letter-spacing: .5px;
    font-size: .9em;
    border: 2px solid #245575;
}
/*
p.cat-ihmiset:hover, p.cat-ihmiset:focus,
p.cat-ravintola:hover, p.cat-ravintola:focus,
p.cat-yritykset:hover, p.cat-yritykset:focus {
    background-color: #245575;
}*/
    
    
p.cat-ihmiset {
    background: #EB9B50;
    border-color: #EB9B50;
}/*
p.cat-ihmiset:hover, p.cat-ihmiset:focus {
    color: #EB9B50;
}*/


p.cat-yritykset {
    background: #D67755;
    border-color: #D67755;
}
/*
p.cat-yritykset:hover, p.cat-yritykset:focus {
    color: #D67755;
}*/

p.cat-yritys {
    background: #FAE4CF;
    border-color: #FAE4CF;
}
/*
p.cat-yritys:hover, p.cat-yritys:focus {
    color: #FAE4CF;
}*/


img.cat-alaviiva,
img.feed-alaviiva,
img.ikoni-viiva,
.nahtavyys .nahtavyys-slide .ikoni-viiva,
img.kuva-helmi,
img.single-alaviiva {
    max-width: 70px;
}

.single-alaviiva {
    margin-left: auto;
    margin-right: auto;
        border-radius: 0 !important;
            margin-top: 20px !important;
}

.aihenostot .laatikkoteksti {
    padding: 30px;
}

.aihenostot h3 {
    color: #245575;
    font-size: 1.6em;
}

.aihenostot p {
    color: #245575;
}

.aihenostot a.button {
    background-color: #245575;
    border-color: #245575;
    color: #fae4cf;
    margin-top: 1em;
    /* text-align: center; */
}

.aihenostot {
    z-index: 9;
}

.cat-alaviiva-keskitetty img {
    max-width: 100px;
    margin-left: auto;
    margin-right: auto;
}

.aihe-laatikko {
    height: 450px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    position: relative;
}

.aiheet-otsikko h2 {
    text-align: center;
    font-variation-settings: 'wdth' 130, 'wght' 700;
}

img.cat-alaviiva {
    margin-left: auto;
    margin-right: auto;
}

.aihe-teksti {
    position: absolute;
    bottom: 30px;
    width: calc(100% - 60px);
    left: 50%;
    transform: translateX(-50%);
}

.aihe-teksti p {
    text-align: center;
    margin-bottom: 0;
}

.aihe-teksti h3 {
    text-align: center;
    color: #245575;
    font-size: 2.5em;
    margin-bottom: .8em;
}


/* UUSIN */

.poimittu h2 {
    font-size: 2.2em;
    margin-top: 1.5em;
    font-variation-settings: 'wdth' 130, 'wght' 700;
}

.julkaisufeed a {
    color: #fff;
}

.col-md-12.col-lg-4.julkaisulista-feed {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.julkaisu-img-feed {
    height: 250px;
    background-size: cover;
    background-position: center;
border-radius: 20px;
}

.julkaisu-feed-iso .julkaisu-img-feed {
    width: 100%;
    height: 250px;
}

.julkaisuteksti-feed {
    width: 100%;
    padding: 20px 10px 20px 0;
}



.julkaisufeed h3 {
    font-size: 1.4em;
}

.julkaisufeed .julkaisu-feed-iso h3,
.julkaisufeed .julkaisu-feed-iso h2 {
    font-size: 1.9em;
    font-variation-settings: 'wdth' 75, 'wght' 900;
}

.julkaisu-tekstipuoli-feed {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.julkaisu-feed {
    display: flex;
        flex-direction: column;
        flex-grow: 1;
}

a.julkaisubutton-feed {
    font-weight: 600;
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    margin-bottom: 0;
}

img.julkaisupolku {
    position: absolute;
    top: 100px;
    right: 0;
    width: 18%;
    display: none;
}

/* Elamysryhma */

.elamysryhma img.helmipolku {
    display: none;
}

.elamysryhma-h1 h1 {
    color: #FAE4CF;
}

.helmi-container.elamysryhma p {
    max-width: 620px;
}

.elamysryhma .wpcf7-list-item {
    margin-left: .2em;
}


.wpcf7-not-valid-tip {
    color: #eb9b50 !important;
}

.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{
    background: #fae4cf !important;
    color: #245575 !important;
    font-weight: 500 !important;
    padding: 15px !important;
}

/* Helmi */


.helmi-container .col-md-12.col-lg-6:nth-child(2) {
    margin-top: 30px;
}

h2.ilmianna-helmi, .elamysryhma-h1 h1 {
    font-variation-settings: 'wdth' 130, 'wght' 700;
    font-size: 2.2em;
    margin-bottom: .3em;
}

img.helmipolku {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    display: none;
}


img.helmikukka {
    display: none;
    position: absolute;
    width: 35%;
    right: 0;
    bottom: 60px;
}

.helmi-container {
    overflow: inherit;
        padding-bottom: 200px;
        padding-top: 60px;
}

.helmi-container p {
    max-width: 500px;
    font-size: 1.1em;
}

.helmi-container.elamysryhma {
        padding-top: 0;
        padding-bottom: 100px;
    } 

input, textarea {
    border: 0 solid transparent;
    border-radius: 25px;
    padding: .5em .9em;
}

img.kuva-helmi {
    width: 100px;
    margin-right: 30px;
}

span.alarivi-helmi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 50px;
    /* text-align: right; */
}


.cta {
    background: #EB9B50;
}

img.cta-image {
    display: none;
}

.cta .teksti {
    padding-top: 40px;
    padding-bottom: 40px;
}

.cta h2,
.cta h2.center {
    font-variation-settings: 'wdth' 130, 'wght' 700;
    font-size: 2.2em;
}
.cta .thin {
    font-variation-settings: 'wdth' 130, 'wght' 400;
}

.cta h2, .cta p {
    color: #FDFDF0;
}

.cta .text h2 {
    max-width: 100%;
    margin-bottom: .2em;
}

.cta .kuva {
    padding-right: 0;
}

span.thin {
    font-weight: 400;
}

.somepallot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 1em;
   
}

.somepallo {
    background: #D67755;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    margin: 10px;
        position: relative;
 border: 2px solid #D67755;
}

.somepallo:hover {
    background-color: transparent;
    border: 2px solid #221f1f;
}



.cta i.fa-brands {
    font-size: 1.5em;
        position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #221f1f;
font-family: "Font Awesome 5 Brands";
        font-style: normal;
}

/*.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands";
}*/

.testimoniaali {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
        align-items: center;
}


.testimoniaalit .splide {
    width: 100%;
}

.testimoniaalit .splide__slide img {
    width: calc(100% - 50px);
    margin-left: auto;
    margin-right: auto;
        max-width: 300px;
}

.testimonial-image {
    width: 40%;
    min-height: 460px;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    z-index: 2;
}

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


.sitaatti {
    position: relative;
    font-size: 1.2em;
}

.testimonial-text .sitaatti:before {
    content: "\0022";
    font-size: 2em;
    font-weight: 800;
    position: absolute;
    left: -25px;
    top: -10px;
    font-family: "Prompt", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-family: "scale-variable", sans-serif;
    font-variation-settings: 'wdth' 75, 'wght' 900;
    color: #ea9b50;
}


.testimonial-text {
    width: calc(100% - 100px);
    padding-left: 0;
    padding-top: 60px;
    margin-left: auto;
    margin-right: auto;
}



.splide__slide img {
    /* vertical-align: bottom; 
    width: 60%;
    margin-left: auto;
    margin-right: auto;*/
}

.sitaatti-kuvapuoli {
        width: 100%;
        position: relative;
}



.testimoniaalit .splide__slide img.testimoniaali-tahti {
    position: absolute;
    width: 200px;
    top: -60px;
    left: calc(50% - 170px);
    z-index: -1;
}
div#splide-testimoniaalit-track {
    overflow: inherit;
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.rotating {
  -webkit-animation: rotating 20s linear infinite;
  -moz-animation: rotating 20s linear infinite;
  -ms-animation: rotating 20s linear infinite;
  -o-animation: rotating 20s linear infinite;
  animation: rotating 20s linear infinite;
}




.splide__arrow {
    background: #fae4cf !important;
    opacity: 1 !important;
    height: 2em !important;
    width: 2em !important;
}

.splide__arrow svg {
    fill: #d67755 !important;
}

.splide__arrow:hover,
.splide__arrow:focus {
    opacity: .8 !important;
}



.testimoniaalit {
    overflow: inherit;
        padding-top: 0;
    padding-bottom: 0;
}

img.testimoniaalipolku {
    position: absolute;
    right: 0;
    height: auto;
    width: 350px;
    bottom: 0;
    display: none;
}

img.testimoniaali-img {
 /*   padding-right: 60px;*/
}

.random-1, .random-2 {
    position: absolute;
        background-size: cover;
    background-position: center;
    mix-blend-mode: luminosity;
    border-radius: 20px;
    opacity: 0.25;
}

.random-1 {
    height: 300px;
    width: 230px;
    left: -130px;
    top: -50px;
    z-index: 1;
}

.random-2 {
    height: 230px;
    width: 180px;
    left: -100px;
    bottom: -50px;
    z-index: 1;
}

p.signature {
    text-align: right;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 0;
    margin-top: .6em;
    color: #f7e1cd;
}






span.top-cat-span,
p.top-cat {
    display: block;
    font-size: .5em;
    color: #6CDC9F;
}

p.top-cat {
    margin-bottom: 0;
    font-size: 1.3em;
    font-weight: 800;
    text-transform: uppercase;
}

.julkaisubutton {
    text-align: center;
}


p.julkaisubutton.button {
    background: #6CDC9F;
    border-color: #6CDC9F;
}


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

/**************
*  PAIKAT  *
***********/

.paikka-p {
    padding-top: 40px;
}

.paikka-img img {
    border-radius: 30px;
    margin-top: 30px;
}

/**********************
*  TAPAHTUMAT EVENTS *
**********************/



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


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

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

.page-header {
    max-height: 350px;
}

.single .page-header {
    max-height: 250px;
}

.single main .container {
    padding-top: 0;
    margin-top: -80px;
}

.single main .wp-block-image img {
        border-radius: 30px;
        margin-top: 30px;
}

.header-image-and-title {
    position: relative;
}

.header-image {
    background-position: bottom center;
}


img.front-wave {
    position: absolute;
    bottom: 0;
    width: calc(100% + 2px);
    height: auto;
    margin-bottom: -1px;
    
}

.ylapalkki {
    background-color: #FAE4CF;
    padding: 0 0;
}


a.nav-link {
    color: #245575;
    text-transform: none;
    font-weight: 800;
        font-size: 1.1em;
}

a.nav-link:hover, a.nav-link:focus,
.current-menu-item a.nav-link{
    color: #d67755 !important;
}

.button, .button:visited, a.button, a.button:visited {
    background-color: #EB9B50;
    border: 2px solid #EB9B50;
    padding: 6px 20px;
    display: inline-block;
    font-size: 1em;
    font-family: "Lato", sans-serif;
    letter-spacing: .5px;
    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;
    color: #245575;
    text-transform: none;
    font-weight: 800;
        font-family: "scale-variable", sans-serif;
    font-variation-settings: 'wdth' 95, 'wght' 700;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover,
.button:focus, .button:visited:focus, a.button:focus, a.button:visited:focus {
    text-decoration: none;
    background-color: transparent;
    color: #EB9B50 !important;
    border-color: #EB9B50 !important;
}

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

.tietosuoja h2 {
    margin-top: 1.5em;
    font-size: 1.8em;
}

span.wpcf7-list-item-label a {
    text-decoration: underline;
    color: #fff !important;
}

footer {
    background-color: #050008;
}

footer .container {
    padding: 10px 0;
}

footer p {
    margin-bottom: 0;
    font-size: .9em;
    text-align: center;
}

footer a, footer a:visited {
    color: #fff;
}
.cta .background {
    display: none;
}

#CybotCookiebotDialog img {
    width: auto !important;
}


/* MAPS */

#map {
    height: 300px;
    width: 100;
    border-radius: 25px;
}

.karttakuva {
    height: 120px;
    background-size: cover;
    background-position:center;
    
}

.gm-style-iw.gm-style-iw-c {
    padding: 0 0;
}

.gm-style .gm-style-iw-d {
    max-width: 280px;
    overflow-x: auto !important;
    overflow-y: auto !important;
}

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

.karttateksti h3 {
    font-size: 1.3em;
        color: #245575;
}
.karttateksti p {
    color: #245575;
    font-size: 1.1em;
}

.karttateksti a.button {
    padding: 3px 15px;
}

.karttateksti a.button:hover, .karttateksti a.button:focus {
    background-color: transparent !important;
}

.gm-style-iw-chr {
    position: absolute;
    right: 10px;
    top: 10px;
}

@media only screen and (min-width: 380px) {
    
    
}
@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 576px) {
    .home h1 {
        font-size: 4em;
    }
}

@media only screen and (min-width: 768px) {
    /* Animaatio */
    /*h2.center, h2 {
        font-size: 4.5em;
    }*/
    
    span.numero {
    font-size: 2em;
    left: -75px;
    width: 60px;
    top: -26px;
}

.rakkaat-paikat .inner {
    padding-left: 80px;
    padding-right: 25px;
}

img.single-alaviiva.bottom-alaviiva {
    margin-top: 60px !important;
}

img.single-alaviiva.top-alaviiva {
    padding-bottom: 80px;
}

p.meta-tiedot {
    font-size: 2.2em;
}

.single h1 {
    font-size: 2.5em !important;
}

    h1.center {
    font-size: 3em;
    }
.single main .container {
    padding-top: 0;
    margin-top: -200px;
}

    .single .page-header {
        max-height: 350px;
    }
    
    #map {
    height: 400px;
    }
    

    .single h1 {
        font-size: 2em;
    }
    
    .single .yritystiedot h2 {
        font-size: 2.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;
    }
    .henkilotekstit {
        width: 50%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: left;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
    .sinun-yrityksesi .nosto-kortti-inner {
    padding: 25px;
    }
    .tapahtuman-kuvapuoli-single .single-main-img {
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .tapahtuman-tekstipuoli-single{
        padding-top: 30px;
    }
    
    .single.single-tapahtuma h2 {
        font-size: 1.7em;
    }

}

@media only screen and (min-width: 992px) {
    
    h1.center {
    font-size: 4em;
    }
    ul.nav {
        padding-top: 0;
    }
    
    .home h1 {
    font-size: 5em;
    }

.rakkaat-paikat .col-md-12.col-lg-6:nth-child(even) .inner {
    padding-left: 110px;
    padding-right: 35px;
}

.rakkaat-paikat .col-md-12.col-lg-6:nth-child(odd) .inner {
    padding-left: 55px;
    padding-right: 90px;
}


#map {
    height: 500px;
}
    .nahtavyys .teksti-oikealla {
        padding-left: 70px;
        padding-top: 170px;
        padding-bottom: 170px;
    }
    
    .nahtavyys .teksti-oikealla p,
    .nahtavyys .teksti-oikealla h2 {
        max-width: 550px;
    }
    
    h2.ilmianna-helmi, .elamysryhma-h1 h1 {
    font-size: 3.6em;
    }
     .nahtavyys .teksti-oikealla h2 {
        font-size: 3.3em;
    }
    
    .wpcf7 p {
    margin-left: 10px;
}

.wpcf7 textarea, .wpcf7 input {
    margin-left: -10px;
}



    .background-nahtavyys {
    width: 55%;
   height: auto;
           border-top-right-radius: 9999999px;
    border-bottom-right-radius: 9999999px;
}

.splide__arrow {
    height: 3em !important;
    width: 3em !important;
}

.helmi-container .col-md-12.col-lg-6:nth-child(2) {
    margin-top: 0;
}

.testimoniaalit {
    overflow: inherit;
        padding-top: 30px;
    padding-bottom: 0;
}

.testimonial-text {
    padding-top: 0;
    width: 50%;
    padding-left: 30px;
}

img.testimoniaalipolku {
    display: block;
}

.testimoniaali-slide {
display: flex;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    max-width: 850px;
    padding: 0 40px;
}

.row.testimoniaalit-row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
        max-width: 1050px;
}

.sitaatti-kuvapuoli {
        width: 50%;
        position: relative;
}

.nahtavyys h2 {
    font-size: 3.5em;
}

.nahtavyys-slide .ikoni-viiva {
    margin-bottom: 1.5em;
    margin-left: 0;
}

 .nahtavyys-slide .text-content {
        width: 45%;
    padding-top:140px;
    padding-bottom: 140px;
    padding-left: 70px;
}

    header .row {
    top: 50%;
    }
/*
.testimonial-text {
    width: 100%;
    padding-left: 0;
    padding-top: 60px;
}*/

.row.testimoniaalit {
    padding-left: 90px;
}

.splide__slide img {
    width: 100%;
}


.col-md-12.col-lg-4.julkaisulista-feed,
.col-md-12.col-lg-12.julkaisu-feed-iso,
.aiheet-nostot .col-md-12.col-lg-4 {
    padding-left: 20px;
    padding-right: 20px;
}

img.testimoniaali-img {
    padding-right: 60px;
}

.testimoniaalit .splide__slide img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.testimoniaalit .splide__slide img.testimoniaali-tahti {
    position: absolute;
    width: 300px;
    top: -70px;
    left: -50px;
    z-index: -1;
}
    
.julkaisu-feed-iso .julkaisu-img-feed {
    width: 50%;
    height: auto;
}

.julkaisuteksti-feed {
    width: 50%;
    padding: 100px 0 100px 40px;
}

.julkaisufeed h3 {
    font-size: 1.8em;
}

.julkaisufeed .julkaisu-feed-iso h3,
.julkaisufeed .julkaisu-feed-iso h2 {
    font-size: 2.5em;
 max-width: 610px;
}


p.julkaisupvm {
    font-size: 1.2em;
}

.poimittu h2 {
    font-size: 3.6em;
    font-variation-settings: 'wdth' 130, 'wght' 700;
}

img.cat-alaviiva,
img.feed-alaviiva,
img.ikoni-viiva,
.nahtavyys .nahtavyys-slide .ikoni-viiva,
img.kuva-helmi,
img.single-alaviiva{
    max-width: 100px;
}

.aiheet-otsikko h2 {
    text-align: left;

    font-size: 3.6em;
}
img.cat-alaviiva {
    margin-left: 0;
    margin-right: auto;
}

.aihe-laatikko {
    height: 550px;
    max-width: 100%;
}

.aihe-teksti {
        max-width: 300px;
}
    
    .ylapalkki, .shrink {
        padding: 0 0;
    }
    
    .logo img {
        height:40px;
    }
    
    .shrink .logo img {
        height: 35px;
    }
    
    .ylapalkki {
        background-color: transparent;
    }
    
    .ylapalkki.shrink {
        background-color: #FAE4CF;
    }

    a.nav-link {
        color: #fff;
    }
    .shrink a.nav-link {
        color: #245575;
    }

    .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;
    }
    
    .container.padding-top-minus,
.container-fluid.padding-top-minus{
    margin-top: -100px;
}

    img.helmikukka,
    img.helmipolku {
        display: block;
    }
    
    .helmi-container {
        padding-top: 150px;
    }
    
    .helmi-container.elamysryhma {
        padding-top: 0;
    } 
    .cta .background {
        display: block;
    }
    img.cta-image {
    display: block;
}

.cta h2,
.cta h2.center {
    font-size: 2.6em;
}


.somepallo {
    height: 70px;
    width: 70px;
}

img.helmipolku {
    width: 50%;
}


.cta i.fa-brands {
    font-size: 2em;
}
.desktop-bottom-plus {
    padding-bottom: 300px;
}

.yritystiedot img {
    margin-bottom: 0;
}
    .sinun-kortti h2 {
    font-size: 1.8em;
}

}

@media only screen and (min-width: 1200px) {
	.home h1 {
        font-size: 6.5em;
	}
	    header .row {
    position: absolute;
    top: calc(50% - 20px);
    }

    .nahtavyys .teksti-oikealla {
        padding-left: 90px;
    }
         .nahtavyys .teksti-oikealla h2 {
        font-size: 4em;
    }
    img.julkaisupolku {
    display: block;
    top: 400px;
}

img.julkaisupolku-alasivu {
    display: none;
}
.cta h2,
.cta h2.center {
    font-size: 3.4em;
}

    .sinun-kortti h2 {
    font-size: 2.2em;
}

}


@media only screen and (min-width: 1600px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
     img.julkaisupolku {
    top: 100px;
}
img.julkaisupolku-alasivu {
    display: block;
}
}

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

@media only screen and (max-width: 1370px) {
    span.yhteiso-bottom {
        margin-top: 0;
    }
    span.yritykset-top {
        margin-left: 0;
    }
    
}

@media only screen and (max-width: 1000px) {
    .tapahtumahaku .tapahtuma {
    width: 50%;
}


}

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

    .ylapalkki {
        background-color: #FAE4CF;
    }
    


    .icon-bar {
    border-color: #245575;
}

.logo img {
        height: 30px;
}

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

nav.navbar.navbar-expand-lg {
    padding: 6px 15px;
}
    
    .ylapalkki.shrink {
        background-color: #FAE4CF;
    }
    .navbar-toggler-icon {
        width: auto;
    }
button.navbar-toggler.nbta-to-x-left {
        background: transparent;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        position: relative;
        margin-right: 15px;
    }
    /*ul#menu-paavalikko {
        background: #fff;
        width: calc(40% - 30px);
        margin-left: auto;
        margin-right: 15px;
        padding: 20px 30px;
        border-radius: 30px;
        box-shadow: 0 0 7px rgba(0, 0, 0, .2);
        margin-top: 6px;
    }*/

    a.nav-link {
    text-align: center;
    font-size: 1.4em;
}

  .mobile-padding-top-small {
    padding-top: 40px;
}  
    .julkaisu h3 {
        font-size: 1.6em;
    }

    .nahtavyys .background-image {
        border-top-right-radius: 0;
        border-bottom-right-radius: 30px;
        border-bottom-left-radius: 30px;
    }
    .testimonial-image {
        width: 100%;
        min-height: 370px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    

    .sitaatti, .signature {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

    .otsikko {
        width: 700px;
        height: 600px;
                top: 120px;
        transform: translateX(-50%);
    }

    img.header-tahti {
        height: 600px;
        width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

.header-logo-text {
    width: 60%;
}

.home .header-image h1 {
    font-size: 1.4em;
}

.mobile-bottom-half {
    padding-bottom: 80px;
}

span.yhteiso-bottom {
    padding-right: 50px;
}

}


@media only screen and (max-width: 768px) {
.map-and-cat .text-end {
    order: 2;
}

#yritys-kategoria {
    max-width: 100%;
}

button#toggle-view {
    width: 100%;
    margin-top: 20px;
}

section.event-search .choices {
    width: 100%;
        padding-right: 0;
}

section.event-search {
    padding: 30px 30px 10px 30px;
}

.event-search input:first-child {
    width: 100%;
    margin-right: 0;
    
}

.form-control {
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
}
.daytime-checkboxes {
    max-width: 250px;
    width: 100%;
    margin-top: 0;
        padding-left: 5px;
}
.tapahtumahaku {
    padding-top: 40px;
}

    .tapahtumahaku .tapahtuma {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .events {
        padding-left: 0;
        padding-right: 0;
    }
    .event-search input:first-child, .event-search .form-control, .event-search .choices {
        margin-bottom: 13px;
    }
    .daytime-checkboxes {
        margin-top: 5px;
    }
    section.event-search {
        padding-bottom: 20px;
    }
}




@media only screen and (max-width: 800px) {
    img.header-tahti {
        height: 450px;
        width: 450px;
    }
    
    .otsikko {
        width: 600px;
        height: 450px;
    }
    .header-logo-text {
        top: 45%;
        width: 50%;
    }
    .home .header-image h1 {
        font-size: 1.2em;
    }
    .home .header-image {
        height: 100vh;
min-height: 600px;
    }
}

@media only screen and (max-width: 560px) {
        span.yhteiso-bottom {
        padding-right: 0;
        text-align: center;
    }
}

@media only screen and (max-width: 500px) {
    img.header-tahti {
        height: 370px;
        width: 360px;
    }
    
    .otsikko {
        width: 540px;
        height: 370px;

    }
    .header-logo-text {
        top: 38%;
        width: 50%;
    }
    .home .header-image h1 {
        font-size: 1.2em;
    }
    .home .container.padding-top-minus, .home .container-fluid.padding-top-minus {
    margin-top: -360px;
}
}



@media only screen and (max-width: 1200px) {
.random-1, .random-2 {
    display: none;
}
}

