* {
  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 (Sidebar a sinistra, Content a destra) */
.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);
}

.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;
}

/* Eventi e Zoom Immagine */
/* Eventi e Zoom Immagine fuori dai bordi */
.event-card {
  margin-top: 20px;
}

.event-image-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
  position: relative; /* Permette di gestire la sovrapposizione */
}

.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.25); /* Ingrandimento del 25% che esce dai bordi */
  z-index: 10; /* Fa passare l'immagine sopra al resto degli elementi */
}
/* 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%;
  }
}
