/* ---------- STILI BASE ---------- */
body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #1b1b1b;
  color: #f4f4f4;
  max-width: 100%;
  overflow-x: hidden; /* evita scroll orizzontale */
}

/* ---------- HEADER ---------- */
header {
  background: linear-gradient(135deg, #f2e6b6, #fff5cc, #f2e6b6);
  background-size: 400% 400%;
  animation: softGlow 12s ease infinite;
  color: #1a1a1a;
  text-align: center;
  padding: 60px 20px;
  border-bottom: 2px solid #c9a400;
}

@keyframes softGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.logo {
  width: 180px;
  display: block;
  margin: 0 auto 20px auto;
  animation: fadeIn 1.2s ease forwards;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* LOCANDINA */
.locandina {
  width: 60%;
  max-width: 500px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.7s;
}

/* ---------- NAVBAR ---------- */
nav {
  background-color: #2a0000;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* migliora menu su schermi piccoli */
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #f4f4f4;
  text-decoration: none;
  margin: 10px 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: gold;
}

/* ---------- CONTENUTO ---------- */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

button {
  background-color: gold;
  border: none;
  color: black;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 20px;
}

button:hover {
  background-color: #ffcc00;
}

a {
  color: gold;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
footer {
  background-color: #2a0000;
  color: #aaa;
  text-align: center;
  padding: 20px 0;
}

/* ---------- ANIMAZIONI ---------- */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

/* ---------- RESPONSIVE PER SMARTPHONE ---------- */
@media (max-width: 768px) {
  header {
    padding: 40px 15px;
  }

  .logo {
    width: 120px;
  }

  .locandina {
    width: 90%;
    max-width: 400px;
  }

  nav a {
    margin: 10px 10px;
    font-size: 0.9em;
  }

  section {
    padding: 40px 15px;
  }

  button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8em;
  }

  header p {
    font-size: 1em;
  }

  nav {
    flex-direction: column;
    padding: 10px 0;
  }

  nav a {
    margin: 5px 0;
  }

  .locandina {
    width: 95%;
    max-width: 300px;
  }

  section {
    padding: 30px 10px;
  }
}
/* ---------- CAST 2025 ---------- */
.cast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.cast-member {
  text-align: center;
}

.cast-member img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cast-member img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.cast-member p {
  margin-top: 10px;
  font-size: 1em;
  color: gold;
  font-weight: bold;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .cast-container {
    gap: 15px;
    padding: 20px 10px;
  }

  .cast-member p {
    font-size: 0.9em;
  }
}
/* ---------- FORM DI CONTATTO ---------- */
.contact-form {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  color: gold;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1em;
}

.contact-form button {
  align-self: flex-start;
  background-color: gold;
  color: black;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #ffcc00;
}

/* ---------- INDIRIZZO E RECAPITI ---------- */
.contact-info {
  max-width: 600px;
  margin: 40px auto;
  text-align: left;
  color: #f4f4f4;
}

.contact-info h3 {
  color: gold;
  margin-bottom: 5px;
}

.contact-info p {
  margin-bottom: 15px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .contact-form {
    padding: 0 10px;
  }
  
  .contact-info {
    padding: 0 10px;
  }
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #2a0000;
  color: gold;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-icon i {
  font-size: 1.5em;
}

.social-icon:hover {
  background-color: gold;
  color: black;
}
.tickets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.ticket {
  background-color: #2a0000;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  text-align: center;
  color: #f4f4f4;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.ticket img.locandina {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.ticket button {
  background-color: gold;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.ticket button:hover {
  background-color: #ffcc00;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
}
/* ---------- SEZIONE AREA MEMBRI ---------- */
section.membri {
  padding: 60px 20px;
  background: #2a0000;
  text-align: center;
  border-top: 2px solid gold;
  border-bottom: 2px solid gold;
}

section.membri h2 {
  font-size: 2rem;
  color: gold;
  margin-bottom: 15px;
}

section.membri p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 25px;
}

section.membri button {
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: gold;
  color: #1b0000;
  cursor: pointer;
  transition: 0.3s;
}

section.membri button:hover {
  background: #ffcc00;
  transform: scale(1.05);
}
/* Evidenzia link Area Membri */
nav .membri-link {
  background-color: gold;
  color: #2a0000;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

nav .membri-link:hover {
  background-color: #ffb400;
  color: #2a0000;
}
/* ======= CONTAINER LOGIN ELEGANTE ======= */
.login-form {
  width: 350px;
  max-width: 90%;
  margin: 80px auto;
  padding: 40px 30px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 25px;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s ease forwards;
}

/* Bagliore animato dorato */
.login-form::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 215, 0, 0.2), transparent 60%);
  transform: rotate(25deg);
  animation: shine 6s infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(25deg); }
  50% { transform: translateX(100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

/* Titolo */
.login-form h2 {
  color: gold;
  margin-bottom: 25px;
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

/* Input */
.login-form input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1em;
  outline: none;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.login-form input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px gold;
}

/* Pulsanti */
.login-form button {
  width: 100%;
  padding: 13px;
  margin-top: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, gold, #ffb400);
  color: #2a0000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.login-form button:hover {
  background: #ffcc33;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Messaggio errore */
#error-message {
  color: #ff7070;
  font-size: 0.9em;
  margin-top: 10px;
  min-height: 18px;
  position: relative;
  z-index: 1;
}
#home-btn {
  background-color: gold; /* sfondo dorato */
  color: black;           /* testo nero */
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#home-btn:hover {
  background-color: #ffcc33;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
/* --- STILI GLOBALI --- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, #1a0000, #2a0000, #000);
  color: white;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 20px;
}

header h1 {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: gold;
}

/* --- DASHBOARD --- */
.dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.dashboard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.dashboard-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  padding: 30px;
  width: 350px;
  text-align: center;
  color: white;
  animation: fadeIn 1.2s ease;
}

.dashboard-box h3 {
  margin-bottom: 20px;
  color: gold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  text-align: left;
}

.dashboard-card p {
  margin: 0 0 5px 0;
}

.dashboard-card a {
  color: gold;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.dashboard-card a:hover {
  color: #ffcc33;
  text-decoration: underline;
}

/* --- CAMBIO PASSWORD --- */
#newPassword {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 15px;
  outline: none;
}

#newPassword::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#changePasswordBtn {
  width: 100%;
  padding: 12px;
  background: gold;
  color: #2a0000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

#changePasswordBtn:hover {
  background: #ffb400;
  transform: scale(1.05);
}

#password-message {
  margin-top: 10px;
  color: #ff7070;
  min-height: 20px;
}

/* --- LOGOUT --- */
#logout-btn {
  margin-top: 30px;
  padding: 12px 25px;
  background: gold;
  color: black;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#logout-btn:hover {
  background: #ffcc33;
  transform: scale(1.05);
}

/* --- ANIMAZIONI --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 800px) {
  .dashboard-container {
    flex-direction: column;
    align-items: center;
  }
}
/* --- AUDIO GRID --- */
.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.audio-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.audio-card h3 {
  color: gold;
  margin-bottom: 15px;
  font-size: 18px;
}

.audio-card audio {
  width: 100%;
  margin-bottom: 10px;
  outline: none;
}

.audio-card a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: gold;
  color: #2a0000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.audio-card a:hover {
  background: #ffb400;
  transform: scale(1.05);
}

.audio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

/* --- HEADER e NAV --- */
nav a.active {
  color: gold;
  font-weight: bold;
}
#user-email {
  color: black; /* testo nero */
}
header h1 {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: black; /* cambia tutto in nero */
}
/* --- NAVBAR RESPONSIVA --- */
.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: gold;
  font-size: 1.8em;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2a0000;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 0;
    border-top: 2px solid gold;
    z-index: 99;
  }

  .nav-links a {
    margin: 10px 0;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
/* ---------- NAVBAR RESPONSIVA CON HAMBURGER SOLO SU MOBILE ---------- */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Bottone hamburger */
.menu-toggle {
  display: none; /* nascosto su desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: gold;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animazione X al click */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* --- SOLO MOBILE --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* visibile solo su mobile */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2a0000;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 0;
    border-top: 2px solid gold;
    z-index: 100;
  }

  .nav-links a {
    margin: 10px 0;
    text-align: center;
    font-size: 1em;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
/* ---------- NAVBAR RESPONSIVA CON HAMBURGER ---------- */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Bottone hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: gold;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animazione X */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* --- SOLO MOBILE --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2a0000;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 15px 0;
    border-top: 2px solid gold;
    z-index: 100;
  }

  .nav-links a {
    margin: 10px 0;
    text-align: center;
    font-size: 1em;
  }

  .nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(42, 0, 0, 0.85);
  border-bottom: 2px solid gold;
  z-index: 1000;
}

.foto-container {
  text-align: center; /* Centra l'immagine */
  margin: 20px 0;
}

.foto {
  width: 100%;       /* Occupa tutta la larghezza del contenitore */
  max-width: 1200px; /* Limita la dimensione massima su desktop */
  height: auto;      /* Mantiene le proporzioni */
  display: block;
  margin: 0 auto;    /* Centra l'immagine */
  border-radius: 10px; /* Opzionale: arrotonda i bordi */
}

/* ---------- STILE FORM CANDIDATURA ---------- */
.candidatura-form {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fdfdfd;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-family: 'Arial', sans-serif;
}

.candidatura-form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 25px;
}

.candidatura-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.candidatura-form input,
.candidatura-form textarea,
.candidatura-form select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.candidatura-form input:focus,
.candidatura-form textarea:focus,
.candidatura-form select:focus {
  border-color: #ff7f50;
  box-shadow: 0 0 8px rgba(255, 127, 80, 0.4);
  outline: none;
}

.candidatura-form textarea {
  resize: vertical;
  min-height: 120px;
}

.candidatura-form button {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #ff7f50;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.candidatura-form button:hover {
  background-color: #ff6433;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .candidatura-form {
    padding: 20px;
    margin: 20px;
  }
}

.candidatura-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fdfdfd;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.candidatura-section h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.candidatura-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #555;
}

.candidatura-form input,
.candidatura-form textarea,
.candidatura-form select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
}

.candidatura-form input:focus,
.candidatura-form textarea:focus,
.candidatura-form select:focus {
  border-color: #ff7f50;
  box-shadow: 0 0 8px rgba(255, 127, 80, 0.4);
  outline: none;
}

.candidatura-form textarea {
  resize: vertical;
  min-height: 120px;
}

.candidatura-form button {
  width: 100%;
  padding: 14px;
  background-color: #ff7f50;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.candidatura-form button:hover {
  background-color: #ff6433;
  transform: translateY(-2px);
}

/* ---------- STILE FORM CANDIDATURA ---------- */
.candidatura-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff8f0; /* colore chiaro di sfondo */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  font-family: 'Arial', sans-serif;
}

.candidatura-section h2 {
  text-align: center;
  color: #ff6600;
  margin-bottom: 15px;
  font-size: 2em;
}

.candidatura-section .intro {
  text-align: center;
  margin-bottom: 25px;
  color: #555;
  font-size: 1.1em;
}

.candidatura-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.candidatura-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.candidatura-form input,
.candidatura-form select,
.candidatura-form textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  transition: all 0.3s ease;
  width: 100%;
}

.candidatura-form input:focus,
.candidatura-form select:focus,
.candidatura-form textarea:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 5px rgba(255,102,0,0.5);
}

.candidatura-form button {
  background: #ff6600;
  color: #fff;
  font-size: 1.1em;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.candidatura-form button:hover {
  background: #e65c00;
  transform: scale(1.03);
}

/* Mobile responsive */
@media (max-width: 600px) {
  .candidatura-section {
    margin: 20px;
    padding: 15px;
  }
}

/* ---------- NAVBAR ---------- */
nav {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s;
  white-space: nowrap; /* evita che il testo vada a capo */
}

.nav-links a:hover {
  background-color: #ff6600;
  color: #fff;
}

.nav-links .membri-link {
  background-color: #ff6600;
  color: #fff;
  font-weight: bold;
}

.nav-links .membri-link:hover {
  background-color: #e65c00;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
}

/* ---------- NAVBAR ---------- */
nav {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #f0f0f0;
}

.membri-link {
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
}

/* ---------- HAMBURGER ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
}

/* ---------- MOBILE ---------- */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links a {
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .membri-link {
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
}

/* Bottone Area Membri con contorno giallo */
nav .membri-link {
  background-color: transparent; /* sfondo trasparente */
  color: gold;                  /* testo dorato */
  padding: 6px 14px;
  border: 2px solid gold;       /* bordo giallo */
  border-radius: 8px;
  transition: all 0.3s;
}

/* Hover: sfondo dorato, testo scuro */
nav .membri-link:hover {
  background-color: gold;
  color: #2a0000;
  transform: scale(1.05);
}

/* Bottone Area Membri con contorno giallo */
nav .membri-link {
  background-color: transparent; /* sfondo trasparente */
  color: gold;                  /* testo dorato */
  padding: 6px 14px;
  border: 2px solid gold;       /* bordo giallo */
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
  text-decoration: none;
}

/* Hover: sfondo dorato, testo scuro */
nav .membri-link:hover {
  background-color: gold;
  color: #2a0000;
  transform: scale(1.05);
}

nav .membri-link {
  background-color: gold;  /* sfondo giallo */
  color: #2a0000;          /* testo scuro */
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

nav .membri-link:hover {
  background-color: #ffb400; /* sfondo giallo più chiaro al passaggio */
  color: #2a0000;
  transform: scale(1.05);
}

nav a.membri-link {
  display: inline-block;       /* fondamentale per padding e bordi */
  background-color: gold;      /* sfondo giallo */
  color: #2a0000;              /* testo scuro */
  padding: 8px 15px;           /* spazio interno */
  border-radius: 8px;          /* angoli arrotondati */
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

nav a.membri-link:hover {
  background-color: #ffb400;   /* giallo più chiaro al passaggio */
  color: #2a0000;
  transform: scale(1.05);      /* leggero ingrandimento */
}

/* ---------- Pulsante giallo Area Membri FORZATO ---------- */
nav a.membri-link {
  display: inline-block !important;       /* forza il display */
  background-color: gold !important;      /* sfondo giallo */
  color: #2a0000 !important;              /* testo scuro */
  padding: 8px 20px !important;           /* spazio interno */
  border-radius: 8px !important;          /* angoli arrotondati */
  font-weight: bold !important;
  text-decoration: none !important;
  transition: background-color 0.3s, transform 0.3s !important;
}

nav a.membri-link:hover {
  background-color: #ffb400 !important;   /* giallo più chiaro al passaggio */
  color: #2a0000 !important;
  transform: scale(1.05) !important;      /* leggero ingrandimento */
}
















