:root {
  --accent: #333;
  --text-color: #333;
  --subtext-color: #666;
}

.progetti {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.progetti h2{
  height: 1rem;
  margin: 0;
  padding-top: 0.3rem;
}

/* FILTRI */
.progetti input[type="radio"] {
  display: none;
}

.progetti label {
  padding: 0.4em 1em 0.4em 1em;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.progetti input[type="radio"]:checked + label {
  background-color: var(--accent);
  color: #fff;
}

/* LISTA PROGETTI */
.lista-progetti{
	width: 100%;
}

.lista-progetti .progetto {
  display: none; /* default hidden for filtering */
  margin-top: 0.5rem;
  border-top: 1px solid #ddd;
  padding: 1rem 0;
}

.lista-progetti .progetto:last-child {
  border-bottom: 1px solid #ddd;
}

/* FILTRAGGIO */
#tutti:checked ~ .lista-progetti .progetto { display: block; }
#seminari:checked ~ .lista-progetti .seminario { display: block; }
#scrittura:checked ~ .lista-progetti .pubblicazione { display: block; }
#interviste:checked ~ .lista-progetti .intervista { display: block; }
#sessioni:checked ~ .lista-progetti .sessione { display: block; }

/* SUMMARY */
.progetto summary {
  display: flex;
  justify-content: space-between; /* testo a sinistra, triangolo a destra */
  align-items: center;
  cursor: pointer;
  padding-right: 1em;
}

.progetto summary::-webkit-details-marker {
  display: none;
}

.progetto summary::after {
  content: "▶";
  font-size: 1em;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.progetto[open] summary::after {
  transform: rotate(90deg);
}

/* INFO TEXT */
.info {
	width: 100%;
}
.info .data {
	vertical-align: top;
	text-align: right;
	padding: 0.1rem 1rem 0 0;
	width: 5.5em;
}

.info h3 {
  display: inline;
  margin: 0;
  font-size: 1.1rem;
}

.info .sottotitolo {
  margin: 0.2em 0 0;
  color: var(--subtext-color);
  font-size: 0.9rem;
}

/* DESCRIZIONE */
.descrizione {
  margin-top: 0.5em;
  margin-left: 6.8em;
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
}

.descrizione label {
  cursor: pointer;
  border: none;
  font-weight: 500;
  color: var(--accent);
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-left: 6em;
}
.descrizione a{
  color: var(--text-color);
  font-size:0.8rem;
}
.descrizione h4{
  font-size: 1rem;
  font-style: italic;
}
.Bibliografia {
	margin-top:1em;
	font-size: 0.8rem;
	color: var(--text);
}
.DomandaIntervista{
	font-style: italic;
	font-size: 0.9rem;
}

.video-wrapper {
  width: 75%;
  max-width: 600px;
  margin: 1rem 0;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .progetto summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .descrizione {
    margin-left: 0;
  }
}


