/*!
Theme Name: perardi_giardini
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: perardi_giardini
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

perardi_giardini is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-weight: 200;
	/* font-family: Arial, Helvetica, sans-serif; */
}

/* ================================
   PAGE LOADER
   ================================ */
.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ffffff;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.loader-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.loader-logo {
	max-width: 80%;
	height: auto;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Logo Header Styling */
.logo-header {
	max-height: 60px;
	width: auto;
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 1;
}

.logo-header:hover {
	transform: scale(1.05);
	opacity: 0.9;
}

.loader-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(25, 61, 34, 0.1);
	border-top-color: #193d22;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Page Transition Effect */
html {
	overflow-x: hidden;
	max-width: 100vw;
}

body {
	overflow-x: hidden;
	max-width: 100vw;
	position: relative;
}

body.page-transitioning {
	overflow: hidden;
}

/* Global Responsive Rules */
img {
	max-width: 100%;
	height: auto;
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

section {
	overflow-x: hidden;
	max-width: 100vw;
	position: relative;
}

section.hero{
	height: 100vh;
	width: 100%;
	max-width: 100vw;
	min-height: 500px;
}

.text-color-white{
	color: #fff;
}

.fw-bold{
	font-weight: 900 !important;
}

b {
	font-weight: 900;
}

h1{
	font-size: 4em;
	font-weight: 300;
	letter-spacing: 4px;
}
h2{
	font-size: 2.5em;
	font-weight: 300;
}
h4{
	font-size: 1.5em;
	font-weight: 400;
}
p{
	font-size:1.3em;
	line-height: 1.6;
}


.hero{
	display: flex;
	align-items: center;
	background-image: url("./assets/sfondo1.png");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	width: 100%;
	max-width: 100vw;
	overflow: hidden;
}
.homenews{
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100vw;
	overflow: hidden;
}
.wrap-sm{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: start;
	transform:translate(0, -100px);
}
.news-card{
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border-radius: 30px;
	box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.655);
	width: 260px;
	height: 290px;
	padding: 1rem;
	justify-content: space-between;
}
.news-card-title{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	font-size: 2em;
	font-weight: bold;
}

.news-card-date{
	position: absolute;
	top:-28px;
	font-size: 12px;
	font-weight: bold;
	right:8px;
	color: #fff;
}

.news-card-title h4{
	max-width: 50%;
	color: rgb(18, 57, 18);
}

.news-card-title img {
	height: 25px;
	width: auto;
}

.news-card-body {
	font-size: 1em;
}
.news-card-action{
	display: flex;
	flex-direction: row;
	justify-content: end;
	align-items: center;
}
.news-card-action img{
	height: 20px;
	width: auto;
	margin: 2px;
}
body h1{
	/* color: rgb(34, 48, 20); */
}

.p-color{
	color: rgb(34, 48, 20);
}
body img{
	margin: 0;
	height: 200px;
	width: auto;
}
section.altro{
	height: 100vh;
	width: 100vw;
}
.about-row {
	gap: 2rem;
	align-items: center;
	flex-wrap: wrap;
}

.about-section{
	display: flex;
	align-items: center;
	background-image: url("./assets/sfondobannerchisiamo.png");
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 60vh;
	padding: 4rem 20px;
}
.about-element{
	color: white;
	display: flex;
	flex-grow: 1;
	flex-direction: column;
	justify-content: end!important;
	max-width: 600px;
	height: auto;
	min-height: 300px;
	padding: 1em;
	margin-bottom: 0;
}

.arrow-icon {
	width: 20px;
		height: 20px;
	margin-bottom: 1rem;
}

p{
	margin:0;
}
.content-row{
	display: flex;
	flex-direction:row;
}
.content-col{
	display: flex;
	flex-direction:column;
}
.img-bordered{
	border-radius: 50% 50% 0 0;
	height: 350px;
}

.about-items img{
	height:auto;
	width: 40px;
}
.about-items h1{
	max-width: 70%;
	color: #fff;
}
.about-items p{
	color: #fff;
}
.about-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	width: 100%;
	padding: 2rem 0;
}

.nwrap .ncs2,
.nwrap .ncs3 {
    position: relative;
}

.ncs-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
}

.ncs-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.ncs-subtitle {
    font-size: 16px;
    margin-top: 5px;
}

/* SOCIAL ICONS TOP RIGHT */
.ncs3 .ncs-social {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 12px;
}

.ncs3 .ncs-social img {
    width: 30px;
    border-radius: 0px!important;
    height: auto;
    filter: brightness(0) invert(1); /* se vuoi bianche sopra immagine */
}


.about-cards-chi-siamo {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	padding-top: 8rem;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 3rem;
}

.about-cards-chi-siamo h1 {
	color: #fff;
}

.about-card img{
 width: 40px;
 height: auto;
 max-width: 70%;
}

.about-card h4, p{
	color: #fff;
}

.about-card {
	width: 100%;
	max-width: 380px;
	min-height: 300px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 1rem;
	margin: 0 auto;
}
.newsletters{
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 3rem 20px;
	gap: 2rem;
}
.newsletters-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	flex-wrap: wrap;
}
.newsletters-items{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
	gap: 1.5rem;
	flex: 1;
	min-width: 300px;
}
.newsletters-items img {
	max-width: 300px;
	height: auto;
}
.newsletters-items p {
	font-size: 1.2em;
	line-height: 1.6;
		color: #050505!important;

}
.img-newsletters{
    margin-top: 0;
    margin-left: 0;
    height: auto;
    width: 100%;
	max-width: 400px;
	flex-shrink: 0;
}
.project {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("./assets/sfondobannercontattifelce.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    padding: 60px 20px;
}

.project h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 20px;
	width: 50%;
}

.project p {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.project img {
    max-width: 70px;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project img:hover {
    transform: scale(1.05);
}



/* CHI SIAMO */

.chisiamohero{
	display: flex;
	flex-direction: row;
	justify-content: start;
}


.chisiamoheroimg, .chisiamoherotext{
	display: flex;
	flex-direction: column;
		padding: 2rem;

	/* min-height: 80vh; */
}

.chisiamoheroimg img{
	max-width: 540px;
	height: auto;
	object-fit: cover;
	border-radius: 20px;
}

.trow{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	padding: 2rem 0;
}

.cs-t{
	font-size: 3rem;
	text-align: left;
}
.text-WW a{
	color: #fff!important;
}

.b-ww span{
	background-color: #fff!important;
}
.mask-section {
	position: relative;
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem 20px;
}

.mask-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
}

.mask-bg .bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: ellipse(95% 95% at 50% 100%);
}

.mask-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: white;
	gap: 2rem;
	max-width: 1400px;
	width: 100%;
}

.mask-content h1 {
	font-size: 3em;
	margin-bottom: 1rem;
}

.mask-content p {
	font-size: 1.3em;
	margin-bottom: 2rem;
	max-width: 800px;
}



.btn-bw{
	width: 200px;
	height: 36px;
	border: 1px solid #fff;
	border-radius: 50px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all ease 0.3s;
	cursor: pointer;
}

.btn-bw:hover{
	background-color: #fff;
	color: #000;

}





.nwrap {
    display: grid;
    grid-template-columns:  1fr 1fr; /* 1 è grande come 2+3 */
    gap: 20px; /* spazio tra gli elementi */
}

.nwrap img {
    width: 100%;
    height: 400px;     /* regola come preferisci */
    object-fit: cover;
    border-radius: 20px;
}


.people-row{
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}

.people-row img{
	border-radius: 10px;
	width: 200px;
	height: auto;
	margin-top: 1rem;
}

.tr1{
	padding: 0 1rem 0 0;
}

.tr2{
	padding: 0 0 0 1rem;
}

.cs-hero{
	min-height: 100vh;
	width: 100vw;
}



















/* SERVIZI */

.services-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "c1 c2 c3"
        "c4 c2 c6"
        "c7 c8 c9";
}

.card1 { 
    grid-area: c1; 
    height: 300px;
    background: rgb(2,87,78);
}
.card2 { 
    grid-area: c2;
    width: 100%;
    border: none;
    min-height: 620px;
    background: url("./assets/giardinipensili.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.card3 { 
    grid-area: c3;
    background: url("./assets/impiantisportivi.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 300px;
}

.card4 { 
    grid-area: c4;
    background: url("./assets/spaziinterni.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 300px;
}
.card5 { 
    grid-area: c5;
    background: url("./assets/acquaepiscine.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 140px;
}
.card6 { 
    grid-area: c6;
    background: url("./assets/irrigazione.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 300px;
}

.card7 { 
    grid-area: c7; 
    background: url("./assets/arredi.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 300px;
}

.card8 { 
    grid-area: c8; 
    background: transparent;
    border: none; 
}
.card81 {
    height: 140px;
    background: rgb(0,127,114);
}

.card9 { 
    grid-area: c9;
    min-height: 240px;
    background: rgb(36,168,155);
}

.card {
    border-radius: 24px;
	
    overflow: hidden;
    position: relative;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.service-hero {
    min-height: 100vh;
    width: 100%;
    background: url("./assets/serviceherobg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 80px 20px 60px;
}

.service-detail-section {
    padding: 60px 0;
}

.service-block {
    width: 100%;
    padding: 40px 0;
    font-family: "Arial", sans-serif;
    color: #1d1d1d;
}

.service-inner {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
}

.service-row-reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    min-width: 0;
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 40px;
    display: block;
}

.service-text {
    flex: 1;
    min-width: 0;
}

.service-text h2 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: bold;
    color: #254C2F;
    margin-bottom: 20px;
}

.service-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #1d1d1d !important;
}

.service-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 60px 0;
}


/* contatti */
.scontatti{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100vw;
	height: 110vh;
	background: url("./assets/sbc.jpg");
	background-repeat: no-repeat;
	background-size: cover;
}

.form-wrapper{
	width: 100%;
	max-width: 1400px;
	height: auto;
	min-height: 80vh;
	border-radius: 20px;
	background-color: #fff;
	display: flex;
	flex-direction: row;
	padding: 2rem;
	margin: 0 auto;
	gap: 2rem;
}
.ctitle{
	text-align: center;
}
.ft{
	color: #193d22;
	font-size: 3rem;
	font-weight: bold;
}
.fs{
	font-weight: bold;
	color: #193d22;
}

.form-cont{
	flex: 1;
	min-width: 300px;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.form-img{
	flex: 1;
	min-width: 300px;
	border-radius: 20px;
	background: url("./assets/insegna.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	min-height: 400px;
}


.inputText {
  width: 100%;
  padding: 14px 20px;
  border-radius: 40px;
  border: none;
  background: #f5f5f2;  /* bianco sporco */
  font-size: 16px;
  text-align: center;    /* centra il testo */
  outline: none;
  color: #333;
  transition: all 0.3s ease;
}

/* stile placeholder */
.inputText::placeholder {
  color: #777;
  text-align: center;    /* centra placeholder */
  opacity: 1;            /* evita trasparenza */
}

.inputText:focus {
  background: #e8e8e5;
  box-shadow: 0 0 0 3px rgba(25, 61, 34, 0.1);
}

/* Form styles */
.formw {
  margin-top: 2rem;
  width: 100%;
}

#contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  text-align: left;
  padding-top: 14px;
}

.textarea::placeholder {
  text-align: left;
}

.checkbox-group {
  text-align: left;
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #193d22;
}

.checkbox-label span {
  flex: 1;
}

.checkbox-label a {
  color: #193d22;
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-label a:hover {
  color: #2d5f38;
}

.submit-btn {
  width: 100%;
  max-width: 300px;
  padding: 16px 40px;
  border-radius: 40px;
  border: none;
  background: #193d22;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: #2d5f38;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(25, 61, 34, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form messages - Enhanced Banner/Popup */
.form-message {
  padding: 20px 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: left;
  display: none;
  animation: slideDown 0.4s ease-out;
  border-left: 5px solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message.success {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.form-message p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-message.success p::before {
  content: "✓";
  font-weight: bold;
  font-size: 20px;
}

.form-message.error p::before {
  content: "✗";
  font-weight: bold;
  font-size: 20px;
}

.fr{
	display: flex;
	justify-content: space-between;
	flex-direction: row;
}

.fr p{
	display: flex;
	width: 200px!important;
}

.inputSelect {
  width: 100%;
  padding: 14px 20px;
  max-width: 370px;
  border-radius: 40px;
  border: none;
  background: #f5f5f2;  /* bianco sporco */
  font-size: 16px;
  text-align: center;  /* centra il testo */
  appearance: none;    /* nasconde la freccia default */
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  color: #333;
  cursor: pointer;
  position: relative;
}

/* centra anche il testo nelle option */
.inputSelect option {
  text-align: center;
}

/* freccia personalizzata */
.inputSelect-wrapper {
  position: relative;
  width: 100%;
}

.inputSelect-wrapper::after {
  content: "▼";
  font-size: 14px;
  color: #555;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.inputTextarea {
  width: 100%;
  min-height: 140px;
  padding: 16px 20px;
  border-radius: 20px;
  height: 208px;
  border: none;
  background: #f5f5f2; /* bianco sporco */
  font-size: 16px;
  text-align: center; /* centra il testo */
  outline: none;
  color: #333;
  resize: none; /* evita resize se non lo vuoi */
}

/* placeholder centrato */
.inputTextarea::placeholder {
  color: #777;
  text-align: center;
  opacity: 1;
}


.wpcf7-submit {
	margin-top: 2rem;
  display: inline-block;
  padding: 14px 28px;
  background: #24a89b; /* colore principale */
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  max-width: 100px;
  width: 100%; /* se vuoi che occupi tutta la larghezza */
}

/* Hover */
.wpcf7-submit:hover {
  background: #1f9186; /* leggermente più scuro */
 transform: translateY(0);
}




/* ================================
   HEADER & NAVIGATION
   ================================ */

.site-header {
    background: transparent;
    position: absolute;
    top: 0;
    z-index: 999;
    width: 100%;
    padding: 1.5rem 0;
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled .main-navigation a {
    color: #193d22 !important;
}

.site-header.scrolled .main-navigation a:hover {
    color: #24a89b !important;
}

.site-header.scrolled .hamburger-line {
    background-color: #193d22;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.fse {
    padding-top: 5rem;
}

/* Logo */
.site-header .logo img,
.logo-header {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.site-header .logo img:hover,
.logo-header:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hamburger Button - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page .hamburger-line,
.page-chi-siamo .hamburger-line {
    background-color: #193d22;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
	background-color: #193d22!important;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
	background-color:  #193d22!important;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
	background-color: #193d22!important;
}


.overlay-logo {
    text-align: center;
    margin-bottom: 2rem;
    display: none; /* Nascosto su desktop */
}

.logo-overlay {
    width: 150px;
    height: auto;
}

.overlay-cta {
    text-align: center;
    margin-bottom: 2rem;
	background: #193d22;
	color: #fff;
    display: none; /* Nascosto su desktop */
}

.overlay-cta a{
	color: #fff;
}

.cta-button {
    display: inline-block;
    background: #193d22;
    color: #fff!important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.cta-button:hover {
    background: #193d22;
	color: #fff;
}


/* Navigation */
.main-navigation {
    position: relative;
}

.nav-overlay {
    display: none;
}

.nav-menu-wrapper {
    display: block;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    padding: 0;
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Elegant Hover Effect - Underline Animation */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease, left 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after {
    width: 80%;
    left: 10%;
}

.main-navigation a:hover {
    transform: translateY(-2px);
}

/* Color Schemes Based on Page */
.home .main-navigation a,
.page-homepage .main-navigation a,
.page-servizi .main-navigation a,
.page-contatti .main-navigation a {
    color: #ffffff;
}

.home .main-navigation a:hover,
.page-homepage .main-navigation a:hover,
.page-servizi .main-navigation a:hover,
.page-contatti .main-navigation a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.page .main-navigation a,
.page-chi-siamo .main-navigation a {
    color: #193d22;
}

.page .main-navigation a:hover,
.page-chi-siamo .main-navigation a:hover {
    color: #24a89b;
}

.mobile {
    display: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Menu Item Active State */
.main-navigation .current-menu-item > a {
    font-weight: 600;
}

.main-navigation .current-menu-item > a::after {
    width: 80%;
    left: 10%;
}

/* Additional Hover Effects */
.main-navigation a {
    overflow: hidden;
}

.main-navigation li:hover {
    z-index: 2;
}

/* Focus Visible for Accessibility */
.main-navigation a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Prevent body scroll when menu is open on mobile */
body.menu-open {
    overflow: hidden;
}
    .project-content {
        text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
/* TABLET RESPONSIVE */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "c1 c2"
            "c3 c2"
            "c4 c6"
            "c7 c8"
            "c9 c9";
        gap: 15px;
    }

    .card2 {
        min-height: 400px;
    }

    .service-row,
    .service-row-reverse {
        gap: 40px;
    }

    .service-text h2 {
        font-size: 36px;
    }

    .service-text p {
        font-size: 16px;
    }

    .service-image img {
        height: 300px;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 780px) {
    /* Header Mobile */
    .site-header {
        padding: 1rem 0;
    }

    .header-container {
        padding: 0 20px;
    }

    .site-header .logo img,
    .logo-header {
        max-height: 45px;
    }

    /* Show Hamburger on Mobile */
    .hamburger {
        display: flex;
    }

    /* Mostra logo e CTA nel menu mobile */
    .overlay-logo,
    .overlay-cta {
        display: block;
    }

    /* Mobile Navigation Overlay */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: transparent;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        pointer-events: none;
    }

    .main-navigation.active {
        right: 0;
        pointer-events: all;
    }

    .nav-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
        transition: background 0.4s ease;
        pointer-events: none;
    }

    .main-navigation.active .nav-overlay {
        background: rgba(0, 0, 0, 0.7);
        pointer-events: all;
    }

    .nav-menu-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 400px;
        height: 100%;
        background: #ffffff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        padding: 80px 30px 30px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-navigation.active .nav-menu-wrapper {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0;
        transform: translateX(30px);
        animation: none;
    }

    .main-navigation.active li {
        animation: slideInMenu 0.4s ease forwards;
    }

    .main-navigation.active li:nth-child(1) { animation-delay: 0.1s; }
    .main-navigation.active li:nth-child(2) { animation-delay: 0.15s; }
    .main-navigation.active li:nth-child(3) { animation-delay: 0.2s; }
    .main-navigation.active li:nth-child(4) { animation-delay: 0.25s; }
    .main-navigation.active li:nth-child(5) { animation-delay: 0.3s; }
    .main-navigation.active li:nth-child(6) { animation-delay: 0.35s; }

    @keyframes slideInMenu {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .main-navigation a {
        color: #193d22 !important;
        padding: 1rem 0;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .main-navigation a::after {
        display: none;
    }

    .main-navigation a:hover {
        color: #24a89b !important;
        transform: translateX(10px);
        background: rgba(36, 168, 155, 0.05);
        padding-left: 15px;
    }

    .main-navigation a.current-menu-item {
        color: #24a89b !important;
        font-weight: 600;
    }

    .main-navigation {
        overflow: hidden;
    }

    /* Typography - Mobile Optimized */
    h1 {
        font-size: 2rem !important;
        letter-spacing: 2px;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.2rem !important;
    }

    h5 {
        font-size: 1rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        max-width: 100vw;
    }

    .content-row,
    .about-row {
        width: 100%;
        max-width: 100%;
    }

    /* Hero Section */
    .hero {
        display: flex !important;
        flex-direction: column;
        padding: 40px 20px;
        min-height: 60vh;
        background-position: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .hero img {
        align-items: start;
    }

    /* About Section - Homepage */
    .about-section {
        padding: 40px 20px !important;
        min-height: auto;
    }

    .about-row {
        flex-direction: column;
        gap: 2rem;
    }

    .img-bordered {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }

    .about-element {
        padding: 1.5rem 0 !important;
        max-width: 100%;
        height: auto !important;
        min-height: auto;
        text-align: center;
    }

    .about-element h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem;
    }

    .about-element p {
        font-size: 1rem !important;
    }

    .arrow-icon {
        width: 20px;
		height: 20px;
        margin: 0 auto 1rem;
    }

    /* About Cards */
    .about-cards,
    .about-cards-chi-siamo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .about-card {
        max-width: 100%;
        padding: 1.5rem;
        text-align: left;
        margin: 0;
    }

    .about-card h4 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
    }

    .about-card p {
        font-size: 0.95rem !important;
    }

    .about-card img {
        width: 35px;
        margin-bottom: 0.5rem;
    }

    /* Newsletters Section */
    .newsletters {
        padding: 40px 20px;
        flex-direction: column;
        overflow: hidden;
    }

    .newsletters-wrapper {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .newsletters-items {
        width: 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .newsletters-items img {
        max-width: 150px;
        padding: 0 !important;
    }

    .newsletters-items p {
        font-size: 1rem !important;
        padding: 0 !important;
        width: 100%;
    }

    .newsletters img {
        max-width: 100%;
        padding: 0;
        height: auto !important;
    }

    .img-newsletters {
        display: block !important;
        max-width: 250px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    /* Project Section */
    .project {
        padding: 40px 20px;
        min-height: 50vh;
    }



    .project h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    .project p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }

    .project img {
        max-width: 120px;
    }

    /* Chi Siamo Page */
    .cs-hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .chisiamohero {
        max-width: 100%;
        flex-direction: column !important;
        gap: 2rem;
        padding: 0;
        text-align: center;
    }

    .chisiamoheroimg {
        display: none;
    }

    .chisiamoherotext {
        display: flex;
        flex-direction: column !important;
        text-align: center;
        padding: 0 !important;
    }

    .chisiamoherotext h1 {
        font-size: 1.8rem !important;
    }

    .chisiamoherotext h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem;
    }

    .trow {
        flex-direction: column !important;
        gap: 1.5rem;
        padding: 1.5rem 0;
        text-align: start;
    }

    .tr1, .tr2 {
        padding: 0 !important;
        font-size: 1rem !important;
        text-align: left;
    }

    .tr2 {
        padding: 0 !important;
    }

    .people-row {
        flex-direction: column !important;
        gap: 1rem;
        align-items: center;
        text-align: start;
    }

    .people-row img {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin-top: 0.5rem;
    }

    /* Mask Section */
    .mask-section {
        padding: 40px 20px;
        min-height: auto;
    }

    .mask-bg .bg {
        clip-path: none;
    }

    .mask-content {
        padding: 2rem 0;
    }

    .mask-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    .mask-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }

    .btn-bw {
        width: 160px;
        height: 40px;
        font-size: 0.9rem;
        margin: 0 auto;
    }

    .bg1 {
        display: flex;
        flex-direction: column;
        text-align: center;	
        position: relative !important;
        background: url("./assets/sfondo1.jpg");
        background-repeat: no-repeat;
        background-size: cover;
    }

    /* Home News Grid */
    .homenews {
        padding: 40px 20px;
    }

    .nwrap {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .nwrap img {
        height: 250px;
    }

    /* Contact Form */
    .scontatti {
        padding: 40px 20px;
        min-height: 110vh;
        background-position: center;
    }

    .form-wrapper {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-radius: 15px;
    }

    .form-cont {
        min-width: 100%;
        padding: 0;
    }

    .ft {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    .fs {
        font-size: 0.9rem !important;
    }

    .formw {
        padding: 0;
    }

    .form-img {
        display: none;
    }

    .inputText,
    .inputSelect,
    .inputTextarea {
        font-size: 14px;
        padding: 12px 16px;
    }

    .inputTextarea {
        min-height: 120px;
    }

    .wpcf7-submit {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Services Grid - Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "c1"
            "c2"
            "c3"
            "c4"
            "c5"
            "c6"
            "c7"
            "c8"
            "c9";
        gap: 15px;
        padding: 20px 0 !important;
    }

    .card1, .card2, .card3, .card4, 
    .card5, .card6, .card7, .card9 {
        height: 200px !important;
        min-height: 200px !important;
    }

    .card8 {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .card81 {
        height: 200px !important;
    }

    .service-hero {
        min-height: auto;
        padding: 40px 15px;
    }

    .service-hero h1 {
        font-size: 2rem !important;
    }

    .service-row,
    .service-row-reverse {
        flex-direction: column;
        text-align: left;
        padding: 0;
        margin-bottom: 40px;
        gap: 30px;
    }

    .service-text h2 {
        font-size: 1.6rem !important;
        text-align: left;
        margin-bottom: 15px;
    }

    .service-text {
        max-width: 100%;
        text-align: left;
    }

    .service-text p {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    .service-image {
        width: 100%;
    }

    .service-image img {
        max-width: 100%;
        height: 250px;
        margin-bottom: 0;
    }

    .service-divider {
        margin: 30px 0;
    }

    /* Additional Mobile Fixes */
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix any overflow issues */
    .content-row,
    .about-row,
    .service-row,
    .service-row-reverse {
        overflow: hidden;
    }

    /* Service Detail Section */
    .service-detail-section {
        padding: 40px 0;
    }

    .service-block {
        padding: 0;
    }

    /* Project CTA Section */
    .project-cta-section {
        padding: 40px 20px;
    }

    .project-cta-section .project {
        padding: 40px 20px;
    }

    /* Ensure proper spacing on all sections */
    section {
        overflow-x: hidden;
    }

    /* Fix card heights on mobile */
    .card {
        min-height: auto !important;
    }

    /* Newsletter section improvements */
    .newsletters {
        overflow: hidden;
    }

    /* Chi Siamo adjustments */
    .cs-t {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }

    /* Make sure all text is readable */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Small Mobile Devices (iPhone SE, etc) */
@media (max-width: 375px) {
    .loader-logo {
        max-width: 150px;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    .header-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-menu-wrapper {
        width: 85%;
        padding: 70px 20px 20px;
    }

    .service-hero h1 {
        font-size: 1.6rem !important;
    }

    .service-hero h5 {
        font-size: 0.9rem !important;
    }

    .about-card {
        padding: 1rem;
    }

    .ft {
        font-size: 1.5rem !important;
    }
}

/* Tablet Breakpoint */
@media (min-width: 781px) and (max-width: 1024px) {
    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2.2em;
    }

    .container {
        padding: 0 40px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero {
        padding: 60px 40px;
    }

    .about-section {
        padding: 60px 40px;
    }

    .about-cards,
    .about-cards-chi-siamo {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .newsletters {
        overflow: hidden;
    }

    .newsletters-wrapper {
        gap: 2rem;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .img-newsletters {
        display: block !important;
        max-width: 280px;
        width: 100%;
        height: auto;
    }

    .chisiamohero {
        gap: 2rem;
    }

    .mask-bg .bg {
        clip-path: none;
    }

    .nwrap {
        grid-template-columns:1fr 1fr;
    }

    .form-wrapper {
        padding: 2rem;
        flex-wrap: wrap;
    }

    .form-cont,
    .form-img {
        min-width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Service sections on tablet */
    .service-row,
    .service-row-reverse {
        gap: 30px;
    }

    .service-text h2 {
        font-size: 2rem;
    }

    .service-image img {
        height: 300px;
    }

    /* Header adjustments */
    .header-container {
        padding: 0 30px;
    }

    .main-navigation ul {
        gap: 1.5rem;
    }

    .main-navigation a {
        font-size: 0.95rem;
    }
}

/* Large Tablet/Small Desktop */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 1200px;
    }

    .services-grid {
        gap: 20px;
    }

    .nwrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 726px) {
	.content-row{
	flex-wrap: wrap;
}
}









