
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.hero {
  background-image: url('images/1-traktorki-gianni-ferrari-gtm-gsm.jpg');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
}

.overlay {
  background: rgba(0,0,0,0.65);
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero h1 {
  color: white;
  font-size: 64px;
  margin-bottom: 10px;
}

.hero p {
  color: white;
  font-size: 20px;
  margin-bottom: 40px;
}

nav {
  margin-top: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  font-size: 18px;
}

section {
  padding: 70px 0;
}

.gray {
  background: #f3f3f3;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 38px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  padding: 20px 20px 0;
}

.card p {
  padding: 0 20px 20px;
}

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

.gallery img {
  width: 100%;
  border-radius: 10px;
}

.contact {
  background: #1e1e1e;
  color: white;
  text-align: center;
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
}

@media(max-width: 768px) {
  .hero h1 {
    font-size: 42px;
  }

  nav a {
    display: inline-block;
    margin: 10px;
  }
}
