
/* BASE RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  padding-top: 100px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #fff;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* effetto ombra leggero, opzionale */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 40px;
}
.logo img {
  height: 60px;
}
.main-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
.main-menu a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.lang-switcher a {
  margin-left: 15px;
  font-size: 0.85rem;
  color: #888;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #003366;
  cursor: pointer;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-track img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}
.carousel-track img.active {
  opacity: 1;
  z-index: 1;
}
.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* CTA */
.section-cta {
  background: #003366;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.cta-title {
  font-size: 2rem;
  margin-bottom: 10px;
}
.cta-subtitle {
  font-size: 1.1rem;
}
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
}
.btn-yellow {
  background: #ffcc00;
  color: #003366;
}

/* CHI SIAMO */
.section-intro {
  background: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
}
.section-intro p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  color: #333;
}

/* NEWS */
.section-news {
  padding: 60px 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.news-item {
  border-top: 4px solid #003366;
  padding: 20px;
  background: #f9f9f9;
}
.news-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* SETTORI */
.section-sectors {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}
.section-sectors .section-title {
  font-size: 1.8rem;
  margin-bottom: 50px;
  color: #003366;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.sector-card {
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}
.sector-card h3 {
  margin: 15px 0 8px;
  color: #003366;
  font-size: 1.1rem;
}
.sector-card p {
  font-size: 0.9rem;
  color: #444;
}
.circle-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* FOOTER */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
  font-size: 0.9rem;
  text-align: center;
}
.footer-links a {
  color: #aaa;
  margin: 0 10px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-copy {
  margin-top: 20px;
}

/* CERTIFICAZIONI SECTION */
.section-certificazioni {
  background-color: #f2f2f2;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  border-top: 1px solid #ddd;
}
.section-certificazioni .cert-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #003366;
  font-weight: 600;
}
.cert-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cert-logos img {
  height: 40px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.cert-logos img:hover {
  opacity: 1;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f1f1f1;
  color: #333;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
}
.cookie-banner a {
  color: #003366;
  text-decoration: underline;
}
.cookie-btn {
  background: #003366;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-btn:hover {
  background: #002244;
}

/* RESPONSIVE – TABLET + MOBILE */
@media (max-width: 1024px) {
  .header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 20px;
    position: relative;
  }

  .logo img {
    height: 50px;
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .lang-switcher {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #003366;
    cursor: pointer;
    margin: 0;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 998;
    border-top: 1px solid #ddd;
  }

  .main-menu.active {
    display: flex;
  }

  .main-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 20px;
  }

  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
