/* Font personalizzato */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  color: #fff;
}

/* Contenitore principale per le colonne */
.main-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
}

/* Contenitore centrale */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: #1c1c1c;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 60px;
  margin-right: 10px;
}

header h1 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Navbar */
.custom-navbar {
  background: #111;
  border-bottom: 2px solid #C2B280;
  box-shadow: 0 0 15px rgba(194, 178, 128, 0.5);
}

.navbar-nav .nav-link {
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  color: #fff;
}

.navbar-nav .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #C2B280;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1c1c1c;
  padding: 10px;
  border-radius: 4px;
  min-width: 150px;
  z-index: 1000;
}

.dropdown-menu li {
  margin: 5px 0;
}

.dropdown-menu a {
  display: block;
  padding: 8px;
  background: #333;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
}

.dropdown-menu a:hover {
  background: #ff4500;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Sezione Hero (stile A) */
.hero {
  background: linear-gradient(135deg, #222, #111);
  padding: 100px 0;
  text-align: center;
}

.hero-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 8px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ff4500;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ccc;
}

/* Sezione Hero (stile B) */
.hero-section {
  height: 100vh;
  background: url('hero-bg.jpg') no-repeat center center/cover;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Bottoni */
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 25px;
  background: #ff4500;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #ff6347;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #ff4500;
}

.btn-secondary:hover {
  background: #ff4500;
}

/* Sezione About */
.about {
  background: #111;
  padding: 60px 0;
}

.about h2,
.about h3 {
  color: #ff4500;
  margin-bottom: 15px;
}

.about p {
  margin-bottom: 20px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

/* Sezione Features */
.features {
  background: #111;
  padding: 60px 0;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #ff4500;
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
}

.feature-list li {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.feature-list li:hover {
  transform: translateY(-5px);
}

.icon {
  font-size: 2rem;
  color: #ff4500;
}

.feature-text h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-text p {
  color: #ccc;
  font-size: 1rem;
}

/* Footer per il tag <footer> (stile A) */
footer {
  background: #1c1c1c;
  padding: 20px 0;
  border-top: 1px solid #333;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: #ccc;
}

footer a {
  color: #ff4500;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ff6347;
}

/* Footer per .footer (stile B) */
.footer {
  background-color: #111;
  border-top: 2px solid #C2B280;
  box-shadow: inset 0 0 15px rgba(194, 178, 128, 0.5);
  text-align: center;
  padding: 10px;
  color: #aaa;
}

/* Forum Layout (stile B) */
.forum-container {
  width: 80%;
  max-width: 1200px;
  background: #222;
  border: 2px solid #C2B280;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
  padding: 20px;
}

.category {
  padding: 10px;
  background: #333;
  border-radius: 8px;
}

.category-title {
  font-size: 1.5rem;
  color: #C2B280;
  margin-bottom: 10px;
}

.list-group-item {
  background: #444;
  border: none;
  color: #fff;
  transition: background 0.3s;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 5px;
}

.list-group-item:hover {
  background: #555;
}

/* Spoiler Template (stile B) */
#spoiler-content {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: #333;
  border-radius: 5px;
  color: #fff;
}

#spoiler-link {
  color: #C2B280;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

/* User Box (merge di entrambi i file) */
.user-box {
  width: 250px;
  background: #333;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 20px 20px 20px 0;
}

.user-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.user-box strong {
  display: block;
  margin: 10px 0;
  font-size: 1.2rem;
}

.user-box .tags {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

/* Regole per i tag utente (stile B) */
.tags .tag {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  color: #fff;
}

.tag-amm { background-color: #db5f31; }
.tag-owner { background-color: #ff4500; }
.tag-admin { background-color: #c72828; }
.tag-head { background-color: #d7df17; }
.tag-headss { background-color: #040108; }
.tag-gestore { background-color: #040108; }
.tag-dev { background-color: #6babbb; }
.tag-staff { background-color: #d7df17; }

/* Media Queries (combinati da entrambi i file) */
@media (max-width: 768px) {
  /* Header e Navbar */
  .header-container {
      flex-direction: column;
      align-items: center;
  }
  
  .nav-links {
      margin-top: 10px;
  }
  
  header h1 {
      font-size: 1.5rem;
  }
  
  /* Stile Hero (stile A) */
  .hero h2 {
      font-size: 2rem;
  }
  
  .hero p {
      font-size: 1rem;
  }
  
  /* Stile Features */
  .feature-list li {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .icon {
      margin-bottom: 10px;
  }
  
  .about, .features {
      text-align: center;
  }
  
  /* Navbar (stile B) */
  .navbar-nav {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  
  /* Hero Section (stile B) */
  .hero-section {
      height: 60vh;
  }
  
  /* Forum Layout (stile B) */
  .forum-container {
      width: 100%;
      margin: 10px;
      padding: 10px;
  }
  
  /* User Box */
  .user-box {
      width: 100%;
      margin: 10px 0;
  }
  
  .category-title {
      font-size: 1.2rem;
  }
  
  .tags .tag {
      font-size: 0.7rem;
      padding: 3px 7px;
  }
  
  .user-box strong {
      font-size: 1rem;
  }
  
  .user-box img {
      width: 80px;
      height: 80px;
  }
}

@media (max-width: 480px) {
  .navbar-nav {
      display: flex;
      flex-direction: column;
      padding: 10px 0;
  }
  
  .hero-section {
      height: 50vh;
  }
  
  .forum-container {
      width: 100%;
      padding: 5px;
  }
  
  .user-box {
      width: 100%;
      padding: 10px;
  }
  
  .user-box img {
      width: 70px;
      height: 70px;
  }
}
