/* ========== Reset & Variabili ========== */
:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --white: #ffffff;
  --light: #f9f9f9;
  --dark: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== Font Professionali ========== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, .nav-brand, .hero-title, .btn, .section-title, .value-card h3, .stat-number {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== Navbar ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--green);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
}
.nav-brand span {
  color: #a5d6a7;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.nav-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: var(--green-dark);
}

/* ========== Hero ========== */
.hero {
  height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('immagini/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1rem;
}

.hero-title {
  font-size: 4rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.brand-letter {
  opacity: 0;
  animation: revealLetter 0.8s forwards;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes revealLetter {
  0% { opacity: 0; transform: translateY(30px) rotateX(-90deg); }
  70% { transform: translateY(-5px) rotateX(10deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-top: 1.5rem;
  max-width: 700px;
  text-align: center;
}

/* ========== Sezioni principali ========== */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  color: var(--green);
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

/* Servizi */
.services-section {
  background: white;
}
.services-section .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  width: 320px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}
.service-card h2 {
  margin-bottom: 1rem;
  color: var(--green);
  font-size: 1.6rem;
}
.service-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Perché sceglierci */
.values-section {
  background: white;
}
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.value-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 2rem;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.value-card:hover {
  transform: translateY(-5px);
}
.value-icon {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 1.2rem;
}
.value-card h3 {
  color: var(--green);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.value-card p {
  color: var(--dark);
  line-height: 1.6;
}

/* I nostri numeri */
.stats-section {
  background: #f5f5f5;
  text-align: center;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.stat-item {
  padding: 1.5rem;
  min-width: 200px;
}
.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--green);
  display: block;
  margin-bottom: 0.5rem;
}
.stat-item p {
  color: var(--dark);
  font-size: 1.1rem;
}

/* Clienti */
.clients-section {
  background: white;
  text-align: center;
}
.clients-section h2 {
  margin-bottom: 2rem;
  color: var(--green);
}
.clients-carousel {
  overflow: hidden;
  height: 80px;
}
.clients-track {
  display: flex;
  white-space: nowrap;
  animation: scrollClients 20s linear infinite;
  width: max-content;
}
.clients-track img {
  height: 50px;
  margin: 0 2rem;
  object-fit: contain;
}
.clients-track:hover {
  animation-play-state: paused;
}
@keyframes scrollClients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Novità + Contatti */
.news-cta-section {
  background: #f5f5f5;
}
.news-cta-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}
.news-cta-item {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: left;
}
.news-cta-item h2,
.news-cta-item h3 {
  color: var(--green);
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}
.contact-list {
  list-style: none;
}
.contact-list li {
  margin-bottom: 0.8rem;
}
.contact-list a {
  color: #a5d6a7;
  text-decoration: none;
  font-weight: bold;
}

/* CTA Finale */
.final-cta {
  background: var(--green);
  color: white;
  text-align: center;
}
.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Pulsanti */
.btn {
  display: inline-block;
  background: #a5d6a7;
  color: #1b5e20;
  border: 2px solid #81c784;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
}
.final-cta .btn {
  background: white;
  color: var(--green);
  border-color: white;
}

/* ========== Footer Professionale ========== */
.footer {
  background: #222;
  color: #ddd;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a,
.footer-col address a {
  color: #a5d6a7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover,
.footer-col address a:hover {
  color: white;
}

.footer-col address {
  font-style: normal;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: var(--green);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }
  .nav-menu.active { right: 0; }
  .nav-menu a {
    font-size: 1.4rem;
    padding: 0.8rem;
    width: 80%;
    text-align: center;
    border-radius: 8px;
  }
  .hero { height: 50vh; }
  .hero-title { font-size: 2.5rem; }
  .service-card,
  .value-card { 
    width: 100%; 
    max-width: 400px; 
  }
  .news-cta-content { gap: 1rem; }
  .clients-track { animation-duration: 25s; }
  .stats-grid { gap: 1rem; }
}