#calendario:before {
  content: ""; 
  display: block; 
  height: 100px; 
  margin-top: -100px; 
}

h1, h2, h3 {
    text-align: left;
    margin-top: 20px;
    color: #28a745;
    font-style: italic;
  }


h1 {
    color: #198754 !important;
    
}

  .custom-div {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 30px auto;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    align-items: center;
    transition: all 0.3s ease;
  }

  .custom-div img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
  }

  .custom-div:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background-color: #ebebeb;
  }

  .text-content {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    margin-top: 10px;
  }

  .custom-div p {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.6;
    font-weight: bold;
    max-width: 700px;
    font-style: italic;

  }

/*SHOW*/
.team-member {
  background: linear-gradient(to bottom, #e6ffe6, #b3ffb3);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Stile immagine rotonda */
.card-img-top {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* Spaziatura e testo */
.ms-3 h5 {
  color: #333;
  margin-bottom: 5px;
}

.ms-3 p {
  font-size: 0.9em;
  color: #555;
}

.esp {
  margin-top: 100px;
}

.attiva {
  background-color: #ffffff;
}

.nonAttiva {
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);

}

.match-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.next-match {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.next-match:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 10px;
  gap: 10px; /*...*/
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.team {
  max-width: 45%;
  display: flex;
  flex-direction: column; 
  align-items: center;
}


.team-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

.team-name {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  white-space: normal;     
  word-wrap: break-word;   
  overflow-wrap: break-word; 
}


.vs {
  font-size: 2rem;  
  font-weight: bold;
  color: #333;
  position: absolute;
  left: 50%;
  white-space: nowrap;
}


.left-team, .right-team {
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.match-info {
  margin-top: 1rem;
  font-size: 1rem;
}

.match-date, .match-time {
  margin: 0;
  font-weight: 800;
  color: #555;
}

.match-header {
  font-weight: bold;
}

#next-m {
  width: 100%;
}

h2 a img{
  vertical-align: unset;
  float: right;
  height: 30px;
}


.next-match {
  background: linear-gradient(to bottom, #fffbdd, #fffa9f);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.match-header h2 {
  font-size: 2rem;
  font-weight: bold;
  color: orange;
  text-align: center;
}

.highlight-text {
  color: #007bff;
}

.countdown {
  font-size: 2.5rem;
  font-weight: bold;
  color: #28a745;
}

.match-info p {
  font-size: 1.1rem;
  color: #333;
}

.match-info a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-link:hover {
  color: #0056b3;
}

.location-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.match-header p img {
  float: right;
}

.title {
  align-items: center;
}

@media (min-width: 992px) {
  .row-cols-lg-3 > * {
    flex: 0 0 auto;
    width: 50%;  
  }
}

@media (max-width: 768px) {
  .teams {
      flex-direction: column;
      text-align: center;
      padding: 10px;
  }

  .vs {
      position: static;
      margin: 10px 0;
      font-size: 1.2rem;
  }

  .left-team, .right-team {
      width: 100%;
      text-align: center;
      margin-bottom: 10px;
  }

  .team-logo {
      max-width: 150px;
      margin-bottom: 7px;
  }

  .team-name {
      font-size: 1rem;
  }

  #next-m {
    padding-left: 0px;
    padding-right: 0px;
    }

    div.container:nth-child(3) {
      padding-left: 0px;
      padding-right: 0px;
      }
}

@media (max-width: 576px) {

  .countdown {
    font-size: 2rem;
  }

  .match-info p {
    font-size: 1rem;
  }
}
