/*
 * ilboost.css: personalizzazioni di Il Boost sopra il tema Casper.
 * Attenzione: in Casper 1rem = 10px (html { font-size: 62.5% }).
 */

/* ------------------------------------------------------------------
 * Palette. Per cambiare i colori di tutto il sito basta modificare qui.
 * Contrasti verificati (WCAG): testo e link >= 4,5:1 sul loro sfondo.
 * ------------------------------------------------------------------ */
:root {
  --hb-ink:        #2a1433; /* sfondo header e footer: prugna scurissima */
  --hb-tor:        #7d4698; /* viola ufficiale Tor: link nel testo (6,6:1 su bianco) */
  --hb-pink:       #c22a6e; /* rosa lampone: accenti su fondo chiaro (5,5:1 su bianco) */
  --hb-pink-light: #ff5c9d; /* rosa acceso: accenti su fondo scuro (5,8:1 sul prugna) */
  --hb-blush:      #f0a6c8; /* rosa cipria: sottotitolo nell'header (8,8:1 sul prugna) */

  /* Variante rossa: sostituisci i cinque valori sopra con questi.
  --hb-ink:        #2b0f12;
  --hb-tor:        #8f1d2c;
  --hb-pink:       #d62839;
  --hb-pink-light: #ff6b6b;
  --hb-blush:      #f5a3a3;
  */

  /* Il colore d'accento di Casper (azzurro) diventa il nostro rosa */
  --blue: var(--hb-pink);
}

/* ------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------ */
.hb-header {
  position: relative;
  z-index: 1000;
}
.hb-bar {
  background: var(--hb-ink);
  color: #fff;
  border-bottom: 4px solid var(--hb-tor);
  border-image: linear-gradient(90deg, var(--hb-tor), var(--hb-pink-light)) 1;
}
.hb-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 3.2rem;
  min-height: 76px;
  padding: 1.4rem 0;
}

/* Nome del sito e sottotitolo */
.hb-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 1.4rem;
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
}
.hb-brand__name,
.hb-brand__name:hover {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.hb-brand__tagline {
  color: var(--hb-blush);
  font-size: 1.5rem;
}

/* Menu e icone social: annullo il posizionamento assoluto di Casper */
.hb-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: -1.2rem;
}
.hb-nav .nav {
  position: static;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  transition: none;
}
.hb-nav .nav li a {
  padding: 0.8rem 1.2rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: none;
}
.hb-nav .nav li a:before {
  bottom: 0.4rem;
  height: 2px;
  background: var(--hb-pink-light);
}
.hb-nav .nav li a:hover:before {
  opacity: 1;
}
.hb-social .social-link {
  padding: 0.8rem 1.2rem;
}
.hb-social .social-link:hover svg {
  fill: var(--hb-pink-light);
}
.hb-bar a:focus-visible {
  outline: 2px solid var(--hb-pink-light);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Casper lasciava 64px di spazio per la sua barra fissa, che non c'è più */
.hb-header .site-header-background,
.post-template .site-main,
.page-template .site-main {
  margin-top: 0;
}

/* ------------------------------------------------------------------
 * Colori del resto del sito
 * ------------------------------------------------------------------ */
a {
  color: var(--hb-tor);
}
.post-full-content blockquote {
  border-left-color: var(--hb-pink);
}
.site-footer {
  background: var(--hb-ink);
}

/* ------------------------------------------------------------------
 * Smartphone: il sottotitolo va sotto il nome
 * ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .hb-bar__inner {
    padding: 1.2rem 0;
  }
  .hb-brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .hb-brand__name,
  .hb-brand__name:hover {
    font-size: 2.2rem;
  }
  .hb-brand__tagline {
    font-size: 1.4rem;
  }
}
