
/* ===== FONT BASE ===== */
body {
  background-color: #f4f4f9;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-top: 120px; /* spazio per header fisso */
}

h1, h2, .subtitle {
  font-family: 'Playfair Display', serif;
  font-weight: normal;
  line-height: 1.3;
}

form input, form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.quill-paper {
  background: #fcf9f4;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  min-height: 220px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-y: auto;
}


/* ===== CTA BUTTONS ===== */
.cta {
  background: linear-gradient(90deg, #0066FF, #8A2BE2);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.cta:hover {
  background-color: #4b17a2;
}

.cta.secondary {
  background: #444b5a;
}

.cta.secondary:hover {
  background: #2c2f3a;
}

/* ===== HEADER ===== */
.main-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #444b5a;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #5e1cc2;
}

/* ===== HERO LANDING ===== */
.hero {
  max-width: 920px;
  margin: 6rem auto 4rem;
  text-align: center;
  padding: 2rem 1rem;
}

.hero img {
  width: 500px;
  max-width: 50%;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  color: #111;
}

.subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0.2rem;
}

.button-group {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  color: #111;
  font-weight: bold;
}

/* ===== SECTIONS ===== */
.section {
  max-width: 740px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid #5e1cc2;
  padding-left: 0.6rem;
  color: #1a1a1a;
}

.box {
  background: #ffffff;
  padding: 1.6rem;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  line-height: 1.6;
  color: #333;
}

.box .icon-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.box p {
  margin: 0.8rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero img {
    width: 500px;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
    z-index: 999;
  }

  .main-nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-link {
    padding: 0.6rem 0;
    width: 100%;
  }
}

/* ===== MENU MODERATORE ===== */
.menu-moderatore {
  background: #f4f4f9;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 900;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
}

.menu-moderatore ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.menu-moderatore li {
  line-height: 1.4;
}

.menu-moderatore li a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.menu-moderatore li a:hover {
  color: #5e1cc2;
}

/* ===== RESPONSIVE MENU TOGGLE ===== */
@media (max-width: 768px) {
  .menu-moderatore {
    height: auto;
    padding: 1.5rem;
  }

  .menu-moderatore ul {
    flex-direction: column;
    gap: 0.6rem;
  }

  .main-header {
    height: auto;
    padding: 1rem;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

.toggle-menu-btn {
  display: none;
  background: #5e1cc2;
  color: white;
  border: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .toggle-menu-btn {
    display: inline-block;
  }

  .menu-moderatore .menu-list {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.5rem;
  }

  .menu-moderatore .menu-list.show {
    display: flex;
  }

  .menu-moderatore {
    z-index: 999;
    position: relative;
    margin-bottom: 1.5rem;
  }
}

/* ===== USER AREA ===== */
.utente-area {
  display: none;
}

.btn-logout {
  background-color: #5e1cc2;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-logout:hover {
  background-color: #4b17a2;
}

.header,
.footer,
.container {
  background-color: #fff;
}

@media (max-width: 768px) {
  .utente-area {
    display: block;
  }

  .utente-hide {
    display: none;
  }
}

