
/* VIOLAHUB — design tokens */
:root {
  --vh-purple: #5C2D91;
  --vh-purple-dark: #3D1A5C;
  --vh-purple-light: #8B5BB5;
  --vh-lavender: #F4F1F8;
  --vh-gold: #DDB65C;
  --vh-red: #E51B23;
  --vh-ink: #17131D;
  --vh-white: #FFFFFF;

  --vh-radius: 14px;
  --vh-content: 740px;
}

/* Superfici e testo */
body {
  color: var(--vh-ink);
  background: var(--vh-lavender);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4,
.wp-block-post-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--vh-gold);
  outline-offset: 3px;
}

/* Header: assegna questa classe al gruppo header */
.vh-header {
  background: var(--vh-purple-dark);
  color: var(--vh-white);
}

.vh-header a {
  color: inherit;
  text-decoration: none;
}

/* Hero: aggiungi la classe al gruppo che contiene
   immagine, overlay, titolo e pulsante */
.vh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--vh-radius);
  background: var(--vh-purple-dark);
  color: var(--vh-white);
}

.vh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(29 10 45 / 88%) 0%,
    rgb(61 26 92 / 55%) 55%,
    rgb(29 10 45 / 12%) 100%
  );
}

/* Card: applica la classe al singolo blocco card */
.vh-card {
  height: 100%;
  overflow: hidden;
  background: var(--vh-white);
  border: 1px solid rgb(61 26 92 / 10%);
  border-radius: var(--vh-radius);
  box-shadow: 0 4px 18px rgb(35 20 48 / 5%);
  transition: transform 180ms ease,
              box-shadow 180ms ease;
}

.vh-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.vh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgb(35 20 48 / 12%);
}

/* Articoli */
.vh-article {
  max-width: var(--vh-content);
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.7;
}

.vh-article h2 {
  margin-top: 2em;
  color: var(--vh-purple-dark);
}

.vh-article blockquote {
  margin: 2em 0;
  padding: 1em 1.25em;
  border-left: 4px solid var(--vh-purple-light);
  background: var(--vh-lavender);
}

/* Pulsante principale */
.vh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--vh-gold);
  color: var(--vh-ink);
  font-weight: 700;
  text-decoration: none;
}

.vh-button:hover {
  filter: brightness(1.05);
}

/* Rispetto delle preferenze di movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .vh-article {
    font-size: 17px;
    padding-inline: 20px;
  }

  .vh-hero {
    border-radius: 0;
  }

  .vh-card:hover {
    transform: none;
  }
}