/* HEADER EVENTO TERMINATO */

.evento_terminato_header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  z-index: 1000;
  padding-right: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* wrapper interno con max-width */
.evento_terminato_header-bar {
  max-width: 1500px;
  margin: 0 auto;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  box-sizing: border-box;
  gap: 20px;
  padding: 0 50px;
}

.evento_terminato_header-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #020202;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 90%;
}

.evento_terminato_buttons-container {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.evento_terminato_comment-group,
.evento_terminato_iscrizione-group {
  width: auto;
  height: auto;
}

.bottoni_evento_terminato {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* === Pulsante ISCRIVITI === */
.evento_terminato_iscrizione-btn {
  display: inline-flex;              /* per allineare bene testo o icone */
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  border-radius: 18px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  color: #000;
  font-weight: 600;
  text-decoration: none;            /* rimuove la sottolineatura tipica dei link */
  padding: 6px 16px;                /* leggermente aumentato per equilibrio visivo */
  background: transparent;
  transition: all 0.3s ease;
}

.evento_terminato_iscrizione-btn:hover {
  background-color: #000;
  color: #fff;
}

/* === Pulsante CONDIVIDI === */
.evento_terminato_comment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  font-size: 15px;
  line-height: 20px;
  border-radius: 18px;
  background: #008BEE;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;            /* anche qui, per i link */
  transition: background 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.evento_terminato_comment-btn:hover {
  background: #0077cc;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
  .evento_terminato_header-bar {
    height: auto;
    flex-direction: column;
    padding: 10px 30px;
    gap: 15px;
    text-align: center;
  }

  .evento_terminato_header-title {
    white-space: normal;
    max-width: 100%;
    text-transform: uppercase;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .evento_terminato_header-title {
    font-size: 16px;
    line-height: 20px;
  }

  .evento_terminato_comment-btn,
  .evento_terminato_iscrizione-btn {
    font-size: 14px;
    line-height: 19px;
  }

  .evento_terminato_buttons-container {
    justify-content: center;
  }
}

/* Adattamento per schermi medi */
@media (min-width: 700px) and (max-width: 870px),
       (min-width: 410px) and (max-width: 699px),
       (max-width: 409px) {
  .evento_terminato_header-container {
    padding-right: 0;
  }
}
