/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  background-color: #faf8f4;
  color: #2f2f2f;
  line-height: 1.7;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Navbar --- */
.navbar {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 110px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0.8em 0;
}

.logo img {
  height: 85px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2em;
}

.nav-links a {
  text-decoration: none;
  color: #2f2f2f;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

@media (min-width: 1025px) {
  .nav-links a {
    font-size: 20px;
    letter-spacing: 0.4px;
  }
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #8BAC55;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #8BAC55;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #40513B;
  transition: transform 0.3s ease;
}

.nav-toggle.open {
  transform: rotate(90deg);
}

/* --- Mobile Navbar --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 110px; /* below navbar */
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5em 0;
    gap: 1.2em;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .navbar .container {
    padding: 0 1em;
  }

  .logo img {
    height: 70px;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  min-height: 100vh;
  background: linear-gradient(rgba(64,81,59,0.25), rgba(64,81,59,0.45)),
              url('../assets/images/federico-respini.jpg') center center / cover no-repeat fixed;
}

.hero-content {
  max-width: 1000px;
  padding: 0 1.5rem;
  z-index: 2;
  animation: fadeInUp 1.2s ease both;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8em, 3vw, 3em);
  margin-bottom: 1em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn {
  background-color: #8BAC55;
  color: #fff;
  padding: 0.9em 1.8em;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  background-color: #769843;
  transform: translateY(-2px);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
    background-position: center;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-position: center top;
  }
  .hero h2 {
    font-size: 1.8em;
  }
}

/* --- About --- */
.section {
  padding: 5em 0;
}

.section h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: #40513B;
  margin-bottom: 0.5em;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15em;
  color: #555;
}

.about-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
}

.about-logo img {
  width: 160px;
  height: auto;
}

/* --- Partners --- */
.partners {
  background-color: #fff;
  text-align: center;
  padding: 5em 0;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  max-width: 1400px;
  margin: 0 auto 2em;
}

.partner-grid a {
  flex: 0 1 calc(20% - 2em);
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e3db;
  border-radius: 10px;
  padding: 1em 1.5em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  height: 120px;
}

.partner-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.partner-grid img {
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.partner-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .partner-grid a { flex: 0 1 calc(25% - 2em); }
}
@media (max-width: 992px) {
  .partner-grid a { flex: 0 1 calc(33.33% - 2em); }
}
@media (max-width: 768px) {
  .partner-grid a { flex: 0 1 calc(50% - 2em); }
}
@media (max-width: 480px) {
  .partner-grid a { flex: 0 1 100%; }
}

.partners h2 {
  margin-bottom: 2em;
}

@media (max-width: 768px) {
  .partners h2,
  .clients h2 {
    margin-bottom: 2em;
  }
}

/* --- Clients --- */
.clients {
  background-color: #f8f6f2;
  text-align: center;
  padding: 5em 0;
}

.clients h2 {
  margin-bottom: 1em;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  max-width: 1400px;
  margin: 0 auto 2em;
}

.clients-grid a {
  flex: 0 1 calc(20% - 2em);
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e3db;
  border-radius: 10px;
  padding: 1em 1.5em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  height: 120px;
}

.clients-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.clients-grid img {
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.clients-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.clients-description {
  max-width: 800px;
  margin: 1em auto 3em;
  color: #555;
  font-size: 1.1em;
  line-height: 1.6;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .clients-grid a { flex: 0 1 calc(25% - 2em); }
}
@media (max-width: 992px) {
  .clients-grid a { flex: 0 1 calc(33.33% - 2em); }
}
@media (max-width: 768px) {
  .clients-grid a { flex: 0 1 calc(50% - 2em); }
}
@media (max-width: 480px) {
  .clients-grid a { flex: 0 1 100%; }
}

/* --- Catalog --- */
.catalog {
  background-color: #fff;
  text-align: center;
}

.catalog p {
  max-width: 900px;
  margin: 0 auto 1.5em;
  color: #555;
}

.catalog-frame {
  width: 100%;
  height: 500px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5em;
}

/* Catalog Mobile Adjustments */
@media (max-width: 768px) {
  .catalog-frame {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .catalog-frame {
    height: 300px;
  }
}

/* Optional: hide PDF inline on very small screens */
@media (max-width: 420px) {
  .catalog-frame {
    display: none;
  }
  .catalog .btn {
    display: inline-block;
  }
}

/* --- Contact --- */
.contact {
  background-color: #F0EDE9;
  text-align: center;
  padding: 4em 0;
}

.contact a.contact-link {
  color: #40513B;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a.contact-link:hover {
  color: #8BAC55;
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background-color: #40513B;
  color: #fff;
  text-align: center;
  padding: 1.8em 0;
  font-size: 0.9em;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
