/* Home section: News + Topics */
.vetpro-home-news-topics {
  background: var(--vp-bg);
  padding: 56px 0;
}

.vetpro-home-content {
  width: min(var(--vp-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px;
  align-items: start;
  align-content: space-evenly;
}

.vetpro-home-topics {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  flex-wrap: nowrap;
}

/* News section */
.vetpro-home-news-header {
  margin-bottom: 32px;
}

.vetpro-home-news-card,
.vetpro-home-topics-card {
  background: #fdfdfd;
  border: 1px solid #dddddd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  height: 100%;
}

.vetpro-home-news-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.vetpro-home-news-header-action {
  padding: 5px 20px;
  font-size: 14px;
  font-weight: 400;
  height: 48px;
  border: 1px solid #3c3c3b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3c3c3b;
  text-decoration: none;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.vetpro-home-news-header-action:hover {
  color: #b9b883;
  border-color: #b9b883;
}

.vetpro-home-news-header-action .link-arrow {
  width: 12px;
  height: 12px;
  margin-left: 10px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
}

.vetpro-home-news-header h2 {
  margin: 0 0 12px;
  color: #3c3c3b;
  font-family: var(--vp-font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.vetpro-home-news-header p {
  margin: 0;
  color: #878787;
  font-family: var(--vp-font-body);
  font-size: 14px;
  line-height: 1.6;
}

.vetpro-home-news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.vetpro-home-news-item {
  border-bottom: 1px solid #dddddd;
  padding-bottom: 24px;
}

.vetpro-home-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item-header {
  margin-bottom: 12px;
}

.news-item-date {
  color: #878787;
  font-family: var(--vp-font-body);
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

.news-item-content {
  display: flex;
  gap: 16px;
}

.news-item-image {
  flex: 0 0 auto;
  width: 140px;
  height: 100px;
  overflow: hidden;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item-title {
  margin: 0;
  color: #3c3c3b;
  font-family: var(--vp-font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.news-item-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.news-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c3c3b;
  text-decoration: none;
  font-family: var(--vp-font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.3s ease;
}

.news-item-link:hover {
  color: #b9b883;
}

.news-item-link .link-arrow,
.link-arrow {
  width: 12px;
  height: 12px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.news-item-link:hover .link-arrow,
.vetpro-home-news-header-action:hover .link-arrow,
.vetpro-home-topic-item:hover .topic-item-arrow {
  transform: translateX(5px);
}

/* "Vedi tutte le News" sotto la lista: rimosso dalla grafica */
.vetpro-home-news-all {
  display: none;
}

.vetpro-home-news-all:hover {
  color: #b9b883;
}

/* Topics section */
.vetpro-home-topics-header {
  margin-bottom: 32px;
}

.vetpro-home-topics-header h2 {
  margin: 0 0 12px;
  color: #3c3c3b;
  font-family: var(--vp-font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.vetpro-home-topics-header p {
  margin: 0;
  color: #878787;
  font-family: var(--vp-font-body);
  font-size: 14px;
  line-height: 1.6;
}

.vetpro-home-topics-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vetpro-home-topic-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 16px;
}

.vetpro-home-topics-list .vetpro-home-topic-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.topic-icon-fallback {
  width: 28px;
  height: 28px;
  border: 2px solid #b9b883;
  display: inline-block;
}

.topic-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topic-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-item-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 6px;
  position: relative;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='%23B9B883' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='%23B9B883' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='%23B9B883' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
  transition: transform 180ms ease;
}

.topic-content h3 {
  margin: 0;
  color: #3c3c3b;
  font-family: var(--vp-font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.topic-content p {
  margin: 0;
  color: #878787;
  font-family: var(--vp-font-body);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .vetpro-home-content {
    width: min(var(--vp-max), calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .vetpro-home-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vetpro-home-topics {
    max-width: none;
  }

  .news-item-content {
    flex-direction: column;
  }

  .news-item-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .topic-item-arrow {
    background-color: #b9b883;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .vetpro-home-content {
    width: calc(100% - 40px);
    gap: 40px;
  }

  .vetpro-home-topics {
    order: 1;
  }

  .vetpro-home-news {
    order: 2;
  }

  .vetpro-home-topics-header,
  .vetpro-home-news-header {
    margin-bottom: 24px;
  }

  .vetpro-home-news-card {
    padding: 40px;
  }

  .vetpro-home-topics-card {
    padding: 24px;
  }

  .vetpro-home-news-header h2,
  .vetpro-home-topics-header h2 {
    font-size: 18px;
    line-height: 28px;
  }

  .news-item-title {
    font-size: 20px;
    line-height: 28px;
  }

  .vetpro-home-topic-item {
    gap: 16px;
  }

  .topic-icon {
    width: 48px;
    height: 48px;
  }

  .topic-content h3 {
    font-size: 16px;
    font-family: var(--vp-font-body);
    font-weight: 400;
    line-height: 28.8px;
  }

  .topic-content p {
    font-size: 14px;
    line-height: 21px;
  }

  /* Immagine news sotto al testo su mobile */
  .news-item-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .news-item-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border: 1px solid #dddddd;
    flex: 0 0 auto;
  }

  .news-item-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  .news-item-link {
    font-size: 14px;
    line-height: 20px;
  }

  .vetpro-home-news-list {
    gap: 24px;
    margin-bottom: 0;
  }

  .vetpro-home-news-item {
    padding-bottom: 24px;
  }

  .vetpro-home-news-header-action {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    justify-content: center;
  }
  .vetpro-home-news-header-action__label {
    display: none;
  }
}

@media (max-width: 420px) {
  .vetpro-home-content {
    width: calc(100% - 40px);
    gap: 40px;
  }

  .vetpro-home-news-card {
    padding: 32px 24px 24px;
  }

  .vetpro-home-topics-card {
    padding: 24px;
  }

  .news-item-title {
    font-size: 18px;
    line-height: 26px;
  }
}
