/* Variante blu per le liste con freccia del tema padre. */
.arrowlist.arrowlist-blu a {
  color: var(--blue) !important;
}

.arrowlist.arrowlist-blu a::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16.033' height='16.034'%3E%3Cg fill='none' stroke='%23225dd7'%3E%3Cpath d='m7.663.354 7.663 7.663-7.663 7.663'/%3E%3Cpath d='M15.326 8.018H0'/%3E%3C/g%3E%3C/svg%3E");
}

/* Variante bianca per le liste con freccia su fondi scuri. */
.arrowlist.arrowlist-bianca a,
.arrowlist.arrowlist-bianca a:hover {
  color: var(--white) !important;
}

.arrowlist.arrowlist-bianca a::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16.033' height='16.034'%3E%3Cg fill='none' stroke='%23fff'%3E%3Cpath d='m7.663.354 7.663 7.663-7.663 7.663'/%3E%3Cpath d='M15.326 8.018H0'/%3E%3C/g%3E%3C/svg%3E");
}

/* Effetto zoom applicabile alle immagini e alle figure del tema. */
img.zoomin,
figure.zoomin img {
  transition: transform 0.3s ease;
  transform-origin: center;
}

figure.zoomin {
  overflow: hidden;
}

img.zoomin:hover,
figure.zoomin:hover img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  img.zoomin,
  figure.zoomin img {
    transition: none;
  }
}

/* Il pannello largo 100% deve riferirsi alla navbar, non alla singola voce. */
@media (min-width: 1200px) {
  #main-nav #main-menu > .megamenu-li {
    position: static;
  }
}

/* Contesto del corso sotto il titolo dei template CDS. */
.cds-course-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 2rem;
  padding: 0.8rem 1.5rem;
  gap: 1.25rem;
  background: #edf3ff;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
}

.cds-course-badge a {
  color: inherit;
  text-decoration: none;
}

.cds-course-badge a:hover {
  text-decoration: underline;
}

.cds-course-badge a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.cds-course-badge__type {
  color: #193866 !important;
  font-size: 13px;
  text-transform: uppercase;
}

.cds-course-badge__course {
  color: var(--blue) !important;
  font-size: 13px;
  text-transform: uppercase;
}

.cds-course-badge__separator {
  align-self: stretch;
  width: 1px;
  min-height: 2rem;
  background: #7da6ff;
}

@media (max-width: 575.98px) {
  .cds-course-badge {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
    border-radius: 1rem;
  }

  .cds-course-badge__type,
  .cds-course-badge__course {
    font-size: 13px;
  }

  .cds-course-badge__separator {
    width: 100%;
    min-height: 1px;
  }
}
