/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f7f8fa;
  color: #111;
  line-height: 1.6;
}

/* NAVBAR */

header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  width: 40px;
  filter: grayscale(100%) brightness(0);
  opacity: 0.6;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-container:hover .site-logo {
  opacity: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #000;
}

.nav-links a.active {
  color: #000;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  background: #fff;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  font-size: 1.4rem;
  color: #111;
}

/* HERO HOME */

.intro {
  text-align: center;
  max-width: 800px;
  margin: 80px auto 100px;
  padding: 0 20px;
}

.intro h1 {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.intro p {
  font-size: 1.2rem;
  color: #555;
}

.intro-sub {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  color: #777;
}

/* PROJECTS */

.projects {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.project-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  overflow: hidden;
  flex: 1 1 480px;
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 30px;
}

.card-content h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card-content p {
  color: #666;
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.cta-button:hover {
  background: #000;
}

/* BRANDS */

.brands {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 40px;
  text-align: center;
}

.brands h2 {
  margin-bottom: 50px;
  font-size: 1.6rem;
  font-weight: 600;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

/* LOGHI UNIFORMI */

/* BRANDS */

.brands {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 10px;
  text-align: center;
}

.brands h2 {
  margin-bottom: 50px;
  font-size: 1.6rem;
  font-weight: 600;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
}

/* BOX UNIFORME PER OGNI LOGO */

.brands-row img {
  width: 140px;
  height: 60px;
  object-fit: contain;

  filter: grayscale(100%) brightness(0);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.brands-row img:hover {
  opacity: 1;
}

/* ABOUT PAGE */

.about-container {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
}

.about-hero {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.about-avatar {
  width: 180px;
  border-radius: 16px;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.about-lead {
  font-weight: 500;
  margin-bottom: 16px;
  color: #333;
}

.about-section {
  margin-bottom: 80px;
}

.about-section h2 {
  font-size: 1.6rem;
  margin-bottom: 40px;
}

.timeline-item {
  margin-bottom: 40px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.timeline-role {
  font-weight: 600;
}

.timeline-company {
  color: #666;
  font-size: 0.95rem;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: #777;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .case-gallery {
    display: grid;
    grid-template-columns: 1fr !important;  
    gap: 16px;
  }

  .case-gallery.two,
  .case-gallery.three {
    grid-template-columns: 1fr !important;
  }

  .case-gallery img {
    width: 100%;
    max-width: 100%;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .projects {
    padding: 0 20px;
  }

  .navbar {
    padding: 20px;
  }

  .about-hero {
    flex-direction: column;
    text-align: center;
  }

}

/* CONTACT PAGE */

.contact-container {
  max-width: 700px;
  margin: 100px auto 120px;
  padding: 0 20px;
}

.contact-hero {
  text-align: center;
  margin-bottom: 60px;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-hero p {
  color: #555;
  max-width: 500px;
  margin: 0 auto;
}

/* CONTACT CARD */

.contact-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

/* FORM */

.form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  font-size: 1rem;
  transition: border 0.2s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #111;
}

.cta-button {
  background: #111;
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.cta-button:hover {
  background: #000;
}

/* CASE STUDY */

.case-container {
  max-width: 900px;
  margin: 100px auto 120px;
  padding: 0 20px;
}

.case-hero {
  margin-bottom: 80px;
}

.case-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.case-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
}

.case-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #444;
}

.case-section {
  margin-bottom: 80px;
}

.case-section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.case-section p {
  color: #555;
  max-width: 900px;
}

.case-section ul {
  padding-left: 20px;
  color: #555;
}

.case-image img {
  width: 100%;
  margin-top: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.back-link {
  display: inline-block;
  margin-bottom: 60px;
  color: #777;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #111;
}

/* =========================
   CASE STUDY IMAGE SYSTEM
   ========================= */

.case-gallery {
  display: grid;
  gap: 40px;
  margin-top: 28px;
  justify-content: start;
}

/* 1 immagine */
.case-gallery:not(.two):not(.three) {
  grid-template-columns: 260px;
}

/* 2 immagini */
.case-gallery.two {
  grid-template-columns: repeat(2, 260px);
}

/* 3 immagini */
.case-gallery.three {
  grid-template-columns: repeat(3, 180px);
}

.case-gallery img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}


