/* ======== STILE GENERALE – ARCHIVIO GARUFO ======== */

/* Colori principali */
:root {
  --garufo-brown: #4d2b26;
  --garufo-beige: #f8f4f2;
  --garufo-hover: #7a564d;
}

/* ======== LAYOUT CONTENUTI ======== */
#content .resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

/* Singola card */
#content .resource {
  background-color: var(--garufo-beige);
/* ======== STILE ITEM SETS TREE – ARCHIVIO GARUFO ======== */

/* Contenitore generale dell’albero */
.item-sets-tree {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.4;
  color: #4d2b26;
  margin: 2rem 1rem;
  padding-left: 0.5rem;
}

/* Ogni nodo (serie, sottoserie, fascicolo) */
.item-sets-tree li {
  list-style: none;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.2rem;
}

/* Linea verticale */
.item-sets-tree li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4d2b26;
}

/* Livello superiore (Fondo) */
.item-sets-tree > ul > li {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Livello Serie */
.item-sets-tree ul ul > li {
  font-weight: 600;
  color: #7a564d;
}

/* Livelli profondi (fascicoli e allegati) */
.item-sets-tree ul ul ul > li {
  font-weight: 400;
  color: #5e4a3e;
  font-size: 0.95rem;
}

/* Hover e collegamenti */
.item-sets-tree a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.item-sets-tree a:hover {
  color: #9e6f5d;
  text-decoration: underline;
}

/* Linee guida leggere */
.item-sets-tree ul {
  border-left: 1px solid #e0d7d2;
  margin-left: 1rem;
  padding-left: 1rem;
}

  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

#content .resource:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Titolo */
#content .resource .o-title {
  font-weight: 600;
  color: var(--garufo-brown);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sottotitolo o descrizione */
#content .resource .o-description {
  color: #6b4e44;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Miniature */
#content .resource .media-render img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

/* ======== LAYOUT COLLEZIONI ======== */
.item-sets .resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.item-sets .resource {
  background-color: var(--garufo-beige);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.item-sets .resource:hover {
  transform: scale(1.03);
}

.item-sets .resource .o-title {
  color: var(--garufo-brown);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ======== PAGINAZIONE ======== */
.pagination {
  text-align: center;
  margin-top: 1.5rem;
}

.pagination a,
.pagination span {
  background: var(--garufo-brown);
  color: #fff !important;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 0 2px;
  font-size: 0.9rem;
  text-decoration: none;
}

.pagination a:hover {
  background: var(--garufo-hover);
}

/* ======== DETTAGLI ITEM ======== */
#content .property dt {
  color: var(--garufo-brown);
  font-weight: 600;
}
/* ======== STILE ITEM SETS TREE – ARCHIVIO GARUFO ======== */

/* Contenitore generale dell’albero */
.item-sets-tree {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.4;
  color: #4d2b26;
  margin: 2rem 1rem;
  padding-left: 0.5rem;
}

/* Ogni nodo (serie, sottoserie, fascicolo) */
.item-sets-tree li {
  list-style: none;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.2rem;
}

/* Linea verticale */
.item-sets-tree li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4d2b26;
}

/* Livello superiore (Fondo) */
.item-sets-tree > ul > li {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Livello Serie */
.item-sets-tree ul ul > li {
  font-weight: 600;
  color: #7a564d;
}

/* Livelli profondi (fascicoli e allegati) */
.item-sets-tree ul ul ul > li {
  font-weight: 400;
  color: #5e4a3e;
  font-size: 0.95rem;
}

/* Hover e collegamenti */
.item-sets-tree a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.item-sets-tree a:hover {
  color: #9e6f5d;
  text-decoration: underline;
}

/* Linee guida leggere */
.item-sets-tree ul {
  border-left: 1px solid #e0d7d2;
  margin-left: 1rem;
  padding-left: 1rem;
}
/* ======== FONT UNIFICATO PER ITEM SETS TREE ======== */
.item-sets-tree,
.item-sets-tree * {
  font-family: "Open Sans", "Lato", "Helvetica Neue", Arial, sans-serif !important;
  color: var(--garufo-brown);
}
