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

:root {
  --green: #3a9e6b;
  --green-dark: #217a4e;
  --green-light: #eef7f2;
  --text: #1c2b22;
  --text-soft: #5a7265;
  --border: #dce8e1;
  --white: #ffffff;
  --gray: #f9fbf9;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('sfondo.png');
  background-size: cover;
  background-position: center;
  /* Se non hai uno sfondo.png momentaneamente, mostrerà un verde scuro */
  background-color: #0f321c; 
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,35,18,0.7) 0%, rgba(15,50,28,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 720px;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

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

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 15vw, 9.5rem);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-title span {
  color: #a8e6c3;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.hero-phone {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-decoration: none;
  transition: color 0.3s;
}

.hero-phone:hover {
  color: #a8e6c3;
}

.hero-tags {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

/* Pulsante CTA */
.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background-color: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(58, 158, 107, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(58, 158, 107, 0.4);
}

/* ── Scroll reveal base ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Servizi ── */
.servizi {
  padding: 100px 0;
  background: var(--gray);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 50px;
  text-align: center;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  text-align: center;
  opacity: 0;
  transform: translateY(36px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 30px rgba(58,158,107,0.12);
  transform: translateY(-5px);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  background-color: var(--green-light);
  color: var(--green);
  border-radius: 50%;
}

.card-icon svg {
  width: 30px;
  height: 30px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Contatti ── */
.contatti {
  padding: 100px 0;
  background: var(--white);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 32px;
  align-items: stretch;
}

.info-box {
  background: var(--gray);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.info-row:first-child {
  padding-top: 0;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}

.info-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}

.info-value:hover {
  color: var(--green-dark);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

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

/* ── Footer ── */
.footer {
  background: #141f18; /* Leggermente più scuro del testo standard per maggiore contrasto */
  padding: 50px 0 40px 0;
  text-align: center;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-brand span {
  color: #a8e6c3;
}

.footer p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

.footer p:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 850px) {
  .contatti-grid {
    grid-template-columns: 1fr;
  }
  .info-box {
    padding: 40px 20px;
  }
  .map-wrapper {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .servizi-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: clamp(4rem, 20vw, 6rem);
  }
}