@import url("../quark/style.css");

/*
 Theme Name:   Viherlandia quark
 Description:  My quark child theme for Viherlandia
 Author:       Joona Hämäläinen
 Template:     quark
*/




body {
    overflow-x: hidden;
    background:#fff;
}

.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

.col {
    margin:0 0 0 0 !important;
    padding:0 0 0 0;
}


p, a, li, strong, span, label, input, textarea {
  font-family: calibri, sans-serif;
}
p {
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 24px;
  font-size: 14px;
}
a:visited {
  color:#242424;
}
h1, h2, h3, h4, h5, h6 {
  font-family: clarendon-text-pro, serif;
}
a:hover, a:active, a:focus, input:focus, button:hover, button:active, button:focus {
  outline:none;
  color:#242424;
}

.container {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding:40px 20px 0px 20px;
}

/*** HEADER ***/
.top-header {
  background:#579339;
  height:50px;
}
.top-header .container {
  position: relative;
  height:50px;
  padding:0;
}
.top-header .container img {
  position: absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  max-width: 20px;
}
#headercontainer {
  height: 70px;
  background: #fff;
  z-index: 101;
  position: relative;
  top:0;
  box-shadow: 0px 4px 8px rgb(0 0 0 / 6%);
}
.site-header {
  width: 100%;
  max-width: 1200px;
  height: 70px;
  position: relative;
}
.site-title {
  position: absolute;
  top: -25px;
  left:20px;
}
.home .site-title img {
  max-width: 220px;
}
.some-container {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
}
.some-container a {
  display: inline-block;
  color:#fff;
  font-weight:bold;
  margin:0px 14px;
  font-size:20px;
}

/*** SEARCH ***/
.toggle-search {
  cursor:pointer;
}
.search-container {
    position: relative;
    z-index: 1000;
    background: #fff;
    width: 100%;
    padding: 40px 60px;
    display: none;
}
button.close-search {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 26px;
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: 0.2s all ease-in-out;
}
input.search-submit {
    width: 80px;
    background: #579339;
    border: none;
    border-radius: 0px;
    height: 50px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}
input.search-field {
    width: calc(100% - 160px);
    border: solid 1px rgba(0,0,0,0.05);
    background: rgba(0,0,0,0.05);
    border-radius: 0px;
    height: 50px;
    padding-left: 20px;
    margin-right: -5px;
    font-size: 24px;
    color: #579339;
}

/*** BANNER ***/
.home .banner-container {
    height: 100vh;
}
.banner-container {
  position: relative;
}
.banner-content-container {
  position: relative;
  max-width: 1200px;
  margin:0 auto;
}
.banner-content {
  position: absolute;
  top:50%;
  transform:translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  right:20px;
  width:60%;
}
.banner-content p.hinta {
  background: #579339;
  text-align: center;
  padding: 35px 25px;
  font-size: 20px;
  width: 120px;
  font-weight: 500;
}
.banner-content h3 {
  color:#fff;
  font-size: 48px;
  text-shadow: 2px 2px 3px rgb(10 48 13 / 60%);
}
.banner-content p {
  text-shadow: 2px 2px 3px rgb(10 48 13 / 60%);
  color:#fff;
  font-size: 18px;
  line-height: 30px;
}
.banner-content a {
  display: inline-block;
  background: #579339;
  padding: 12px 20px 10px 20px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1.5px;
  font-family: clarendon-text-pro, serif;
}

/*** OSASTOMENU ***/
.osasto-menu-container {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
}
.page-template-alasivu .osasto-menu-container {
  position: absolute;
  width:100%;
  z-index: 1;  
}
.osasto-menu-container .single-osasto {
  width:20%;
  text-align: center;  
  position: relative;
}
.osasto-menu-container div img {
  height:340px;
  -o-object-fit: cover;
  object-fit: cover;
}
.osasto-header {
  width: 100% !important;  
  padding:20px;
  position: absolute;
  top:0;
  transition:0.3s all ease-in-out;
}
.osasto-header:hover {
  padding-bottom:40px;
}
.osasto-header:after {
  content: '';
  position: absolute;
  top: 99%;
  left: 0; 
  right: 0;
  padding-bottom: 10%;
  background: inherit;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  z-index: 1;
}
.osasto-header a {
  font-size: 15px;
  color:#fff;
  letter-spacing: 1.5px;
  font-family: clarendon-text-pro, serif;
  text-decoration:none;
  text-transform: uppercase;
}
.osasto-header p {
  color:#fff;
  letter-spacing: 1px;
  margin-bottom:0;
  font-family: clarendon-text-pro, serif;
}

/*** GRID CONTAINER ***/
.grid-container { 
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;   
  flex-wrap: wrap;
  justify-content: space-between;
}
.home .full-grid {
  padding: 40px;
  background: #f3f3f3;
}
.half-grid-container {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
}
.half-grid {
  width:calc(50% - 20px);
  padding:40px;
  background:#f3f3f3;
}
.half-grid h3 {
  margin-bottom: 20px;
  font-weight: 500;
}
.week-container {
  width:60px;
  height:60px;
  position: relative;
  background:#72b4e3;
  text-align:center;
}
.week-container p {
  position: absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  color:#fff !important;
  margin-bottom:0;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
}
.half-grid-container-content {
  width: calc(100% - 80px);
}
.half-grid-container-content p {
  margin-bottom: 0;
}
.half-grid-container-content a {
  color: #579339;
  text-decoration: none;
}
.half-grid-image {
  position: relative;
}
.half-grid.half-grid-image {
  cursor:pointer;
}
p.letter {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: #ff8300;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
}
p.letter span {
  position: absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  font-family: clarendon-text-pro, serif;
}
p.letter svg {
  fill:#fff;
}
.half-grid-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    text-align: center;
    width: 100%;
    padding: 100px 40px 40px 40px;    
    background: linear-gradient(transparent, #579339);
}
.half-grid-content h3 {
  color:#fff;
  line-height:38px;
  margin-bottom:0;
  font-weight: 500;
  text-shadow: 5px 5px 10px rgb(0 0 0 / 60%);
}
.half-grid-content h3 a {
  font-weight:bold;
  color:#fff;
  text-decoration:none;
  font-family: clarendon-text-pro, serif;  
  letter-spacing: 1px;
}
.third-grid {
  width: calc(33.33% - 26.666667px);
  position: relative;
}
.third-grid img {
  height: 260px;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.third-grid div {
  padding: 20px;
}
.third-grid h3 a {
  text-decoration: none;
  font-weight: 500;
  font-family: clarendon-text-pro, serif;
}
.post-date {
  width: 60px;
  height: 70px;
  position: absolute;
  top:14px;
  left:14px;
  background: #579339;
}
.post-date p, .split-post-date p {
  text-align:center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  color: #fff !important;
  margin-bottom: 0;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 20px;
}
.category-name {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #fff !important;
  font-weight: bold;
  letter-spacing: 0.4px;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}
.category-name:hover {
  color:#579339 !important;
}

/*** MONTH VIEW ***/
.month-view {
  border-top: solid 2px #579339;
}
.month-view.container {
  padding-bottom:40px;
}
.month-view .grid-container {  
  background: #f9f9f9;
}
.month-view .half-grid {  
  background: none;
  position: relative;
  height:300px;
}
.tab {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
  position: absolute;
  bottom:40px;
  left:40px;
  border-bottom: solid 2px #579339;
}
.tab div {
  position: relative;
  cursor:pointer;
  transition: 0.3s;
  width: 40px;
  text-align: center;
  height: 100px;
  margin:0 !important;
}
.tab div:before {
  position: absolute;
  content: '';
  width: 2px;
  height: 20px;
  background: #579339;
  bottom: -10px;
  left: 0px;
}
.tab div:last-of-type:after {
  position: absolute;
  content: '';
  width: 2px;
  height: 20px;
  background: #579339;
  bottom: -10px;
  right: 0px;  
}

.tab div p {  
  font-size: 20px;
  font-weight: 500;
  padding:5px;
  letter-spacing: 1px;
  margin-bottom:0;
  color: #579339;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.tablinks.active {
  background: #579339;
}
.tab div.active p {
  color: #fff;
  background: #579339;
  top: 4px;
}
.tablinks.active:after {
  position: absolute;
  content: '';
  width: 2px;
  height: 100px;
  background: #579339;
  right: -2px;
}
.tabcontent {
  display: none;
  width:100%;
}
.default-open {
  display: block;
}

.split-post-container {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom:20px;
}
.split-post-date {
  width: 60px;
  height: 70px;
  position: relative;
  background: #579339;
}
.split-post-content {
  width: calc(100% - 80px);
}
.split-post-content h3 {
  margin-bottom: 0;
  font-size: 20px;
}
.split-post-content h3 a {
  text-decoration: none;
}
.split-post-content p {
  margin-bottom:0;
}

/*** TAPAHTUMAT ***/
.sidebar-sub-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between; 
  padding-top:180px;
}
.page-template-tapahtumat .tab {
  left:0;
}
.page-template-tapahtumat .month-view {
  border-top:none;
}
.page-template-tapahtumat .month-view .grid-container {
  background:none;
}
.page-template-tapahtumat .month-view .full-grid {  
  background: none;
  position: relative;
  height:unset;
  min-height: 120px;
  width:100%;
}
.sidebar {
  background: #f2f2f2;
  padding: 20px;
  margin-bottom:20px;
}
.sidebar h3 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: Solid 2px #579339;
  padding-bottom: 10px;
}
.sidebar h4 {
  font-size: 18px;
}
.sidebar h4 a {
  font-family: clarendon-text-pro, serif;
  text-decoration: none;
}
.sidebar p {
  color:#333;
}
.sidebar p a {
  color:#579339;
}
.sidebar-grid-container {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap; 
  justify-content: space-between; 
}
.sidebar-grid-container-content {
  width: calc(100% - 80px);
}
.sidebar-image {
  position: relative;
  cursor:pointer;
}
.sidebar-image img {
  height: 240px;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.sidebar-image h3 {
  color: #fff;
  font-size: 18px;
  text-shadow: rgba(0, 0, 0, 0.6) 5px 5px 10px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  text-align: center;
  width: 100%;
  margin-bottom: 0;
  padding: 100px 20px 20px 20px;
  background: linear-gradient(transparent, #579339);
}
.sidebar-image h3 a {
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  font-family: clarendon-text-pro, serif;
  letter-spacing: 1px;
}
/*Etusivun ja sidebarin verkkokauppalinkille button*/
.astuverkkokauppaan {
	background-color:#ff8300;
	border-radius:25px;
	border:0px solid #18ab29;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	padding:10px 25px;
	text-shadow:rgba(0, 0, 0, 0.6) 1px 1px 2px ;

}
.astuverkkokauppaan:hover {
	background-color:#417129;
}

.flex {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
}
.single-event {
  width:48%;
  position: relative;
} 
.single-event img {
  height:260px;
  -o-object-fit: cover;
  object-fit: cover;
  width:100%;
}
.single-event div {
  padding: 20px;
}
.single-event h3 a {
  text-decoration: none;
  font-weight: 500;
  font-family: clarendon-text-pro, serif;
}
.single-event-placeholder {
  width: 48%;
  position: relative;
  background: #579339;
  height: 260px;
}
.single-event-placeholder p {
  color:#fff;
  font-size:20px;
  position: absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:100%;
  text-align:center;
  padding:20px;
}

/*** ALASIVU ***/
.page-template-alasivu .sidebar-sub-page-container {
  padding-top:40px;
}
p.otsikkoteksti {
    font-size: 22px;
    line-height: 34px;
    margin-bottom: 4.5%;
    background: #f2f2f2;
    padding: 20px;
    font-family: clarendon-text-pro, serif;
}
.site-title img {
  max-width: 160px;
}
.page-template-alasivu .banner-container {
  background-repeat:no-repeat !important;
  background-position: center center !important;
  background-size:cover !important;
  height:700px;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
.sub-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
}
.sub-page-container:after {
  content: '';
  background: inherit;
  width: 100%;
  position: absolute;
  height: 100%;
  top: 0;
  z-index: -1;
}
.sub-page-container div {
  margin:20px 0;
}
.sub-page-container h1 {
  width:100%;
}
.sub-page-header-container {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: left;
  max-width: 1200px;
  margin: 0 auto;
  height: 300px;
  margin-top:-300px;
  padding-left:40px;
  position: relative;
  z-index: 1;
}
.sub-page-header-container div {
  width:calc(33.33% - 20px);
  height: 300px;
}
.sub-page-header-container div img {
  -o-object-fit: cover;  
  object-fit: cover;
  height: 300px;
  width:100%;
}
.sub-page-header-container div:first-of-type {
  padding:40px;
  color:#fff;
}
.sub-page-header-container div:first-of-type h1 {  
  color:#fff;
  font-size: min(3vw, 38px) !important;
}
.sub-page-header-container div p {  
  font-size:18px;
  line-height: 30px;  
}
.grid-50 {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
}
.grid-50 div {
  width:48%;
}
.split-50 {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
}
.split-50 div {
  width:48%;
}
.split-image {
  width:100%;
}
.grid-66 {
  width:66%;
}
.grid-66 a {
  color: #579339;
  text-decoration: none;
  font-weight: bold;
}
.grid-33 {
  width:31%;
}
.grid-25 {
  width:24%;
  background:#f2f2f2;
  padding:40px 20px;
}
.grid-25 h3 {
  color:#242424;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8vw;
}
.grid-25 p {
  color:#242424;
}
.grid-50.sub-grid {
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
  background:#f2f2f2;
  padding:40px 20px;
}
.grid-50.sub-grid h3 {
  width: 100%;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 18px;
  color:#242424;
}
.grid-50.sub-grid div h4 {
  font-weight: bold;
  font-size: 18px;
}
.grid-50.sub-grid div ul {
  margin-left: 0;
  padding-left: 0;
}
.grid-50.sub-grid div ul li {
  color:#242424;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 24px;
  font-size: 14px;
}
.full-width-image {
    width: 100%;
    margin-bottom:20px;
}
.full-width-image img {
    width: 100%;
}

/*** LOUNASLISTA ***/
p.lunch-date {
    font-weight: bold;
    font-size: 18px;
    color: #579339;
}
.sidebar-lunch-menu {
  display: none;
  margin-top:40px;
}
#toggle-lunch-menu {
  text-decoration: none;
  color: white;
  background: #579339;
  padding: 6px 20px;
  border-radius: 25px;
  display: block;
  text-align:center;
}
#tabs {
  overflow: hidden;
  border: 1px solid #f1f1f1;
}
#tabs button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size:14px;
  transition: 0.3s;
}
#tabs button:hover {
  background-color: #579339;
  color:#fff;
}
#tabs button.active {
  background-color: #579339;
  color:#fff;
}
.lunch-menu {
  background:#f2f2f2;
  display: none;
  padding: 20px;
  margin-bottom:40px;
}
.lunch-menu {
  animation: fadeEffect 1s;
}
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.lunch-menu h4 {
  color:#579339;
  font-size:18px;
  font-weight:bold;
}
.sidebar #tabs button {
  width:25%;
  font-weight: bold;
}

/*** ALASIVU SIDEBAR ***/
.featured-image-container {
  margin-bottom:30px;
}
.featured-image-container img {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  -o-object-fit:cover;
}

/*** YHTEYDENOTTO ***/
.page-template-yhteydenotto .banner-container {
  background-repeat:no-repeat !important;
  background-position: center center !important;
  background-size:cover !important;
  height:700px;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
.page-template-yhteydenotto .osasto-menu-container {
  position: absolute;
  width: 100%;
  z-index: 1;
}
.wpforms-container input {
  height: 50px !important;
  background: #454545 !important;
  border: none !important;
  border-radius: 0px !important;
  color: #fff !important;
  font-size: 13px !important;
  padding-left: 20px !important;
}
.wpforms-container textarea {
  height: 250px !important;
  background: #454545 !important;
  border: none !important;
  border-radius: 0px !important;
  color: #fff !important;
  font-size: 13px !important;
  padding-left: 20px !important;
  padding-top: 18px !important;
}
.wpforms-submit {
  background: #579339 !important;
  border: none !important;
  color: #fff !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  float: right !important;
  padding: 12px 30px !important;
}
.page-template-yhteydenotto .grid-33 h4 {
  color:#e0e0e0;
  margin-top:55px;
}
.page-template-yhteydenotto .grid-33 ul {
  padding-left:2px;
}
.page-template-yhteydenotto .sub-page-container {
  color:#e0e0e0 !important;
}
.page-template-yhteydenotto .sub-page-container a {
  color: #579339;
  text-decoration: none;
}

/*** GALLERIA ***/
.page-template-galleria .sub-page-container {
  margin-top: 140px;
}
.page-template-galleria .sub-page-container h1 {
  font-size: 32px;
}
.container {
  margin: 0 auto;
}
.columns {
  margin-top:10px;
  -webkit-column-count: 4;
  -moz-column-count: 4;
  column-count: 4;
  -webkit-column-gap: 15px;
  -moz-column-gap: 15px;
  column-gap: 15px;
  -webkit-column-width: 25%;
  -moz-column-width: 25%;
  column-width: 25%;
}
.columns ul {
  margin:0 !important;
  padding: 0 !important;
}
.columns ul li {
  margin-bottom: 15px;
  list-style-type:none !important;
}
.columns img {
  width: 100%;
  height: auto;
}
@media only screen and (min-width: 480px) and (max-width: 727px) {
  .columns {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-width: 50%;
    -moz-column-width: 50%;
    column-width: 50%;
  }
}
@media only screen and (max-width: 479px) {
  .columns {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    -webkit-column-width: 100%;
    -moz-column-width: 100%;
    column-width: 100%;
  }
}

/*** HENKILÖKUNTA ***/
.page-template-henkilokunta .sub-page-container {
  margin-top:140px;
}
p.henkilokunta-letter {
  position: absolute;
  top: 245px;
  left: 10px;
  width: 80px;
  height: 80px;
  background: #579339;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  margin-bottom:0;
}
p.henkilokunta-letter span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  font-family: clarendon-text-pro, serif;
  text-transform: uppercase;
}
.henkilokunta-grid {
  width:calc(50% - 20px);
  position: relative;
}
.henkilokunta-grid img {
  height: 260px;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.henkilokunta-info {
  margin:0;
  padding:0;
  margin-left: 104px;
  margin-top: 15px;
}
.henkilokunta-grid ul li {
  color: #242424;
  line-height: 20px;
}
.toggle-info {
  background: #579339;
  border-radius: 50%;
  padding: 10px 17px 8px 17px;
  color: #fff !important;
  border: none;
  position: absolute;
  right: 20px;
  top: 200px;
  font-family: clarendon-text-pro, serif;
  z-index: 1;
  display: none;
}
.toggle-info:hover {
  background:#416d2b !important;
}
p.esittelyteksti {
  background: rgb(41 74 24 / 72%);
  height: 260px;
  position: absolute;
  top: 0;
  padding: 20px;
  color: #fff;
  opacity:0;
  visibility: hidden;
  transition: 0.3s all ease-in-out;
}
.show-info {
  opacity: 1 !important;
  visibility: visible !important;
}

/*** YRITYKSILLE ***/
.page-template-yrityksille .banner-container {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  height: 700px;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
.page-template-yrityksille .osasto-menu-container {
  position: absolute;
  width: 100%;
  z-index: 1;
}
.page-template-yrityksille .grid-25 {
  background:#538d35;
}
.page-template-yrityksille .grid-25 a {
  color: #fff;
  text-decoration: none;
}
.grid-50 .grid-100 {
  width: 100%;  
  background:#538d35;
  padding: 40px 20px;
}
.grid-50 .grid-50 h3 {
  width: 100%;  
}
.full-width-hr {
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 20px 0;
}
.yrityksille .sub-grid {
  background:none;
  padding:0;
}

/*** MAIN CONTENT ***/
#maincontentcontainer h1 {
  margin-bottom: 20px;
  font-size: 42px;
}
#maincontentcontainer h2 {  
  font-size: 34px;
}
h2.ote-otsikko {
  font-size: 28px !important;
  font-style: italic;
  margin-top: -10px;
}
.site-content {
  padding:60px 20px;
}
.home.page .site-content {
  padding-bottom: 60px;
}
#maincontentcontainer ul {
  padding-left:24px;
}
#maincontentcontainer li {
  list-style-type: disc;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 24px;
  font-size: 14px;
}

/*** SEARCH RESULTS ***/
h1.page-title, h1.page-title span {
  font-family: clarendon-text-pro, serif;
  font-size:32px !important;
}
.archive-header, .page-header {
  border-bottom:none;
  margin-bottom:0;
}
h1.entry-title {  
  font-size: 26px !important;
  margin-bottom:0 !important;
}

h1.entry-title a {
  font-family: clarendon-text-pro, serif; 
}

/*** DESKTOP MENU ***/
.main-navigation {
  margin-top: 0px;
  height:70px;
  position: absolute;
  right: 180px;
}
.main-navigation li {
  margin:0px;
  height:70px;
  padding: 24px 14px;
  position: relative;
}
.main-navigation ul li a {
  color:#579339 !important;  
  font-weight: 500;  
      font-size: 14px;
      font-family: clarendon-text-pro, serif;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: 0.3s all ease-in-out;
}
.main-navigation ul li a:before {
  content: '';
  position: absolute;
  left:14px;
  bottom:14px;
  opacity: 0;
  height: 2px;
  background: #579339;
  border-radius: 10px;
  transition: 0.2s all ease-in-out;
}
.main-navigation ul li a:before {
  width: calc(100% - 28px);
}
.main-navigation .menu-item-has-children a:before {
  width: calc(100% - 44px);
}
.main-navigation ul li a:hover:before {
  bottom:20px;
  opacity: 1;
}
.current-menu-item a:before {
  bottom:20px !important; 
  opacity: 1 !important
}
a.viherkauppa {
  text-decoration: none;
  color: white;
  background: #ff8300;
  padding: 6px 20px;
  border-radius: 25px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  font-size:14px;
  letter-spacing: 0.5px;
  font-weight: 500;
  font-family: clarendon-text-pro, serif;
}
a.viherkauppa:hover {
  background:#417129;
}
.main-navigation ul li a:after {
  display: none;
}
.main-navigation .menu-item-has-children {
  position: relative;
  padding: 24px 34px 24px 14px;
}
.main-navigation .menu-item-has-children:after {
  content: '';
  background: url(https://viherlandia.pro/wp-content/uploads/2020/03/arrow-green.png);
  background-repeat: no-repeat;
  background-size: 12px 6px;
  width:12px;
  height:6px;
  display: block;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  margin-top: 2px;
  cursor: pointer;
  padding: 0px 0px 0px 14px;
}
.main-navigation a:hover {
  color:#417129 !important;
}
.main-navigation .sub-menu {
  display: none !important;
}
.dropdown-container {
  position: absolute;
  background:#fff;
  top:70px;
  right:0;
  display: -webkit-box;  
  display: -ms-flexbox;  
  display: -webkit-flex; 
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-between;
  visibility: hidden;
  opacity: 0;
  border-top:solid 1px rgb(0 0 0 / 6%);
  box-shadow: 3px 3px 10px 2px rgb(0 0 0 / 4%);
  transition: 0.3s all ease-in-out;
}
.osastot-menu {
  width:905px;
}
.viherlandia-menu {
  width:805px;
}
.tapahtumat-menu {
    width: 670px;
    height: 150px;
}
.info-menu {
  width:258px;
}
.yrityksille-menu {
  width:250px;
}
.dropdown-container ul.sub-menu li {
    padding: 14px 14px 0px 14px;
}
.dropdown-menu {
  position: relative;
}
.dropdown-image {
  width: 50%;
  position: relative;
  background: url(https://viherlandia.pro/wp-content/uploads/2020/02/VL-01.jpg) no-repeat;
  background-size: cover;
  background-position: center center;
}
.dropdown-image img {
  position: absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  max-width: 100px;
}
.dropdown-container ul {
  margin:0;
  padding:0;
}
.dropdown-container ul li {
  margin:0;
  padding:0;
  position: relative;
  padding:14px 30px 14px 14px;
}
.dropdown-container ul li a {
  color:#579339;  
  font-size:14px;
  display: block;
  text-decoration: none;
  font-weight: 500;  
      font-family: clarendon-text-pro, serif;
}
.dropdown-container ul li a:hover {
  color:#417129;  
}
.dropdown-container ul.sub-menu {
  position: absolute;
  left: 100%;
  top: 0;
  width: 100%;
  display: none;
}
.show-menu {
  visibility: visible;
  opacity: 1;
  transition: 0.3s all ease-in-out;
}
.show-sub-menu {
  display: block !important;
}
.dropdown-container .menu-item-has-children:after {
  content: '';
  background: url(https://viherlandia.pro/wp-content/uploads/2020/03/arrow-green.png);
  background-repeat: no-repeat;
  background-size: 12px 6px;
  width: 12px;
  height: 6px;
  display: block;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  -webkit-transform: translateY(-50%) rotate(-90deg);
  -ms-transform: translateY(-50%) rotate(-90deg);
  margin-top: -1px;
  cursor: pointer;
  padding: 10px 0px 0px 0px;
}
.dropdown-container .menu-item-has-children:after:hover {
  color:#417129;
}

/*** MOBILE MENU ***/
.mobile-menu {
  float: right;
  position: absolute;
  right: 20px;
  top: 50%;
  transform:translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  display: none;
  z-index: 99999; 
}

#nav-icon {
  width: 20px;
  height: 18px;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}
#nav-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 20px;
  background: #579339;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}
#nav-icon span:nth-child(1) {
  top: 0px;
}
#nav-icon span:nth-child(2),#nav-icon span:nth-child(3) {
  top: 8px;
}
#nav-icon span:nth-child(4) {
  top: 16px;
}
#nav-icon.open span:nth-child(1) {
  top: 14px;
  width: 0%;
  left: 50%;
}
#nav-icon.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  background: #000;
}
#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background: #000;
}
#nav-icon.open span:nth-child(4) {
  top: 14px;
  width: 0%;
  left: 50%;
}

/*** SIDENAV ***/
.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  background:#579339;
  overflow-x: hidden;
  transition: 0.5s;
  opacity: 0;
  visibility: hidden;
}
.nav-menu {
  padding:0;
  margin:0;
}
.menu {
  padding:0;
  margin:0;
}
.overlay-content {
  position: absolute;
  top:200px;
  width: 100%;
}
.overlay a {
  padding: 5px 40px;
  text-decoration: none;
  font-size: 24px;
  color: #fff;
  font-weight: 600;
  display: block;
  letter-spacing: 2px;
  transition: 0.15s all ease-in-out;   
  font-family: clarendon-text-pro, serif;
}
.overlay a:hover, .overlay a:focus {
    color: #000;   
    text-shadow: none;
}
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}
.open-menu {
  opacity: 1;  
  visibility: visible;
}
.close-menu {
  opacity: 0;
  visibility: hidden;
}

/*** MOBILE TOGGLE MENU ***/
.overlay .menu-item-has-children {
  position: relative;
  cursor: pointer;
}
.overlay .menu-item-has-children a {
  position: relative;
  width: calc(100% - 100px);
}
.overlay ul ul {
  display: none;
  padding-left: 20px;
  margin-bottom:10px;
}
.overlay ul ul a {
  font-size: 16px;
}
.overlay ul ul ul {
  display: block;
}
.overlay .menu-item-has-children .menu-item-has-children:after {
  content:none !important;
}
.overlay ul ul ul a {
  font-size: 12px;
}
.overlay .menu-item-has-children:after {
  content: '';
  background: url(https://viherlandia.pro/wp-content/uploads/2020/12/arrow-white.png);
  background-repeat: no-repeat;
  background-size: 12px 6px;
  width: 12px;
  height: 6px;
  display: block;
  position: absolute;
  right:26px;
  top: 20px;
  cursor: pointer;  
}

/*** SINGLE POST ***/
.header-meta {
  display: none;
}
.single-blog-post {
  position: relative;  
  width: calc(50% - 10px);
}
.single-blog-post div {
  padding: 20px;
}
.single-blog-post img {
  height: 260px;
  width: 100%;
  -o-object-fit: cover;  
  object-fit: cover;
}
.single-blog-post h3 a {
  text-decoration: none;
  font-weight: 500;
  color:#000;
  font-family: clarendon-text-pro, serif;
}
.single-post-image {
  position: relative;
  margin-bottom:20px;
}
.single-post-image img {
  width:100%;
}
.wp-caption-text {
    margin-top: 10px;
}

/*** ARCHIVE ***/
span.cat-archive {
  font-family: clarendon-text-pro, serif;
  font-style: italic;
}

/*** FORM STYLING ***/
.gfield_select {
  height: 40px;
  background: #f2f2f2;
  border: none !important;
  border-radius: 0px !important;
  color: #000;
  font-size: 13px !important;
  padding-left:10px !important;  
}
.gform_fields input[type=text] {
  height: 40px;
  background: #f2f2f2;
  border: none !important;
  border-radius: 0px !important;
  color: #000;
  font-size: 13px !important;
  padding-left:10px !important;  
}
.gform_fields textarea {  
  background: #f2f2f2;
  border: none !important;
  border-radius: 0px !important;
  color: #000;
  font-size: 13px !important;
  padding-left:10px !important;  
}
.gform_fields {
  padding-left: 0 !important;
}
.gfield_radio {
  padding-left: 0 !important;
}
.gfield_checkbox {
  padding-left: 0 !important;
}
.gfield_checkbox li label {
  margin-top: 6px !important;
  margin-left: 6px !important;
}
.gfield_description {
  font-size: 13px !important;
}
.medium, .small {
  width:100% !important;
}
h3.gform_title {
  font-size: 28px !important;
}
h2.gsection_title {
  font-size: 22px !important;
}
.gform_button {
  border: none !important;
  color: #fff !important;
  text-shadow: none !important;
  font-size: 14px !important;
  letter-spacing: 0.5px;
  background: #579339 !important;
  padding: 14px 20px !important;
  border-radius: 0px !important;
  font-weight: 500;
  font-family: clarendon-text-pro, serif;
}
.gform_button:hover {
  background:#417129 !important;
}
#field_2_28 h3 {
  font-size: 16px;
  font-family: calibri, sans-serif;
}
#field_2_28 h3 a {
  color:#579339;
  text-decoration: none;
}

/*** FOOTER ***/
#footercontainer {
  background:#579339 !important;
  position: relative;
}
.site-footer {
  width:100%;
  padding:0px 20px 80px 20px;
}
#footercontainer .grid_3_of_12 {
  border-left:solid 1px rgba(255,255,255,0.5);
  padding-left:20px;
  padding-top:80px;
  width:23%;
}
#footercontainer .grid_3_of_12:nth-of-type(2){
  width:31%;
}
#footercontainer .grid_3_of_12:first-of-type {
  border-left:none;
}
#footercontainer ul li, #footercontainer ul li a, #footercontainer a {
  line-height: 22px;
  font-size: 12px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-decoration: none;
}
#footercontainer a:visited {
  color:#fff;
}
#footercontainer p {
  color:#fff;
  font-weight: 400;
  letter-spacing: 0.2px;
  font-size: 12px;
  line-height: 22px;
}
#footercontainer ul li a:hover {
  color:#fff;
}
.smallprint p {
  letter-spacing: 2px;
  font-size:12px;
  color:#fff;
}
.site-footer h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.smallprint {
  text-align: center;
  background: #4c4c4c;
  width: 100%;
  max-width: 100%;
  padding-top: 30px;
}
.smallprint a {
    font-weight: bold !important;
    color: #579339 !important;
}

/*** 404 ***/
p.not-found {
    text-align: center;
    margin-top: 80px;
    margin-bottom:60px;
    font-size: 40px;
    line-height: 70px;
}
p.not-found span {
    text-align: center;
    margin-top: 80px;
    font-size: 60px;
    font-weight: bold;
}

::selection {
  background:rgba(0,0,0,0.8);
}

@media(max-width:1450px){
  .osasto-header h4 {
    font-size: 22px;
  }
}

@media(max-width:1200px){ 
  .main-navigation {
    display: none;
  }
  .mobile-menu {
    display: block;
  } 
  a.viherkauppa {
    right:70px;
  }
  .sub-page-header-container {
    padding-left:20px;
  }
  .sub-page-header-container div {
    width: calc(33.33% - 10px);
    height: 300px;
  }   
  .osasto-header h4 {
    font-size: 18px;
  }
  .osasto-header p {
    font-size: 12px;
    line-height: initial;
  }
  .month-view .half-grid {
    width:100%;
    margin-bottom:20px;
  }
  .sidebar-sub-page-container {
    padding:180px 20px 40px 20px;
  }
  .grid-25 {
    width:48%;
  }
  .page-template-henkilokunta .grid-25 h3 {
    font-size: 2vw;
  }
  .grid-50.sub-grid {
    width:100%;
  }
  .half-grid-content h3 {
    font-size:24px;
  }
  .sidebar-image h3 {
    font-size:16px;
  }
  #footercontainer .grid_3_of_12 {
    width:50% !important;
    padding-top:40px;
  }
  #footercontainer .grid_3_of_12:first-of-type {
    border-left:solid 1px rgba(255,255,255,0.5);
  }
}

@media(max-width:991px){
  .home .site-title img {
    max-width: 160px;
  }
  .site-title {
    top: -16px !important;
  }
  .osasto-menu-container {
    display: none;
  }
  #maincontentcontainer h1 {
    font-size: 32px;
  }
  .sidebar-sub-page-container {
    padding-top:80px;
  }
  .grid-66 {
    width:100%;
  }
  .grid-33 {
    width:100%;
  }
  .banner-content {
    right:unset;
    left:50%;
    transform:translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
  }
  .sub-page-header-container div:last-of-type {
    width: calc(50% - 10px);
  }
  .sub-page-header-container div:first-of-type {
    width: calc(50% - 10px);
  }
  .sub-page-header-container div:first-of-type h1{
    font-size: 3vw !important;
  }
  h2.ote-otsikko {
    font-size: 20px !important;  
  }
  .half-grid-content h3 {
    font-size:20px;
    line-height: 28px;
  }
  .sidebar-image h3 {
    font-size: 20px;
  }
}

@media(max-width:768px){
  .container {
    padding:20px 20px 0px 20px;
  }
  .half-grid {
    width:100%;
    margin-bottom:20px;
  }
  .half-grid-image {
    min-height: 300px;
    margin-bottom:0 !important;
  }
  .henkilokunta-grid {
    width: 100%;  
  }
  .third-grid {
    width: calc(50% - 10px);  
  } 
  .tab {
    left:20px;
    bottom:20px;
  }
  .tab div {
    width:28px;
  }
  .tab div p {
    font-size: 16px;
  }
  .banner-content {
    width:90%;
  }
  .sub-page-header-container div:first-of-type {
    padding:20px;
    width: calc(100% - 40px);
    height: 50px;
    position: absolute;
    background:none !important;
  }
  .sub-page-header-container div:last-of-type {
    width: calc(100% - 20px);
  }
  .sub-page-header-container div:first-of-type h1 {
    font-size: 6vw !important;
    text-shadow: 3px 2px 10px rgb(0 0 0 / 85%);
  }
  .sub-page-container {
    padding:20px;
  }
  .sub-page-container div {
    margin:10px 0;
  }
  p.otsikkoteksti {
    font-size:18px;
    line-height:28px;
  }
  button.close-search {
    right:8px;
  }
  .search-container {
    padding:20px;
  }
  input.search-field {
    width: calc(100% - 115px);
    font-size:20px;
  }
  .page-template-alasivu .banner-container {
    height:500px;
  }
}

@media(max-width:520px){ 
  .site-title img {
    max-width: 160px;
  }
  .banner-content h3 {
    font-size:42px;
  }
  .banner-content p {
    text-shadow: 1px 1px 2px rgb(10 48 13);  
    font-size: 16px;
    line-height: 26px;
  }
  .third-grid {
    width:100%;
  }
  .single-blog-post {  
    width: 100%;
  }
  .single-event {
    width:100%;
  }
  .single-event-placeholder {
    width:100%;
  }
  .half-grid{
    padding:20px;
  } 
  .half-grid-content {
    padding:100px 20px 20px 20px;
  }
  .half-grid-image .half-grid-content h3 {
    font-size: 16px;
  }
  .sidebar-image h3 {
    font-size:16px;
  }
  .tab div {
    width:20px;
  }
  .tab div p {
    font-size: 12px;
  }
  .grid-50 {
    width:100%;
  }
  .grid-50 div {
    width:100%;
  }
  .grid-50.sub-grid {
    width:100%;
  }
  .sub-page-header-container div:first-of-type h1 {
    font-size: 8vw !important;  
  }
  #footercontainer .grid_3_of_12 {
    width:100% !important;
    border-left:none !important;
    padding-left:0;
  }
}