@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
scrollbar-width: none;
scrollbar-color: rgb(31, 30, 30) rgb(56, 56, 56);
}
body {
font-family: "Roboto", sans-serif;
color: #333;
overflow-x: hidden;
}
/* Stili per la Navbar */
.navbar {
position: fixed;
display: flex;
align-items: center;
top: 0;
left: 0;
width: 100%;
height: 70px;
background-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
padding: 0.8rem 0;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}

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

.navbar-left,
.navbar-right {
display: flex;
gap: 1.5rem;
align-items: center;
}

.navbar-center {
position: absolute;
display: flex;
align-items: center;
left: 50%;
transform: translateX(-50%);
}
.navbar-center img{
width: 80px;
}

.navbar-logo {
font-family: "Exo 2", sans-serif;
font-size: 1.2rem;
font-weight: 700;
color: #2c5530;
text-decoration: none;
transition: all 0.3s ease;


}

.navbar-logo:hover {
text-shadow: 1px 1px 3px rgba(44, 85, 48, 0.3);
}

.nav-link {
color: #333;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
position: relative;
}

.nav-link::after {
content: "";
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background-color: #2c5530;
transition: width 0.3s ease;
}

.nav-link:hover {
color: #2c5530;
}

.nav-link:hover::after {
width: 100%;
}

/* Menu Hamburger */
.hamburger-menu {
display: none;
flex-direction: column;
cursor: pointer;
z-index: 1001;
}

.bar {
width: 25px;
height: 3px;
background-color: #2c5530;
margin: 3px 0;
transition: all 0.3s ease;
}

.mobile-menu {
position: fixed; /* Cambiato da absolute a fixed */
top: -1500px; /* Cambiato da -50% a -100% per nasconderlo completamente */
right: 0;
width: 100%;
height: 80vh; /* Altezza fissa */
gap: 20px;
background-color: rgba(255, 255, 255, 0.98);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 999; /* Cambiato da -1 a 999 per posizionarlo sopra gli altri elementi */
transition: top 0.9s ease; /* Ridotto a 0.6s per una transizione più fluida */
opacity: 1; /* Cambiato da 0 a 1 */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
padding: 10px;
}

.mobile-menu.active {
top: 50px; /* Solo questa proprietà cambia */
max-height: 80vh; /* Altezza fissa */
}

.mobile-link {
color: #2c5530;
text-decoration: none;
font-size: 1.2rem;
font-weight: 600;
transition: all 0.3s ease;
border: 1px rgb(35, 95, 23) solid;
border-radius: 6px;
width: 100%;
padding: 5px;
text-align: center;
}

.mobile-link:hover {
transform: scale(1.05);
}

/* Animazione hamburger */
.hamburger-menu.active .bar:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}

.hero {
position: relative;
height: 100vh;
width: 100%;
background-image: url("../assets/hero1.jpg");
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
padding-top: 60px; /* Spazio per la navbar */
}
.hero .sardegna {

position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.hero .sardegna img {
max-width: 300px;
width: 100%;
opacity: 0.2;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.3);
}

.content {
position: relative;
text-align: center;
z-index: 10;
padding: 2rem;
max-width: 800px;
}

.title {
    font-family: "Exo 2", sans-serif;
font-size: 4.5rem;
font-weight: 700;
color: #2c5530;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
animation: fadeInDown 1.5s ease-out;
}

.subtitle {
font-size: 1.5rem;
font-weight: 300;
color: #333;
margin-bottom: 2rem;
animation: fadeIn 2s ease-out;

border-radius: 25px 0px 25px 0px;
background-color: rgba(0, 128, 0, 0.158);
}

.cta-button {
display: inline-block;
padding: 1rem 2rem;
background-color: #2c5530;
color: white;
text-decoration: none;
font-weight: 600;
border-radius: 50px;
transition: all 0.3s ease;
animation: fadeInUp 2.5s ease-out;
}

.cta-button:hover {
background-color: #1e3c21;
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Stile per il Modal */
.modal {
display: none;
position: fixed;
z-index: 100;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
transition: opacity 0.3s ease;
}

.modal.show {
display: flex;
align-items: center;
justify-content: center;
opacity: 1;
}

.modal-content {
background-color: #fff;
margin: auto;
padding: 2.5rem;
border-radius: 10px;
width: 90%;
max-width: 500px;
box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
position: relative;
transform: translateY(-50px);
opacity: 0;
transition: all 0.4s ease;
border-left: 7px rgb(73, 158, 47) solid;
border-right: 7px rgb(73, 158, 47) solid;
}

.modal.show .modal-content {
transform: translateY(0);
opacity: 1;
}

.close-button {
position: absolute;
top: 15px;
right: 20px;
font-size: 28px;
font-weight: bold;
color: #aaa;
cursor: pointer;
transition: color 0.2s;
}

.close-button:hover {
color: #2c5530;
}

.modal h2 {
font-family: "Playfair Display", serif;
color: #2c5530;
margin-bottom: 1.5rem;
font-size: 2rem;
text-align: center;
}

.modal p {
margin-bottom: 1rem;
line-height: 1.6;
text-align: center;
}

.modal-signature {
margin-top: 2rem;
font-style: italic;
color: #666;
}

/* Stili per le nuove sezioni */
.section {
padding: 5rem 0;
background-color: #fff;
}

.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}

.section-title {
font-family: "Playfair Display", serif;
font-size: 2.5rem;
color: #2c5530;
text-align: center;
margin-bottom: 3rem;
position: relative;
}

.section-title::after {
content: "";
display: block;
width: 80px;
height: 3px;
background-color: #2c5530;
margin: 0.5rem auto 0;
}

/* Stili per la sezione Chi Siamo */
.section-content {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 3rem;
}

.about-image {
flex: 1;
min-width: 300px;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
transition: transform 0.5s ease;
}

.about-image:hover {
transform: scale(1.02);
}

.about-image img {
width: 100%;
height: auto;
display: block;
transition: transform 0.8s ease;
}

.about-image:hover img {
transform: scale(1.05);
}

.about-text {
flex: 1;
min-width: 300px;
}

.about-text h3 {
font-family: "Playfair Display", serif;
color: #2c5530;
margin-bottom: 1rem;
font-size: 1.8rem;
}

.about-text p {
margin-bottom: 1.5rem;
line-height: 1.7;
color: #555;
}

.values {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-top: 2rem;
}

.value-item {
flex: 1;
min-width: 150px;
text-align: center;
padding: 1.5rem;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(17, 83, 9, 0.507);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-item i {
font-size: 2rem;
color: #2c5530;
margin-bottom: 1rem;
}

.value-item h4 {
font-family: "Playfair Display", serif;
color: #2c5530;
margin-bottom: 0.5rem;
}

.value-item p {
font-size: 0.9rem;
margin-bottom: 0;
}

/* Stili per la sezione Contatti */
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
}

.contact-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}

.contact-card {
background-color: #f9f9f9;
padding: 1.5rem;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(17, 83, 9, 0.507);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card a{
    text-decoration: none;
    color: #333;
}
.contact-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card i {
font-size: 2rem;
color: #2c5530;
margin-bottom: 1rem;
}

.contact-card h3 {
font-family: "Playfair Display", serif;
color: #2c5530;
margin-bottom: 0.5rem;
font-size: 1.3rem;
}

.contact-card p {
line-height: 1.6;
color: #555;
}

.social-links {
grid-column: 1 / -1;
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
}

.social-icon {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
background-color: #2c5530;
color: white;
border-radius: 50%;
font-size: 1.2rem;
transition: all 0.3s ease;
}

.social-icon:hover {
background-color: #1e3c21;
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-map {
border-radius: 10px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
height: 100%;
}

.contact-map iframe {
width: 100%;
height: 100%;
min-height: 400px;
border: none;
}

/* Footer */
.footer {
background-color: #172712;
color: white;
padding: 3rem 0 1rem;
}

.footer-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 2rem;
}

.footer-logo h3 {
font-family: "Exo 2", sans-serif;
font-size: 1.8rem;
margin-bottom: 0.5rem;
}

.footer-logo p {
color: #ccc;
}

.footer-links {
display: flex;
gap: 1.5rem;
}

.footer-link {
color: white;
text-decoration: none;
transition: color 0.3s ease;
}

.footer-link:hover {
color: #ccc;
}

.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: #ccc;
font-size: 0.9rem;
}
.footer-bottom a{
text-decoration: none;
color: rgb(165, 165, 164);
}

/* Animazioni */
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* Media Queries per Responsive */
@media (max-width: 992px) {
.contact-grid {
grid-template-columns: 1fr;
}

.contact-info {
order: 2;
}

.contact-map {
order: 1;
margin-bottom: 2rem;
}
}

@media (max-width: 768px) {
.navbar-left,
.navbar-right {
display: none;
}

.hamburger-menu {
display: flex;
}

.navbar-center {
position: relative;
left: 0;
transform: none;
}

.navbar-container {
justify-content: space-between;
padding: 0 1rem;
}

.title {
font-size: 3rem;
}

.subtitle {
font-size: 1.2rem;
}

.section {
padding: 3rem 0;
}

.section-title {
font-size: 2rem;
}

.about-image,
.about-text {
flex: 100%;
}

.modal-content {
padding: 1.5rem;
}

.modal h2 {
font-size: 1.7rem;
}

.footer-content {
flex-direction: column;
gap: 1.5rem;
}

.footer-links {
justify-content: center;
}
}

@media (max-width: 480px) {
.title {
font-size: 2.5rem;
}

.subtitle {
font-size: 1rem;
}

.cta-button {
padding: 0.8rem 1.6rem;
}

.section-title {
font-size: 1.8rem;
}

.values {
flex-direction: column;
}

.modal-content {
padding: 1.2rem;
}

.modal h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
}
