:root {
  --orange: #ff6500;
  --black: #0c0c0d;
  --white: #ffffff;
  --light: #f5f5f5;
  --text: #1d1d1f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12,12,13,.96);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6%;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo img {
  width: 64px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.logo b {
  color: var(--orange);
  font-size: 28px;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.call,
.btn {
  background: var(--orange);
  color: white;
  padding: 13px 22px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 900;
  display: inline-block;
}

.hero {
  min-height: 650px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 43%, rgba(0,0,0,.25) 100%),
    url("iem-logo-cantiere.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 70px 6%;
  color: white;
}

.hero-content {
  max-width: 680px;
}

.tag {
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
  margin: 0 0 24px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  margin: 0 0 22px;
}

.lead {
  font-size: 23px;
  line-height: 1.45;
  margin-bottom: 34px;
}

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

.secondary {
  background: transparent;
  border: 2px solid white;
}

.features {
  background: var(--orange);
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 6%;
  font-weight: 900;
  text-transform: uppercase;
}

.features div {
  padding: 26px 18px;
  border-right: 1px solid rgba(255,255,255,.35);
}

.section {
  padding: 75px 6%;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.about p {
  font-size: 18px;
  line-height: 1.7;
}

.about img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0,0,0,.16);
}

.services,
.process {
  background: var(--light);
}

.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

article,
.steps div {
  background: white;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

article h3,
.steps h3 {
  color: var(--orange);
  text-transform: uppercase;
}

article p,
.steps p {
  line-height: 1.55;
}

.steps span {
  width: 46px;
  height: 46px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.contact {
  background: var(--black);
  color: white;
  padding: 75px 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact p {
  font-size: 18px;
  line-height: 1.6;
}

.contact-box {
  border-left: 3px solid var(--orange);
  padding-left: 34px;
}

.contact-box a,
.contact-box p {
  display: block;
  color: white;
  font-size: 28px;
  text-decoration: none;
  font-weight: 900;
  margin: 18px 0;
}

.whatsapp-fixed {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 50px;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(0,0,0,.28);
  z-index: 30;
}

footer {
  background: #050505;
  color: #d9d9d9;
  padding: 24px 6%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .features,
  .about,
  .cards,
  .steps,
  .contact {
    grid-template-columns: 1fr;
  }

  .features div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.35);
  }

  footer {
    display: block;
  }
}


.gallery {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.gallery-note {
  margin-top: 20px;
  font-style: italic;
  color: #666;
}

@media (max-width: 900px) {
  .gallery-grid,
  .cards,
  .steps,
  .features,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar {
    flex-direction: column;
    gap: 15px;
  }
}


.menu-container {
  position: relative;
}

.menu-button {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 55px;
  background: white;
  min-width: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.dropdown-menu a {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.dropdown-menu a:hover {
  background: #f3f3f3;
}

.menu-container:hover .dropdown-menu {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.gallery-grid img:hover {
  transform: scale(1.03);
}


.tipologie-grid {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.tipo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  text-align: center;
}

.tipo-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.tipo-card h3 {
  margin: 0;
  padding: 18px 10px 20px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

@media (max-width: 1100px) {
  .tipologie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .tipologie-grid {
    grid-template-columns: 1fr;
  }

  .tipo-card img {
    height: 360px;
  }
}
