﻿/*	================================================
	COMMON css
	- For First Page Promotions
	- For Products and Services in table items

1.	Nav Menu for Anchors of Sections
	================================================ 
	Automatically created Navigation menu on the top-right 
	that automatically includes as links the titles of all item Sections.
	jQuery scrolls to the section when Clicking on its title.
*/

.section_anchor {
	position: absolute;
	top: 0;
	right: 0;
	background-color: var(--basic-color);
	padding: 0 3px 3px 3px;
	text-align: left;
	display: block;
	max-width: 460px;
	z-index: 80;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-right: 0;
	visibility: hidden;
}

.section_anchor div {
	font-size: 2.5em;
	font-weight: normal;
	color: #fff;
	opacity: 0.8;
	cursor: pointer;
	padding: 1px 8px;
	line-height: 100%;
}

.section_anchor ul {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
	display: block;
}

.section_anchor li {
	display: block;
	margin-top: 4px;
	padding: 0;
	background-color: #fff;
}

.section_anchor li span {
	display: block;
	font-size: 1em;
	font-weight: 400;
	line-height: 125%;
	padding: 8px 5px;
	text-align: left;
	color: #333;
	cursor: pointer;
}

.section_anchor li span:hover {
	color: var(--basic-color);
}

/*	================================================	
	2.	Styles for the Sections, rows, card-items and images
		of every item.
	================================================
*/

.section_block {
	position: relative;
	background: transparent;
	padding: 0;
	margin: 0 0 6rem 0;
}

/*
	item sections without Flex
*/
.section_wrapper {
	margin: 0 auto;
	padding: 4rem 0;
	border-bottom: 1px solid var(--grey-tint-80);
}
.section>div {
	margin: 0 auto;
	max-width: 1440px;
}

.section_header {
	padding: 0;
	margin: 0 0 2rem 0;
	border-radius: 6px;
}

.section_header h1 {
	text-align: center;
	color: var(--basic-tint-20);
	font-size: 2rem;
	font-weight: 700;
	padding: 0;
	margin: 1rem 0;
}

.section_header .text_normal {
	font-size: 1.15rem;
	padding: 0 5%;
	margin: 0;
}

.section_header .text_normal ul,
.section_header .text_normal ol {
	text-align: left;
}

/*
	item sections with Flex
	- used to place item_header of a section on Left or Right
	- It is set dynamically, so it might not exist
	- define styles only when it exists, related only to it
*/
.section_flex {
	display: block;
}

/*
	The content, rows and items of every item
*/

.section_content {
	border-radius: 6px;
	padding: 0;
}

.section_content h2 {
	color: var(--basic-tint-20);
	font-size: 1.4rem;
	font-weight: 700;
}

.section_content h3,
.section_content h4 {
	color: var(--basic-tint-20);
}

.section_row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	background: transparent;
	padding: 1rem;
	margin-bottom: 0.5rem;
	border-radius: 6px;
	pointer-events: none;
	gap: 1rem;
}

.section_element {
	display: flex;
	flex-direction: column;
	padding: 0 0.2rem 0.4rem 0.2rem;
	margin: 0;
	flex: 1 1 100%;
	border-radius: 5px;
	pointer-events: auto;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.section_element:hover {
	background-color: rgba(255, 255, 255, 0);
}

.section_element figure {
	padding: 0;
}

.section_element>h2 {
	padding-left: 1rem;
	padding-right: 1rem;
}

.section_element figure img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.section_element .image_float_left {
	float: left;
	margin: 0.25rem 1rem 0.5rem 0 !important;
	width: 30% !important;
}
.section_element .image_float_right {
	float: right;
	margin: 0 0 0.5rem 1rem !important;
	width: 30%;
}

.section_element figcaption {
	font-style: normal !important;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1rem;
}

.section_element .text_normal {
	font-size: 1em;
}
.section_element .text_normal p:first-child {
	padding-top: 0;
	margin-top: 0;
}

.section_element .absolute-button {
	margin-top: auto;
	padding: 1rem 0;
	text-align: center;
}

/**
* Dynamically determined classes
* Selected by the administrator when desining sections
*/

.section_wrapper .section_shadow {
	box-shadow: 2px 5px 16px 0px rgba(0, 0, 0, 0.1), 5px 5px 15px 5px rgba(0, 0, 0, 0.2);
}

.section_wrapper .section_shadow_hover:hover {
	box-shadow: 2px 5px 16px 0px rgba(0, 0, 0, 0.1), 10px 10px 15px 5px rgba(0, 0, 0, 0.2);
}

.section_wrapper .section_hover:hover {
	background-color: rgba(255, 255, 255, 0.8);
}

.section_wrapper figure.image_shadow img {
	box-shadow: 8px 8px 12px 6px rgba(0, 0, 0, 0.3), 3px 3px 8px 3px rgba(0, 0, 0, 0.3);
	margin: 10px 14px 10px 6px;
	width: calc(100% - 20px);
	height: auto;
}

.section_wrapper figure.image_radius_100 img {
	border-radius: 100%;
}

.section_wrapper figure.image_radius_50 img {
	border-radius: 50%;
}

.section_wrapper figure.image_radius_25 img {
	border-radius: 25%;
}

.section_wrapper figure.image_radius_10 img {
	border-radius: 10%;
}

.section_wrapper figure.image_radius_5 img {
	border-radius: 5%;
}

.section_wrapper figure.image_max_height_100 img,
.section_wrapper figure.image_max_height_150 img,
.section_wrapper figure.image_max_height_200 img,
.section_wrapper figure.image_max_height_250 img,
.section_wrapper figure.image_max_height_300 img,
.section_wrapper figure.image_max_height_400 img,
.section_wrapper figure.image_max_height_500 img {
	margin: 0.5rem auto 0 auto !important;
	width: auto;
	height: auto;
	max-width: 100%;
	padding: 0;
}
.section_wrapper figure.image_max_height_100 img {
	max-height: 100px !important;
}
.section_wrapper figure.image_max_height_150 img {
	max-height: 150px !important;
}
.section_wrapper figure.image_max_height_200 img {
	max-height: 200px !important;
}
.section_wrapper figure.image_max_height_250 img {
	max-height: 250px !important;
}
.section_wrapper figure.image_max_height_300 img {
	max-height: 300px !important;
}
.section_wrapper figure.image_max_height_400 img {
	max-height: 400px !important;
}
.section_wrapper figure.image_max_height_500 img {
	max-height: 500px !important;
}

/**
	Fix text behide the image of a item item
	Appliew to the element .section_element > figure
*/


.section_element .text_fixed {
	position: relative;
	cursor: pointer;
}

.section_element .text_fixed img {
	opacity: 1;
	transition: opacity 0.3s linear;
}

.section_element .text_fixed figcaption {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	padding: 0 1rem !important;
	opacity: 0;
	transition: opacity 0.3s linear;
	background-color: rgba(255, 255, 255, 0.9);
}

.section_element .text_fixed:hover img {
	opacity: 0;
}

.section_element .text_fixed:hover figcaption {
	opacity: 1;
}

@media (min-width: 768px) {
	.section_element {
		flex: 1 1 45%;
	}
}

@media (min-width: 1024px) {
	.section_wrapper .section_hover {
		background-color: rgba(255, 255, 255, 0);
	}

	.section_wrapper .section_hover:hover {
		background-color: rgba(255, 255, 255, 0.8) !important;
	}

	.section_element {
		flex: 1 1 30%;
	}	
	.section_wrapper {
		padding-left: 2.5%;
		padding-right: 2.5%;
	}
}

@media only screen and (min-width: 1200px) {
	.section_flex {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		gap: 1rem;
	}

	.section_flex .section_header {
		flex: 0 30%;
	}

	.section_flex .section_content {
		flex: 1 70%;
	}

	.section_flex .section_header h1 {
		text-align: left;
	}

	.section_header .text_normal {
		padding: 0 8%
	}

	.section_flex .section_header .text_normal {
		padding: 0;
	}

	/* Max 4 Items per Row
	*/
	.section_element {
		flex: 1 1 20%;
	}

	.section_wrapper {
		padding-left: 5%;
		padding-right: 5%;
	}
}

@media only screen and (min-width: 1600px) {

	.section_header .text_normal {
		padding-left: 25%;
		padding-right: 25%;
	}
	.section_flex .section_header .text_normal {
		padding: 0;
	}

	.section_wrapper {
		padding-left: 12%;
		padding-right: 12%;
	}

}

@media only screen and (min-width: 1920px) {

	/* Max 6 Items per Row, decrease the percentage to allow for mor Items
	.section_element {
		flex: 1 15%;
	}
	*/
}