:root {
  --color-primary: #f28c28;
  --color-secondary: #f28c28;
  --color-secondary-dark: #d9740f;
  --color-text: #222;
  --color-text-soft: #555;
  --color-surface: #ffffff;
  --color-surface-muted: #f5f5f5;
  --color-border: #ededed;
  --container-width: 1200px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: var(--color-text);
  padding-top: 112px;
  overflow-x: hidden;
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: none;
}

/* CONTAINER GLOBAL */
.container {
  width: min(90%, var(--container-width));
  margin: auto;
  padding: 60px 0;
  scroll-margin-top: 140px;
}

/* BOTOES */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
}

.btn-secondary {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  margin-left: 10px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 18px 24px;
  margin-top: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(34, 34, 34, 0.08);
}

.logo {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.header nav {
  flex: 1;
  min-width: 0;
}

.header ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.header a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.3s;
}

.header nav a.active,
.header nav a:hover {
  color: var(--color-secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 80px 60px;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.55)),
    url("1.jpeg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-text {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
}

.hero p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-secondary {
  border-color: white;
  color: white;
  margin-left: 0;
}

/* TRUST */
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
  background: var(--color-surface-muted);
  padding: 40px;
  border-radius: 18px;
}

.trust h3 {
  color: var(--color-secondary);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

/* SERVIZI */
.servizi h2,
.progetti h2,
.processo h2,
.chi-siamo h2,
.contatti h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: transform 0.3s;
  background: var(--color-surface);
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
}

/* PROGETTI */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* PROCESSO */
.processo .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.steps > div {
  padding: 24px 18px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid #f0f0f0;
}

.steps h3 {
  color: var(--color-secondary);
  margin-bottom: 10px;
}

/* CHI SIAMO */
.chi-siamo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 40px;
  align-items: center;
}

.chi-siamo p {
  color: var(--color-text-soft);
}

.chi-siamo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

/* CTA */
.cta {
  text-align: center;
  background: #222;
  color: white;
  padding: 60px;
  border-radius: 18px;
}

.cta h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
}

.cta .btn-primary {
  display: inline-flex;
  margin-top: 20px;
}

/* CONTATTI */
.contatti-wrapper {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.info {
  width: 100%;
  padding: 40px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 34px rgba(34, 34, 34, 0.06);
}

.contatti-lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--color-text-soft);
  margin-bottom: 24px;
}

.contatti-card {
  padding: 20px 22px;
  margin-bottom: 16px;
  border-left: 4px solid var(--color-secondary);
  border-radius: 12px;
  background: white;
}

.contatti-card p {
  margin-bottom: 6px;
  color: var(--color-text);
}

.contatti-card a,
.contatti-card span {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  overflow-wrap: anywhere;
}

.info .btn-primary {
  display: inline-flex;
  margin-top: 12px;
}

/* FOOTER */
.footer {
  text-align: center;
  border-top: 1px solid #eee;
  padding: 20px;
  font-size: 14px;
}

@media (max-width: 1080px) {
  body {
    padding-top: 144px;
  }

  .container {
    width: min(92%, var(--container-width));
  }

  .header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header nav {
    order: 3;
    width: 100%;
  }

  .header ul {
    justify-content: flex-start;
  }

  .hero {
    padding: 72px 42px;
  }

  .processo .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 92px;
  }

  .container {
    width: min(92%, var(--container-width));
    padding: 44px 0;
    scroll-margin-top: 112px;
  }

  .header {
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
  }

  .header .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header nav {
    display: none;
    width: 100%;
    order: 4;
  }

  .header.nav-open nav {
    display: block;
  }

  .header ul {
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
  }

  .header nav a {
    display: block;
    padding: 10px 0;
  }

  .hero {
    min-height: 460px;
    padding: 56px 28px;
    border-radius: 16px;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
  }

  .hero-buttons a,
  .cta .btn-primary,
  .info .btn-primary {
    width: 100%;
  }

  .trust,
  .servizi-grid,
  .gallery,
  .processo .steps,
  .chi-siamo {
    grid-template-columns: 1fr;
  }

  .trust {
    padding: 28px 22px;
  }

  .cta,
  .info {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 86px;
  }

  .container {
    width: 94%;
    padding: 36px 0;
    scroll-margin-top: 104px;
  }

  .header {
    width: 94%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .logo {
    max-width: 180px;
    font-size: 1rem;
  }

  .hero {
    min-height: 420px;
    padding: 42px 20px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-left: 0;
  }

  .card,
  .steps > div,
  .contatti-card,
  .cta,
  .info {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gallery img,
  .chi-siamo img {
    aspect-ratio: 1 / 1;
  }
}
