/*
 Theme Name:   Tilitoimisto
 Template:     aate
 Text Domain:  tilitoimisto
*/

@import url("https://use.typekit.net/fyr5eqj.css");
  
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
    font-family: "montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #211E1C;
}

main {
    background-color: #F7F3ED;
}

/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
    font-family: "scale-variable", sans-serif;
    font-variation-settings: "wght" 700, "wdth" 100;
    color: #211E1C;
    margin-bottom: .5em;
}

h2.h1, .h2-h1 h2 {
    font-variation-settings: "wght" 600, "wdth" 100;
    font-size: 2.5em;
}

h1 {
    font-size: 2.6em;
}
    
h2.h1, .textblock h2.h1 {
    margin-bottom: 0.4em;
     font-size: 2.6em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-variation-settings: "wght" 500, "wdth" 100;
}

.punainen {
    color: #B22C0D;
}

.header-image h1 {
    color: #000000;
    font-variation-settings: "wght" 600, "wdth" 100;
    margin-bottom: 0;
    font-size: 3em;
}

header p.nosto {
    color: #000000;
    margin-bottom: .5em;
    font-size: 1.5em;
    max-width: 500px;
    margin-left: 0;
    font-family: "montserrat", sans-serif;
    font-weight: 500;
    font-style: normal;
}

main a, main a:hover, main a:focus,
main a:visited {
    color: #EB5027;
}

main a:hover, main a:focus, footer a:hover, footer a:focus {
    text-decoration: underline;
}

main a:focus, footer a:focus {
    color: #EB5027 !important;
}

.verkkokurssi h1 {
    font-size: 2.7em;
}

.verkkokurssi h2 {
    margin-top: 1.3em;
    font-size: 1.7em;
    margin-bottom: .3em
}

.verkkokurssi h3 {
    margin-top: 1.5em;
    font-size: 1.3em;
    margin-bottom: .3em
}

.verkkokurssi h4 {
    margin-top: 1.4em;
    font-size: 1.1em;
    margin-bottom: .3em
}

.textblock.levea-vasen .row {
    max-width: 1200px;
}

.levea-vasen p {
    max-width: 900px;
}

.ylaotsikko {
    font-family: ff-uberhand-pro-2, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: .5em;
    display: block;
}

a.prev, a.next {
    font-family: "scale-variable", sans-serif;
    font-variation-settings: "wght" 700, "wdth" 100;
    color: #211E1C;
    font-size: 1.1em;
    width: 100%;
    padding: 10px 30px;
}

a.prev:visited, a.prev:visited {
    color: #211E1C;
}

.next-prev-container {
    background-color: #EBDECC;
    padding: 60px 0;
}
.next-prev {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/***********************
*       HEADER         *
***********************/

.hide-desktop {
    display: none;
}
.hide-mobile {
    display: block;
}
header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}

header .row {
    position: absolute;
    top: auto;
    bottom: 0;
    transform: translateY(-50%);
}

header p.nosto {
    text-align: left;
}

.header-image .container, .header-image .row {
    max-width: 1400px;
}

.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: transparent;
    border: 0 solid transparent;
    color: #211E1C !important;
    height: 35px;
    width: 35px;
    font-size: 1.4em;
}

.page-template-page-verkkokurssisivu .page-header {
    max-height: 250px;
}

/***********************
*       NAV         *
***********************/
    
.navbar {
    padding-left: 25px;
    padding-right: 25px;
}

.menu-plus:before {
    content: '\002B';
    margin-left: 0;
    margin-top: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.menu-minus:before {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
    margin-left: 1px;
    margin-top: 0;
}

button.navbar-toggler {
    border: 0 solid transparent;
}

button.navbar-toggler:hover,
button.navbar-toggler:focus {
    border: 0 solid transparent;
    outline: none;
    box-shadow: none;
}

.custom-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 40px;
}

.custom-toggler .toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #211E1C;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-main-menu {
    padding-top: 30px;
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.dropdown-menu, .dropdown-menu li {
    background-color: #F6CD45;
}
.dropdown-menu:hover, .dropdown-menu li:hover {
    border-radius: 0;
}

.dropdown-menu li:hover {
    border-radius: 0;
    background-color: #EB5027;
}

.dropdown-menu li:hover a {
    color: #fff !important;
}
.dropdown-item {
    padding: 10px 17px;
    font-size: .97em;
}

/***********************
*        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: 1200px;
    margin: 0 auto;
}

.yhteydenotto .row {
    max-width: 1100px;
}

.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
    margin-top: 40px;
}
.container-fluid.wide .row {
    max-width: 100%;
}
.text {
    padding-top: 70px;
    padding-bottom: 70px;
    order: 2;
}

.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}

.kapea .row {
    max-width: 700px;
}

.kapeish .row {
    max-width: 900px;
}

.kuva {
    order: 1;
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.background-image {
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.textblock .row {
    max-width: 900px;
}

.textblock h2 {
    font-size: 1.6em;
    margin-top: 1.8em;
}

.textblock h3 {
    margin-top: 1.8em;
}

    
.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 30px;
}

.laatikko h3 {
    font-size: 1.4em;
    margin-bottom: .7em;
}

.alamargin {
    margin-bottom: 20px;
}

.logot img {
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
    padding: 10px;
}

.logot-container {
    padding-top: 50px;
    padding-bottom: 50px;
}

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%;
}

/*************
*  ETUSIVU  *
************/

.etusivu-ingressi .row {
    max-width: 1100px;
}

.ohjausnosto .row {
    max-width: 1100px;
}
.ohjausnosto h2 {
    font-size: 2em;
    font-variation-settings: "wght" 600, "wdth" 100;
}

p.alin-nappi {
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
    justify-content: center;
}

.etusivu-ingressi h2 {
    font-size: 2.6em;
}

/***************
*  HINNAT   *
*************/

.hinnat .hintakortti {
    background: #EBDECC;
    padding: 50px;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
}


.hinnat .row {
    max-width: 1200px;
}

.hinnat h2 {
    font-size: 1.3em;
    text-align: center;
}

.hinnat p {
    font-family: "scale-variable", sans-serif;
    font-variation-settings: "wght" 700, "wdth" 100;
    color: #211E1C;
    font-size: 2.1em;
    margin-top: .6em;
    margin-bottom: 1em;
    text-align: center;
}

.palveluhinnasto-listat p {
    margin-bottom: .3em;
}

.palvelut .col-md-12.col-lg-4 {
    padding-left: 15px;
    padding-right: 15px;
}

.hintakortti {
    margin-bottom: 30px;
}
/********************
*     VERKKOKURSSI  *
*********************/

.oppitunti a.button {
    margin-top: 0;
}

.oppitunti {
    background: #EBDECC;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.verkkokurssilista-kurssit .oppitunti:last-child {
    border-bottom: 0 solid transparent;
    padding-bottom: 0;
}

.oppitunti .kuvapuoli {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.oppitunti .tekstipuoli {
    padding: 35px;
    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  *
*********************/

.hide {
    display: none !important;
}
.nosto p, p.nosto {
    font-size: 1.1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.padding-top-0 {
    padding-top: 0;
}

.padding-top-puolikas {
    padding-top: 40px;
}
.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea .row {
    max-width: 900px;
}

.alku .row {
    max-width: 1000px;
}

/*********************
*    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: 35px 35px 35px 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artikkeliteksti h3, .artikkeliteksti h2 {
    margin-bottom: .2em;
        font-size: 1.3em;
}

.artikkeliteksti h3 a, .artikkeliteksti h3 a:visited,
.artikkeliteksti h2 a, .artikkeliteksti h2 a:visited{
    color: #1E252B;
}

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;
}

.artikkeliteksti a.button {
    margin-top: .4em;
    margin-left: auto;
    margin-right: auto;
}

.single main h1 {
    margin-bottom: 0;
    font-size: 2.3em;
}

.single main h2 {
    font-size: 1.35em;
    margin-top: 1.7em;
    margin-bottom: .4em;
}
.single main h3 {
    font-size: 1.15em;
    margin-top: 1.7em;
        margin-bottom: .3em;
}

.artikkeli {
    display: none;
}

/*********************
*    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;
}
.henkilokuva {
    margin-bottom: 20px;
}


/************
* ELEMENTIT *
*************/


main ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1em;
}

main ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 13px;
}

main ul li::before {
    content: "";
    display: inline-block;
    width: .85em;
    height: .85em;
    background: #F6CD45;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.35em;
}

main .tumma-tausta ul li::before,
main .hinnat ul li::before {
    background: #eb5027;
}

main ol li::marker {
    color: #211E1C;
    font-weight: 800;
}

main ol {
    padding-left: 1.1em;
}

p.handwrite {
    font-family: ff-uberhand-pro-2, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.6em;
    text-align: center;
    margin-top: 2em;
}

.accordion-item, .accordion-item:first-of-type>.accordion-header .accordion-button {
    border-radius: 0 !important;
}
.accordion-button {
    font-weight: 500;
    background: transparent !important;
    padding-left: 0;
    padding-right: 0;
    font-size: .85em;
}

.ukk .row {
    max-width: 900px;
}

img.ukk-ikoni {
    width: 95px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.ukk-otsikko {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.ukk-otsikko h2 {
    margin-bottom: 0;
    font-size: 2.1em;
}

.accordion-button:not(.collapsed) {
    color: #211E1C;
}

.accordion, .accordion-item {
    background: transparent !important;
}

.accordion-item {
    border: 0;
    border-bottom: 1px solid #ebdecc;
}
.accordion-button:focus, .accordion-button:not(.collapsed) {
    box-shadow: none !important;
    outline: none !important;
}

.accordion-body {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}
/*********************
*   Teeman tyylit    *
*********************/

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 190px;
}
.header-image.page-header  {
    background-position: 70% center;
}

.header-image-and-title {
    padding-top: 60px;
}

.home .header-image {
    max-height: 850px;
    min-height: 450px;
}

.ylapalkki {
    background-color: #F6CD45;
}

a.nav-link, a.dropdown-item {
    font-family: "scale-variable", sans-serif;
    font-variation-settings: "wght" 700, "wdth" 80;
    color: #1E252B;
    font-size: 1.1em;
}

a.nav-link:hover, a.nav-link:focus, .current-menu-item a.nav-link,
a.dropdown-item:hover, a.dropdown-item:focus {
    color: #1E252B !important;
}

.button, .button:visited, a.button, a.button:visited  {
    background-color: #EB5027;
    border: 1px solid #EB5027;
    padding: 6px 25px;
    color: #fff;
    display: inline-block;
    font-size: 1.1em;
    font-family: "scale-variable", sans-serif;
    font-variation-settings: "wght" 300, "wdth" 100;
    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;
    margin-top: 1.1em;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover,
.button:focus, .button:visited:focus, a.button:focus, a.button:visited:focus {
    text-decoration: none;
    background-color: #fff;
    color: #EB5027;
    border-color: #EB5027;
}

.button[type=submit]:hover, .button[type=submit]:focus {
    background-color: #fff;
    color: #EB5027;
    border-color: #EB5027 !important;
}

.yhteydenotto h2 {
    font-size: 1.6em;
    margin-top: 0;
}

.wpcf7-textarea {
    max-height: 120px;
}

footer {
    background-color: #211E1C;
}

.copyrow {
    padding: 0 0 20px 0;
}

footer a, footer a:visited, footer a:hover {
    color: #fff;
}

p.copyright {
    text-align: center;
    font-size: .8em;
    color: #a4a3a1;
}

p.copyright a {
    color: #a4a3a1 !important;
}

footer h2 {
    font-size: 1.4em;
    margin-top: 1em;
    color: #e3dcd3;
}

footer .container {
    max-width: 1100px;
    padding-top: 80px;
}


footer img {
    max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.kapea-cta p {
    max-width: 500px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.kapea-cta h2 {
    font-variation-settings: "wght" 700, "wdth" 100;
    font-size: 2.6em;
}

.wpcf7 form .wpcf7-response-output {
    margin-left: 0;
    margin-right: 0;
    border-width: 1px !important;
}

span.sitaatti {
    font-style: italic;
    font-size: 1.2em;
    margin-top: 1em;
    display: inline-block;
}

input, textarea {
    border-left: 0 solid transparent;
    background: #fff;
    border-radius: 0;
    border: 1px solid #e2ddda;
}

input:hover, textarea:hover,
input:focus, textarea:focus{
    border-color: #EB5027;
}

@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 576px) {

}

@media only screen and (min-width: 768px) {
    
    .page-template-page-verkkokurssisivu .page-header {
        max-height: 400px;
    }
    
    .page-header {
        max-height: 260px;
    }
    .header-image.page-header  {
        background-position: center center;
    }
    
    .header-image-and-title {
        padding-top: 60px;
    }


    /* Animaatio */

    .home .header-image {
        min-height: 650px;
    }
    
    main .row, .header-image .row {
        opacity:0;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
    
    .etusivu-ingressi h2 {
        font-size: 3.2em;
    }
    
    .verkkokurssi h1 {
        font-size: 3em;
    }
    
    .verkkokurssi h2 {
        font-size: 2.1em;
    }
    
    .verkkokurssi h3 {
        font-size: 1.5em;
    }
    
    .verkkokurssi h4 {
        font-size: 1.2em;
    }
    
    .textblock h2 {
        font-size: 1.8em;
    }
    
    .textblock h3 {
        margin-top: 2em;
    }
    
    h1 {
        font-size: 3em;
    }
        
    h2 {
        font-size: 2.2em;
    }

    h2.h1, .textblock h2.h1 {
         font-size: 3em;
    }
    
    h2.center {
        font-size: 2.7em;
    }
    .ohjausnosto h2 {
        font-size: 2.6em;
    }
    .ukk-otsikko h2 {
        font-size: 2.7em;
    }

    h3 {
        font-size: 1.5em;
    }
    
    .single main h1 {
        font-size: 2.5em;
    }
    
    .single main h2 {
        font-size: 1.55em;
    }
    .single main h3 {
        font-size: 1.25em;
    }

    .header-image h1 {
        font-size: 5em;
    }
    
    .kapea-cta h2 {
        font-size: 3.6em;
    }
    
    header .row {
        position: absolute;
        bottom: 100px;
        top: auto;
        transform: none;
    }

    .fade-in-up {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease-out;
    }
    .fade-in-up-header {
      opacity: 0;
      transform: translateY(0);
      transition: all 0.6s ease-out;
    }
    .fade-in-up-header.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .fade-in-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
        .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 250px;
        margin-bottom: 0;
    }
    .henkilotekstit {
        width: 50%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: left;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
    
    .henkilokuva {
        margin-bottom: 0;
    }
    p.henkilotiedot {
        margin-bottom: 0;
    }
    
    a.prev, a.next {
        font-size: 1.3em;
        width: 50%;
        padding: 0 50px;
    }
        
    footer h2 {
        font-size: 1.5em;
        margin-top: 0;
    }
    
    footer img {
        max-width: 230px !important;
        margin-left: 0;
        margin-right: auto;
        margin-top: -10px;
    }
    
    footer h1, footer h2, footer h3, footer h4, footer p {
        text-align: left;
    }
    
    .kapea-cta h2 {
        font-size: 3.6em;
    }
    
    #footer-palsta-3 .textwidget {
        text-align: left;
        float: left;
    }
}

@media only screen and (min-width: 992px) {
    .ylapalkki {
        padding: .2rem 0;
    }
    
    #menu-main-menu {
        padding-top: 0;
    }
    .page-header {
        max-height: 330px;
    }
    
    .header-image {
        background-position: 30% center;
    }

    header .row {
        top: calc(50% + 50px);
        bottom: auto;
    }

    .logo img {
        height: 55px;
    }
    
    ul.nav {
        padding-top: 0;
    }
    
    a.nav-link {
        position: relative;
        font-size: 1.1em;
    }
    a.nav-link:hover, a.nav-link:focus, .current-menu-item a.nav-link {
        color: #1E252B !important;
    }
    a.nav-link:hover:after, .current-menu-item a.nav-link:after {
        content: "";
        width: 35px;
        height: 2px;
        background: #EB5027;
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: .7em;
        padding-right: .7em;
    }
    
    .text {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .background {
        height: auto;
    }
    .background, .text, .kuva, .teksti {
        order: inherit;
    }
    .teksti {
        margin-top: 0;
    }
	.laatikko {
	    margin-bottom: 0;
	}
	.artikkelit .col-lg-4 {
        padding-right: 15px;
        padding-left: 15px;
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 350px;
    }
    .teksti-vasemmalla p, .teksti-vasemmalla h2, .teksti-vasemmalla .button {
        max-width: 550px;
        margin-left: auto;
    }
    
    .laatikkoteksti {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .oppitunti .kuvapuoli {
        width: 33%;
        height: auto;
        background-size: cover;
        background-position: center;
    }
    
    .oppitunti .tekstipuoli {
        padding: 55px;
        width: 66%;
    }

    .palvelut .col-md-12.col-lg-4 {
        margin-bottom: 0;
    }
    
    .yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
        margin-top: 0;
    }
    
    .teksti-oikealla p, .teksti-oikealla h2, .teksti-oikealla .button {
        max-width: 550px;
    }
    
    .teksti-vasemmalla {
        padding-right: 90px;
         padding-left: 90px;
    }
    
    .teksti-oikealla {
        padding-left: 90px;
         padding-right: 90px;
    }
    
    .yhteydenotto .col-md-12.col-lg-6:first-child {
        padding-right: 40px;
    }
    
    .yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
        padding-left: 40px;
    }
    
    .etusivu-ingressi .teksti {
        width: 55%;
    }
    
    .etusivu-ingressi .kuva {
        width: 45%;
    }
    
    .hinnat .hintakortti {
        margin-left: 20px;
        margin-right: 20px;
        width: calc(33.33333333% - 40px);
    }
}

@media only screen and (min-width: 1400px) {
    .page-header {
        max-height: 360px;
    }
    
	.teksti-vasemmalla {
        padding-right: 150px;
        padding-left: 150px;
    }
    
    .teksti-oikealla {
        padding-left: 150px;
        padding-right: 150px;
    }
    
    .header-image {
        background-position: center center;
    }

}


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}

@media only screen and (max-width: 992px) {
    .main-intro p.nosto {
        font-size: 1.3em;
    }
    
    .main-intro h1 {
        font-size: 3.4em;
        text-align: center;
    }
    .hide-desktop {
        display: block;
    }
    .hide-mobile {
        display: none;
    }
    
    .home .header-image {
        max-height: 310px;
        min-height: 310px;
        background-position: right center;
    }
}