/*
 Theme Name:   Tavaralähetit ephemeris
 Description:  My ephemeris child theme for Tavaralähetit
 Author:       Joona Hämäläinen
 Template:     ephemeris
*/

/*html {
  overflow:   scroll;
}*/
html {
  scroll-behavior: smooth;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #c41200;
}
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #dadada;
}
p, a, em, strong, span, li, label, button, h1.page-title, nav, select,div {    
  font-family: 'Roboto', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
}
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
  color:inherit !important;
}
a:hover, a:active, a:focus, button:hover, button:active, button:focus {
  outline:none;
}
p, .site-content li {
  font-size: 15px;
  letter-spacing: 0.6px;
  line-height: 30px;
  font-weight:500;
}
h3 {
    margin-bottom: 20px;
}

/*** ACTIVE CLASSES ***/
.show-mobile-menu {
  opacity: 1 !important;
  right:20px !important;
}
.hide-header {
  position: fixed !important;
  left:-350px;
}
.open-menu {
  left:0 !important;  
  box-shadow: 5px 0px 20px 0px rgb(27 27 27 / 15%);
}
a.mobile-logo {
  position: absolute;
  z-index: 99;
  top: 17px;
  left: 20px;
  width: 100%;
  height: auto;
  max-width:200px;
  display: none;
}

/*** HEADER ***/
#headercontainer {
  position: relative;
  width:350px;
  background:#fff;
  position: absolute;
  overflow: auto;
  overflow-x:hidden;
  z-index: 100;
  transition:0.3s all ease-in-out;
  height: 100vh;
  /*min-height: 900px;*/
}
.site-header {  
  width:100%;
  height:100%;
  position: relative;
  overflow-y:auto;
  overflow-x: hidden;
}
.site-title {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  height: 100px;
  width: 350px;
}
.site-title a {
  font-size: 28px;  
  margin-top:0;
  position: absolute;
  left:40px;
  top:50%;
  transform:translateY(-50%);
}
.site-title img {
  width: 200px;
  height:auto;
}

/*** DESKTOP MENU ***/
.desktop-menu {
  position: absolute;
  top: 100px;
  width:100%;
  z-index: 1;
  background:#fff;
}
.desktop-menu ul {
  padding:0;
  margin:0;
}
.desktop-menu ul li {
  padding:0;
  margin:0;
  border-bottom:solid 1px #ececed;
  cursor:pointer;
}
.desktop-menu ul li a {
  display: block;
  text-decoration: none;
  color:#0f0f1f;
  font-size: 15px;
  letter-spacing: 0.6px;
  line-height: 32px;
  font-weight: 500;
  padding:10px 40px;
  transition: 0.2s all ease-in-out;
  background:#fff;
}
.desktop-menu ul li:first-of-type {
  border-top:solid 1px #ececed;
}
.desktop-menu ul li a:hover {
  background:#f5f5f5;
}
.desktop-menu ul ul li a {
  padding-left: 68px;
}
.desktop-menu ul ul li a:before {
  content: '';
  background: url(https://www.tavaralahetit.fi/wp-content/themes/ephemeris-child/assets/arrow-down-black.svg);
  width: 12px;
  height: 12px;
  background-size: contain;
  position: absolute;
  border-radius: 50%;
  left: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}
.desktop-menu .menu-item-has-children a {
  position: relative;
  width: calc(100% - 60px);
}
.desktop-menu .current-menu-item a {
  background:#c41200 !important;
  color:#fff !important;
}
.current-menu-item .sub-menu li a {
  background: #ffffff !important;
  color: #0f0f1f !important;
}
.current-menu-item .sub-menu li a:hover {
  background: whitesmoke !important;
}
.desktop-menu .menu-item-has-children {  
  background:#ececed;
  position: relative;
}
.sub-menu li:last-of-type {
  border-bottom:none;
}
.sub-menu {
  display: none;
}
.sub-menu li a {
  font-size: 13px !important;
}
.menu-item-has-children:after {
  content: '';
  background: url(https://www.tavaralahetit.fi/wp-content/themes/ephemeris-child/assets/arrow-down-black.svg);
  width: 20px;
  height: 20px;
  background-size: contain;
  position: absolute;
  right: 20px;
  top: 17px;
  transition: 0.2s all ease-in-out;
}
.rotate-arrow:after {
  transform: rotate(180deg) !important;
}
.search-container {
  position: absolute;
  bottom: 0;
  width:100%;
}
.search-form {
  width:100%;
  padding:40px;
}
.search-form label {
  border:none;
  width:100%;
}
.search-form input {
  font-size: 16px;
  border: solid 1px #ccc;
  padding: 12px 46px 12px 26px;
  letter-spacing: 0.8px;
  border-radius: 40px;
}
.search-submit {
  font-size: 16px;
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  color:#c41200;
}
.search-form input:focus {
  outline:none;
}
.right-menu {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 2;
}
.right-menu ul {
  padding:0;
  margin:0;
}
.right-menu ul li {
  padding:0;
  padding:0;
  display: inline-block;
}
.right-menu ul li {
  color:#fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.8px;
}
.right-menu ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.8px;
  margin-left: 30px;
}
.right-menu ul li a img {
  max-height: 18px;
  margin-right: 18px;
}
.right-menu ul li:first-of-type a {
  border-left:none;
  padding-left:0;
  margin-left:0;
}
.right-menu ul li svg path {
  fill: #fff;
}
.right-menu ul li svg {
  fill: #fff;
  stroke: #fff;
  height: 20px;
  width:20px;    
  position: relative;
  top: 5px;
}
.scroll-arrow {
  position: absolute;
  left: 500px;
  bottom: 40px;
  transform: rotate(90deg);
  z-index: 2;
}
.scroll-arrow img {
  width: 48px;
  height: auto;
}
.banner-figure {
  position: absolute;
  bottom: -10px;
  margin-left: -180px;
  transition: 0.3s all ease-in-out;
  opacity: 0;
  z-index: 2;
}

/*** BANNER ***/
.banner-container {
  position: relative;
  overflow:hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: calc(100% - 350px);
  margin-left: 350px;
  height:100vh;
}
.home .banner-container {
  min-height: 900px;
}
.banner-container video {
  display: block;
  position: relative;
  /*left: 50%;
  top:50%;
  transform: translate(-50%,-50%);*/
  min-width: 100%;
  min-height: 100%;  
  max-width: unset;  
  object-fit: cover;  
  width: calc(100% - 350px);
  height:100vh;
  min-height: 900px;
}
.video-overlay {
  background:linear-gradient(to top, rgb(15 15 31 / 100%), rgb(15 15 31 / 20%));
  position: absolute;
  width: 100%;
  z-index: 1;
  height:100vh;
  min-height: 900px;
}
.banner-phone {
  position: absolute;
  left:250px;
  bottom:50px;
  z-index: 2;
  text-decoration: none;
}
.banner-phone:hover > span {
  color:#c41200;
  transition: 0.3s all ease-in-out;
}
.banner-phone span {
  font-size: 64px;
  color: #fff;
  opacity: 0;
  position: relative;
  left: -20px;
  font-weight: bold;
  letter-spacing: 3px;
}
.banner-content {  
  position:absolute; 
  left:250px;
  top:50%;
  transform:translateY(-50%);
  z-index: 1;
  max-width: 900px;
}
.banner-content h1, .banner-content h2 {
  color:#fff;
  font-size: 72px;
}
.banner-content p {
  color:#fff;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 32px;
  font-weight:400;
}
.red-cta {
  background:#c41200;
}
.cta {
  color:#fff !important;  
  text-decoration: none;
  padding:12px 36px;
  font-size:15px;  
  letter-spacing:0.6px;
  border-radius:40px;
  display: inline-block;
  margin-top:14px;
  position: relative;
  transition:0.2s all ease-in-out;
}
.red-cta:hover {
  background:#a90f00;
  padding-left:26px;
  padding-right: 46px;
}
.red-cta:hover:after {
  opacity: 1;
  right:16px;
}
.cta:after {
  opacity: 0;
  content:'';
  background:url('https://www.tavaralahetit.fi/wp-content/themes/ephemeris-child/assets/arrow-right.svg');
  width:20px;
  height:20px;
  background-size: contain;
  position: absolute;
  right:26px;
  top:50%;
  transform: translateY(-50%);
  transition:0.2s all ease-in-out;
}

/*** CONTENT ***/
.main-container {
  position: relative;
  z-index: 101;
}
.dark-container {
  background:rgb(15 15 31 / 100%);
}
.white-container {
  background:#fff;
}
.grey-container {
  background:#f9f9f9;
}
.red-container {
  background:#c41200;
}
.flex-container {
  display: flex;
  flex-wrap:wrap;
  justify-content: space-between;
  padding:0;
}
.align-center {
  align-items: center;
}
.flex-100 {
  padding:0;
  width:100%;
}
.flex-66 {
  padding:0;
  width:calc(66.66% - 20px);
}
.flex-75 {
  padding:0;
  width:calc(75% - 20px);
}
.flex-50 {
  padding:0;
  width:calc(50% - 80px);
}
.flex-33 {
  padding:0;
  width:calc(33.33% - 40px);
}
.grid-25 {
  padding:0;
  width:calc(25% - 20px);
}
.site-content {  
  padding:120px 40px;
  max-width: 1400px;
  width:100%;
  margin:0 auto;
}
.site-content ul {
  padding-left: 30px;
}
.site-content ul li {
  list-style-type: disc;
}
.flex-33 img {
  height: 400px;
  object-fit: cover;
  box-shadow: 0px 0px 30px 10px rgb(0 0 0 / 25%);
  margin-bottom:30px;
}
.flex-33 h3 {
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.6px;
}
.no-padding {
  padding-right: 0;
  padding-left: 0;
  max-width: 100%;
}


/*** SUB SUB PAGE ***/
.page-template-sub-sub-page .banner-content p {
    font-size: 22px;
}

/*** POST LISTING ***/
.post-image {
  position: relative;
}
.flex-33 h3 a {
  color: #fff;
  text-decoration: none;
}
.flex-33 h3 a:hover {
  color: #c41200;
}
.post-info-container p {
  display: inline;
  margin-bottom: 0;  
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 12px;
}
.post-info-container {
  position: absolute;
  bottom: 30px;
  background: #c41200;
}
.recent-news:after {
  content: '';
  flex: auto;
}
.recent-news .flex-33 {
  margin-right:60px;
}
.recent-news .flex-33:nth-of-type(3n) {
  margin-right: 0;
}

/*** NEWS ***/
.page-template-news .recent-news .flex-33 {
  margin-bottom: 60px;  
}
.dark-container h1, .dark-container h2, .dark-container h3, .dark-container h4 {
  color:#fff !important;
}
.dark-container p {
  color:#fff !important;
}
.white-container .site-content h1, .white-container .site-content h2, .white-container .site-content h3, .white-container .site-content h4, .white-container .site-content p, .white-container .site-content ul li,  .white-container .site-content a {
  color:#0f0f1f;
}
.red-container .site-content h1, .red-container .site-content h2, .red-container .site-content h3, .red-container .site-content h4 {
  color:#fff !important;
}
.red-container h1, .red-container h2, .red-container h3, .red-container h4 {
  color:#fff !important;
}
.red-container p {
  color:#fff !important;
}
.flex-container.timeline:nth-of-type(even) .flex-text {
  order: 2;
}
.image-container {
  padding:40px;
}
.image-container h2 {
  color: #fff;
  line-height: 48px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-size: 38px;
}
.image-container h3 {
  color:#fff;
}
.image-container p {
  color:#fff;
}
.nosto {
  position: relative;
  display:inline-block;
  text-align:center;
  width:100%;
}
.nosto a {
  text-decoration: none;
  color:#fff;
  position: relative;
}
.nosto a:hover {
  color:#c41200;
}
.nosto a:visited {
  color:#fff;
}
.nosto a:after {
  content: '';
  background: url(https://www.tavaralahetit.fi/wp-content/themes/ephemeris-child/assets/arrow-right.svg);
  width: 40px;
  height: 40px;
  background-size: contain;
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s all ease-in-out;
}
.timeline {
  align-items:center;
  position: relative;
}
.flex-image {
  position: relative;
}
.flex-image img {
  min-height: 400px;
  width:100%;
  object-fit: cover;
}
.flex-container.timeline:nth-of-type(odd) .flex-50.flex-image:before {
  content: '';
  height: 100%;
  width: 2px;
  background: #c41200;
  position: absolute;
  left: -81px;
}
.flex-container.timeline:nth-of-type(even) .flex-50.flex-image:before {
  content: '';
  height: 100%;
  width: 2px;
  background: #c41200;
  position: absolute;
  right: -81px;
}
.flex-text {
  position: relative;
}
.flex-container.timeline:before {
  content: '';
  height: 20px;
  width: 20px; 
  background: #c41200;
  position: absolute;
  left: 50%;
  transform:translateX(-50%);
  top:-10px;
  z-index: 10;
  border-radius:50%;
}
.flex-container.timeline:last-of-type:after {
  content: '';
  height: 20px;
  width: 20px; 
  background: #c41200;
  position: absolute;
  left: 50%;
  transform:translateX(-50%);
  bottom:-10px;
  z-index: 10;
  border-radius:50%;
}
.center {
  text-align:center;
  margin:0 auto;
  max-width: 768px;
}

/*** WPFORMS ***/
.wpforms-field-large {
  height: 60px !important;
  border-radius: 40px !important;
  border: none !important;
  text-align: center;
}
.wpforms-submit {
  background:#fff !important;
  color: #c41200 !important;
  text-decoration: none !important;
  padding: 12px 36px !important;
  letter-spacing: 1.4px !important;
  border:none !important;
  border-radius: 40px !important;
  display: inline-block !important;
  font-weight: 500;
  margin-top: 14px !important;
  position: relative !important;
  transition: 0.2s all ease-in-out !important;
}
.wpforms-submit:hover {
  background: #a90f00 !important;
  color:#fff !important;
  padding-left: 26px !important;
  padding-right: 46px !important;
}
.wpforms-submit:after {
  opacity: 0 ;
  content: '';
  background: url(https://www.tavaralahetit.fi/wp-content/themes/ephemeris-child/assets/arrow-right.svg);
  width: 20px;
  height: 20px;
  background-size: contain;
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s all ease-in-out;
}
.wpforms-submit:hover:after {
  opacity: 1 !important;
  right: 16px !important;
}
.rekrytointilomake input {
  box-shadow: 0px 1px 8px rgb(0 0 0 / 14%) !important;
}
.rekrytointilomake .wpforms-submit {
  background: #c41200 !important;
  color: #fff !important;
}

/*** SIDEBAR ***/
.dark-container.sidebar {
  background: linear-gradient(to top, rgb(15, 15, 31), rgba(15, 15, 31, 0.5)), url("https://www.tavaralahetit.fi/wp-content/uploads/2021/06/sidebar-contact.jpg") no-repeat;
  background-size: cover;
  background-position: center center;
}
.sidebar {
  padding: 20px 20px;
  margin-bottom: 20px;
  box-shadow: 0px 0px 20px 8px rgb(0 0 0 / 10%);
  border-radius:4px;
}
.sidebar .wpforms-submit-container {
  text-align: center;
}
.sidebar h4 {
  margin-bottom: 20px;
}
.sidebar ul {
  padding-left: 0;
  margin-bottom:0;
}
.sidebar ul li {
  list-style-type:none;
  color:#fff !important;
}
.sidebar ul li a {
  color:#fff !important;
  text-decoration: none;
}
.sidebar li img {
  height: 24px;
  width: auto;
  display: inline-block;
  box-shadow: none;
  margin-bottom: 0;
  margin-right: 10px;
  position: relative;
  top: 2px;
}

/*** MOBILE MENU ***/
.mobile-menu {
  opacity:0;
  float: right;
  position: fixed;
  right: -40px;
  top: 20px;
  z-index: 102;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
  background: #c41200;
  padding: 16px;
  cursor: pointer;
}
#nav-icon {
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 100; 
  -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;
}
#nav-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 24px;
  background: #fff;
  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);
}
#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#nav-icon.open span:nth-child(4) {
  top: 14px;
  width: 0%;
  left: 50%;
}
#nav-icon.open span {
  background:#fff;
}

/*** SIDENAV ***/
.overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    background:#000;    
    overflow: hidden;
    transition: 0.5s;
}
.overlay-content {
    position: absolute;
    top: 50%;
    left:10%;
    transform: translateY(-50%);
    text-align:left;
}
.overlay-content .nav-menu {
    margin: 0;
    padding: 0px 20px;
}
.overlay a {
    font-size: 34px;
    line-height: 58px;
    padding: 0;
    display: block;
    color: #fff;
    font-weight: 900;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    letter-spacing:2px;
    transition: 0.15s all ease-in-out;
    position: relative;
}
.overlay .sub-menu a {
    font-size: 24px;
    line-height: 48px;
}
.overlay a:visited {
    color:#fff;
}

.overlay a:hover, .overlay a:focus {
    color: #0c7c98;   
    text-shadow: none;
}
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}
.overlay .current-menu-item a {
  color:#0c7c98;
  border-bottom:none;
}
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.logo-container .site-content {
    padding-top: 0;
}
.logo-container {
  background: #0f0f1f;
  border-bottom: solid 2px #c41200;
}
.logo-container .flex-container {
  max-width: 940px;
  margin:0 auto;
}
.logo-container img {
  height: 160px;
  margin-bottom:20px;
  max-width: 360px;
  object-fit: contain;
}

/*** YHTEYSTIEDOT ***/
.contact-info {
  margin-bottom: 60px;
  position: relative;
}
.contact-image {
  position: relative;
}
.role {
  position: absolute;
  left:0;
  bottom: 30px;
  background: #c41200;
  margin-bottom:0;
  color:#fff !important;    
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 12px;
}
p.nimi {
  margin-bottom:0;
}
p.puhelinnumero {
  margin-bottom:0;
}
p.sahkoposti a {
  color: #fff;
  text-decoration: none;
}
p.contact-text {
  opacity: 0;
  position: absolute;
  top: -20px;
  padding: 20px;
  background: linear-gradient(to top, rgb(15, 15, 31), rgba(15, 15, 31, 0.5));
  height: calc(100% - 30px);
  transition:0.3s all ease-in-out;
}
.show-text {
  opacity: 1 !important;
  top:0 !important;
}
.call-button {
  margin-right:20px;
}
button.toggle-info {
  border: none;
  background: #c41200;
  color: #fff;
  position: absolute;
  bottom: -140px;
  right: 0px;  
  font-size:14px;
  width:36px;
  border-radius: 50%; 
  display: none;
}

/*** SINGLE POST ***/
.main-post-content {
  width:calc(66.66% - 60px);
}
.sidebar-post-list {
  width:calc(33.33% - 20px);
}
.sidebar-post {
  display: flex;
  flex-wrap:wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.sidebar-post-image {
  width:calc(40%  - 10px);
}
.sidebar-post-content {
  width:calc(60%  - 10px);
}
.sidebar-post-image img {
  height: 180px;
  object-fit: cover;
}
.sidebar-post-content h3 {
  margin-bottom:10px;
}
.sidebar-post-content h3 a {
  color:#0f0f1f;
  font-size:20px;
  text-decoration: none;
}
.sidebar-post-content p {
  font-size:13px;
  line-height: 22px;
  margin-bottom:0;
}
.sidebar-post-content .date {
  font-size:11px;
  font-weight:bold;
  letter-spacing: 0px;
  color: #c41200 !important;
}

/*** SEARCH RESULTS ***/
.search-results .header-meta {
  display: none;
}
.search-results a.more-link {
  display: none;
}
.search-results .entry-title {
  font-size: 36px;
}
.search-results .entry-title a {
  color:#0f0f1f !important;
}
.search-no-results .flex-66 .search-form {
  padding:40px 0;
}


/*** FRONG PAGE BLOG ***/
.blog-box {
    position: absolute;
    top: -70px;
    left: 250px;
    z-index: 1000;
    padding: 20px 30px;
    background: linear-gradient(45deg, #c41200, #a90f00);
    background-size: cover;
    border-radius: 0 0 10px 10px;
    box-shadow: 7px 5px 20px 0px rgb(0 0 0 / 15%); 
}
.blog-box:hover {
    background: #a90f00; 
}
.blog-box p {
    margin-bottom: 0;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/*** FOOTER ***/
#footercontainer {
  background:#0f0f1f !important;
}
.site-footer {
  padding: 120px 40px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.site-footer h3 {
  color:#fff !important;
  margin-bottom:20px;
}
.site-footer ul li {
  color:#fff !important;
  font-size: 15px;
  letter-spacing: 0.6px;
  line-height: 30px;
  font-weight: 500;
}
.site-footer ul li a {
  color:#fff !important;
  text-decoration: none;
}
#footercreditscontainer {
  background:#0f0f1f !important;
}
.site-credits p, .site-credits p a {
  color:#fff !important;
  text-decoration: none;
}

/*** 404 ***/
.not-found-container {
  background:linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('') no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  min-height: 600px;
}
.not-found-container .site-content {
  position: absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  padding:20px;
  max-width: 1200px;
}
.not-found-container .site-content h1 {
  color:#fff;
  font-weight: 800;
  text-align:center;
  font-size: 68px;
}

/*** MEDIA QUERIES ***/
@media(max-width:1650px){
  .banner-content {
    left:100px;
  }
  .banner-content h1, .banner-content h2 {
    font-size:58px;    
  }
  .banner-phone span {
    font-size:54px;
  }
  .blog-box {    
    left: 100px;
  }
}

@media(max-width:1450px){
  li.header-yhteystiedot, li.header-ajankohtaista {
    display: none !important;
  }
}

@media(max-width: 1200px){  
  .banner-content {
    max-width: calc(100% - 200px);
  }
  .banner-phone span {
    font-size: 42px;
  }
  .flex-33.grid {
    width:calc(50% - 40px);
    margin-bottom: 40px;
  }
  .recent-news .flex-33:nth-of-type(3n) {
    margin-right: unset;
  }
  .recent-news .flex-33 {
    margin-right: 0;
  }
  .banner-content h1, .banner-content h2 {
    font-size: 46px;
  }
  .blog-box {
    display: none;
  }
}

@media(max-width:991px){
  .mobile-logo {
    display: block !important;
  }
  .site-content {
    padding:80px 40px;
  }
  .site-footer {
    padding: 80px 40px;
  }
  .flex-66 {
    width:100%;
  }
  .flex-33.grid {
    width:calc(50% - 20px);
  }
  .flex-33 {
    width:100%;
  }
  .main-post-content {
    width:100%;
  }
  .sidebar-post-list {
    width:100%;
  }
  h2 {
    font-size:28px;
  }
  .site-content h1 {
      font-size: 32px;
  }
  .nosto a {
    font-size:28px;
  }
  .nosto:after {
    width:30px;
    height:30px;
    top:58%;
  }
  #headercontainer {
    position: fixed;
    left: -350px;  
  }
  .banner-container {
    width:100%;
    margin-left:0;
  }  
  .right-menu {
    right:120px;
  }
  .mobile-menu {
    opacity: 1;
    right: 20px;
    top: 20px;
  }
}

@media(max-width:768px){  
  .right-menu ul li {
    display: none;
  }
  .not-found-container .site-content h1 {
    font-size: 42px;
  }
  .flex-33 {
    width: 100% !important;
  }
  .flex-33 img {
    width:100%;
    height:auto;
  }
  .recent-news .flex-33 {
    margin-right:0;
  }
  .nosto a:after {
    display: none;
  }
  .flex-50 {
    width:100%;
  }
  .image-container .flex-50:first-of-type {
    margin-bottom: 40px;
  }
  .flex-text {  
    order: 2;
  }
  .flex-image {
    margin-bottom:40px;
  }
  .timeline {
    margin-bottom:60px;
  }
  .cta {
    margin-top:0;
  }
  .flex-container.timeline:before {
    display: none;
  }
  .flex-container.timeline:last-of-type:after {
    display: none;
  }
  .banner-content {
    max-width: calc(100% - 120px);
    left:60px;
  }
  .banner-content h1, .banner-content h2 {
    font-size: 36px;
  }
  .banner-figure {
    display: none;
  }
  .banner-phone {
    left:60px;
  }
  .banner-phone span {
    font-size: 28px;
    letter-spacing: 1px;
  }
  button.toggle-info {
    bottom:-127px;
  }
  .image-container {
    padding: 0px;
  }
  .image-container h2 {
    line-height: 42px;
    font-size: 28px;
  }
  .site-footer ul li {
    line-height:20px;    
  }
  .logo-container img {
    height: 105px;
    padding:10px;
    max-width: 300px;
  }
}

@media(max-width:520px){
  .not-found-container .site-content h1 {
    font-size: 28px;
  }
  .banner-content {
    max-width: calc(100% - 80px);
    left: 40px;
  }
  .sidebar-post-image {
    width: 100%;
  } 
  .sidebar-post-image img {
    width: 100%;
  }
  .sidebar-post-content {
    width:100%;
  }
  .image-container h2 {
    line-height: 38px;
    font-size: 24px;
  }
  h3 {
    font-size:22px;
  }
}

@media(max-width: 420px){
  #headercontainer {
    left:-100%;
    width:100%;
  }
  .banner-content {
    max-width: calc(100% - 40px);
    left: 20px;
  }
  .site-content {
    padding:40px 20px;
  }
  .site-footer {
    padding: 40px 20px;    
  }  
}



/*** 2023 ***/
.banner-content a.red-cta {
    margin-right: 20px;
    margin-bottom: 20px;
}
.green-cta {
  background:#1da87e;
}
.green-cta:hover {
    background: #1b8868;
    padding-left: 26px;
    padding-right: 46px;
}
.green-cta:hover:after {
    opacity: 1;
    right: 16px;
}
.banner-globe {
    height: 160px;
    width:160px;
    margin-bottom: 40px;
}

/*@media(max-width: 768px){
  .page-template-sub-sub-page .banner-container {
      min-height: unset;
  }
  .page-template-sub-page .banner-container {
      min-height: unset;
  }
}*/

.dark-container.border-bottom {
    border-bottom: solid 1px rgb(255 255 255 / 10%);
}
.front-grid .flex-66 {
  padding:40px 0;
}
.front-grid .flex-66 p:last-of-type {
  margin-bottom: 0;
}
.front-grid h2 {
  margin-bottom: 40px;
}
.front-grid .flex-33 img {
  height: 100%;
  object-fit: cover;
}

div#hintalaskuri p {
    max-width: 1020px;
}
p.red-cta a {
    color: #fff !important;
    text-decoration: none;
}

@media(max-width: 1200px){
    .front-grid .flex-66 {
      width: 100%;
      padding:0;
      margin-bottom: 40px;
    }
    .front-grid .flex-33 {
      width:100%;
    }
    .front-grid .flex-33 img {
      width:100%;
      max-height: 500px;      
    }
}


.page-id-30 .white-container .flex-33 {
    display: none;
}
.page-id-30 .white-container .flex-66 {
    margin: 0 auto;
}


/*** PUHELINNUMEROTEKSTI ***/
h5.number-text {
    position: absolute;
    bottom: 40px;
    color: #fff;
    z-index: 1;
    left: 250px;
    font-size: 14px;
    opacity: 0;
    letter-spacing: 0.7px;
    font-weight: 400;
    margin:0;
}
@media(max-width: 1650px){
  h5.number-text {
    font-size: 12px;
    letter-spacing: 0.6px;
  }
}
@media(max-width: 1200px){
  h5.number-text {
    max-width:430px;
    bottom: 20px;
    left:200px;
  }
  .banner-phone {
    left:200px;
  }
}
@media(max-width: 768px){
  h5.number-text {
    left:40px;
    max-width: calc(100% - 80px);
  }
  .banner-phone {
    left:40px;
  }
  .banner-content {
      max-width: calc(100% - 80px);
      left: 40px;
  }
}

@media(max-width: 420px){
  .banner-content {
      max-width: calc(100% - 40px);
      left: 20px;
  }
  .banner-content h1, .banner-content h2 {
      font-size: 28px;
  }
  h2 {
      font-size: 24px;
  }
  .site-content h1 {
      font-size: 24px;
  }
  h5.number-text {
    left:20px;
    max-width: calc(100% - 20px);
  }
  .banner-phone {
    left:20px;
  }
  .banner-content p {    
    font-size: 15px;
    line-height: 26px;
  }
}
