/* RankGrove — foglio di stile del sito (Canopy Chiara).
   REGOLA (Fabio 17/08): sito statico e blog WordPress devono essere
   INDISTINGUIBILI. Questo file è pensato per essere caricato identico dal
   tema WP: componenti (header, footer, bottoni, card) + .prose per il corpo
   degli articoli. I token colore/tipografia vivono in brand/tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rg-bg);
  color: var(--rg-text);
  font-family: var(--rg-font-body);
  font-size: var(--rg-fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--rg-action); text-decoration: none; }
a:hover { color: var(--rg-action-hover); }

/* ---------- Layout ---------- */
.rg-container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.rg-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* ---------- Header ---------- */
.rg-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--rg-bg) 92%, transparent);
  border-bottom: 1px solid var(--rg-border);
}
.rg-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1.5rem;
}
.rg-header .rg-logo { display: flex; align-items: center; gap: .6rem;
  font-family: var(--rg-font-display); font-weight: 600; font-size: 1.25rem;
  color: var(--rg-forest); letter-spacing: -0.01em; }
.rg-nav { display: flex; align-items: center; gap: 1.4rem; font-size: .92rem; }
.rg-nav a { color: var(--rg-text); font-weight: 500; white-space: nowrap; }
.rg-nav a:hover { color: var(--rg-action); }

/* Hamburger (CSS-only, checkbox hack) */
/* Il menu in due gruppi (13/09, Fabio: «My RankGrove e' sullo stesso livello
   degli altri e EN e' nel posto sbagliato»). A sinistra le pagine da LEGGERE,
   a destra quello che si FA: entrare nel proprio account, provare, cambiare
   lingua. Prima erano sette voci tutte uguali, e il menu non diceva a nessuno
   dove guardare. */
.rg-nav-account { margin-left: .6rem; }
/* Nel menu i due bottoni sono piu' piccoli del corpo pagina: qui devono stare
   in una barra alta 64px accanto ai link, non reggere una sezione. */
.rg-nav .rg-btn { font-size: .92rem; padding: .55rem 1.15rem; }
/* `.rg-nav a` (0,1,1) batteva `.rg-btn-primary` (0,1,0): nel menu il bottone
   verde scriveva col colore del testo invece che in bianco, mentre nel resto
   della pagina era giusto. Visto da Fabio il 13/09. */
.rg-nav a.rg-btn-primary, .rg-nav a.rg-btn-primary:hover { color: #fff; }
.rg-nav a.rg-btn-ghost { color: var(--rg-forest); }
.rg-nav a.rg-btn-ghost:hover { color: var(--rg-action); }
/* Stessa storia per la lingua: senza questa riga il selettore usciva col
   colore pieno del testo, cioe' con lo stesso peso delle voci del menu. */
.rg-nav a.rg-lang { color: var(--rg-text-muted); }
.rg-nav a.rg-lang:hover { color: var(--rg-action); border-color: var(--rg-action); }
.rg-lang { font-size: .74rem; letter-spacing: .05em; color: var(--rg-text-muted);
           border: 1px solid var(--rg-border); border-radius: 999px; padding: .16rem .5rem; line-height: 1; }
.rg-lang:hover { border-color: var(--rg-action); }

.rg-nav-toggle { display: none; }
.rg-burger { display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--rg-border); background: var(--rg-surface);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; flex: none; }
.rg-burger span { display: block; width: 20px; height: 2px; border-radius: 1px;
  background: var(--rg-forest); transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 820px) {
  .rg-burger { display: flex; }
  .rg-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--rg-surface); border-bottom: 1px solid var(--rg-border);
    box-shadow: 0 24px 40px -24px rgba(11, 46, 32, .35); padding: .6rem 0 1rem; }
  .rg-nav a { padding: .8rem var(--gutter); }
  .rg-nav .rg-btn { margin: .6rem var(--gutter) 0; justify-content: center; }
  .rg-nav-account { margin: .6rem var(--gutter) 0; justify-content: center; }
  .rg-lang { align-self: flex-start; margin: .7rem var(--gutter); padding: .3rem .7rem; }
  .rg-nav-toggle:checked ~ .rg-nav { display: flex; }
  .rg-nav-toggle:checked ~ .rg-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .rg-nav-toggle:checked ~ .rg-burger span:nth-child(2) { opacity: 0; }
  .rg-nav-toggle:checked ~ .rg-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Bottoni ---------- */
.rg-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--rg-font-display); font-weight: 600; font-size: 1.02rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease,
  border-color .15s ease, color .15s ease;
}
.rg-btn-primary { background: var(--rg-action); color: #fff; }
.rg-btn-primary:hover { background: var(--rg-action-hover); color: #fff; transform: translateY(-1px); }
.rg-btn-ghost { border-color: var(--rg-border); color: var(--rg-forest); background: var(--rg-surface); }
.rg-btn-ghost:hover { border-color: var(--rg-action); color: var(--rg-action); }
.rg-btn-ondark { background: var(--rg-mint); color: var(--rg-forest); }
.rg-btn-ondark:hover { background: var(--rg-mint-soft); color: var(--rg-forest); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.rg-hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.rg-hero-kicker {
  font-family: var(--rg-font-display); font-size: var(--rg-fs-micro);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rg-action); margin: 0 0 1.1rem;
}
.rg-hero h1 {
  font-family: var(--rg-font-display); font-weight: 600;
  font-size: clamp(2.6rem, 6vw, var(--rg-fs-hero));
  line-height: 1.08; letter-spacing: -0.02em; color: var(--rg-forest);
  margin: 0 0 1.3rem; max-width: 15ch;
}
.rg-hero h1 .accent { color: var(--rg-action); }
.rg-hero-lead {
  font-family: var(--rg-font-longform); font-size: 1.28rem; line-height: 1.65;
  color: var(--rg-text-muted); max-width: 46ch; margin: 0 0 2.2rem;
}
.rg-hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.rg-hero-note { font-size: var(--rg-fs-small); color: var(--rg-text-muted); margin-top: 1.1rem; }

/* Chiome decorative: il bosco visto dall'alto (firma visiva) */
.rg-canopy { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.rg-canopy circle { opacity: 0; animation: rg-bloom .9s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rg-bloom { from { opacity: 0; transform: scale(.6); }
                      to   { opacity: var(--o, .1); transform: scale(1); } }

/* Reveal in cascata al load (CSS-only) */
.rg-reveal { opacity: 0; transform: translateY(14px);
  animation: rg-rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.rg-reveal.d1 { animation-delay: .08s; } .rg-reveal.d2 { animation-delay: .18s; }
.rg-reveal.d3 { animation-delay: .3s; }  .rg-reveal.d4 { animation-delay: .44s; }
@keyframes rg-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rg-reveal, .rg-canopy circle { animation: none; opacity: 1; transform: none; }
  .rg-canopy circle { opacity: var(--o, .1); }
}

/* ---------- Titoli di sezione ---------- */
.rg-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--rg-font-display); font-size: var(--rg-fs-micro);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rg-action); margin: 0 0 .9rem;
}
.rg-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rg-mint); box-shadow: 12px 0 0 -2px var(--rg-action); margin-right: 12px; }
.rg-section h2 {
  font-family: var(--rg-font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, var(--rg-fs-h2)); line-height: 1.2;
  letter-spacing: -0.015em; color: var(--rg-forest); margin: 0 0 .8rem; max-width: 26ch;
}
.rg-section-lead { font-family: var(--rg-font-longform); color: var(--rg-text-muted);
  font-size: 1.12rem; max-width: 58ch; margin: 0 0 2.6rem; }

/* ---------- Passi (come funziona) ---------- */
.rg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  counter-reset: step; }
@media (max-width: 880px) { .rg-steps { grid-template-columns: 1fr; } }
.rg-step {
  background: var(--rg-surface); border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg); padding: 1.7rem 1.6rem 1.5rem;
  position: relative; transition: transform .18s ease, box-shadow .18s ease;
}
.rg-step:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(11, 46, 32, .35); }
.rg-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--rg-font-display); font-weight: 600; font-size: .95rem;
  background: var(--rg-forest); color: var(--rg-cloud); margin-bottom: 1rem;
}
.rg-step h3 { font-family: var(--rg-font-display); font-weight: 600;
  font-size: var(--rg-fs-h3); color: var(--rg-forest); margin: 0 0 .5rem; }
.rg-step p { font-family: var(--rg-font-longform); font-size: 1.02rem;
  color: var(--rg-text); margin: 0; }
.rg-step .rg-step-note { display: block; margin-top: .9rem; font-size: var(--rg-fs-small);
  color: var(--rg-action); font-weight: 600; font-family: var(--rg-font-display); }

/* ---------- Card argomento (perché funziona) ---------- */
.rg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 880px) { .rg-grid-2 { grid-template-columns: 1fr; } }
.rg-card {
  background: var(--rg-surface); border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg); padding: 1.7rem 1.6rem;
}
.rg-card h3 { font-family: var(--rg-font-display); font-weight: 600;
  font-size: var(--rg-fs-h3); color: var(--rg-forest); margin: 0 0 .55rem; }
.rg-card p { font-family: var(--rg-font-longform); font-size: 1.02rem;
  color: var(--rg-text); margin: 0; }
.rg-card.rg-card-tinted { background: #F2FAF6; border-color: #D8EBDF; }

/* Lista con marcatori-chioma */
.rg-list { list-style: none; padding: 0; margin: 0; font-family: var(--rg-font-longform); }
.rg-list li { position: relative; padding-left: 1.5rem; margin-bottom: .65rem;
  color: var(--rg-text); }
.rg-list li::before { content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--rg-action); }
.rg-list li:nth-child(2n)::before { background: var(--rg-mint); }
.rg-list li:nth-child(3n)::before { background: var(--rg-forest); }

/* ---------- Banda scura (eco della sidebar app) ---------- */
.rg-band {
  background: var(--rg-forest); color: var(--rg-cloud);
  border-radius: var(--rg-radius-lg); padding: clamp(2.2rem, 5vw, 3.4rem);
  position: relative; overflow: hidden;
}
.rg-band h2 { color: #fff; max-width: 24ch; }
.rg-band p { color: var(--rg-cloud); font-size: 1.08rem;
  font-family: var(--rg-font-longform); max-width: 52ch; }
.rg-band .rg-eyebrow { color: var(--rg-mint); }
.rg-band .rg-list li { color: var(--rg-cloud); }
.rg-band .rg-list li::before { background: var(--rg-mint); }
.rg-band .rg-list li:nth-child(3n)::before { background: var(--rg-mint-soft); }

.rg-band-2col { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.rg-band-shot img { display: block; width: 100%; height: auto;
  border-radius: var(--rg-radius); box-shadow: 0 18px 48px rgba(0, 0, 0, .35); }
@media (max-width: 940px) { .rg-band-2col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.rg-footer { background: var(--rg-forest); color: var(--rg-cloud); margin-top: clamp(3rem, 7vw, 5rem); }
.rg-footer-inner { display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; padding: 2.2rem 0; flex-wrap: wrap; }
.rg-footer .rg-nav { flex-wrap: wrap; row-gap: .5rem; }
.rg-footer a { color: var(--rg-mint-soft); }
.rg-footer a:hover { color: #fff; }
.rg-footer-small { font-size: var(--rg-fs-small); color: color-mix(in srgb, var(--rg-cloud) 60%, transparent); }

/* ---------- .prose — corpo articolo (parità col blog WP) ---------- */
.prose { font-family: var(--rg-font-longform); font-size: 1.05rem; line-height: 1.75;
  color: var(--rg-text); max-width: 68ch; }
.prose h1, .prose h2, .prose h3 { font-family: var(--rg-font-display);
  font-weight: 600; color: var(--rg-forest); letter-spacing: -0.015em; line-height: 1.22; }
.prose h1 { font-size: var(--rg-fs-h1); } .prose h2 { font-size: var(--rg-fs-h2); margin-top: 2.2em; }
.prose h3 { font-size: var(--rg-fs-h3); margin-top: 1.8em; }
.prose img { border-radius: var(--rg-radius); }
.prose blockquote { border-left: 3px solid var(--rg-mint); margin: 1.5em 0;
  padding: .2em 0 .2em 1.2em; color: var(--rg-text-muted); }
.prose code { background: var(--rg-hover); border: 1px solid var(--rg-border);
  border-radius: 5px; padding: .1em .35em; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--rg-border); padding: .55em .8em; text-align: left; }
.prose th { background: var(--rg-hover); font-family: var(--rg-font-display); font-weight: 600; }

/* ---------- v2: hero a due colonne + illustrazioni ---------- */
.rg-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 940px) { .rg-hero-grid { grid-template-columns: 1fr; } .rg-hero-visual { max-width: 480px; } }
.rg-illu { display: block; width: 100%; height: auto; }
.rg-illu .card { fill: #fff; stroke: var(--rg-border); }
.rg-illu .line { fill: #E7EFEA; }
.rg-illu .line-strong { fill: #CBDDD3; }
.rg-illu text { font-family: var(--rg-font-display); }

/* ---------- Sezione differenzianti (il metodo del bosco) ---------- */
.rg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 940px) { .rg-split { grid-template-columns: 1fr; } }
.rg-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
@media (max-width: 720px) { .rg-diff { grid-template-columns: 1fr; } }
.rg-diff-item { border-left: 3px solid var(--rg-mint); padding: .2rem 0 .2rem 1rem; }
.rg-diff-item h4 { font-family: var(--rg-font-display); font-weight: 600; font-size: 1.12rem;
  color: var(--rg-forest); margin: 0 0 .3rem; }
.rg-diff-item p { font-family: var(--rg-font-longform); font-size: .98rem;
  color: var(--rg-text); margin: 0; }

/* ---------- Tabella confronto (v2: la colonna RankGrove vince a colpo d'occhio) ---------- */
.rg-compare { width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--rg-surface); border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg); overflow: hidden; font-family: var(--rg-font-longform); }
.rg-compare th, .rg-compare td { padding: 1.05rem 1.3rem; text-align: left;
  border-bottom: 1px solid var(--rg-border); font-size: 1.02rem; vertical-align: top; }
.rg-compare tr:last-child td, .rg-compare tr:last-child th { border-bottom: 0; }
.rg-compare thead th { font-family: var(--rg-font-display); font-weight: 600;
  font-size: 1.08rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.rg-compare thead th:nth-child(2) { color: var(--rg-text-muted); background: var(--rg-hover); }
.rg-compare thead th:last-child { background: var(--rg-forest); color: #fff; }
.rg-compare thead th:last-child .th-mark { display: inline-block; vertical-align: -3px; margin-right: .5rem; }
/* etichette riga */
.rg-compare td:first-child { color: var(--rg-forest); font-weight: 600;
  font-family: var(--rg-font-display); font-size: .98rem; width: 18%; }
/* colonna generica: smorzata, con marcatore neutro */
.rg-compare td:nth-child(2) { color: var(--rg-text-muted); width: 36%; }
.rg-compare td:nth-child(2)::before { content: ""; display: inline-block;
  width: 8px; height: 2px; border-radius: 1px; background: #B9C6BF;
  vertical-align: 4px; margin-right: .6rem; }
/* colonna RankGrove: elevata */
.rg-compare td:last-child { background: #F2FAF6; color: var(--rg-forest);
  font-weight: 600; border-left: 2px solid #CBEBDA; }
.rg-compare td:last-child::before { content: ""; display: inline-block;
  width: 9px; height: 9px; border-radius: 50%; background: var(--rg-action);
  margin-right: .6rem; }
.rg-compare tbody tr:hover td { background: var(--rg-hover); }
.rg-compare tbody tr:hover td:last-child { background: #E9F7F0; }
.rg-compare-wrap { overflow-x: auto; border-radius: var(--rg-radius-lg);
  box-shadow: 0 16px 40px -28px rgba(11, 46, 32, .35); }

/* ---------- Striscia "nato in Italia" ---------- */
.rg-italy { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--rg-surface); border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg); padding: 1.6rem 1.8rem; }
.rg-italy-dots { display: inline-flex; gap: 5px; flex: none; }
.rg-italy-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.rg-italy-dots i:nth-child(1) { background: #0E7C4F; }
.rg-italy-dots i:nth-child(2) { background: #F4F7F5; border: 1px solid var(--rg-border); }
.rg-italy-dots i:nth-child(3) { background: #B4453A; }
.rg-italy p { margin: 0; font-family: var(--rg-font-longform); color: var(--rg-text); }
.rg-italy p strong { font-family: var(--rg-font-display); color: var(--rg-forest); }

/* ---------- Pagine interne ---------- */
.rg-page-head { padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem); } /* 15/09/2026: lo 0 orizzontale batteva il gutter di .rg-container e a 390px il titolo toccava il bordo */
.rg-page-head h1 { font-family: var(--rg-font-display); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, var(--rg-fs-h1)); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--rg-forest); margin: .6rem 0 1rem; max-width: 20ch; }
.rg-page-head .rg-hero-lead { margin-bottom: 0; }
.rg-nav a[aria-current="page"] { color: var(--rg-action); }

/* ---------- Bottone ghost su fondo scuro ---------- */
.rg-btn-ghost-dark { border-color: var(--rg-forest-line); color: var(--rg-cloud); background: transparent; }
.rg-btn-ghost-dark:hover { border-color: var(--rg-mint); color: var(--rg-mint-soft); }

/* ---------- Timeline risultati (come-funziona) ---------- */
.rg-timeline { list-style: none; margin: 2.2rem 0 0; padding: 0; position: relative; }
.rg-timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--rg-mint), var(--rg-action), var(--rg-forest)); }
.rg-timeline li { position: relative; padding: 0 0 2rem 3rem; }
.rg-timeline li:last-child { padding-bottom: 0; }
.rg-timeline li::before { content: ""; position: absolute; left: 4px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--rg-surface);
  background: var(--rg-action); box-shadow: 0 0 0 2px var(--rg-border); }
.rg-timeline li:first-child::before { background: var(--rg-mint); }
.rg-timeline li:last-child::before { background: var(--rg-forest); }
.rg-timeline .t-quando { font-family: var(--rg-font-display); font-weight: 600;
  font-size: .92rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rg-action); display: block; margin-bottom: .3rem; }
.rg-timeline h3 { font-family: var(--rg-font-display); font-weight: 600;
  font-size: 1.25rem; color: var(--rg-forest); margin: 0 0 .4rem; }
.rg-timeline p { font-family: var(--rg-font-longform); font-size: 1.02rem;
  color: var(--rg-text); margin: 0; max-width: 62ch; }

/* ---------- Checklist domande al fornitore ---------- */
.rg-checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; counter-reset: q; }
.rg-checklist li { position: relative; background: var(--rg-surface);
  border: 1px solid var(--rg-border); border-radius: var(--rg-radius);
  padding: 1.1rem 1.3rem 1.1rem 3.4rem; margin-bottom: .7rem;
  font-family: var(--rg-font-longform); font-size: 1.05rem; color: var(--rg-text); }
.rg-checklist li::before { counter-increment: q; content: counter(q);
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--rg-font-display); font-weight: 600; font-size: .95rem;
  background: var(--rg-forest); color: var(--rg-cloud); }

/* ---------- Griglia a 3 (persone/motori/AI) ---------- */
.rg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 940px) { .rg-grid-3 { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.rg-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
@media (max-width: 940px) { .rg-price-grid { grid-template-columns: 1fr; } }
.rg-price { background: var(--rg-surface); border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg); padding: 2rem 1.8rem; display: flex;
  flex-direction: column; position: relative; }
.rg-price.rg-price-hero { border: 2px solid var(--rg-action); background: #F7FCF9;
  box-shadow: 0 20px 45px -30px rgba(11, 46, 32, .4); }
.rg-price .badge { position: absolute; top: -14px; left: 1.6rem;
  background: var(--rg-action); color: #fff; font-family: var(--rg-font-display);
  font-weight: 600; font-size: .8rem; padding: .3rem .8rem; border-radius: 999px; }
.rg-price h3 { font-family: var(--rg-font-display); font-weight: 600;
  font-size: 1.15rem; color: var(--rg-forest); margin: 0 0 .2rem; }
.rg-price .per { font-size: .92rem; color: var(--rg-text-muted);
  font-family: var(--rg-font-longform); margin-bottom: 1.2rem; }
.rg-price .amount { font-family: var(--rg-font-display); font-weight: 600;
  font-size: 3rem; line-height: 1; color: var(--rg-forest); letter-spacing: -0.02em; }
.rg-price .amount small { font-size: 1.05rem; font-weight: 600; color: var(--rg-text-muted); }
.rg-price .bill-note { font-size: .88rem; color: var(--rg-text-muted);
  font-family: var(--rg-font-longform); margin: .5rem 0 1.4rem; min-height: 2.4em; }
.rg-price .rg-list { margin-bottom: 1.6rem; }
.rg-price .rg-btn { margin-top: auto; justify-content: center; }
.rg-price.rg-price-soon { border-style: dashed; background: var(--rg-bg); }
.rg-price .soon-tag { display: inline-block; font-family: var(--rg-font-display);
  font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rg-action); background: #E9F7F0; border-radius: 999px;
  padding: .3rem .8rem; margin-bottom: 1rem; align-self: flex-start; }

/* Callout onmouseover (perché la carta subito) */
.rg-tip { position: relative; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--rg-font-display); font-weight: 600; color: var(--rg-action);
  cursor: help; border-bottom: 1.5px dashed var(--rg-action); }
.rg-tip .q { display: inline-flex; width: 18px; height: 18px; border-radius: 50%;
  background: var(--rg-action); color: #fff; font-size: .72rem; align-items: center;
  justify-content: center; font-weight: 700; }
.rg-tip .tipbox { position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(4px); width: min(380px, 82vw);
  background: var(--rg-forest); color: var(--rg-cloud);
  font-family: var(--rg-font-longform); font-weight: 400; font-size: .92rem;
  line-height: 1.55; text-align: left; padding: 1rem 1.2rem;
  border-radius: var(--rg-radius); opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease; z-index: 30;
  box-shadow: 0 18px 40px -18px rgba(11, 46, 32, .5); }
.rg-tip .tipbox::after { content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 8px solid transparent;
  border-top-color: var(--rg-forest); }
.rg-tip:hover .tipbox, .rg-tip:focus .tipbox, .rg-tip:focus-within .tipbox {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Screenshot di prodotto in cornice ---------- */
.rg-shot { background: var(--rg-surface); border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -35px rgba(11, 46, 32, .45); }
.rg-shot-bar { display: flex; gap: 6px; padding: 12px 14px;
  background: var(--rg-hover); border-bottom: 1px solid var(--rg-border); }
.rg-shot-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.rg-shot-bar i:nth-child(1) { background: #E3B9B4; }
.rg-shot-bar i:nth-child(2) { background: #EAD9A9; }
.rg-shot-bar i:nth-child(3) { background: #B9DcC8; }
.rg-shot img { display: block; width: 100%; }
.rg-shot-caption { text-align: center; font-family: var(--rg-font-longform);
  font-size: .95rem; color: var(--rg-text-muted); margin-top: 1rem; }

/* ---------- Feature block con vignette di prodotto (layout v3) ---------- */
.rg-feature { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.rg-feature.flip .rg-feature-copy { order: 2; }
.rg-feature.flip .rg-feature-visual { order: 1; }
@media (max-width: 940px) {
  .rg-feature { grid-template-columns: 1fr; }
  .rg-feature.flip .rg-feature-copy { order: 1; }
  .rg-feature.flip .rg-feature-visual { order: 2; }
}
.rg-feature h2 { font-family: var(--rg-font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2rem); line-height: 1.15; letter-spacing: -0.015em;
  color: var(--rg-forest); margin: 0 0 .9rem; max-width: 22ch; }
.rg-feature p { font-family: var(--rg-font-longform); font-size: 1.08rem; line-height: 1.65;
  color: var(--rg-text); margin: 0 0 1.6rem; max-width: 50ch; }

/* vignette: ritaglio UI inclinato con annotazioni */
.rg-feature-visual { position: relative; padding: 2.6rem 0 1.6rem; }
.rg-vignette { border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rg-border); background: #fff;
  box-shadow: 0 34px 70px -38px rgba(11, 46, 32, .5); }
.rg-vignette img { display: block; width: 100%; }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(1.8deg); }
.rg-annot { position: absolute; font-family: 'Caveat', cursive; font-size: 1.75rem;
  line-height: 1.1; color: var(--rg-action); font-weight: 600; z-index: 3;
  transform: rotate(-4deg); pointer-events: none; white-space: nowrap; }
.rg-annot svg { display: block; margin: .15rem auto 0; }
.rg-float-chip { position: absolute; z-index: 4; background: #fff;
  border: 1px solid var(--rg-border); border-radius: 999px;
  padding: .5rem 1rem; font-family: var(--rg-font-display); font-weight: 600;
  font-size: .9rem; color: var(--rg-forest);
  box-shadow: 0 12px 28px -14px rgba(11, 46, 32, .4); }
.rg-float-chip .dot { display: inline-block; width: 9px; height: 9px;
  border-radius: 50%; background: var(--rg-mint); margin-right: .5rem; }
.rg-pills-strip { position: absolute; top: .4rem; left: 6%; right: 14%; z-index: 4;
  border-radius: 999px; overflow: hidden; border: 1px solid var(--rg-border);
  box-shadow: 0 14px 30px -16px rgba(11, 46, 32, .45); background: #fff; }
.rg-pills-strip img { display: block; width: 100%; }


/* ---------- Footer a colonne (modello Orbit) — 28/08 ---------- */
.rg-footer-cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(1.6rem, 4vw, 3.4rem); padding: 3rem 0 2.2rem; align-items: start; }
.rg-footer-brand p { color: var(--rg-cloud); font-size: .95rem; line-height: 1.6;
  max-width: 40ch; margin-top: 1rem; }
.rg-footer-head { color: var(--rg-mint); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.rg-footer-col { display: flex; flex-direction: column; gap: .65rem; }
.rg-footer-col a { color: var(--rg-cloud); text-decoration: none; font-size: .95rem; }
.rg-footer-col a:hover { color: var(--rg-mint); }
.rg-footer-legal { border-top: 1px solid var(--rg-forest-line); padding: 1.3rem 0 1.6rem; }
.rg-footer-legal p { color: var(--rg-cloud); opacity: .75; font-size: .82rem; margin: 0; }
@media (max-width: 760px) { .rg-footer-cols { grid-template-columns: 1fr; } }

/* Elenco delle lingue di pubblicazione (features, faq) */
.rg-lingue { list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem; }
.rg-lingue li { border: 1px solid var(--rg-border); border-radius: 999px;
  padding: .34rem .9rem; font-size: .92rem; color: var(--rg-text-muted);
  background: var(--rg-surface); }
