/*
 Theme Name:   Pauliina Kivi
 Template:     aate
 Text Domain:  pauliinakivi
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
  
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
font-family: "Montserrat", sans-serif;
font-weight: 400;
font-style: normal;
color: #211E1C;
background-color: #F2EDEA;
}


/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
font-family: "Noto Serif", serif;
color: #211E1C;
    margin-bottom: .5em;
        font-weight: 400;
}


h1 {
    font-weight: 500;
}
h2.h1, .h2-h1 h2, .yhteydenotto h1, h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p, ul {
    font-size: 1.05em;
}

main a, main a:visited, main a:focus, main a:hover {
    color: #1c4b83;
}

main a {
    text-decoration: underline;
}

main a:focus, main a:hover {
    text-decoration: none;
}


.header-image h1 {
            margin-bottom: .3em;
            font-size: 2.5em;
            color: #ffffff;
    max-width: 800px;
    text-align: center;
        font-weight: 500;
}

header p.nosto {
    text-align: left;
    font-family: "Montserrat", sans-serif;
    color: #fff;
    margin-bottom: .5em;
    font-size: 1.2em;
    max-width: 700px;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}

/***********************
*       HEADER         *
***********************/


header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}

header .row {
    position: absolute;
    top: calc(50% + 50px);
    left: 50%;
    transform: translate(-50%, -50%);
        width: calc(100% - 50px);
}


.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: transparent;
    border: 0 solid transparent;
    color: #fff !important;
    height: 35px;
    width: 35px;
}

/***********************
*       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: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}


.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: #1c4b83;
}
.dropdown-menu:hover, .dropdown-menu li:hover {
    border-radius: 0;
}

.navbar .logo a, .navbar .logo a:hover, .navbar .logo a:focus {
    color: #fff !important;
}

#menu-menu-1 {
    padding-top: 30px;
}

/***********************
*        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: 1400px;
    margin: 0 auto;
}

.yhteydenotto .row {
    max-width: 1100px;
}

.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;
}

.laatikko {
    height: 100%;
    margin-bottom: 30px;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 50px 35px 20px 35px;
}

.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%;
}

.asianajajalogo img {
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 35px;
    margin-bottom: 0;
}

/*****************
*  PALVELUNOSTO  *
*****************/

.palveluotsikko h2 {
    margin-bottom: 1.5em;
    color: #1C4B83;
    font-weight: 500;
}

.palvelunostot .col-md-12.col-lg-4 {
        margin-bottom: 30px;
    }

/*********************
*   KUVAGALLERIA     *
*********************/

.wrapper.galleria {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.kuvagalleriakuva {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: .3s all;
    cursor: pointer;
    margin-bottom: 15px;
}

.kuvagalleriakuva:last-child{
    margin-bottom: 0;
}

.kuvagalleriakuva:hover {
    opacity: .7;
}

.light-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    top: 0;
    left: 0;
    cursor: pointer;
}

.light-box img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    width: auto;
}
 
.light-box p {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
 .light-box img:hover {
    cursor: pointer;
}

/*********************
*  yleiset luokat  *
*********************/

.nosto p, p.nosto {
    font-size: 1.1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.container, .container-fluid {
    padding-top: 70px;
    padding-bottom: 70px;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.no-padding {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.padding-top-0 {
    padding-top: 0;
}

.center img {
    margin-left: auto;
    margin-right: auto;
}


main ul {
    padding-left: 1rem;
}

/*********************
*    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;
    justify-content: center;
}

.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;
}



.esittely ul {
  list-style: none;
  padding-left: 0;
}

.esittely ul li:before {
  content: '\2713';
  margin-right: 10px;
  color: #1c4b83;
  font-weight: 700;
}

/******************
*       KIVI      *
*******************/

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 280px;
    background-position: left center;
}

.home .header-image {
    max-height: 850px;
        background-position: top center;
        min-height: 600px;
}

.ylapalkki {
    background-color: #1C4B83;
    padding-top: 0;
    padding-bottom: 0;
}

a.nav-link, a.dropdown-item {
    color: #fff;
    text-transform: none;
    font-family: "Noto Serif", serif;
    font-size: 1.1em;
}

a.nav-link:hover, a.nav-link:focus, a.dropdown-item:hover, a.dropdown-item:focus {
    color: #fff !important;
}

nav a {
    font-size: 1em;
}

.logo p {
    margin-bottom: .3em;
    font-size: 1.5em;
    color: #ffffff;
    max-width: 200px;
    margin-bottom: 0;
    font-family: "Noto Serif", serif;
}

.button, .button:visited, a.button, a.button:visited  {
    background-color: #1C4B83;
    border: 1px solid #1C4B83;
    padding: 6px 25px;
    color: #fff;
    display: inline-block;
    font-size: 1.1em;
    font-family: "Noto Serif", serif;
    letter-spacing: 0;
    text-transform: none;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    transition: all .2s ease-in-out;
    border-radius: 0;
    margin-top: 1.1em;
    font-weight: 400;
    font-style: italic;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover  {
    text-decoration: none;
    background-color: #fff;
    color: #1C4B83;
    border-color: #1C4B83;
}

.nappirivi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nappirivi a.button {
    margin-top: 15px;
    margin-left: 10px;
    margin-right: 10px;
}

.cta a.button {
background-color: #fff;
    border: 1px solid #fff;
    color: #1C4B83;
}

.cta a.button:hover, .cta a.button:focus {
background-color: #1C4B83;
    border: 1px solid #fff;
    color: #fff;
}



.button[type=submit]:hover, .button[type=submit]:focus {
        background-color: #fff;
    color: #1C4B83;
    border-color: #1C4B83 !important;
}


/*main ul li {
    color: #1c4b83;
    font-weight: 500;
    font-family: "Noto Serif", serif;
    font-size: 1.1em;
    margin-bottom: .5em;
}

main ul li ul li {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #211E1C;
    font-size: 1rem;
    margin-bottom: 0;
}*/

.palvelulista h2 {
    color: #1C4B83;
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: .3em;
    margin-top: 1.1em;
}

.yhteydenotto h2 {
    font-size: 1.6em;
    margin-top: 1.5em;
}

.wpcf7-textarea {
    max-height: 200px;
}

footer {
    background-color: #211E1C;
}

.container-fluid.copyrow {
    padding: 0 0 20px 0;
}

footer a, footer a:visited, footer a:hover {
    color: #fff;
}

footer a:hover, footer a:focus {
    text-decoration: underline;
}

p.copyright {
    text-align: center;
    font-size: .8em;
    color: #a4a3a1;
}

p.copyright a {
    color: #a4a3a1 !important;
}

footer h2 {
    font-size: 1.5em;
    margin-top: 1em;
}

footer .container {
    max-width: 1100px;
}


footer img {
     max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.cta {
    background-image: url('https://pauliinakivi.fi/wp-content/uploads/pkivi_kuva01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

p.cta-nosto {
    font-size: 1.4em;
    font-family: "Noto Serif", serif;
    color: #ffffff;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kapea-cta h2, .kapea-cta p {
    color: #fff;
}

.kapea-cta p {
    max-width: 400px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.kapea-cta h2 {
    font-variation-settings: "wght" 500, "wdth" 100;
    font-size: 3em;
}
.wpcf7 form .wpcf7-response-output {
    margin-left: 0;
    margin-right: 0;
    border-width: 1px !important;
}

span.sitaatti {
    font-style: italic;
    font-size: 1.1em;
    margin-top: 1em;
    display: inline-block;
}

input, textarea {
    border-left: 0 solid transparent;
    background: #fdfdfc;
    border-radius: 0;
    border: 1px solid #E3DCD3;
}

input:hover, textarea:hover,
input:focus, textarea:focus{
    border-color: #1C4B83;
}
@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 576px) {
    .page-header {
    max-height: 350px;
}
}

@media only screen and (min-width: 768px) {
    /* Animaatio */

    main .row, .header-image .row {
        opacity:0;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
    
    .page-header {
    max-height: 420px;
}
    
    
.logo p {
    font-size: 2em;
        max-width: 600px;
}

.home .header-image {
    min-height: 750px;
}

header .row {
    width: auto;
    min-width: 700px;
top: calc(50% + 50px);
        left: 50%;
        transform: translate(-50%, 0);
}
p.cta-nosto {
    font-size: 2em;
}
    h2 {
    font-size: 2.4em;
}

h3 {
    font-size: 1.8em;
}

    h2.h1, .h2-h1 h2, .yhteydenotto h1, h1 {
    font-size: 3.5em;
}

.header-image h1 {
    font-size: 3.7em;
}

header .row {
    position: absolute;
    bottom: 100px;
}

    .fade-in-up {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease-out;
    }
    .fade-in-up-header {
      opacity: 0;
     transform: translate(-50%, 0);
      transition: all 0.6s ease-out;
    }
    .fade-in-up-header.visible {
      opacity: 1;
      transform: translate(-50%, 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;
    }
    
footer h2 {
    font-size: 1.9em;
    margin-top: 0;
}

footer img {
    max-width: 230px !important;
    margin-left: 0;
    margin-right: auto;
    margin-top: -10px;
}

footer h1, footer h2, footer h3, footer h4, footer p {
    text-align: left;
}

}

@media only screen and (min-width: 992px) {
    .ylapalkki {
        padding: .5rem 0;
    }
    
    .container, .container-fluid {
        padding-top: 90px;
        padding-bottom: 90px;
    }
    
    .no-padding {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .no-paddings {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .padding-bottom-0 {
        padding-bottom: 0;
    }
    
    .padding-top-0 {
        padding-top: 0;
    }
    
        .page-header {
    max-height: 470px;
}

     a.nav-link {
        position: relative;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: .7rem;
    padding-right: .7rem;
}
    a.nav-link:hover:after, .current-menu-item a.nav-link:after, .current-page-ancestor a.nav-link:after {
        content: "";
        width: 35px;
        height: 1px;
        background: #fff;
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
    }
    header .row {
    position: absolute;
    top: calc(50% + 50px);
    left: 50%;
    transform: translate(-50%, 0);
}
    .menu-item-has-children a.nav-link:hover:after {
        content: none;
    }
    
    #menu-menu-1 {
    padding-top: 0;
}

.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
            display: flex;
        flex-direction: column;
        flex-grow: 1;
}

.laatikkokuva {
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
}

.laatikkoteksti {
    padding: 50px 35px;
}
    ul.nav {
        padding-top: 0;
    }
    .palvelunostot .col-md-12.col-lg-4 {
        margin-bottom: 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;
    }
    .teksti-vasemmalla p, .teksti-vasemmalla h2, .teksti-vasemmalla .button {
    max-width: 550px;
        margin-left: auto;
}

.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;
}

}

@media only screen and (min-width: 1400px) {
	.teksti-vasemmalla {
    padding-right: 150px;
     padding-left: 150px;
}

.teksti-oikealla {
    padding-left: 150px;
     padding-right: 150px;
}

}


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}
