/*!
Theme Name: Helpotkotisivut
Theme URI: https://www.helpotkotisivut.fi/wordpress-kotisivut/
Template: kadence
Author: Helpotkotisivut
Author URI: https://www.helpotkotisivut.fi/
Description: Helppojen kotisivujen lapsiteema pohjautuen Kadence teemaan
Version: 0.3
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Wordbreak */
h1, h2, h3, h4, h5, h6, p, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	word-break: keep-all;
	hyphens: none;
	word-wrap: initial;
}

/* Main Header shadow */
#masthead .item-at-start {
	transition: box-shadow ease-in-out 200ms;
}
#masthead .item-is-stuck {
	box-shadow: 0 20px 40px -12px rgba(0,0,0,0.05);
	transition: all ease-in-out 200ms;
}

/* Mobile menu */
.drawer-header {padding: 0 1rem 0!important;}
.popup-drawer .drawer-content {padding: 0 1rem 2rem!important;}

/* Links no underline */
a, p a {text-decoration: none!important;}

/* Fluent Forms */
.fluentform form {
	margin: 0!important;
}
.fluentform input, .fluentform textarea , .fluentform select {
	padding: .6rem !important;
	border-radius: 0!important;
	font-size: 0.95rem!important;
}
.fluentform .ff-el-group {
	margin-bottom: 0.8rem !important;
}
[type="checkbox"], [type="radio"] {
    accent-color: #ffffff;
}
.wpsr-reviews-badge-wrapper {
	text-align: left !important;
}
.gdpr-consent-clause {
	font-size: 13px !important;
}
.gdpr-consent-clause a {
	font-weight: 700 !important;
}
.tummataustainen-lomake a {
	color: #FFF !important;
	text-decoration: underline !important;
}
@media (max-width:767px) {
	.ff-el-group.ff_list_inline label > span, .ff-el-input--content label > span {
		font-size: 1rem !important;
	}
	.fluentform .ff-el-form-check-label .ff-el-form-check-input {
		top: 0! important;
		width: 1.3rem !important;
		height: 1.3rem !important;
		margin-right: .4rem !important;
	}
}
@media (min-width:768px) {
	.fluentform .ff-el-form-check-label .ff-el-form-check-input {
		top: 0! important;
		width: 1.2rem !important;
		height: 1.2rem !important;
		margin-right: .4rem !important;
	}
	.ff-el-group.ff_list_inline label > span, .ff-el-input--content label > span {
		font-size: 1rem !important;
	}
	.fluentform .ff-el-form-check {
    	margin-bottom: 0px !important;
	}
	.fluentform .ff-el-tc {
		margin-top: -0.4rem !important;
    	font-size: 0.95rem !important;
    	margin-bottom: 0.4rem !important;
	}
}

@media only screen and (min-width: 641px) {
    .fluentform .ff-el-group.ff_list_inline .ff-el-form-check {
        margin: 0 15px 0px 0 !important;
    }
}
.fluentform .ff-el-form-control:focus {
	border-color: var(--global-palette1) !important;
}
.fluentform .ff-el-form-control {
	border: none !important;
	font-family: var(--global-body-font-family) !important;
}
.single-content .fluentform {
	padding-top: 0.5rem;
	margin-bottom: -0.5rem !important;
}
[type="checkbox"], [type="radio"] {
	accent-color: var(--global-palette1);
}
@media only screen and (max-width:767px) {
	.fluentform .ff-el-tc label.ff_tc_label>div, .fluentform .ff-el-tc label.ff_tc_label>span {
		display: inline !important;
		font-size: 0.8rem !important;
	}
	.fluentform .ff-el-tc {
		margin-top: -5px !important;
		margin-bottom: -3px !important;
	}
}
.ff-default textarea {
    min-height: 40px !important;
}
.ff-default .ff-el-input--label label {
    font-size: 1.1rem;
}
.tummataustainen-lomake .ff-el-is-required.asterisk-right label:after {
    color: #FFF !important;
}

/* Chatbox Fluent forms */
#fluentform_5 {
	margin: -1.5rem 0 !important;
}
#fluentform_5 .ff-btn-lg {
	border-radius: 0 !important;
	font-size: 16px;
}
#fluentform_5 input[type="text"], #fluentform_5 input[type="email"], #fluentform_5 input[type="url"], #fluentform_5 input[type="password"], #fluentform_5 input[type="search"], #fluentform_5 input[type="number"], #fluentform_5 input[type="tel"], #fluentform_5 input[type="range"], #fluentform_5 input[type="date"], #fluentform_5 input[type="month"], #fluentform_5 input[type="week"], #fluentform_5 input[type="time"], #fluentform_5 input[type="datetime"], #fluentform_5 input[type="datetime-local"], #fluentform_5 input[type="color"], #fluentform_5 textarea {
	background: none !important;
}
#fluentform_5 .ff-el-form-control {
	border-bottom: 1px solid #d5d5d5 !important;
	box-shadow: none !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	padding-left: 0 !important;
}

@media only screen and (min-width:1025px) and (max-width:1600px) {
	.copyright-palkki > .kt-row-column-wrap {
		grid-template-columns: minmax(0, 1fr) !important;
		row-gap: 0.5rem !important;
	}
	.helpot-backlink {
		text-align: left !important;
	}
}

.palveluotsikko {
    padding-bottom: 0;
    transition: 0.2s all ease-in-out;
}
.palvelupalsta:hover .palveluotsikko {
    padding-bottom: 0.5rem;
    transition: .2s all ease-in-out;
}

.menu-item.non-clickable > a {
    pointer-events: none;
    cursor: default;
}

@media (min-width:1025px) {
	.aikatauluosio:before {
		content: '';
		background: url('../../uploads/2025/12/karkki-1.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		position: absolute;
		left: 0;
		top: 5%;
		width: 400px;
		height: 255px;
		transform: translateX(-150%) rotate(0deg); /* start off left */
		opacity: 0;
		transition: transform .4s cubic-bezier(.445,.05,.55,.95), opacity .4s;
	}
	.aikatauluosio.reveal:before {
		transform: translateX(-5%) rotate(0deg);
		opacity: 1;
	}

	.aikatauluosio:after {
		content: '';
		background: url('../../uploads/2025/12/karkki-2.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		position: absolute;
		right: 0;
		top: 33%;
		width: 400px;
		height: 281px;
		transform: translateX(150%) rotate(-17deg); /* start off right */
		opacity: 0;
		transition: transform .4s cubic-bezier(.445,.05,.55,.95), opacity .4s;
	}
	.aikatauluosio.reveal:after {
		transform: translateX(0) rotate(-17deg);
		opacity: 1;
	}
}

@media (min-width: 992px) {
    .reittijana .wp-block-getwid-content-timeline__line {
        left: 30px !important;
    }
    .reittijana .wp-block-getwid-content-timeline-item.has-card-right .wp-block-getwid-content-timeline-item__wrapper, .reittijana .wp-block-getwid-content-timeline-item:nth-child(2n) .wp-block-getwid-content-timeline-item__wrapper {
        flex-direction: row !important;
    }
    .wp-block-getwid-content-timeline-item__card {
        order: 1;
		flex: 0 0 92.3333% !important;
    }
	.wp-block-getwid-content-timeline-item__point {
		flex: 50% 1 1;
		order: 0;
	}
	.wp-block-getwid-content-timeline-item__content-wrapper {
        margin-right: 50%;
    }
	.wp-block-getwid-content-timeline-item__card {
		background-color: transparent !important;
	}
}

embed, iframe, object {
    border-radius: 26px !important;
}
.marqueeteksti {
	-webkit-text-stroke: 2px rgba(255,255,255,0.1);
}

.someikoniosio {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

@media (min-width:1125px) {
	.someikonit {
		width: 1100px !important;
	}
	.somepalsta > .kt-inside-inner-col {
		width: 248px !important;
	}
}
@media (min-width:1025px) and (max-width:1124px) {
	.someikonit {
		width: 900px !important;
	}
	.somepalsta > .kt-inside-inner-col {
		width: 200px !important;
		height: 200px !important;
		min-height: 200px !important;
	}
}
@media (min-width:768px) and (max-width:1024px) {
	.someikonit {
		width: 700px !important;
	}
	.somepalsta > .kt-inside-inner-col {
		width: 150px !important;
		height: 150px !important;
		min-height: 150px !important;
	}
}

@media (min-width:481px) and (max-width:767px) {
	.someikonit {
		width: 380px !important;
	}
	.somepalsta > .kt-inside-inner-col {
		width: 100px !important;
		height: 100px !important;
		min-height: 100px !important;
	}
	.someikonit > .kt-row-column-wrap > .wp-block-kadence-column {
		text-align: center !important;
		margin: 0 auto !important;
	}
	.somepalsta-parent > .kt-inside-inner-col {
		min-height: 150px !important;
	}
}

@media (max-width:480px) {
	.someikonit {
		width: 340px !important;
	}
	.somepalsta > .kt-inside-inner-col {
		width: 80px !important;
		height: 80px !important;
		min-height: 80px !important;
	}
	.someikonit > .kt-row-column-wrap > .wp-block-kadence-column {
		text-align: center !important;
		margin: 0 auto !important;
	}
	.somepalsta-parent > .kt-inside-inner-col {
		min-height: 100px !important;
	}
	.somekuvake {
	    max-width: 50px !important;
	}
}

.wpgmza_map {
    border-radius: 25px !important;
}

/* Yhteydenotto */
.ff-btn-submit, .fluentform .ff_upload_btn.ff-btn {
    border: 2px solid #f5b6dc !important;
    border-radius: 8px !important;
	background: transparent !important;
}
.ff-btn-submit:hover, .ff-btn-submit:focus, .ff-btn-submit:active, .fluentform .ff_upload_btn.ff-btn {
	background: #F5B6DC !important;
	color: var(--global-palette4) !important;
}

.fluentform .ff-el-form-control {
    border-radius: 8px !important;
	color: var(--global-palette4) !important;
	font-family: antique-olive !important;
	font-weight: 300 !important;
}

/* Valikko */
@media (min-width:1025px) and (max-width:1200px) {
	.main-navigation .primary-menu-container > ul li.menu-item > a, .secondary-navigation .secondary-menu-container > ul li.menu-item > a {
		font-size: 1.3rem !important;
	}
}

@media (min-width:1025px) {
	.someosio:before {
		content: '';
		background: url('../../uploads/2025/12/karkki-3.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		position: absolute;
		left: 0;
		top: -4%;
		width: 400px;
		height: 247px;
		transform: translateX(-150%) rotate(0deg); /* start off-screen LEFT */
		opacity: 0;
		transition: transform .4s cubic-bezier(.445,.05,.55,.95), opacity .4s;
		z-index: 10;
	}
	
	.someosio.reveal:before {
		transform: translateX(-5%) rotate(0deg);
		opacity: 1;
	}

	.someosio:after {
		content: '';
		background: url('../../uploads/2025/12/karkki-4.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		position: absolute;
		right: 0;
		bottom: -5%;
		width: 400px;
		height: 277px;
		z-index: 10;
		transform: translateX(150%) rotate(-17deg);
		opacity: 0;
		transition: transform .4s cubic-bezier(.445,.05,.55,.95), opacity .4s;
	}
	.someosio.reveal:after {
		transform: translateX(0) rotate(-17deg);
		opacity: 1;
	}
}

@media (min-width:1025px) {
	.mika-makee-osio:before {
		content: '';
		background: url('../../uploads/2025/12/karkki-5.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		position: absolute;
		left: 0;
		top: -13%;
		width: 400px;
		height: 253px;
		transform: translateX(-150%) rotate(0deg); /* start off-screen LEFT */
		opacity: 0;
		transition: transform .4s cubic-bezier(.445,.05,.55,.95), opacity .4s;
		z-index: 10;
	}
	
	.mika-makee-osio.reveal:before {
		transform: translateX(-5%) rotate(0deg);
		opacity: 1;
	}
}

/* Kartta */
.wpgmza_map .wpgmza-inner-stack > .grouping.visible {
    background: #f5b6dc !important;
	color: var(--global-palette4) !important;
}

.wpgmza_map .wpgmza-inner-stack .wpgmza-panel-view svg.wpgmza-mark path, .wpgmza-standalone-component .wpgmza-panel-view svg.wpgmza-mark path {
    fill: var(--global-palette4) !important;
}

.wpgmza_map .wpgmza-inner-stack .wpgmza-panel-view svg.wpgmza-mark circle, .wpgmza-standalone-component .wpgmza-panel-view svg.wpgmza-mark circle {
    stroke: var(--global-palette4) !important;
}

.hidden-by-weekday {
	display: none !important;
}

.hidden-by-js {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
	height: 0 !important;
}

.torstaipainike.active,
.perjantaipainike.active,
.lauantaipainike.active,
.sunnuntaipainike.active {
    background-color: #60112d !important;
	border: 1px solid #60112d !important;
}

@media (max-width:767px) {
	.wp-block-kadence-tabs .kt-tabs-title-list {
		margin-right: 0px !important;
	}
}

.wpsr-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wpsr-ig-post {
    margin-bottom: 15px !important;
}

.wpgmza-marker-listing-category-filter {
	display: none !important;
}