:root {
  --bs-primary: #0B7A0C;
  --bs-primary-light: #e8f5e9;
  --bs-secondary: #6c757d;
  --bs-accent: #fd7e14;
  --bs-success: #28a745;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
}


body{
    font-family: "Sora", sans-serif;
    color: #171717;
      line-height: 1.5;
  }


.bg-gradient-mgw{
  background: linear-gradient(180deg, rgba(11, 122, 12, 0.62) 0%, rgba(11, 122, 12, 0.00) 100%);
}

.search-bar-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-bar {
  position: relative;
  flex: 1;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 50px;
  border: 1px solid #dee2e6;
  font-size: 1rem;
}

.search-bar svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary);
}

.search-button {
  background-color: var(--bs-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.search-button:hover {
  background-color: #146c43;
}

.pill-button {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: 0.875rem;
  font-weight: bold;
  border: 1px solid #0B7A0C;
  color: #0B7A0C;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.pill-button:hover {
  background-color: #f8f9fa;
}

.pill-button.active {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

.pill-button svg path {
  stroke: #198754; /* colore verde base */
  transition: stroke 0.3s ease;
}

.pill-buttons-speciale .pill-button:nth-last-child(1) {
  border-color: #006EA8;
  color: #006EA8;
}

.speciale:nth-last-child(1) svg path {
  stroke: #006EA8;
}

.speciale.active:nth-last-child(1) {
   background-color: #006EA8;
  color: #fff;
}

.pill-buttons-speciale .pill-button:nth-last-child(2) {
  border-color: #E74655;
  color: #E74655;
}

.speciale:nth-last-child(2) svg path {
  stroke: #E74655; 
}

.speciale.active:nth-last-child(2) {
   background-color: #E74655;
  color: #fff;
}

.pill-buttons-speciale .pill-button:nth-last-child(3) {
  border-color: #0092E0;
  color: #0092E0;
}

.speciale:nth-last-child(3) svg path {
  stroke: #0092E0; 
}

.speciale.active:nth-last-child(3) {
   background-color: #0092E0;
  color: #fff;
}

.pill-button.active svg path {
  stroke: white; 
}

.form-check-label{
  font-weight: bold;
}

.form-check-input{
  border: 1px solid var(--bs-primary);
}

.filters-container {
  border: 2px solid var(--bs-primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.border-left{
  padding: 1.5rem;
  border-left: 2px solid #0B7A0C;
}

.card-link{
  text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.equal-height > .event-card-body {
  flex-grow: 1;
}

.event-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 2px solid #146c43;
}

.event-card-body {
  flex: 1 1 auto;
}

.istituzionale{
  border: 2px solid #2FB7FF;
}

.biblio{
  border: 2px solid #E74655;
}

.nopark{
  border: 2px solid #006EA8;
}

.istituzionale .category-tag{
  color: #0092E0;
}

.biblio .category-tag{
  color: #E74655;
}

.nopark .category-tag{
  color: #006EA8;
}


.event-card:hover {
  transform: translateY(-5px);
}

.event-card-header {
  padding: 0.5rem;
}

.event-card-body {
  padding: 0.5rem 1rem;
  flex-grow: 1;
}

.event-card-footer {
  background-color: var(--bs-primary-light);
  padding: 1rem;
  border-top: 2px solid var(--bs-primary);
}

.istituzionale .event-card-footer{
  background-color: #eaf8ff;
  border-top: 2px solid #2FB7FF;
}

.biblio .event-card-footer{
  background-color: #fdecee;
  border-top: 2px solid #E74655;
}

.nopark .event-card-footer{
  background-color: #e5f0f7;
  border-top: 2px solid #006EA8;
}

.date-event{
  color: #888888;
  font-weight: bold;
  font-size: 14px;
}

.associazione-event{
  font-weight: bold;
  color: #474747;
  text-transform: uppercase;
}

.istituzionale .associazione-event{
  color: #474747;
}

.biblio .associazione-event{
  color: #474747;
}

.nopark .associazione-event{
  color: #474747;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background-color: #fff;
  color: var(--bs-primary);
  margin-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}


.category-tag svg {
  margin-right: 0.25rem;
    height: 30px;
    width: 30px;
}

.category-tag svg path {
   stroke: #146c43; 
}

.istituzionale .category-tag svg path,
.istituzionale-color svg path {
   stroke: #0092E0; 
}

.biblio .category-tag svg path,
.biblio-color svg path{
  stroke: #E74655;
}

.nopark .category-tag svg path,
.nopark-color svg path{
  stroke: #006EA8;
}



.toggle-button {
  background-color: var(--bs-primary);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.toggle-button:hover {
  background-color: #146c43;
}

.load-more-button {
  background-color: white;
  color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  margin: 2rem auto;
  display: block;
}

.load-more-button:hover {
  background-color: var(--bs-primary);
  color: white;
}

@media (max-width: 767.98px) {
  .filters-container {
    padding: 1rem;
  }
  
  .search-bar-container {
    flex-direction: column;
  }
  
  .search-button {
    width: 100%;
  }
}



/* Date styling */
.date-text {
  font-size: 1.2rem;
  color: #888888;
}

/* Category badge */
.organizzazione-badge {
  font-size: 1.2rem;
  font-weight: 600;
  color: #65A30D;
}

/* Event title and subtitle */
.event-title {
  font-weight: 700;
  color: #0B7A0C;
  margin-bottom: 0.5rem;
}

.event-subtitle {
  font-weight: 300;
  margin-bottom: 0;
}

/* Booking section */
.booking-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

/* Contact info */
.contact-info a {
  color: #495057;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: #0B7A0C;
}

/* Social share styling */
.social-share {
  display: flex;
  align-items: center;
}

.social-share h6{
  padding-right: 20px;
  font-weight: bold;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-buttons .btn {
  transition: transform 0.2s ease;
}


.social-buttons .btn:hover {
  transform: translateY(-1px);
}

.btn-circle {
    width: 40px;
    height: 40px;
    background-color: rgb(100, 163, 14);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    transition: 0.3s;
}

.btn-circle-nopark {
    background-color: #006EA8;
}

.btn-circle-biblio {
    background-color: #E74655;
}

.btn-circle-istituzionale {
    background-color: #0092E0;
}


.back-button{
    background-color: var(--bs-primary);
    color: #fff !important;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    text-decoration: none;
}


/* Location info - right column */
.location-info {
  background-color: #fff;
  padding: 1.5rem;
  border-left: 2px solid #0B7A0C;
  height: fit-content;
}

.location-title {
  color: #171717;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.address {
  line-height: 1.6;
  color: #6c757d;
}

/* Map container */
.map-container {
  height: 250px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.map-placeholder {
  height: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.map-placeholder:hover {
  background-color: #e9ecef !important;
}

/* Suggested events section */
.suggested-title {
  color: var(--bs-primary);
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Cards styling */
.suggested-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.suggested-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: #01662C;
  margin-bottom: 0.75rem;
  font-weight: bold;
}

.istituzionale .card-title{
  color: #0092E0;
}

.biblio .card-title{
  color: #E74655;
}

.nopark .card-title{
  color: #006EA8;
}

.nopark-color{
   color: #006EA8;
}

.biblio-color{
   color: #E74655;
}

.istituzionale-color{
 color: #0092E0;
}

.nopark-color-light{
   color: #474747;
}

.biblio-color-light{
   color: #474747;
}

.istituzionale-color-light{
  color: #474747;
}

.tipo-event{
   margin-bottom: 0;
   padding-top: 20px;
   font-size: 14px;
   font-weight: bold;
}

.card-text {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.municipio-card{
  color: #171717;
  font-weight: bold;
  font-size: 14px;
}

/* .istituzionale .municipio-card{
  color: #2FB7FF;
}

.biblio .municipio-card{
  color: #E74655;
}

.nopark .municipio-card{
  color: #006EA8;
} */

.via-card{
  color: #171717;
}

.rotate-315 {
  display: inline-block;
  transform: rotate(315deg);
}

.mb-150 {
  margin-bottom: 150px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
  
  .event-title {
    font-size: 1.75rem;
  }
  
  .event-subtitle {
    font-size: 1.1rem;
  }
  
  .location-info {
    margin-top: 2rem;
  }
  
  .social-buttons .btn {
    width: 100%;
    margin-right: 0 !important;
  }
  .border-left {
    padding: 0;
    border-left: 0px !important;
}
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom focus states */
.btn:focus,
.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-fluid {
  animation: fadeIn 0.6s ease-out;
}
.elem-4 {
    position: absolute;
    left: -50px;
    bottom: -150px;
    z-index: 1;
}


