* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Stem, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ===== NAVBAR ===== */
header {
  background: white;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: white;
}

.nav-container {
  display: flex;
  justify-content: space-between; /* logo a sinistra, menu a destra */
  align-items: center;
}

/* Menu desktop */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 20px; /* spazio tra voci */
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 10px; /* piccolo padding per hover */
  border-radius: 5px; /* serve per l'effetto hover */
  transition: all 0.2s ease-in-out;
}

.navbar ul li a:hover {
  color: white;
  background-color: #FF595A;
  text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('../realestate1.jpg'); 
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 40px;
    color: white;
    overflow: hidden;
}

/* Gray overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* gray overlay */
    z-index: 1;
}

/* Hero text */
.hero-text {
    position: relative; /* make above overlay */
    max-width: 600px;
    z-index: 2;
	margin:40px;
}

.hero-text h1 {
    font-size: 3.9rem;
    margin-bottom: 10px;
	width:100%;
}

.hero-text p {
    font-size: 2rem;
     margin-bottom: 20px;
	  margin-top: 20px;
}

/* CTA button */
.cta-btn {
    display: inline-block;
    background: linear-gradient(to right, #ff4e50, #f9d423);
    color: white;
    padding: 15px 25px;
    text-decoration:underline;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-left: 20px;
        height: auto;
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .cta-btn {
        padding: 10px 20px;
    }
}
/* About Section */
.about {
    display: flex;
    gap: 30px;
    padding: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
}

.about-text {
    flex: 1;
	margin:20px;
	gap:20px;
}
.about-text h2{
    flex: 1;
	margin:20px;
	font-size:30px;
}
.about-text p {
    flex: 1;
	margin:20px;
	color:#76766B;
	font-size:20px;
}
.contact-btn  {
    background: linear-gradient(to right, #ff4e50, #f9d423);
    border: none;
    padding: 10px 30px;
    margin-top: 30px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
	margin:20px;
	font-size:20px;
}

/* Services */
.services {
    text-align: center;
    padding: 50px 20px;
	
}
.services h2 {
    text-align:center;
    padding: 50px 20px;
	font-size:30px;
	margin-bottom:30px;
}


.service-list {
    display: flex;
    justify-content:center;
    gap: 30px;
    flex-wrap: wrap;
}
.service-list h3{
	text-align:center;
    padding: 20px 20px;
	font-size:20px;

}
.service-list p{
	text-align:center;
    padding: 20px 30px;
	font-size:20px;
	color:#76766B;
	margin-top:-10px;

}

.service {
    max-width: 300px;
    text-align: left;
}

.service img {
    width: 100%;
    border-radius: 5px;
	
}


/* Experience */
.experience {
    display: flex;
    justify-content: space-between;
    padding: 50px 20px;
    flex-wrap: wrap;
    gap: 20px;
	margin:10px;
}

.experience-text {
    font-size: 2.5rem;
    flex: 1;
	margin-left:100px;
}

.highlight-red {
    color: red;
}

.highlight-orange {
    color: orange;
}

.experience-images {
    flex: 1 1 400px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end; /* align bottoms */
    animation: fadeInRight 1s ease forwards;
}

.experience-images img:first-child {
    width: auto;
    height: 300px; /* shorter image */
    border-radius: 0px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-images img:last-child {
    width: auto;
    height: 500px; /* taller image */
    border-radius: 0px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-images img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.footer-icons {
    background-color: #f5f5f5;
    text-align: center;
    padding: 60px 20px 40px 20px;
	background:white;
}

.footer-icons .section-heading {
    color: #353539;
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.2;
}

.icons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 90px;
	background:white;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px; /* fixed width for alignment */
    text-align: center;
}

.icon-box img {
    width: 60px;   /* icon size */
    height: 60px;
    margin-bottom: 10px;
}

.icon-box p {
    font-size: 0.95rem;
    color: #353539;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .icons-container {
        gap: 25px;
    }
    
    .icon-box {
        width: 100px;
    }

    .icon-box img {
        width: 50px;
        height: 50px;
    }

    .footer-icons .section-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .icons-container {
        gap: 15px;
    }

    .icon-box {
        width: 80px;
    }

    .icon-box img {
        width: 40px;
        height: 40px;
    }

    .footer-icons .section-heading {
        font-size: 1.3rem;
    }
}


/* Footer */
.footer-divider {
    width: 100%;
    height: 300px; /* Adjust to the visible wave height */
    background-image: url('../Divider_Homepage.jpg'); /* Change path if needed */
    background-repeat: no-repeat;
    background-position: top center; /* Focus on top part */
    background-size: 100% auto; /* Keep original proportions */
}
/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    .about {
        flex-direction: column;
        text-align: center;
    }
    .experience {
        flex-direction: column;
    }
    .experience-images {
        flex-direction: column;
    }
}
