/*
Theme name: Matka-Niinimäki
Theme author: Hanna Ketonen
*/

*   {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
}

h1 {
    color: #D9FF05;
    font-size: 5vw;
}
.isokuva h1 {
	text-shadow: 1px 1px 1px #000;
}

h2 {
    font-size: 3vw;
    line-height: 1.25em;
    color: #0337A4;
	font-size: 40px;
    margin: 0 0 20px;
}

.isokuva h2 {
	text-shadow: 1px 1px 1px #fff;
}

h3 {
	color: #0337a4;
    text-transform: uppercase;
	font-size: 26px;
    line-height: 1.25em;
    font-weight: 400;
    margin: 0 0 20px;
}

h4 {
	font-family: 'Oswald', sans-serif;
    font-weight: 400;
	color: #0337a4;
	font-size: 22px;
    line-height: 1.25em;
    font-weight: 800;
    margin: 0 0 20px;
}

a {
    color: #0337A4;;
}

html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font: normal normal 17px 'raleway', sans-serif;
}

body .isokuva {
    margin: 0;
    padding: 0;
    background-size: cover;
    height: 50vh;
    width: 100%;
    background-position: center;
	max-width: none;
}

body .index-isokuva {
    height: 70vh;
    overflow: hidden;
    position: relative;
}

body .index-otsikko {
    position: relative;
    height: 70vh;
    text-align: center;
    align-content: center;
}


body .index-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: white;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: slideshow 60s linear infinite;
}

@keyframes slideshow {
0% { background-image: url('images/slide1.jpg');}
12% { background-image: url('images/slide1.jpg'); opacity: 1}
13% { background-image: url('images/slide1.jpg'); opacity: 0}
14% { background-image: url('images/slide2.jpg'); opacity: 0}
15% { background-image: url('images/slide2.jpg'); opacity: 1}
16% { background-image: url('images/slide2.jpg');}
28% { background-image: url('images/slide2.jpg'); opacity: 1}
29% { background-image: url('images/slide2.jpg'); opacity: 0}
30% { background-image: url('images/slide3.jpg'); opacity: 0}
31% { background-image: url('images/slide3.jpg'); opacity: 1}
32% { background-image: url('images/slide3.jpg');}
46% { background-image: url('images/slide3.jpg'); opacity: 1}
47% { background-image: url('images/slide3.jpg'); opacity: 0}
48% { background-image: url('images/slide4.jpg'); opacity: 0}
49% { background-image: url('images/slide4.jpg'); opacity: 1}
50% { background-image: url('images/slide4.jpg');}
62% { background-image: url('images/slide4.jpg'); opacity: 1}
63% { background-image: url('images/slide4.jpg'); opacity: 0}
64% { background-image: url('images/slide5.jpg'); opacity: 0}
65% { background-image: url('images/slide5.jpg'); opacity: 1}
66% { background-image: url('images/slide5.jpg');}
80% { background-image: url('images/slide5.jpg'); opacity: 1}
81% { background-image: url('images/slide5.jpg'); opacity: 0}
82% { background-image: url('images/slide6.jpg'); opacity: 0}
83% { background-image: url('images/slide6.jpg'); opacity: 1}
84% { background-image: url('images/slide6.jpg');}
96% { background-image: url('images/slide6.jpg'); opacity: 1}
97% { background-image: url('images/slide6.jpg'); opacity: 0}
98% { background-image: url('images/slide1.jpg'); opacity: 0}
99% { background-image: url('images/slide1.jpg'); opacity: 1}
100% { background-image: url('images/slide1.jpg');}
}

body #isokuva_tilausajot-ja-ryhmamatkat-baltiaan {
    background-image: url('images/rantamaisema.jpg');
}

body #isokuva_tilausajot {
    background-image: url('images/maisema.jpg');
}

body #isokuva_aikataulut {
    background-image: url('images/pysakki.jpg');
}

body #isokuva_kalusto {
    background-image: url('images/bussirivi.jpg');
}

body #isokuva_ota-yhteytta {
    background-image: url('images/bussi_rannalla.jpg');
}

body #isokuva_matkatoimisto {
    background-image: url('images/kattomaisema.jpg');
}
header .header-1-wrapper {
	background-image: url('images/sininen_tausta.jpg');
	background-repeat: repeat;
	width: 100%;
	height: auto;
}
header a {
    text-decoration: none;
}

header .header-1 {
    color: white;
    height: auto;
    display:flex;
    flex-direction: row;
    justify-content: right;
    align-items: right;
    font: 12px 'dejavu sans', sans-serif;
}

header .header-1-child {
    padding: 20px;
}

header .header-1-child a {
    font-weight: bold;
    color: white;
}

header .header-1-child a:hover {
    text-decoration: underline;
}

header .header-2 {
    width: 100%;
    background-color: white;
    display:flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

header .header-2-logo {
    padding: 1%
}

header .mobiilivalikko {
    display: none;
}

header img {
    display:flex;
}

header nav {
    justify-content: right;
    align-items: right;
    white-space:nowrap;
    white-space:normal; 
	}

header nav ul {
    font-family: 'oswald', sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    list-style: none;
    display: flex;
    margin: 0;
    height: 100%;
	
	flex-wrap: wrap;          /* <-- KORJAUS */
    justify-content: flex-end;/* <-- KORJAUS */
    row-gap: 10px;            /* <-- KORJAUS */
}

header nav ul li a {
    color: black;
    padding: 15px 10px;
    text-decoration: none;
}

header nav ul li a:hover {
    color: #0337A4;
}

.menu-item:hover ul.sub-menu { 
	
	/* Korjaus Kim 2026-02-05
	Muutetaan visibility ==> display arvoksi.
	visibility: visible; */
	display:block;
	}

header nav ul li.current-menu-item > a,
header nav ul li.current-category-ancestor > a,
header nav ul li.current-post-ancestor > a {
    color: #0337A4;
}

header nav .sub-menu {
    
	/* padding: 20px;*/
	padding: 0px;
	
    /* Korjaus Kim 2026-02-05
	Muutetaan visibility ==> display arvoksi.
	ja height kiinteästä mukautuvaksi (auto)
	
	visibility: hidden;
    height: 20px;*/
	
	display:none;
	height: auto;
    border: 1px solid #E4E4E4;
    align-items: center;
    font-size: 15px;
	position: absolute;
}

header nav .sub-menu li {
    align-items: center;
	background-color: white;
}

header nav .sub-menu li a {
    position: relative;
    font-size: 15px;
    color: black;
	padding: 15px 10px;
	display: block;
}

header nav .sub-menu li a:hover {
    animation: submenuhover 0.5s forwards;
}

@keyframes submenuhover {
    from {left: 0px;}
    to {left: 10px;}
}

main {
    background-color: white;
    display: flex;
    flex-direction: column;
    margin: 2%;
}

main div {
}

main img {
    width: 100%;
    border: 5px solid #E4E4E4
}

main .painike {
    margin-top: 10px;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: 400;
    background: #0337a4;
    padding: 15px 20px;
    color: #fff;
    font-family: inherit;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    border: none;
	display: inline-block;
}

main .painike:hover {
    cursor: pointer;
}

main .index-rivi {    
    display:flex;
    flex-direction: row;
	align-items: flex-start;     /* ettei keskitetä pystysuunnassa */
	gap: 60px;                   /* <-- tämä tekee välin (säädä 30–80px) */
}

main p, main ul {
    color: #444444;
    font: normal 500 17px 'raleway', sans-serif;
    line-height: 1.6em;
    background-color: white;
    text-align: justify;
    margin: 0;
    padding: 0;
}

main ul,
main ol{
  margin: 0 0 20px 0;
  padding-left: 1.2em;
  list-style-position: outside;
}
/* sisäkkäiset listat */
main ul ul,
main ol ol,
main ul ol,
main ol ul{
  margin-top: 8px;
  padding-left: 1.2em;
}


main p { 
	margin-bottom: 20px;
}

main .ltkrivi {
    display:flex;
    flex-direction: row;
}

main .ltk {
    width: 100%;
    aspect-ratio: 1 / 1;
    justify-content: center;
    align-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin: 0;
    line-height: 100%;
}

main .ltk-layer {
    margin: 0;
    width: 100%;
    height: 100%;
    line-height: 100%;
    align-content: center;
    background-color: rgba(255,255,255,0);
}

main .ltk-layer:hover  {
    animation: ltkhover 0.5s forwards;
}

@keyframes ltkhover {
    from {background-color: rgba(255,255,255,0);}
    to {background-color: rgba(255,255,255,0.2);}
}


main .ltk a {
    font-family: 'oswald', sans-serif;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    font-size: 40px;
    animation: none;
}

main .ltk-teksti {
    font-family: 'oswald', sans-serif;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    font-size: 40px;
    animation: none;
	text-shadow: 1px 1px 1px #000;
}


main .nuoli {
    color: #0337A4;
}

main #tilausajo {
    background-image: url('images/ltkbussi.jpg');
}

main #aikataulut {
    background-image: url('images/ltkpysakki.jpg');
}

main #matkatoimisto {
    background-image: url('images/ltkkirkko.jpg');
}

main #kalusto {
    background-image: url('images/ltkbussirivi.jpg');
}

main #laatulupaus p {
    font-size: 16px;
}

footer a:hover {
    text-decoration: underline;
}

footer h3 {
    font-size: 26px;
    line-height: 1.25em;
    color: #fff700;
    margin: 1%
}

footer .footer-tausta {
    background-color: #0337A4;
    height: 100px
}

footer .footer-info {
    font-family: 'Istok Web';
    color: #FFFFFF;
    background-image: url('images/sininen_tausta.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5%;
}

footer .footer-info img {
    margin: 2%;
    height: 60px
}

footer .footer-info a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

footer .footer-info a:hover {
    text-decoration: underline;
}

footer nav {
    display:flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    white-space:nowrap
}

footer nav ul {
    font-family: 'oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    list-style: none;
    display: flex;
    padding: 2%;
    height: 100%;
}

footer nav ul li a {
    color: #0337a4;
    padding: 20px;
    text-decoration: none;
}

footer nav ul li a:hover {
    text-decoration: underline;
}

footer nav .sub-menu {
    display: none !important;
}

footer .footer-alin {
    background-color: #001D5A;
    font: normal normal 12px 'raleway', sans-serif;
    color:  #aaa;
    text-align: right;
    padding: 1%;
}

@media only screen and (max-width: 1000px) {

h1 {
    font-size: 10vw;
}

h2 {
    font-size: 6vw;
}

header .header-1 {
    display: none;
}

header .header-2 {
    flex-direction: column;
}

header .header-2-logo {
    width: 100%;
    display: flex;
    flex-direction: row;
}



header img {
	/*
    padding-top: 2vh;
    padding-bottom: 2vh;
    max-width: 80vw;
	*/
}

header .header-2-logo .niinimaki-logo {
    max-height: 60px;
    width: auto;
    height: auto;
}


header .mobiilivalikko {
    display: block;
    height: 30%;
    margin: auto 10px auto auto;
}

header nav {
    display: none;
}

header nav ul, ol {
    flex-direction: column;
}

header nav ul li {
    width: 100vw;
    border-top: 1px solid #E5E5E5;
}

header nav ul li a {
    padding-left: 20px;
}

header nav ul li a, header nav .sub-menu li a {
    display: block;
    height: 5vh;
    text-align: left;
    margin-top: auto;
    margin-bottom: auto;
}

header nav .sub-menu {
    border: none;
    visibility: visible;
    height: min-content;
    padding: 0;
}

header nav .sub-menu li {
    width: 100vw;
    padding: 0;
}

header nav .sub-menu li a {
    margin: auto;
    background-color: #eeeeee;
    width: 100vw;
    padding-left: 30px;
}

header nav .sub-menu li a:hover {
    animation: none;
}

main .index-rivi, main .ltkrivi {    
    flex-direction: column;
}

footer nav {
    display: none;
}

footer .footer-alin {
    text-align: center;
}

}


/* ===============================
   CF7 – YHTEYDENOTTOLOMAKE
   =============================== */

/* Värit */
:root{
  --cf7-border: rgb(3, 55, 164);
}

/* Poista CF7:n oletus <p>-välit */
.cf7-wrap p{
  margin: 0;
}

/* Lomakkeen leveys */
.cf7-wrap{
  max-width: 760px;
}

/* Pääotsikko */
.cf7-title{
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 18px 0;
  color: #000;
}

/* Väliotsikko */
.cf7-subtitle{
  font-size: 34px;
  font-weight: 800;
  margin: 34px 0 18px 0;
  color: #000;
}

/* Yleinen rivirakenne */
.cf7-row{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: center;
  margin: 14px 0;
}

/* Textarea-rivit ylös */
.cf7-row-top{
  align-items: start;
}

/* Labelit */
.cf7-label{
  font-size: 16px;
  line-height: 1.3;
}

/* Pakollinen tähti */
.cf7-required{
  font-weight: 700;
}

/* CF7 otsikot */
.cf7-wrap h1,
.cf7-wrap .cf7-title,
.cf7-wrap h2,
.cf7-wrap .cf7-subtitle {
  display: block !important;
  color: rgb(0, 0, 0) !important;
  font-family: Oswald, sans-serif !important;
  font-size: 35px !important;
  font-weight: 400 !important;
  line-height: 43.75px !important;
  text-transform: uppercase !important;
  text-align: left !important;

  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ===============================
   INPUTIT (ei checkbox / radio)
   =============================== */

.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field input[type="date"],
.cf7-field input[type="time"],
.cf7-field input[type="number"],
.cf7-field textarea,
.cf7-field select{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cf7-border);
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 0;
}

/* Textarea korkeus */
.cf7-field textarea{
  min-height: 120px;
  resize: vertical;
}

/* Focus-tila */
.cf7-field input:focus,
.cf7-field textarea:focus,
.cf7-field select:focus{
  outline: 2px solid rgba(3, 55, 164, 0.25);
  outline-offset: 1px;
}

/* ===============================
   CHECKBOX / RADIO
   =============================== */

.cf7-field .wpcf7-form-control.wpcf7-checkbox,
.cf7-field .wpcf7-form-control.wpcf7-radio{
  border: 0;
  padding: 0;
  width: auto;
}

/* Checkboxit allekkain */
.cf7-field .wpcf7-checkbox .wpcf7-list-item{
  display: block;
  margin: 0 0 8px 0;
}

/* ===============================
   NAPPI
   =============================== */

.cf7-actions{
  margin-top: 22px;
  padding-left: 278px;
}

.cf7-actions .wpcf7-submit{
  background: var(--cf7-border);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font-size: 16px;
  cursor: pointer;
}

.cf7-actions .wpcf7-submit:hover{
  filter: brightness(0.95);
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1120px){
  .cf7-row{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cf7-actions{
    padding-left: 0;
  }
}


/* ===============================
   Muita tuunauksia
   =============================== */


header .header-2{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 18px 0; /* säädä jos haluat enemmän/vähemmän korkeutta */
}

/* Logo-alue ei saa varata koko riviä */
header .header-2-logo{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Logo */
header .header-2-logo .niinimaki-logo{
  display: block;
  width: auto;
  height: auto;
  max-height: 70px; /* säädä tavoitteen mukaan */
}

/* Nav oikealle */
header #valikko{
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
}

/* YHTEINEN SISÄLTÖLEVEYS */
.header-1,
.header-2,
main > article
{
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* HEADERIN TAUSTA SAA OLLA TÄYSLEVEÄ */
header{
  width: 100%;
}

iframe[src*="google.com/maps"]{
  display:block;
  margin-top:40px !important;
}
