/* ==========================================
   1. BASE E LAYOUT HEADER
   ========================================== */

@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap");
body {
  font-family: Comfortaa;
  margin: 0;
  background: #f4f4f4;
}

.main-header {
  background-color: #fff4b1;
  border-bottom: 4px solid #f4f4f4;
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  text-align: center;
  align-items: center; /* Centra orizzontalmente logo/titolo */
}

/* BRAND (LOGO + TITOLO) */
.nav-brand {
  color: rgb(67, 91, 247) !important;
  font-weight: bolder;
  font-size: 4rem;
  padding: 25px 0 15px 0;
  text-decoration: none !important; /* Rimuove sottolineatura desktop */
  display: flex;
  align-items: center;
  gap: 15px;
  border: none;
  outline: none;
}

/* Se hai messo un div o span dentro il link, forziamo il reset */
.nav-brand,
.nav-brand div,
.nav-brand span {
  text-decoration: none !important;
}

.header-logo {
  height: 70px;
  width: auto;
}

/* --- NAVIGAZIONE DESKTOP --- */
.bookmark-nav {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.nav-menu li a {
  display: block;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px 10px 0 0;
  margin-right: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(8px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: none;
  color: #444;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-menu li a:hover {
  filter: brightness(1.05);
  transform: translateY(4px);
}

.nav-menu li.active a {
  background-color: #f4f4f4 !important;
  transform: translateY(0px);
  padding-bottom: 18px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   2. COLORI PASTELLO
   ========================================== */
.nav-menu li.tab-index a {
  background-color: #ffd1a9;
}
.nav-menu li.tab-spaces a {
  background-color: #ffc1cc;
}
.nav-menu li.tab-activities a {
  background-color: #faa6b6;
}
.nav-menu li.tab-info a {
  background-color: #ff9aa2;
}
.nav-menu li.tab-services a {
  background-color: #d5b3ff;
}
.nav-menu li.tab-party a {
  background-color: #a8d8ff;
}
.nav-menu li.tab-contacts a {
  background-color: #beecc4;
}

/* ==========================================
   3. MOBILE
   ========================================== */
.hamburger {
  display: none;
}

@media screen and (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 15px;
  }

  .nav-brand {
    padding: 0;
    font-size: 1.7rem; /* Titolo più piccolo su mobile */
    text-decoration: none !important; /* Rimuove sottolineatura mobile */
  }

  .header-logo {
    height: 40px;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: rgb(67, 91, 247);
    margin: 5px;
    transition: 0.3s;
  }

  /* Animazione X hamburger */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgb(67, 91, 247);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease-out,
      opacity 0.3s;
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu.open {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li a {
    border-radius: 0;
    transform: translateY(0) !important;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #444 !important; /* Testo scuro per leggere bene sui colori pastello */
    display: block;
    text-align: left;
  }

  /* Riapplichiamo i colori pastello specifici anche su mobile */
  .nav-menu li.tab-index a {
    background-color: #ffd1a9 !important;
  }
  .nav-menu li.tab-spaces a {
    background-color: #ffc1cc !important;
  }
  .nav-menu li.tab-activities a {
    background-color: #faa6b6 !important;
  }
  .nav-menu li.tab-info a {
    background-color: #ff9aa2 !important;
  }
  .nav-menu li.tab-services a {
    background-color: #d5b3ff !important;
  }
  .nav-menu li.tab-party a {
    background-color: #a8d8ff !important;
  }
  .nav-menu li.tab-contacts a {
    background-color: #beecc4 !important;
  }

  /* Effetto quando la pagina è attiva nel menu mobile */
  .nav-menu li.active a {
    background-color: #f4f4f4 !important; /* Diventa bianco */
    font-weight: bold;
    border-left: 8px solid rgb(67, 91, 247); /* Una linea blu di lato per evidenziarlo */
  }
}

/* ==========================================
   4. CONTENUTO PAGINA (Index)
   ========================================== */
.content-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.hero-section {
  text-align: center;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.info-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.badge-container {
  display: flex;
  flex-wrap: wrap; /* Permette di andare a capo se lo schermo è piccolo */
  gap: 10px; /* Crea spazio tra i due badge senza sovrapposizioni */
  margin-top: 20px;
  justify-content: flex-start; /* Se vuoi i badge centrati, altrimenti usa flex-start */
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: bold;
  white-space: nowrap; /* IMPEDISCE al testo di andare a capo dentro il badge */
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.badge-green {
  background-color: #beecc4;
  color: #2d5a31;
}

.badge-blue {
  background-color: #a8d8ff;
  color: #2a4d69;
}

/* Container della singola zona */

@media screen and (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.zona-container {
  background: white;
  padding: 30px;
  border-radius: 25px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Evita che le ombre sporchino fuori */
}

.zona-info h2 {
  color: #3498db;
  font-family: "Varela Round", sans-serif;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

/* Griglia a scorrimento orizzontale */
.mini-gallery-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Nascondi barra scorrimento brutta ma mantieni funzione */
.mini-gallery-grid::-webkit-scrollbar {
  height: 6px;
}
.mini-gallery-grid::-webkit-scrollbar-thumb {
  background: #dfe6e9;
  border-radius: 10px;
}

/* La Card della Foto */
.gallery-card {
  flex: 0 0 auto;
  width: 250px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: center;

  /* Transizione fluida per l'effetto balzo */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Riempie sempre il quadrato senza deformare */
  transition: transform 0.5s ease;
}

/* --- EFFETTO HOVER (Solo su PC) --- */
@media (min-width: 1024px) {
  .gallery-card:hover {
    transform: scale(1.08); /* La foto "salta" in avanti */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 5;
  }

  .gallery-card:hover img {
    transform: scale(1.15); /* Lo zoom interno dell'immagine */
  }
}

/* Responsive Cellulari */
@media (max-width: 600px) {
  .zona-container {
    padding: 20px;
    border-radius: 15px;
  }
  .gallery-card {
    width: 200px;
    height: 200px;
  }
}

/* Parte post*/
.diario-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.diario-title {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 5px;
}
.diario-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 40px;
}

/* La Card del Post */
.post-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.post-header {
  padding: 25px 25px 15px;
}
.post-header h2 {
  margin: 5px 0 0;
  color: #34495e;
  font-size: 1.6rem;
}
.post-date {
  background: #e1f5fe;
  color: #0288d1;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
}

.post-content {
  padding: 20px 25px 30px;
  line-height: 1.6;
  color: #555;
}

/* La Galleria Scorrevole */
.post-gallery {
  display: flex;
  overflow-x: auto; /* Abilita lo scorrimento orizzontale */
  gap: 10px;
  padding: 0 15px 15px;
  scrollbar-width: thin; /* Per Firefox */
  scroll-snap-type: x mandatory; /* Effetto "calamita" sullo scorrimento */
}

.media-item {
  flex: 0 0 80%; /* Ogni foto occupa l'80% della larghezza */
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  height: 400px; /* Altezza fissa per ordine */
  background: #000;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Riempie lo spazio senza deformarsi */
}

/* Scrollbar più carina per Chrome/Safari */
.post-gallery::-webkit-scrollbar {
  height: 8px;
}
.post-gallery::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 50px 0;
  font-family: "Segoe UI", sans-serif;
}

.pag-btn {
  background-color: #3498db;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition:
    transform 0.2s,
    background 0.3s;
}

.pag-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.pag-info {
  color: #7f8c8d;
  font-weight: 600;
}
/* Container principale dell'Admin */
.admin-container {
  max-width: 800px;
  margin: 50px auto;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.admin-container h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2rem;
}

/* Stilizzazione dei gruppi di input */
.admin-form label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #edf2f7;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
  outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: #3498db;
}

/* Box per il caricamento file */
.upload-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  border: 2px dashed #cbd5e0;
}

.upload-section label {
  margin-top: 0;
}

/* Il Bottone di Pubblicazione */
.btn-publish {
  width: 100%;
  background: #2ecc71;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  transition:
    transform 0.2s,
    background 0.3s;
}

.btn-publish:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.btn-publish:active {
  transform: translateY(0);
}

/* Container per allineare i bottoni */
.form-actions {
  display: flex;
  gap: 15px; /* Spazio tra i due bottoni */
  align-items: center;
  margin-top: 30px;
}

/* Stile per il tasto Annulla */
.btn-cancel {
  flex: 1; /* Occupa lo stesso spazio del tasto pubblica (opzionale) */
  text-align: center;
  background: #f1f4f8;
  color: #7f8c8d;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #e2e8f0;
  color: #2c3e50;
}

/* Assicurati che il btn-publish abbia flex: 1 se vuoi che siano uguali */
.btn-publish {
  flex: 2; /* Il tasto pubblica rimane più grande e visibile */
  margin-top: 0; /* Rimuovi il margin-top che avevamo messo prima */
}

/* Container della Gestione */
.admin-wrapper {
  max-width: 1000px; /* Non più a tutto schermo, ma bella larga */
  margin: 40px auto; /* Centrata con spazio sopra e sotto */
  padding: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-header {
  display: flex;
  justify-content: space-between; /* Titolo a sinistra, bottone a destra */
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f2f5;
  padding-bottom: 20px;
}

/* Tabella Professionale */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.admin-table th {
  background-color: #3498db;
  color: white;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 15px;
  text-align: left;
}

/* Arrotondare gli angoli della testata blu */
.admin-table th:first-child {
  border-radius: 10px 0 0 10px;
}
.admin-table th:last-child {
  border-radius: 0 10px 10px 0;
}

.admin-table td {
  padding: 15px;
  border-bottom: 1px solid #f1f4f8;
  color: #444;
  vertical-align: middle;
}

/* Effetto riga al passaggio del mouse */
.admin-table tr:hover td {
  background-color: #fcfdfe;
}

/* Badge per il numero di media */
.media-count {
  background: #f1f4f8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #7f8c8d;
  font-weight: 600;
}

/* Bottone Elimina più carino */
.btn-delete {
  color: #e74c3c;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.btn-delete:hover {
  background: #fdf2f2;
  color: #c0392b;
}

/* Container per i messaggi di risposta */
.response-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
}

.response-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.response-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.response-text {
  color: #7f8c8d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-back {
  display: inline-block;
  padding: 12px 30px;
  background: #3498db;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.3s;
}

a.btn-back {
  color: white;
}

.btn-back:hover {
  background: #2980b9;
}

.storage-info {
  margin-bottom: 25px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.storage-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.storage-scale {
  position: relative;
  padding-bottom: 22px;
}

.progress-container {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: var(--progress, 0%);
  background-color: var(--progress-color, #2ecc71);
  transition: width 0.5s ease-in-out;
}

.progress-tick {
  position: absolute;
  top: 0;
  height: 10px;
  width: 2px;
  background: rgba(0, 0, 0, 0.25);
}

.progress-tick-label {
  position: absolute;
  top: 14px;
  font-size: 0.75rem;
  color: #888;
  transform: translateX(-50%);
  white-space: nowrap;
}

.storage-warning {
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

.delete-form {
  display: inline;
}

.delete-form .btn-delete {
  background: none;
  border: none;
  font: inherit;
}

/* --- FOOTER STYLE --- */
.main-footer {
  background-color: #2c3e50; /* Stesso colore dell'header per coerenza */
  color: #ecf0f1;
  padding: 50px 0 20px 0;
  margin-top: 50px;
  font-family: "Varela Round", sans-serif;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #fff4b1;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p {
  line-height: 1.6;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Stile per i link nei testi (Contatti, Privacy, ecc.) */
.footer-section a,
.content-wrapper a {
  color: #3498db; /* Un azzurro vivace ma professionale */
  text-decoration: underline; /* La classica sottolineatura */
  font-weight: bold; /* Li rende un po' più "pesanti" alla vista */
  transition: color 0.3s; /* Effetto morbido al passaggio del mouse */
}

/* Quando ci passi sopra col mouse */
.footer-section a:hover,
.content-wrapper a:hover {
  color: #2980b9; /* Diventa un blu un po' più scuro */
  text-decoration: none; /* La sottolineatura sparisce al passaggio (opzionale) */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
}

.footer-link:hover {
  color: white;
}

/* IL LINK FANTASMA */
.admin-ghost-link {
  color: #8f9295; /* Stesso colore dello sfondo = invisibile */
  text-decoration: none;
  display: inline-block;
}

.admin-ghost-link:hover {
  color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Si vede appena appena solo se ci passi sopra col mouse sapendo dove sia */
}

/* ==========================================
   5. HOME - HERO E INFO BOX (ex stili inline)
   ========================================== */
.hero-flex {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.hero-text h1 {
  color: rgb(67, 91, 247);
  font-size: 2.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-image img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.grid-container-spaced {
  margin-top: 40px;
}

.info-box-arancione {
  border-left-color: #ffd1a9;
}
.info-box-rosa {
  border-left-color: #ffc1cc;
}
.info-box-viola {
  border-left-color: #d5b3ff;
}

/* ==========================================
   6. FOOTER - LINK SOCIAL (ex stili inline)
   ========================================== */
.social-link {
  text-decoration: underline;
  font-weight: bold;
}

.social-link.social-whatsapp {
  color: #02ff30;
}

.social-link.social-facebook {
  color: #1877f2;
}

.social-link.social-instagram {
  color: #e4405f;
}

/* ==========================================
   7. PAGINA SPAZI - INTRO E LIGHTBOX
   ========================================== */
.intro-section {
  text-align: center;
  margin-bottom: 50px;
}

.intro-section h1 {
  color: #2c3e50;
  font-size: 2.5rem;
}

.intro-section p {
  color: #2c3e50;
  max-width: 700px;
  margin: 0 auto;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.visible {
  display: flex;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* ==========================================
   8. PAGINA SERVIZI
   ========================================== */
.hero-section h1 {
  color: rgb(67, 91, 247);
}

.info-box-viola-laboratori {
  border-left-color: #d5b3ff;
  margin-bottom: 20px;
}

.info-box-viola-laboratori h3 {
  color: #6f42c1;
  margin-top: 0;
}

.info-box-rosa-attivita h2 {
  color: #d81b60;
  margin-top: 0;
}

.styled-list {
  padding-left: 20px;
  line-height: 1.8;
}

/* ==========================================
   9. PAGINA CONTATTI
   ========================================== */
.hero-section-contatti h1 {
  color: #2c3e50;
}

.hero-section-contatti p {
  color: #7f8c8d;
}

.info-box h3 {
  color: #3498db;
  margin-top: 0;
}

.divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

.social-inline-row {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.hours-list {
  list-style: none;
  padding: 0;
  color: #555;
}

.map-box {
  padding: 0;
  overflow: hidden;
  border-left: 5px solid #3498db;
  min-height: 350px;
}

.map-box iframe {
  border: 0;
}

/* ==========================================
   10. PAGINA ATTIVITÀ (VITA AL NIDO)
   ========================================== */
.info-box-giornata-tipo {
  border-left-color: #ffc1cc;
}

.info-box-giornata-tipo h2 {
  color: #d81b60;
  margin-top: 0;
}

.giornata-tipo-intro {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.timeline-item {
  margin-bottom: 15px;
}

.zoomabile {
  cursor: pointer;
  transition: transform 0.3s;
}

.zoomabile:hover {
  transform: scale(1.02);
}

.ordine-toggle {
  display: flex;
  gap: 10px;
  justify-content: right;
  margin-bottom: 25px;
}

.ordine-btn {
  padding: 8px 18px;
  border-radius: 20px;
  background: #fff;
  color: #555;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}

.ordine-btn:hover {
  border-color: #3498db;
  color: #3498db;
}

.ordine-btn.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

/* ==========================================
   11. PAGINA LOGIN
   ========================================== */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  background: white;
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid #2c3e50;
  border-right: 5px solid #2c3e50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.btn-login {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.error-msg {
  color: #e74c3c;
  margin-bottom: 10px;
}

.login-back-link {
  color: #565656;
  text-decoration: underline;
  font-size: 1rem;
}

/* ==========================================
   12. ADMIN - NOTE UPLOAD
   ========================================== */
.upload-note {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #e67e22;
  font-weight: 500;
}

/* ==========================================
   13. UPLOAD - RISPOSTA SUCCESSO/ERRORE
   ========================================== */
.response-container.errore {
  border-top: 5px solid #e74c3c;
}

.response-title.errore {
  color: #e74c3c;
}

.response-small-note {
  font-size: 0.9rem;
  color: #999;
}

.btn-back.btn-back-errore {
  background: #e74c3c;
}

.response-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.content-wrapper a.btn-back,
.footer-section a.btn-back {
  color: white;
  text-decoration: none;
}

/* ==========================================
   14. ADMIN - BANNER DI STATO
   ========================================== */
.status-banner {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}

.status-banner.successo {
  background: #d4edda;
  color: #27632a;
  border: 1px solid #b7dfbb;
}

.status-banner.errore {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6c2;
}

/* ==========================================
   15. PAGINA PRIVACY - TESTO LEGALE
   ========================================== */
.legal-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  line-height: 1.6;
}

.legal-section {
  margin-top: 30px;
}

.legal-section:first-of-type {
  margin-top: 0;
}

/* ==========================================
   16. ATTIVITÀ - STATO VUOTO
   ========================================== */
.empty-state {
  text-align: center;
  background: white;
  border-radius: 20px;
  padding: 50px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #7f8c8d;
}

.empty-state-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.empty-state h3 {
  color: #2c3e50;
  margin-bottom: 8px;
}