/* ====================
   SEZIONE VALORI
==================== */

.valori {
  padding-block: 4rem;
  background-color: transparent;
}

.valori-subheading {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #04211A;
}

/* Griglia: 1 colonna mobile, 2 da tablet in su */
.valori-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 960px;
}

/* Ogni box */
.valori-item {
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  background: #fff; /* fallback, sovrascritto dai singoli */
}

.valori-item:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-5px);
}

/* Icona */
.valori-item svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

/* Titolo */
.valori-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Testo */
.valori-text {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Colori specifici */
.valori-item:nth-child(1) {
  background: #ffffff;
  border: 2px solid #084537
}
.valori-item:nth-child(1) .valori-title,
.valori-item:nth-child(1) .valori-text {
  color: #04211A;
}
.valori-item:nth-child(1) svg {
  fill: #c2380c;
}

.valori-item:nth-child(2) {
  background: #04211A;
  color: #ffffff;
}
.valori-item:nth-child(2) svg {
  fill: #c2380c;
}

.valori-item:nth-child(3) {
  background: #c2380c;
  color: #ffffff;
}
.valori-item:nth-child(3) svg {
  fill: #ffffff;
}

.valori-item:nth-child(4) {
  background: #084537;
  color: #ffffff;
}
.valori-item:nth-child(4) svg {
  fill: #ffffff;
}

/* Tablet e oltre: 2 colonne */
@media (min-width: 768px) {
  .valori-subheading {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .valori-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .valori-item {
    padding: 2rem 1.5rem;
  }
}
