/*
 Theme Name:   Teopal
 Template:     aate
 Text Domain:  teopal
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

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

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

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

h1, h2, h3, h4, h5 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

h1 {
    font-size: 2.8em;
    color: #fff;
    margin-bottom: .3em;
}


/*.page-template-front-page h1 {
    font-size: 5em;
    color: #fff;
}*/

.yksi-laatikko h2, .yhteydenotto h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.yhteydenotto h2, .tumma-tausta.yhteydenotto h2 {
    color: #82b28a;
}

.kaksi-laatikkoa h2 {
    font-size: 1.7em;
    margin-bottom: 0.7em;
}

.alasivu h2:after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: #2b2c58;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.alasivu h2 {
    color: #2b2c58;
     font-size: 2.7em;
}

.tuotelista h3 {
    color: #fff;
    text-align: center;
    text-transform: none;
    font-size: 1.6em;
}

.kulma {
    display: none;
}
/***********************
*       HEADER         *
***********************/


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

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

.page-template-front-page header .row {
    position: absolute;
    top: calc(20% + 70px);
    transform: translateY(-20%);
}

header p.nosto {
    text-align: left;
    max-width: 500px;
    font-size: 1.2em;
    color: #fff;
    margin-left: 0;
}

.otsikko {
    max-width: 700px;
}

.otsikko p {
    max-width: 600px;
}

.header-image{
    position: relative;
}

.svg-corner {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: #82b28a;
    border: 2px solid #82b28a;
    color: #fff !important;
    height: 35px;
    width: 35px;
    border-radius: 50px;
}

.ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: transparent;
}

.page-template-front-page main {
    margin-top: -200px;
}

/***********************
*       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: 0;
    margin-top: 0;
}

.navbar-toggler {
    padding: 0.25rem 0;
}

.dropdown-menu li {
    background-color: #2b2c58;
}
.dropdown-item {
    padding: 10px 20px;
    /* text-align: center; */
    text-transform: uppercase;
    font-size: .8em;
}


/***********************
*        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: 1000px;
    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: 150px;
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    background-color: #eff4f7;
}

.yksi-laatikko .laatikkokuva {
    height: 200px;
}

.laatikkoteksti {
    padding: 40px;
}

.kaksi-laatikkoa .laatikkoteksti {
    height: 100%;
}
.kaksi-laatikkoa .col-md-12.col-lg-6:nth-child(1) {
    margin-bottom: 90px;
}

.yksi-laatikko .laatikkokuva .kolmio {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid black;
}

.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, a.nosto-button:focus {
    text-decoration: none !important;
}

img {
    width: 100%;
}

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


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

.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 {
    max-width: 900px;
}

/**********************
*   TUOTELISTAUS      *
**********************/

.tuotelista .laatikkoteksti {
    background: #82b28a;
    /*position: relative; */
    padding: 35px 25px 45px 25px;
}
.tuotelista .laatikko {
        margin-bottom: 0;
    background: #82b28a;
}

.tuotelista .col-md-12.col-lg-6 {
    margin-bottom: 60px;
    position: relative;
}

.tuotelista .laatikko .tuotekuva {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.tuotelista a.nosto-button {
    background: #2b2c58;
    padding: 10px 35px;
    border-radius: 50px;
    color: #fff;
    font-size: 1.2em;
    letter-spacing: .5px;
    border: 2px solid #2b2c58;
}

.tuotelista a.nosto-button:hover, .tuotelista a.nosto-button:focus {
    color: #2b2c58 !important;
    border: 2px solid #2b2c58;
    background-color: #fff;
}

.tuotelista a.nosto-button {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.tuotelista .laatikkokuva .kolmio {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid black;
}


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

/*********************
*    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: 600px;
    min-height: 600px;
}

.page-template-front-page .header-image {
    max-height: 1000px;
    min-height: 800px;
}

.ylapalkki {
    background-color: #2b2c58;
}



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

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


/***************
* ELEMENTIT *
************/

.button, .button:visited, a.button, a.button:visited {
    background-color: #2b2c58;
    border: 2px solid #2b2c58;
    padding: 12px 35px;
    color: #fff;
    display: inline-block;
     font-size: 1.2em;
    font-family: 'Lato', sans-serif;
    width: auto;
    text-decoration: none;
    text-transform: none;
    letter-spacing: .5px;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    transition: all .2s ease-in-out;
    border-radius: 50px;
    font-weight: 400;
}

input[type=submit] {
    padding: 10px 35px;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover, input[type=submit]:hover, .button:focus  {
    text-decoration: none;
    background-color: #fff !important;
    color: #2b2c58 !important;
    border-color: #2b2c58;
}

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

.laatikkoteksti a.button {
    margin-top: 1em;
}

a.nosto-button {
    background: #82b28a;
    padding: 12px 35px;
    border-radius: 50px;
    color: #fff;
    font-size: 1.2em;
    letter-spacing: .5px;
    border: 2px solid #82b28a;
}

a.nosto-button:hover, a.nosto-button:focus {
    text-decoration: none;
    background: #fff !important;
    color: #82b28a !important;
}

.wpcf7 {
    max-width: 100%;
}

form p {
    margin-bottom: 0.5em;
}

textarea {
    max-height: 200px;
}

input, textarea {
    border: none;
    border: 1px solid #8b8b8b;
    color: #333;
    display: inline-flex;
    padding: 0.5rem;
    width: 100%;
    resize: none;
    background-color: #fff;
    border-radius: 0;
}

input:focus, textarea:focus {
    border-color: #2b2c58;
}

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

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

.kaksi-laatikkoa a.nosto-button {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    max-width: 250px;
}

.kaksi-laatikkoa .laatikkoteksti h3, .kaksi-laatikkoa .laatikkoteksti h2, .kaksi-laatikkoa .laatikkoteksti p {
    text-align: center;
}

.ikoni {
    height: 70px;
    margin-bottom: 30px;
}

.ikoni img {
    width: auto;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.yksi-laatikko .laatikkoteksti h3, .yksi-laatikko .laatikkoteksti h2, .yksi-laatikko .laatikkoteksti p {
    text-align: center;
}


.yhteydenotto .row {
    align-items: end;
}


.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
    background: #fff;
    padding: 40px 40px 30px 40px;
    -ms-flex: 0 0 50%;
    flex: 0 0 calc(100% - 50px);
    max-width: calc(100% - 50px);
}

.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
    margin-left: 25px;
    margin-right: 25px;
    margin-top: 30px;
}

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

/*.alasivu-cta {
    overflow: inherit;
    margin-top: 130px;
}*/

.alasivu-cta {
    padding-top: 90px;
}



.svg-corner.footer-kulma {
    border-bottom: 150px solid #2b2c58;
    z-index: -1;
}

footer {
    background-color: #483e39;
}

.copyright {
    background: #0a0a0a;
    padding: 20px 0 20px;
}

.copyright p {
    margin-bottom: 0;
    color: #fff;
    font-size: .9em;
    text-align: center;
}

.tekijat {
    font-size: .8em;
    margin-top: 0.5em;
    display: block;
}

.copyright a, .copyright a:hover {
    color: #fff;
}


.footer-logo img {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.cli-bar-message {
    text-align: center !important;
}
.cli-bar-container.cli-style-v2 {
    justify-content: center !important;
}

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

@media only screen and (min-width: 576px) {
    .laatikkokuva {
        height: 180px;
    }
    .yksi-laatikko .laatikkokuva {
        height: 220px;
    }

}

@media only screen and (min-width: 768px) {
    /* Animaatio */
    h1 {
        font-size: 4em;
    }
    .yksi-laatikko h2, .yhteydenotto h2 {
        font-size: 3.2em;
    }
    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;
    }
        .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;
    }
}

@media only screen and (min-width: 992px) {
    
    .ylapalkki {
        background-color: #2b2c58;
        padding: 0 0;
    }
    
    .ylapalkki .navbar-nav {
        width: 100%;
        justify-content: center;
    }
    
        .navbar-expand-lg .navbar-nav .nav-link {
            padding-right: 1.2rem;
            padding-left: 1.2rem;
    }

    ul.nav {
        padding-top: 0;
    }
    .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;
    }
    .kulma {
        display: block;
    }
    .page-template-front-page main {
        margin-top: -250px;
    }
    .kaksi-laatikkoa .col-md-12.col-lg-6:nth-child(1) {
        margin-bottom: 0;
    }

    .laatikkokuva {
        height: 220px;
    }
    .yksi-laatikko .laatikkokuva {
        height: 290px;
    }

    .alasivu-cta .row{
        margin-top: -270px;
    }
    .alasivu-cta {
        padding-top: 0;
    }
    .yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
        background: #fff;
        padding: 40px 40px 30px 40px;
        -ms-flex: 0 0 50%;
        flex: 0 0 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }

    .yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
        margin-left: 0;
        margin-right: 0;
    }
}

@media only screen and (min-width: 1200px) {
	.laatikkoteksti {
        padding: 50px;
    }
    .yksi-laatikko .laatikkoteksti {
        padding: 60px 70px;
    }

}


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