/*
Theme Name: D'Addetta Custom
Theme URI: https://daddetta.blkbrt.it
Description: Custom child theme for D'Addetta website, specialized for infrastructure and construction projects.
Version: 1.0
Author: Jack for D'Addetta
Author URI: https://daddetta.it
Text Domain: daddetta
Template: twentytwentyone
*/

body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

header {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

.logo {
  width: 150px;
  height: auto;
}

nav {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

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

nav a:hover {
  color: #d4af37; /* Gold accent color */
}

.hero-text {
  color: white;
  text-align: center;
  font-size: 3em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: auto;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

section:nth-child(even) {
  background-color: #f9f9f9;
}

section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2c3e50;
  position: relative;
  padding-bottom: 15px;
}

section h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #d4af37;
  margin: 10px auto 0;
}

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

.grid-item {
  padding: 30px;
  border: 1px solid #eaeaea;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.grid-item h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.4em;
}

.grid-item-numbers h3 {
  font-size: 2.5em;
  color: #d4af37;
  margin-bottom: 10px;
}

.grid-item-numbers p {
  font-size: 1.1em;
  color: #666;
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
}

footer p {
  margin: 5px 0;
}

/* Project archive styles */
.project-archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.project-item {
  border: 1px solid #eaeaea;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  margin-top: 0;
  color: #2c3e50;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 0.9em;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2em;
  }
  
  section {
    padding: 40px 15px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  header {
    height: 80vh;
  }
  
  nav {
    align-self: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: 1.5em;
  }
  
  section h2 {
    font-size: 1.5em;
  }
}