body {
  background: #f2f2f2;
}

#feed {
  position: relative;
  width: 80%;
  margin: 0 auto;
  display: table;
}
@media only screen and (max-width: 600px) {
  #feed{
    width: 100%;
  }
}
#feed .item {
  position: relative;
  width: 100%;
  margin: 75px auto;
  padding: 25px;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 300px !important;
}
#feed .item .header-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip: rect(0, auto, auto, 0);
}
#feed .item .header {
  /*position: absolute;*/
  /*top: 0;*/
  /*left: 0;*/
  /*right: 0;*/
  min-height: 40px;
  background: #fff;
  z-index: 1;
  box-shadow: 0 1px #e6e6e6;
}
#feed .item .header .avatar {
  float: left;
  width: 30px;
  height: 30px;
  margin: 10px;
}
#feed .item .header .username {
  margin: 20px;
  font-weight: bold;
}
#feed .item .photo {
  position: relative;
  margin: 50px auto 0;
  background: #dceffd;
}
#feed .item .content {
  position: relative;
  padding: 10px;
  display: table;
}
#feed .item .content .likes {
  cursor: pointer;
  width: 50px;
  height: 10px;
  margin-bottom: 10px;
  border-radius: 3px;
}
#feed .item .content .comments li {
  margin: 5px 0 0;
  display: block;
}
#feed .item .content .comments li .name {
  cursor: pointer;
  width: 75px;
  height: 10px;
  max-width: 100%;
  margin-right: 5px;
  display: inline-block;
  color: #32a0f5;
}
#feed .item .content .comments li .comment {
  height: 10px;
  max-width: 100%;
  border-radius: 3px;
  display: inline-block;
}




/* 1. PULIZIA HEADER E SPAZIO SUPERIORE */
header, .navbar, .top-bar, .logo-container, #header, .header-content {
  display: none !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

/* --- FIX TITOLO CON SFONDO SFOCATO (GLASS) --- */
.promo-title {
  display: block !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 40px 20px 20px 20px !important;

  /* Effetto sfocatura sotto il titolo */
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;

  font-weight: 900 !important;
  text-transform: uppercase !important;
  color: #005c00 !important;
  border-bottom: none !important;
}

.promo-title small {
  font-size: 18px !important;
  color: #222 !important;
  display: block !important;
  font-weight: 600 !important;
  margin-top: 5px !important;
}

/* 2. SELETTORE CATEGORIE - EFFETTO GLASS CONTINUO */
.text-center {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;

  padding: 0 15px 25px 15px !important; /* Ridotto il padding top per unirlo al titolo */
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Rimuove le linee HR che interrompono la sfocatura */
.text-center hr { display: none !important; }

#dropdownMenu1, .dropdown-toggle { display: none !important; }

.dropdown-menu {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  position: static !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.dropdown-menu > li > a {
  background: white !important;
  border: 2px solid #005c00 !important;
  color: #005c00 !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease !important;
}

.dropdown-menu > li.active > a,
.dropdown-menu > li.selected > a {
  background: #005c00 !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(0, 92, 0, 0.2) !important;
}

/*!* 3. STRUTTURA CARD: CARD BIANCHE PULITE *!*/
/*#feed > div:not(#map_canvas) {*/
/*  background: white !important;*/
/*  border-radius: 20px !important;*/
/*  padding: 25px !important;*/
/*  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;*/
/*  display: flex !important;*/
/*  flex-direction: column !important;*/
/*  height: auto !important;*/
/*  min-height: 300px !important;*/
/*}*/

/*#feed > div:not(#map_canvas) * {*/
/*  position: static !important;*/
/*  transform: none !important;*/
/*  width: 100% !important;*/
/*  box-sizing: border-box !important;*/
/*}*/

/*#feed > div:not(#map_canvas) img,*/
/*#feed > div:not(#map_canvas) .marker-icon {*/
/*  width: 30px !important;*/
/*  height: 30px !important;*/
/*  margin-bottom: 10px !important;*/
/*  display: block !important;*/
/*}*/

/*!* NOME STRUTTURA *!*/
/*#feed h4, #feed h4 a, #feed h4 span {*/
/*  font-size: 18px !important;*/
/*  font-weight: 900 !important;*/
/*  color: #111 !important;*/
/*  line-height: 1.3 !important;*/
/*  margin: 0 0 20px 0 !important;*/
/*  padding-bottom: 10px !important;*/
/*  border-bottom: 2px solid #f0f0f0 !important;*/
/*  display: block !important;*/
/*}*/

/* ETICHETTE AZZURRE */
[class*="col-"] > b, label {
  color: #008cff !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  margin-top: 15px !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* BADGE GRIGI */
.form-control-static,
span[id*="MainContent"],
.comment,
[class*="col-"] > span:not(:first-child) {
  background: #f4f4f4 !important;
  border-radius: 10px !important;
  padding: 12px 15px !important;
  font-size: 14px !important;
  color: #333 !important;
  line-height: 1.4 !important;
  display: block !important;
  height: auto !important;
  min-height: 40px !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
}

/* 4. LAYOUT GRID E MAPPA */
#feed {
  display: grid !important;
  grid-template-columns: 1fr 1.8fr 1fr !important;
  gap: 30px !important;
  padding: 30px !important;
}

#map_canvas {
  grid-column: 2 !important;
  grid-row: 1 / 1000 !important;
  position: sticky !important;
  top: 160px !important; /* Regolato per stare sotto la barra alta */
  height: 75vh !important;
  border-radius: 25px !important;
  border: 8px solid white !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

#feed > div:nth-child(odd):not(#map_canvas) { grid-column: 1 !important; }
#feed > div:nth-child(even):not(#map_canvas) { grid-column: 3 !important; }

@media (max-width: 1100px) {
  #feed { display: flex !important; flex-direction: column !important; }
  #map_canvas { order: -1 !important; position: relative !important; top: 0 !important; height: 350px !important; margin-bottom: 20px !important; }
}