/* ========== STRUTTURA BASE ========= */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background: url('../images/background.png') no-repeat center center fixed;
  background-size: cover;
  background-color: #0b0b0b;
  color: #eee;
}

.main-content {
  flex: 1 0 auto;
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== NAVIGAZIONE ========= */
.main-nav {
  background-color: #0b0b0b;
  color: #fff;
  padding: 15px 0 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links li a {
  color: #ccc;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active,
.active {
  color: #fff !important;
  font-weight: bold;
  border-bottom: 2px solid #fff;
}

/* ========== TRADUTTORE GOOGLE ========= */
.translate-bar {
  text-align: right;
  padding: 10px 20px;
  background-color: #0b0b0b;
}

#google_translate_element {
  display: inline-block;
  font-size: 0;
}

.goog-te-gadget {
  font-size: 12px !important;
  color: #fff !important;
}

.goog-te-combo {
  padding: 6px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
}

/* Dropdown menu */
.goog-te-menu-frame.skiptranslate {
  z-index: 999999 !important;
  position: absolute !important;
  top: 60px !important;
  right: 20px !important;
  left: auto !important;
  width: auto !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Nasconde il banner */
body > .goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* ========== FOOTER ========= */
.footer {
  background-color: #0b0b0b;
  color: #ddd;
  padding: 30px 20px;
  font-size: 14px;
  border-top: 1px solid #222;
  flex-shrink: 0;
}

.footer a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #fff;
}

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

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left,
.footer-right {
  flex: 1 1 300px;
}

.footer-left p,
.footer-right p {
  margin: 5px 0;
}

/* Social icons */
.social-icons {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: flex;
  gap: 15px;
}

.social-icons li {
  display: inline;
}

.social-icons a {
  padding: 5px 8px;
  background-color: #1a1a1a;
  border-radius: 4px;
  font-size: 13px;
}

/* ========== RESPONSIVE ========= */
@media (max-width: 1024px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .translate-bar {
    text-align: left;
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #222;
  }

  .main-content {
    padding: 15px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 1.2em;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .translate-bar {
    text-align: center;
  }
}