  /* Reset e stili base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f5f5f5; /* Sostituito il nero con grigio chiaro */
  color: #333;
}

/* Header */
h1 {
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: #fd8204;
  white-space: nowrap;
  overflow: visible;
  max-width: 100%;
  padding: 0 10px;
  text-align: center;
}

.subtitle {
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #046382;
  letter-spacing: 1px;
  text-align: center;
}

/* Layout principale */
.container {
  display: flex;
  min-height: 100vh; /* Cambiato da height a min-height */
  width: 100%;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(90deg, #fdf033 0%, #03c6fc 100%);
  color: #000;
  width: 220px;
  height: 100vh; /* Imposta l'altezza a 100% della finestra */
  position: fixed; /* Rende la sidebar fissa */
  top: 0;
  left: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1000; /* Assicurati che la sidebar sia sopra al contenuto */
}


.sidebar h2 {
  margin-bottom: 30px;
  font-weight: normal;
}

.sidebar nav a {
  color: #000;
  text-decoration: none;
  padding: 12px 10px;
  display: block;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.sidebar nav a:hover {
  background: linear-gradient(90deg, #968e1e 0%, #00627e 100%);
}

.content {
  margin-left: 220px; /* Aggiungi spazio a sinistra per non sovrapporre il contenuto */

  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: linear-gradient(270deg, #fdf033 0%, #03c6fc 100%);
  transition: margin-left 0.3s ease;
}
/* Immagini */
.images-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 1.5rem;
}

.images-row img {
  height: 160px;
  width: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.images-row img:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Pulsanti */
.center-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1050px;
  flex-direction: column;
  gap: 0.1rem;
  margin: 1rem auto;
  padding: 0.1rem;
}

.btn {
  display: block;
  max-width: 1050px;
  width: 110%;
  padding: 1.15rem 0;
  margin: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  color: white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: #fd8204;
}

.btn-primary:hover {
  background-color: #e56d00;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: #046382;
}

.btn-secondary:hover {
  background-color: #034d5a;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .content {
    margin-left: 0 !important; /* Elimina spazio riservato alla sidebar */
  }
}

/* Sezione news */
#news-section {
  margin-top: 2rem;
  text-align: center;
  max-width: 1050px;
  max-height: 1000px;
  margin-left: auto;
  margin-right: auto;
  background: url('https://centralemt.zapto.org/manutenzione/grafiche/texture-carta-stropicciata.jpg') center/cover, linear-gradient(135deg, #fef6e4, #fcd581);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #000000;
}

#news-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 10px;
}

/* Condivisione */
.share-section {
  text-align: center;
  margin: 2rem auto;
}

.share-buttons a {
  font-size: 1.6rem;
  padding: 0.4rem;
  border-radius: 8px;
  background: #f0f0f0;
  transition: background 0.2s;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
}

.share-buttons a:hover {
  background: #e0e0e0;
}

/* Mobile styles */
@media (max-width: 768px) {
 .container {
        flex-direction: column;
      }
      
      .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 220px;
        transform: translateX(-100%);
        z-index: 1000;
      }
      
      .sidebar.active {
        transform: translateX(0);
      }
      
      .content {
        width: 100%;
        padding: 70px 20px 20px;
      }
      
      .hamburger {
        display: flex;
      }
  
  .images-row img {
    height: 80px;
  }
  
  #news-list {
    max-height: 200px;
  }
  
  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
  }
  
  .hamburger span {
    height: 4px;
    background: #000000;
    border-radius: 2px;
    display: block;
  }
}

    /* Header in content */
    .content header {
      margin-bottom: 30px;
    }

    /* Bottone hamburger per mobile */
    .hamburger {
      display: none;
      position: fixed;
      top: 20px;
      left: 20px;
      width: 30px;
      height: 25px;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      z-index: 1001;
    }
    .hamburger span {
      height: 4px;
      background: #000000;
      border-radius: 2px;
      display: block;
    }

    /* Mobile styles */
    @media (max-width: 768px) {
        .images-row img {
    height: 80px;
    width: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;



  }
      .container {
        flex-direction: column;
      }
      .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 220px;
        transform: translateX(-100%);
        z-index: 1000;
      }
      .sidebar.active {
        transform: translateX(0);
      }
      .hamburger {
        display: flex;
      }
      .content {
        padding: 70px 20px 20px 20px;
      }
    }
    header {
  margin-bottom: 1rem; /* Ridotto lo spazio tra immagini e pulsanti */
}