/* Runa · grafiche illustrative nella hero delle pagine servizio
   Ogni pagina servizio ha, dentro .page-hero .inner-h, un <div class="hv"> con la sua grafica.
   Sono esempi disegnati in HTML e CSS: nessuna immagine da caricare. */

@media (min-width: 961px) {
  .page-hero .inner-h:has(> .hv) {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    column-gap: 4rem;
    align-items: center;
  }
  .page-hero .inner-h:has(> .hv) > :not(.hv) { grid-column: 1; }
  .page-hero .inner-h:has(> .hv) > .ph-code { justify-self: start; }
  .page-hero .inner-h > .hv { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
}
@media (max-width: 960px) {
  .page-hero .inner-h > .hv { margin-top: 2.6rem; max-width: 460px; }
}

.hv { font-family: var(--ff-b); color: var(--ink); }
.hv-card {
  background: #FAF8F4;
  border: 1px solid #D9D2C6;
  border-radius: 24px;
  padding: 1.4rem 1.4rem 1.2rem;
}
.hv-top { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.hv-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #EFEBE3; border-radius: 999px; padding: .32rem .8rem;
  font-family: var(--ff-d); font-size: .78rem; font-weight: 600; color: var(--ink);
}
.hv-pill i { width: .5rem; height: .5rem; border-radius: 50%; background: #2A4A35; display: block; }
.hv-note { margin-top: .85rem; font-size: .78rem; color: #635D55; text-align: right; }
.hv-mark { background: #F4E5C6; border-radius: 6px; padding: .05em .3em; font-weight: 600; }
.hv-muted { color: #635D55; }
.hv-data { font-family: var(--ff-m); }

/* Risposta di un assistente AI (GEO) */
.hv-q {
  margin-left: auto; width: fit-content; max-width: 88%;
  background: #2A4A35; color: #fff; border-radius: 18px 18px 4px 18px;
  padding: .7rem 1rem; font-size: .92rem; line-height: 1.45; margin-bottom: 1rem;
}
.hv-a { font-size: .92rem; line-height: 1.6; }
.hv-a p { margin: 0 0 .6rem; }
.hv-cites { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.hv-cite {
  font-family: var(--ff-m); font-size: .74rem; border-radius: 999px;
  padding: .25rem .65rem; background: #EFEBE3; color: #4A443D;
}
.hv-cite.is-you { background: #E2E7DA; color: #1F3A29; font-weight: 500; }

/* Local pack (SEO locale) */
.hv-map {
  position: relative; height: 128px; border-radius: 16px; margin-bottom: .9rem; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 46%, #E6E0D4 46%, #E6E0D4 51%, transparent 51%),
    linear-gradient(20deg, transparent 58%, #E6E0D4 58%, #E6E0D4 62%, transparent 62%),
    #EDF0E6;
}
.hv-pin {
  position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: #8F877B; display: grid; place-items: center;
}
.hv-pin b { transform: rotate(45deg); color: #fff; font-family: var(--ff-d); font-size: .72rem; }
.hv-pin.is-you { background: #2A4A35; }
.hv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hv-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .65rem .8rem; border-radius: 14px; font-size: .88rem; }
.hv-list li.is-you { background: #E2E7DA; }
.hv-list b { font-family: var(--ff-d); font-weight: 600; display: block; }
.hv-list small { color: #635D55; font-size: .78rem; }
.hv-stars { font-family: var(--ff-m); font-size: .8rem; white-space: nowrap; color: #4A443D; }

/* Core Web Vitals (SEO tecnico) */
.hv-cwv { display: grid; gap: 1rem; }
.hv-cwv-row { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: .8rem; }
.hv-cwv-row b { font-family: var(--ff-d); font-weight: 700; font-size: .95rem; }
.hv-bar { height: 10px; border-radius: 999px; background: #E6E0D4; overflow: hidden; }
.hv-bar span { display: block; height: 100%; border-radius: 999px; background: #2A4A35; }
.hv-cwv-row .hv-data { font-size: .85rem; }
.hv-ok { display: inline-block; margin-top: 1.1rem; background: #E2E7DA; color: #1F3A29; border-radius: 999px; padding: .3rem .8rem; font-family: var(--ff-d); font-size: .8rem; font-weight: 600; }

/* Andamento della posizione (consulenza SEO) */
.hv-chart svg { display: block; width: 100%; height: auto; }
.hv-legend { display: flex; justify-content: space-between; font-size: .8rem; color: #635D55; margin-top: .4rem; }

/* Risposta in evidenza / AI Overview (AEO) */
.hv-ov-h { font-family: var(--ff-d); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.hv-lines { display: grid; gap: .5rem; margin-bottom: .9rem; }
.hv-lines span { display: block; height: 9px; border-radius: 999px; background: #E6E0D4; }
.hv-src { display: flex; align-items: center; gap: .7rem; background: #E2E7DA; border-radius: 16px; padding: .7rem .85rem; }
.hv-src-ic { width: 34px; height: 34px; border-radius: 10px; background: #2A4A35; color: #fff; display: grid; place-items: center; font-family: var(--ff-d); font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.hv-src b { font-family: var(--ff-d); font-weight: 600; font-size: .9rem; display: block; }
.hv-src small { color: #3F4A3F; font-size: .78rem; }

/* Dalla ricerca alla pagina (SXO) */
.hv-step { display: flex; align-items: center; gap: .7rem; background: #EFEBE3; border-radius: 16px; padding: .75rem .9rem; font-size: .9rem; }
.hv-step .hv-num { width: 26px; height: 26px; border-radius: 50%; background: #FAF8F4; display: grid; place-items: center; font-family: var(--ff-d); font-weight: 700; font-size: .78rem; flex-shrink: 0; }
.hv-flow { display: grid; gap: .55rem; }
.hv-arrow { text-align: center; color: #8F877B; font-size: 1rem; line-height: 1; }
.hv-step.is-goal { background: #2A4A35; color: #fff; }
.hv-step.is-goal .hv-num { background: #C8902E; color: #1D1B18; }
