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

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;   /* light gray background */
  color: #111;
  margin: 0;
}


/* ===== 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 Section */
.hero {
    /* needed for overlay */
    position: relative; /* Needed for overlay */
    background-image: url('../chi-siamo.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Greenish overlay */
.hero::after {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* dark overlay for better text visibility */
    z-index: 1;
}

/* Hero text above overlay */
.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: white;
    font-size: 3.5rem;
    text-align: center;
}

/* About Section */
.about {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

.about-text {
    flex: 1;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    padding: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards;
}

  .about-text p {
    line-height: 1.8;
    font-weight: 400; /* Normal readable weight */
    margin-bottom: 15px;
    color: #444;
}



   .about-text button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #F55B5B; /* Match overlay color */
    border: none;
    border-radius: 8px;
    color:#e04848 ;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(245,91,91,0.3);
}
.about-text button:hover {
    background: #e04848; /* Slightly darker */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
	color:white;
}

/* Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Section */
.timeline {
  position: relative;
  width: 100%;
  margin: 50px auto;
  padding: 60px 0; /* more padding for items above/below line */
}

.timeline::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: #fff;
  z-index: 1;
}

.timeline-item {
  position: absolute;  /* position along the line */
  top: 50%;
  transform: translateY(-50%);
  width: 150px; /* width of each item */
  text-align: center;
}

.timeline-item.left {
  bottom: 60%; /* place above the line */
}

.timeline-item.right {
  top: 60%; /* place below the line */
}

.year {
  position: relative;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}
.year h1{
	font-size:50px;
	margin-bottom:80px;
	margin-top:80px;
}
.year::before {
  content: "";
  position: absolute;
  top: 39%;   /* center vertically on line */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #F55B5B;
  border: 2px solid #fff;
  border-radius: 50%;
  z-index: 2;
}
.year p{
	font-size:20px;
	margin-bottom:80px;
	margin-top:80px;
	
}
/* Footer */
.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;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
    }
    .about-image img {
        max-width: 100%;
        height: 400px;
    }
    .about-text {
        margin: 0;
        padding: 30px;
    }
    .timeline {
        flex-direction: column;
        align-items: center;
    }
}

/* Timeline Section */
.timeline {
    background-color: #f84b4b;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline .year {
    max-width: 200px;
}

.timeline h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 15px;
    font-size: 14px;
}
