/*
Theme Name: FAI CISL Lazio 2025
Theme URI: https://example.com/fai-cisl-lazio-2025
Author: Fabulab srl
Author URI: https://fabulab.com/
Description: Tema custom WordPress per FAI CISL Lazio
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: fai-cisl-lazio
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

:root {
	/* 
	--green-cisl: #297343; -> verde della scritta
	--green-cisl: #007d53; -> colore verona
	--red-cisl: #db3139;  -> colore verona
	--red-cisl: #e63030; -> rosso della scritta
	*/
	--green-cisl: #007550;
	--red-cisl: #e2383f;
	--grey: #f2f2f2;
	--space-around: 5%;
	--max-width: 1170px;
}

.bg-grey {
	background-color: var(--grey);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--red-cisl);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrapper {
	display: flex;
	padding-left: 15px;
	padding-right: 15px;
}

.wrapper>* {
	flex: 1;
	margin: auto;
	max-width: var(--max-width);
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	/* padding: 40px 0; */
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background: #fff;
	border-bottom: 1px solid #eee;
	padding: 20px 0;
}

/* .site-branding {
	margin-bottom: 20px;
} */

.site-title {
	margin: 0;
	font-size: 2rem;
}

.site-title a {
	color: #333;
	text-decoration: none;
}

.site-description {
	margin: 5px 0 0;
	color: #666;
}

/* Navigation */
.main-navigation {
	clear: both;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	display: inline-block;
	margin-right: 20px;
}

.main-navigation a {
	color: #333;
	text-decoration: none;
}

.main-navigation a:hover {
	color: var(--red-cisl);
}

.menu-toggle {
	display: none;
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-header .site-branding img.custom-logo {
	max-height: 120px;
	width: auto;
}

/* ==========================================================================
   Content
   ========================================================================== */

.site-main {}

article {
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #eee;
}

.entry-header {
	margin-bottom: 20px;
	background-color: var(--green-cisl);
	padding: 10px;
}

.entry-title {
	font-size: 2rem;
	color: #fff;
	width: 100%;
}

.entry-meta {
	color: #666;
	font-size: 0.9rem;
}

.entry-content {
	margin-top: 20px;
}

.entry-footer {
	margin-top: 20px;
	color: #666;
	font-size: 0.9rem;
}

.post-thumbnail {
	margin-bottom: 20px;
}

.title-line {
	width: 100%;
	display: flex;
	justify-content: center !important;
	text-transform: uppercase;
	color: var(--green-cisl);
	position: relative;
}

.title-line::before {
	content: "";
	background-color: var(--green-cisl);
	height: 2px;
	top: calc(50% - 1px);
	display: block;
	position: absolute;
	/* left: var(--space-around);
    width: calc(100% - 2 * var(--space-around)); */
	left: 0;
	width: 100%;
}

.title-line>* {
	background-color: #fff;
	z-index: 1;
	padding-left: 16px !important;
	padding-right: 16px !important;
}

.bg-grey .title-line>* {
	background-color: var(--grey);
}

.title-line h1,
.title-line h2 {
	font-size: 32px;
	font-weight: 800;
}

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

	.title-line h1,
	.title-line h2 {
		font-size: 28px;
	}

}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.widget-area {
	width: 30%;
	float: right;
}

.widget {
	margin-bottom: 40px;
}

.widget-title {
	font-size: 1.2rem;
	margin-bottom: 15px;
}

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

.widget li {
	margin-bottom: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--green-cisl);
	color: #fff;
	padding: 40px 0 20px;
	margin-top: 40px;
	clear: both;
}

.site-footer a {
	color: #fff;
}

.site-info {
	text-align: center;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list li {
	margin-bottom: 20px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.post-navigation,
.posts-navigation {
	margin: 40px 0;
	overflow: hidden;
}

.nav-links {
	display: flex;
	justify-content: space-between;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

	.site-main,
	.widget-area {
		width: 100%;
		float: none;
		padding-right: 0;
	}

	.menu-toggle {
		display: block;
		background: #333;
		color: #fff;
		border: none;
		padding: 10px 20px;
		cursor: pointer;
	}

	.main-navigation ul {
		display: none;
	}

	.main-navigation.toggled ul {
		display: block;
	}

	.main-navigation li {
		display: block;
		margin: 0;
	}

	.main-navigation a {
		display: block;
		padding: 10px 0;
	}

	.wrapper {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* =========================================================================
   Sedi Custom Styles
   ========================================================================== */

.button-sede {
	background-color: var(--grey);
	color: #333;
	border: none;
	padding: 10px 15px;
	margin: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	font-size: 18px;
}

.button-sede.active {
	background-color: var(--green-cisl);
	color: #fff;
}

.griglia-sedi {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.sede {
	/* background: #f9f9f9; */
	padding: 20px;
	border: 1px solid #666;
	/* border-radius: 5px; */
}

.sede__nearest {
	display: none;
	background-color: var(--green-cisl);
	color: #fff;
	padding: 5px 10px;
	font-weight: bold;
	margin-bottom: 10px;
	text-align: center;
}

.sede--nearest .sede__nearest {
	display: block;
}

.gm-style-iw-d .sede {
	padding: 0 !important;
	border: none !important;
	width: 250px !important;
	padding-bottom: 20px !important;

}

.sede h2 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	margin-top: 0;
}

.form-sedi {
	margin-bottom: -24px;
	display: flex;
	position: relative;
	z-index: 1;
}

.searchform-sedi {
	margin: auto;
	width: 100%;
	max-width: 400px;
}

.searchform-sedi input[type="text"] {
	padding: 15px;
	font-size: 1rem;
	border: 1px solid #ccc;
	/* border-radius: 5px 0 0 5px; */
	width: 100%;
}

@media screen and (max-width: 960px) {
	.griglia-sedi {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.griglia-sedi {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.sede {
		padding: 15px;
	}
}

/* ==========================================================================
   Home Custom Styles
   ========================================================================== */

.home-slider .swiper-slide-image {
	height: 540px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.home-slider .elementor-image-carousel-caption {
	color: #fff;
	padding: 10px;
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	text-align: center;
	font-size: 28px;
}

.home-slider .swiper-pagination {
	background-color: var(--green-cisl);
	padding-top: 24px;
	padding-bottom: 24px;
	bottom: 0 !important;
	position: relative;
	/* text-align: right; */
}

.home-slider .swiper {
	padding-bottom: 0 !important;
}

.home-slider .swiper-slide-inner::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
}

.home-slider .swiper-slide-inner figcaption {
	z-index: 1;
}

.home-chi-siamo .e-con-inner {
	/* background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9Im5vbmUiLz48Y2lyY2xlIGN4PSIxNTAiIGN5PSIxNTAiIHI9IjE1MCIgZmlsbD0iIzAwNzU1MCIvPjwvc3ZnPg==");
	background-size: 55%;
    background-repeat: no-repeat;
    background-position: bottom 135% right -22%; */
}

.home-chi-siamo {
	overflow: hidden !important;
}

.home-chi-siamo .e-con-inner {
	position: relative;
}

.home-chi-siamo .e-con-inner::after {
	content: "";
	background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMwMCIgaGVpZ2h0PSIzMDAiIGZpbGw9Im5vbmUiLz48Y2lyY2xlIGN4PSIxNTAiIGN5PSIxNTAiIHI9IjE1MCIgZmlsbD0iIzAwNzU1MCIvPjwvc3ZnPg==");
	position: absolute;
	display: block;
	bottom: -220px;
	right: -180px;
	width: 700px;
	height: 700px;
	pointer-events: none;
	background-size: contain;
	background-repeat: no-repeat;
	z-index: -1;
}

.home-chi-siamo h2 {
	position: relative;
	font-size: 2.5rem;
	font-weight: 400;
	letter-spacing: 0.1em;
}

.home-chi-siamo h2::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 120px;
	height: 4px;
	background-color: var(--red-cisl);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.clear::after {
	content: "";
	display: table;
	clear: both;
}