/*
Theme Name: Sps
Theme URI:
Author: Gionata Legrottaglie
Author URI:
Description: Starter Theme with Font Awesome and Bootstrap 4
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: sps

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
:root {
	--primary: #006484;
	--secondary: #b8d58d;
}

body {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
	--sm: 576px;
}

.bg-green {
	background: #efefef;
}

.flex {
	display: flex;
}

.w-100 {
	width: 100%;
}

.mw-100 {
	max-width: 100%;
}

.h-inherit {
	height: inherit;
}

iframe.wp-embedded-content {
	max-width: 100%;
}

.navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show > .nav-link {
	text-decoration: underline;
}

.btn-outline-success:hover {
	color: #fff;
	background-color: #2ea86e;
	border-color: #2ea86e;
}

.main-content {
	flex: 1;
}

.img-center {
	display: block;
	margin: 0 auto;
}

ul {
	line-height: 26px;
}

ul li {
	margin-bottom: 5px;
}

.no-list-type,
.no-list-type ul {
	list-style-type: none;
}

.margin-auto {
	margin: 0 auto;
}

.media .img-search {
	max-width: 200px;
}

.media .media-body .title {
	font-size: 18px !important;
	line-height: 20px !important;
}

.media .media-body .title a {
	color: black;
}

.recent-posts {
	list-style-type: none;
	padding: 0;
}

.recent-posts a {
	color: black;
}

.recent-posts a > img {
	margin-top: 0.3em;
	margin-right: 1em;
	height: 100px;
	width: 100px;
}

.recent-posts .post-date {
	font-weight: bold;
	font-size: 12px;
	margin-bottom: 5px;
	color: #999;
}

.widget_nav_menu ul {
	list-style-type: none;
	padding: 0;
}

.widget_nav_menu ul a {
	padding-bottom: 0.5rem;
	color: black;
}

.hr-text {
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: nowrap;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	margin: 15px 0;
}

.hr-text > span {
	height: 1px;
	position: relative;
	-webkit-box-flex: 1;
	-webkit-flex: 1 1 auto;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 10%;
}

.hr-text > span > span {
	height: 1px;
	border-top: 2px solid #ebebeb;
	display: block;
	position: relative;
	top: 1px;
	width: 100%;
}

.hr-text.green > span > span {
	border-color: #2ea86e;
}

.hr-text > h1,
.hr-text > h2,
.hr-text > h3,
.hr-text > h4,
.hr-text > h5,
.hr-text > h6,
.hr-text > p {
	padding: 0 10px;
}

.h-0 {
	height: 0;
}
.flex-1 {
	flex: 1;
}
/* -------------------- pulsante  */
.green-button a {
	background-color: white !important;
	border: 2px solid rgb(46, 168, 110) !important;
	color: rgb(46, 168, 110) !important;
	text-decoration: none;
	transition: 0.2s;
	padding: 8px 15px;
}

.green-button a:hover {
	background-color: rgb(46, 168, 110) !important;
	border: 2px solid rgb(46, 168, 110) !important;
	color: white !important;
}

i.green {
	color: rgb(46, 168, 110);
}

/**
* 
* ----------------- HEADER
* 
*/
/* ------------------- logo ------------------- */
.logo img {
	width: 250px;
}

/**
* 
* -----------------HOME PAGE
* 
*/

.carousel-item img.img-sezione1 {
	object-fit: cover;
	height: 500px;
}

.carousel-item .carousel-caption {
	z-index: 1;
	right: 0;
	bottom: 0;
	left: 0;
	padding-top: 100px;
	padding-bottom: 30px;
	background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.cover-section {
	min-height: calc(100vh - 200px);
	/*background: var(--secondary);*/
}

.cover-section .img-col {
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.cover-section .img-col img {
	max-width: 500px;
}

.cover-section .quote-col {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	flex-direction: column;
	padding: 10px 20px;
}

.cover-section .quote-col blockquote {
	background: white;
	border-radius: 20px;
	padding: 10px 20px;
}

.agent {
	opacity: 0;
	animation: fadeInDown cubic-bezier(0.385, 0.135, 0.15, 0.86) 0.4s forwards;
}

.agent-1 {
	animation-delay: .1s;
}

.agent-2 {
	animation-delay: .2s;
}

.agent-3 {
	animation-delay: .3s;
}

.agent-4 {
	animation-delay: .4s;
}

.agent-5 {
	animation-delay: .5s;
}

@media (max-width: 768px) {

	.cover-section {
		min-height: 700px;
	}

	.cover-section .img-col img {
		max-width: 100%;
		position: absolute;
		top: 30px;
	}

	.cover-section .quote-col blockquote {
		background: #ffffffd1;
	}

	.agent-1 {
		animation-delay: .5s;
	}

	.agent-2 {
		animation-delay: .7s;
	}

	.agent-3 {
		animation-delay: .9s;
	}

	.agent-4 {
		animation-delay: .11s;
	}

	.agent-5 {
		animation-delay: .13s;
	}
}

@keyframes fadeInDown {
	0% {
		opacity: 0;
		transform: translateY(-20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}


/* last-article  */
.last-article .card {
	border-radius: 5px;
}

.last-article .card-body {
	position: relative;
	overflow: hidden;
	padding: 0;
	border-radius: 5px 5px 0 0;
}

.last-article .card-cover {
	width: 100%;
	height: 100%;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
}

.last-article .card-body:hover .card-cover {
	-ms-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-o-transform: scale(1.1);
	transform: scale(1.1);
}

.last-article .card-title {
	position: absolute;
	color: white;
	font-size: 1.2em;
	bottom: 0;
	text-shadow: 0 0 2px black;
	text-align: left;
	padding: 15px;
	margin-bottom: 0;
	pointer-events: none;
}

/* SERVIZI */
.service-section:nth-child(odd) {
	background: white;
}

.service-section:nth-child(even) {}

.service-section:nth-child(odd) .row > *:first-child {
	order: 1;
}

.service-section:nth-child(even) .service-section_img-link {
	margin-top: -100px;
}

.service-section .service-section_img-link {
	display: block;
}

.service-section .service-section_body {
	background: white;
	border-radius: 20px;
	padding: 20px 20px;
}

.service-section .service-section_img-link img {
	max-width: 100%;
	border-radius: 5px;
}
@media (max-width: 768px) {
	.service-section {
		background: #e9ecef !important;
		margin-bottom: 0;
	}
	.service-section .service-section_body {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}
	.service-section .service-section_img-link img {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
	.service-section:nth-child(odd) .row > *:first-child {
		order: 0;
	}
	.service-section:nth-child(even) .service-section_img-link {
		margin-top: 0px;
	}
}


/* card post
-------------------------------------------------------- */
.card-post .card-exerpt {
	background: rgba(10, 10, 10, 0.8);
	color: white;
	width: calc(100% - 1px);
	position: absolute;
	left: 0;
	height: calc(100% - 50px);
	padding: 1em;
	opacity: 0;
	-webkit-transition: opacity 400ms, transform 500ms;
	transition: opacity 400ms, transform 500ms;
	overflow: hidden;
	-ms-transform: translate(0, 100%); /* IE 9 */
	-webkit-transform: translate(0, 100%); /* Safari */
	transform: translate(0, 100%); /* Standard syntax */
}

.card-post:hover .card-exerpt {
	opacity: 1;
	-ms-transform: translate(0, 0px); /* IE 9 */
	-webkit-transform: translate(0, 0px); /* Safari */
	transform: translate(0, 0px); /* Standard syntax */
}

.card .card-post h5 a {
	text-decoration: white;
}

.card-post .card-body .card-filter {
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	flex-direction: column;
	padding: 15px;
	transition: 0.5s;
}

.card-post .card-body:hover .card-filter {
}

.card-group > .card.card-post {
	height: 18em;
	margin-right: 1em;
	margin-bottom: 1em;
	overflow: hidden;
	border: none;
	position: relative;
	border-radius: 15px;
}

.card-group > .card.card-post.flex-30 {
	-ms-flex: 1 0 30%;
	flex: 1 0 30%;
}

.card-group > .card.card-post.flex-40 {
	-ms-flex: 1 0 40%;
	flex: 1 0 40%;
}

.card-group > .card.card-post.card-post-right {
	-ms-flex: 1 0 80%;
	flex: 1 0 80%;
}

.card-post .card-body {
	border: 1px solid #f6f6f6;
	border-bottom: 0;
	position: relative;
	overflow: hidden;
}

.card-post .card-body .card-cover {
	width: 100%;
	height: 100%;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-o-transition: all 0.5s;
	transition: all 0.5s;
}

.card-post .card-body:hover .card-cover {
	-ms-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-o-transform: scale(1.1);
	transform: scale(1.1);
}

.card-post .card-body:hover .card-cover:before,
.card-post .card-body:focus .card-cover:before {
	display: block;
}

.card-post .card-body .card-title {
	position: absolute;
	color: white;
	font-size: 1.2em;
	bottom: 0;
	text-shadow: 0 0 2px black;
	text-align: left;
	padding: 15px;
}

.card-exerpt a :hover {
	transition: all 0.05s ease-in-out;
}

/* Slider
-------------------------------------------------------- */
/*.carousel,
.carousel-inner,
.carousel-item {
height: 600px;
}*/

/* Comments
-------------------------------------------------------- */
#comments {
	margin-bottom: 40px;
}

.comments {
	padding-top: 40px;
}

.comments textarea {
	width: 100%;
}

.comments label {
	min-width: 80px;
}

.comments ul,
.comments ol {
	list-style-type: none;
}

.comment-author img {
	border-radius: 999px;
	width: 50px;
}

.comment .reply {
	border-bottom: 1px solid #ccc;
	margin-bottom: 30px;
	padding-bottom: 10px;
}

/* Input & textarea
-------------------------------------------------------- */
input,
textarea {
	padding: 5px 10px;
	border: 1px solid #ccc;
}

/* Widgets
-------------------------------------------------------- */
.widget_search .screen-reader-text {
	display: block;
}

.widget_search #s {
	width: 70%;
	float: left;
}

.widget_search #searchsubmit {
	width: 30%;
	float: left;
	background: #fff;
}

.widget ul {
	margin-left: 1em;
}

/* pagination
-------------------------------------------------------- */
.pagination {
	margin-bottom: 40px;
	width: 100%;
	overflow: auto;
}

.page-numbers {
	display: inline-block;
	padding: 10px 15px;
	border: 1px solid #ddd;
	margin-right: 4px;
}

/* general wordpress style
-------------------------------------------------------- */
.post img {
	max-width: 100%;
	height: auto;
}

/* WordPress Core Styles
-------------------------------------------------------------- */
.gallery-caption {
	padding: 5px;
	font-size: 10px;
}

.bypostauthor {
	border-left: 3px solid #ddd;
	padding-left: 20px;
}

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	background: #fff;
	border: 1px solid #f0f0f0;
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}

.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}

.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	white-space: nowrap;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}


/**
*
* Lista rifugi
* 
*/

.featureListItem {
	/**
	* Lay out the children of this container with
	* flexbox, which is horizontal by default.
	*/
	display: flex;

	/**
	* Align the children in the center, along
	* the main axis, which is horizontal in this case.
	*/
	align-items: center;

	max-width: 400px;
	padding: 10px;
}

.featureListItem + .featureListItem {
	border-top: 1px solid #D7DBDD;
}

.featureListItem--reverse {
	/**
	* We can specify the flex-direction so that
	* the children elements are displayed in the
	* reverse order of how they appear in the
	* markup.
	*/
	flex-direction: row-reverse;
}

.featureListItem__icon,
.featureListItem__description {
	padding: 5px 15px;
}

.featureListItem__icon {
	font-size: 50px;
	line-height: 0;
}

.featureListItem__description {
	color: #57727C;
	font-size: 12px;
}

/*
*	FINE LISTA RIFUGI
*
*/
.form-inline.search {
	width: 200px;
	position: relative;
}

.form-inline.search input {
	width: 100% !important;
	padding-right: 40px;
}
.form-inline.search button {
	position: absolute;
	right: 4px;
	background: white;
	padding: 5px 10px;
}

@media (max-width: 992px) {
	.form-inline.search {
		width: 100%;

	}
}

@media (max-width: 768px) {
	.card-post .card-body .card-title {
		color: white;
		text-align: center;
		font-size: 1em;
	}

	.media .media-body .title {
		font-size: 16px !important;
		line-height: 20px !important;
	}

	.media .img-search {
		max-width: 150px;
		height: inherit;
	}

	.hidden-md {
		display: none;
	}

	h1 {
		font-size: 2rem;
	}

	.pagination > div {
		margin: 0 auto;
	}

}
.social-icon {
	font-size: 25px;
	margin: 0 3px;
	color: white;
}
.social-icon:hover {
	color: var(--secondary);
}


