* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f8f9fa;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.header-main {
  background-color: #111;
  padding: 15px 0;
  text-align: center;
}

.site-logo {
  max-height: 70px;
  height: 70px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Navigazione */
.nav-main {
  background-color: #222;
  border-bottom: 3px solid #8b0000;
}

.nav-container ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-container a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.nav-container a:hover,
.nav-container a.active {
  background-color: #8b0000;
}

/* Layout a 2 colonne */
.layout-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.sidebar-left {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-content {
  flex: 3;
  background-color: #fff;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  min-width: 0;
}

.main-content h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #111;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.placeholder-text {
  font-size: 1.05rem;
  color: #444;
}

/* Sidebar: Immagine bislunga */
.side-image-wrapper {
  background-color: #fff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

.side-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Social Box */
.social-box {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.social-box h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: block;
  padding: 10px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}

.social-btn.telegram {
  background-color: #0088cc;
}

.social-btn.twitter-x {
  background-color: #000;
}

.social-btn:hover {
  opacity: 0.9;
}

/* Page Prossimi Appuntamenti: Immagine Singola */
.event-card {
  margin-top: 20px;
}

.event-image-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.event-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.event-image:hover {
  transform: scale(1.35);
  z-index: 10;
}

/* Page Attività Svolte: Galleria Immagini Appaiate */
.activity-card {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.activity-card h2 {
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 15px;
  border-left: 4px solid #8b0000;
  padding-left: 10px;
}

.gallery {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: center;
}

.gallery .event-image-wrapper {
  width: 180px !important; /* Aumentata la dimensione base */
  max-width: 180px !important;
  height: auto;
  margin: 0 !important;
  position: relative;
  flex: 0 0 180px !important;
}

.gallery .event-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.gallery .event-image:hover {
  transform: scale(2.2); /* Ingrandimento più marcato al passaggio del mouse */
  z-index: 50;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Form Contatti */
.contact-section h2 {
  margin-bottom: 15px;
  color: #111;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.privacy-group {
  margin-top: 20px;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  font-size: 0.85rem;
  color: #555;
}

.privacy-label input {
  margin-top: 3px;
}

.btn-submit {
  background-color: #8b0000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #660000;
}

/* Footer */
.footer-main {
  background-color: #111;
  color: #888;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .layout-wrapper {
    flex-direction: column;
  }
  .sidebar-left {
    max-width: 100%;
    width: 100%;
  }
  .gallery .event-image-wrapper {
    width: 140px !important;
    max-width: 140px !important;
    flex: 0 0 140px !important;
  }
}
/* Styling Modulo Prenotazione e Locandina Eventi */
.poster-wrapper {
  max-width: 260px !important; /* Limita la grandezza della locandina */
  margin: 0 auto 25px auto !important;
}

.booking-container {
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 25px;
  margin-top: 15px;
}

.booking-container h2 {
  font-size: 1.3rem;
  color: #111;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8b0000;
}

.custom-form .form-group {
  margin-bottom: 18px;
}

.custom-form .form-row {
  display: flex;
  gap: 15px;
}

.custom-form .flex-1 {
  flex: 1;
}

.custom-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
}

.custom-form .form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
}

.custom-form .form-input:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 4px rgba(139, 0, 0, 0.2);
}

.fieldset-box {
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 12px 15px;
}

.field-title {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #222;
}

.checkbox-option, .radio-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: normal !important;
  margin-bottom: 8px;
  cursor: pointer;
}

.checkbox-option:last-child, .radio-option:last-child {
  margin-bottom: 0;
}

.checkbox-option input, .radio-option input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.info-contacts {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

.info-contacts a {
  color: #8b0000;
  font-weight: bold;
  text-decoration: none;
}

.info-contacts a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .custom-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}
.activity-desc {
  margin-bottom: 12px;
  color: #444;
  font-size: 0.98rem;
  line-height: 1.5;
}
/* Styling Pop-up Privacy Modale */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #fff;
  border-radius: 6px;
  max-width: 600px;
  width: 100%;
  padding: 25px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-content h2 {
  font-size: 1.25rem;
  color: #111;
  margin-bottom: 15px;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 8px;
}

.modal-body {
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  padding-right: 10px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #8b0000;
}
/* Sezione Documenti - Layout Orizzontale */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.doc-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fcfcfc;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #8b0000;
  padding: 15px 20px;
  border-radius: 4px;
  gap: 20px;
}

.doc-info {
  flex: 1;
}

.doc-info h3 {
  font-size: 1.1rem;
  color: #111;
  margin: 0;
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.doc-meta {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  margin-right: 5px;
}

.doc-actions a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 7px 14px;
  margin: 0;
  white-space: nowrap;
}

.btn-secondary {
  background-color: #444;
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #222;
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
  .doc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .doc-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
