/* ================================================
   Argomenti Contenuti Area (Sidebar + Main)
   ================================================ */

.argomento-content {
  width: 100%;
  padding-left: 370px;
  padding-right: 370px;
  padding-top: 40px;
  padding-bottom: 80px;
  background: #f9f9f9;
}

.content-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* ================================================
   SIDEBAR FILTRI
   ================================================ */

.argomento-sidebar {
  flex: 0 0 auto;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-box {
  padding: 24px;
  background: #fdfdfd;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  outline: 1px #dddddd solid;
  outline-offset: -1px;
  border-radius: 2px;
}

.filter-title {
  font-size: 20px;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  line-height: 28px;
  color: #3c3c3b;
  margin: 0 0 16px 0;
  padding-bottom: 16px;
  border-bottom: 1px #dddddd solid;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.filter-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px #dddddd solid;
  cursor: pointer;
  accent-color: #b9b883;
}

.filter-label {
  flex: 1;
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #3c3c3b;
  word-wrap: break-word;
}

.search-box {
  padding: 16px;
  background: #fdfdfd;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  outline: 1px #dddddd solid;
  outline-offset: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 0;
  border: none;
  background: transparent;
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #878787;
  outline: none;
}

.search-input::placeholder {
  color: #878787;
}

/* ================================================
   MAIN AREA
   ================================================ */

.argomento-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================================================
   RESET FILTERS BUTTON
   ================================================ */

.reset-filters-btn {
  align-self: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  font-family: 'Golos Text', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #3c3c3b;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reset-filters-btn:hover {
  color: #b9b883;
}

/* ================================================
   ARTICOLI GRID
   ================================================ */

.articoli-grid-container {
  width: 100%;
}

.articoli-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.articolo-item {
  padding: 16px;
  background: #fdfdfd;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  outline: 1px #dddddd solid;
  outline-offset: -1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.articolo-item:hover {
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.articolo-item.placeholder {
  opacity: 0.5;
  cursor: default;
}

.articolo-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.articolo-thumbnail {
  position: relative;
  width: 100%;
  height: 138px;
  border: 1px #dddddd solid;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
}

.articolo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.articolo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.articolo-item:hover .articolo-overlay {
  display: flex;
  opacity: 1;
}

.articolo-link {
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: #fdfdfd;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px #fdfdfd solid;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: inline-block;
}

.articolo-link:hover {
  background: #fdfdfd;
  color: #3c3c3b;
}

.articolo-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.articolo-category {
  font-family: 'Golos Text', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #878787;
  text-transform: uppercase;
  margin: 0;
}

.articolo-title {
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: #3c3c3b;
  margin: 0;
  word-wrap: break-word;
}

.articolo-title a {
  color: #3c3c3b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.articolo-title a:hover {
  color: #b9b883;
}

.articolo-date {
  font-family: 'Golos Text', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: #878787;
  margin: 0;
}

/* Hidden State */
.articolo-item.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .argomento-content {
    padding-left: 40px;
    padding-right: 40px;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .argomento-sidebar {
    width: 100%;
  }

  .articoli-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .argomento-content {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .articoli-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filter-box,
  .search-box {
    padding: 16px;
  }

  .filter-title {
    font-size: 16px;
  }
}
