/* =====================================================================
   Pagina "Guide" - disegno in stile Apple: ricerca in evidenza, "Che cosa hai
   in mano?", argomenti a schede con pannello di dettaglio, rottamazione,
   moduli e aiuto. File aggiuntivo: per tornare indietro basta non caricarlo
   (la pagina riprende il disegno di prima). Pensato prima per il telefono
   (campi a 16px, aree di tocco da 44px, margini di sicurezza).
   ===================================================================== */

.gh,
.gh-sheet {
  --gh-ink: #1d1d1f;
  --gh-sub: #515154;
  --gh-mute: #6e6e73;
  --gh-line: rgba(29, 29, 31, 0.1);
  --gh-bg: #fbf8f5;
  --gh-fill: rgba(120, 120, 128, 0.12);
  --gh-accent: var(--asser-primary, #7d445e);
  --gh-accent-2: var(--asser-secondary, #4b2338);
  --gh-sticky: 0px;
  --gh-font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gh-display: "Sora", "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--gh-ink);
  font-family: var(--gh-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gh {
  display: block;
  width: 100%;
  overflow-x: clip;
}

.gh *,
.gh *::before,
.gh *::after,
.gh-sheet *,
.gh-sheet *::before,
.gh-sheet *::after {
  box-sizing: border-box;
}

.gh a,
.gh-sheet a {
  text-underline-offset: 0.18em;
}

.gh button,
.gh-sheet button {
  font-family: inherit;
}

.gh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gh [hidden],
.gh-sheet[hidden] {
  display: none !important;
}

.gh-wrap {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
}

/* ---------- tinte delle icone (una per gruppo di argomenti) ---------- */
[data-gh-tone="plum"] { --gh-t1: #92506f; --gh-t2: #4b2338; }
[data-gh-tone="green"] { --gh-t1: #3f9486; --gh-t2: #1e5b51; }
[data-gh-tone="amber"] { --gh-t1: #e69a3a; --gh-t2: #b0600d; }
[data-gh-tone="indigo"] { --gh-t1: #6f8acb; --gh-t2: #38508f; }

.gh-ico {
  display: grid;
  flex: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gh-t1, #92506f), var(--gh-t2, #4b2338));
  box-shadow: 0 6px 14px rgba(29, 29, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.gh-svg {
  display: block;
  flex: none;
}

.gh-go {
  display: inline-grid;
  flex: none;
  place-items: center;
  color: var(--gh-mute);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* ---------- testata e ricerca ---------- */
.gh-hero {
  padding: clamp(2.6rem, 8vw, 5.2rem) 0 clamp(1.6rem, 4vw, 2.6rem);
  background:
    radial-gradient(900px 360px at 50% -8%, rgba(125, 68, 94, 0.12), rgba(125, 68, 94, 0) 70%),
    linear-gradient(#ffffff, var(--gh-bg));
  text-align: center;
}

.gh-kicker {
  margin: 0 0 0.9rem;
  color: var(--gh-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gh .gh-title {
  max-width: 17em;
  margin: 0 auto;
  color: var(--gh-ink);
  font-family: var(--gh-display);
  font-size: clamp(2.15rem, 5.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.gh-lead {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  color: var(--gh-sub);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  text-wrap: balance;
}

/*
 * Con JavaScript la ricerca compare appena la pagina e' pronta: il posto si riserva subito (lo script in linea mette
 * la classe gh-js), cosi' il resto della pagina non scende di colpo. Senza JavaScript non si riserva nulla.
 */
.gh.gh-js .gh-tools {
  min-height: 140px;
}

.gh-search {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 680px;
  margin: 1.9rem auto 0;
  text-align: left;
}

.gh-search__field {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  border: 1px solid var(--gh-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 12px 32px rgba(29, 29, 31, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-search__field:focus-within {
  border-color: rgba(125, 68, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(125, 68, 94, 0.14), 0 14px 36px rgba(29, 29, 31, 0.1);
}

.gh-search__icon {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  color: var(--gh-mute);
  pointer-events: none;
  transform: translateY(-50%);
}

.gh-search input[type="search"] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 3.1rem 0 3.2rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  color: var(--gh-ink);
  font: inherit;
  font-size: 1.05rem; /* 16px o piu': su iPhone evita lo zoom automatico */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.gh-search input[type="search"]::placeholder {
  color: #85858b;
  opacity: 1;
}

.gh-search input[type="search"]::-webkit-search-cancel-button,
.gh-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.gh-search__clear {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.2);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.gh-search__clear::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.gh-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  max-height: min(70vh, 540px);
  padding: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gh-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(29, 29, 31, 0.2);
}

.gh-results__group {
  margin: 0;
  padding: 0.7rem 0.8rem 0.25rem;
  color: var(--gh-mute);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gh-result {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 13px;
  background: none;
  color: var(--gh-ink);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.gh-result[aria-selected="true"],
.gh-result:hover {
  background: rgba(125, 68, 94, 0.09);
}

.gh-result .gh-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: none;
}

.gh-result__text {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.gh-result__text strong {
  font-weight: 650;
  line-height: 1.3;
}

.gh-result__text small {
  overflow: hidden;
  color: var(--gh-mute);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-result__qmark {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--gh-fill);
  color: var(--gh-sub);
  font-size: 0.95rem;
  font-weight: 800;
}

.gh-results mark {
  padding: 0 0.1em;
  border-radius: 4px;
  background: rgba(214, 124, 15, 0.22);
  color: inherit;
}

.gh-results__empty {
  margin: 0;
  padding: 1.1rem 0.9rem;
  color: var(--gh-sub);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gh-trending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
}

.gh-trending span {
  margin-right: 0.2rem;
  color: var(--gh-mute);
  font-size: 0.82rem;
  font-weight: 600;
}

.gh-trending button {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--gh-fill);
  color: var(--gh-ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gh-trending button:hover {
  background: rgba(125, 68, 94, 0.16);
}

.gh-meta {
  margin: 1.2rem 0 0;
  color: var(--gh-mute);
  font-size: 0.84rem;
}

.gh-meta a {
  color: var(--gh-accent);
  font-weight: 650;
}

/* ---------- barra di sezioni che resta in vista ---------- */
.gh-subnav {
  position: -webkit-sticky;
  position: sticky;
  top: var(--gh-sticky, 0px);
  z-index: 40;
  border-top: 1px solid var(--gh-line);
  border-bottom: 1px solid var(--gh-line);
  background: rgba(251, 248, 245, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.gh-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 52px;
}

.gh .gh-subnav__title {
  flex: none;
  color: var(--gh-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.gh-subnav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gh-subnav__links::-webkit-scrollbar {
  display: none;
}

.gh-subnav__links a {
  position: relative;
  flex: none;
  padding: 0.95rem 0;
  color: var(--gh-sub);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.gh-subnav__links a:hover {
  color: var(--gh-ink);
}

.gh-subnav__links a.is-current {
  color: var(--gh-ink);
  font-weight: 650;
}

.gh-subnav__links a.is-current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gh-accent);
}

.gh-subnav .rot-new {
  top: -0.5em;
}

/* ---------- fasce ---------- */
.gh-band {
  padding: clamp(2.4rem, 6vw, 4.4rem) 0;
  scroll-margin-top: calc(var(--gh-sticky, 0px) + 56px);
}

.gh-head {
  margin: 0 0 1.5rem;
}

.gh-head h2 {
  margin: 0;
  color: var(--gh-ink);
  font-family: var(--gh-display);
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.gh-head p {
  max-width: 44rem;
  margin: 0.55rem 0 0;
  color: var(--gh-sub);
  font-size: 1rem;
  line-height: 1.55;
}

.gh-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.gh .gh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gh-accent);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.gh .gh-link:hover {
  text-decoration: underline;
}

/* ---------- "Che cosa hai in mano?" ---------- */
.gh-situations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gh-situations li {
  display: block;
  margin: 0;
  padding: 0;
}

.gh .gh-sit {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  min-height: 84px;
  padding: 0.95rem 1rem;
  border: 1px solid var(--gh-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
  color: var(--gh-ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gh .gh-sit:hover {
  border-color: rgba(125, 68, 94, 0.28);
  box-shadow: 0 16px 34px rgba(29, 29, 31, 0.1);
  transform: translateY(-2px);
}

.gh .gh-sit:active {
  transform: scale(0.985);
}

.gh-sit__text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.2rem;
}

.gh-sit__text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gh-sit__text small {
  color: var(--gh-mute);
  font-size: 0.78rem;
  line-height: 1.3;
}

.gh .gh-sit:hover .gh-go,
.gh .gh-tile:hover .gh-go,
.gh .gh-mod:hover .gh-go {
  color: var(--gh-accent);
  transform: translateX(3px);
}

/* ---------- novita': rottamazione ---------- */
.gh .gh-news {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 1.2rem 0 0;
  padding: 1.15rem 1.35rem;
  border-radius: 26px;
  background: linear-gradient(115deg, #3d1c2d 0%, #6b3a52 55%, #94587a 100%);
  box-shadow: 0 18px 40px rgba(75, 35, 56, 0.28);
  color: #fff;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gh .gh-news:hover {
  box-shadow: 0 24px 50px rgba(75, 35, 56, 0.34);
  transform: translateY(-2px);
}

.gh-news__badge {
  flex: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gh-news__text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.25rem;
}

.gh-news__text strong {
  font-family: var(--gh-display);
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gh-news__text small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.gh-news__cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--gh-accent-2);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- argomenti ---------- */
.gh-topics {
  background: #fff;
  border-top: 1px solid var(--gh-line);
  border-bottom: 1px solid var(--gh-line);
}

.gh-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--gh-fill);
}

.gh-filter button {
  margin: 0;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gh-sub);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gh-filter button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 3px rgba(29, 29, 31, 0.18), 0 1px 1px rgba(29, 29, 31, 0.06);
  color: var(--gh-ink);
  font-weight: 700;
}

.gh-groups {
  display: grid;
  gap: 2.4rem;
}

.gh-group__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.gh-group__num {
  display: grid;
  flex: none;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(125, 68, 94, 0.1);
  color: var(--gh-accent);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.gh-group__head h3 {
  margin: 0;
  color: var(--gh-ink);
  font-family: var(--gh-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.gh-group__head p {
  margin: 0.25rem 0 0;
  color: var(--gh-sub);
  font-size: 0.9rem;
  line-height: 1.5;
}

.gh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gh-grid li {
  display: block;
  margin: 0;
  padding: 0;
}

.gh .gh-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 188px;
  padding: 1.25rem;
  border: 1px solid var(--gh-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fcfafb);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
  color: var(--gh-ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gh .gh-tile:hover {
  border-color: rgba(125, 68, 94, 0.28);
  box-shadow: 0 18px 38px rgba(29, 29, 31, 0.11);
  transform: translateY(-3px);
}

.gh .gh-tile:active {
  transform: scale(0.985);
}

.gh .gh-tile .gh-ico {
  margin-bottom: 1rem;
}

.gh-tile__title {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.gh-tile__desc {
  display: -webkit-box;
  margin-top: 0.4rem;
  overflow: hidden;
  color: var(--gh-sub);
  font-size: 0.85rem;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.gh-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--gh-mute);
  font-size: 0.78rem;
  font-weight: 650;
}

.gh-empty {
  margin: 1.5rem 0 0;
  color: var(--gh-sub);
}

/* ---------- rottamazione (la sezione esistente, nella nuova cornice) ---------- */
.gh-rot {
  background: linear-gradient(180deg, #fff 0%, var(--gh-bg) 100%);
}

.gh-rot .enti-check {
  margin-top: 0;
}

/* ---------- moduli ---------- */
.gh-modrow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gh-modrow li {
  display: block;
  margin: 0;
  padding: 0;
}

.gh .gh-mod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 168px;
  padding: 1.2rem;
  border: 1px solid var(--gh-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
  color: var(--gh-ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gh .gh-mod:hover {
  border-color: rgba(125, 68, 94, 0.28);
  box-shadow: 0 16px 34px rgba(29, 29, 31, 0.1);
  transform: translateY(-2px);
}

.gh-mod__tag {
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(125, 68, 94, 0.1);
  color: var(--gh-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gh .gh-mod strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.gh .gh-mod small {
  margin-top: 0.4rem;
  color: var(--gh-sub);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gh .gh-mod .gh-go {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
}

/* ---------- aiuto ---------- */
.gh-cta {
  position: relative;
  padding: clamp(2.2rem, 5vw, 3.6rem) 1.5rem;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(520px 260px at 85% -20%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, #34182a 0%, #4b2338 45%, #7d445e 100%);
  box-shadow: 0 24px 56px rgba(75, 35, 56, 0.3);
  color: #fff;
  text-align: center;
}

.gh-cta__icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gh-cta h2 {
  margin: 1rem 0 0;
  font-family: var(--gh-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.gh-cta p {
  max-width: 36rem;
  margin: 0.8rem auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.55;
}

.gh-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.gh-disclaimer {
  max-width: 46rem;
  margin: 1.8rem auto 0;
  color: var(--gh-mute);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.gh-disclaimer strong {
  display: block;
  color: var(--gh-sub);
  font-size: 0.86rem;
}

.gh-disclaimer p {
  margin: 0.3rem 0 0;
}

/* ---------- pulsanti ---------- */
.gh .gh-btn,
.gh-sheet .gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  margin: 0;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gh-accent), var(--gh-accent-2));
  box-shadow: 0 10px 22px rgba(75, 35, 56, 0.24);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gh .gh-btn:hover,
.gh-sheet .gh-btn:hover {
  box-shadow: 0 14px 28px rgba(75, 35, 56, 0.3);
  transform: translateY(-1px);
}

.gh .gh-btn:active,
.gh-sheet .gh-btn:active {
  transform: scale(0.98);
}

.gh .gh-btn--soft,
.gh-sheet .gh-btn--soft {
  border-color: rgba(125, 68, 94, 0.22);
  background: rgba(125, 68, 94, 0.08);
  box-shadow: none;
  color: var(--gh-accent-2);
}

.gh .gh-btn--soft:hover,
.gh-sheet .gh-btn--soft:hover {
  background: rgba(125, 68, 94, 0.14);
  box-shadow: none;
}

.gh .gh-btn--light,
.gh-sheet .gh-btn--light {
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--gh-accent-2);
}

.gh .gh-btn--ghost-light,
.gh-sheet .gh-btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.gh .gh-btn--ghost-light:hover,
.gh-sheet .gh-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.gh a:focus-visible,
.gh button:focus-visible,
.gh input:focus-visible,
.gh-sheet a:focus-visible,
.gh-sheet button:focus-visible,
.gh-sheet input:focus-visible,
.gh-sheet summary:focus-visible {
  outline: 3px solid rgba(125, 68, 94, 0.45);
  outline-offset: 2px;
}

.gh-search input:focus-visible {
  outline: none;
}

/* ---------- le schede complete (senza JavaScript restano qui, con JavaScript si aprono nel pannello) ---------- */
.gh-articles {
  padding: clamp(2.4rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--gh-line);
  background: #fff;
}

.gh.is-enhanced .gh-articles {
  display: none;
}

.gh-article {
  margin: 0 0 1.4rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--gh-line);
  border-radius: 26px;
  background: #fff;
  scroll-margin-top: calc(var(--gh-sticky, 0px) + 70px);
}

.gh-article__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.gh-article__head > .gh-ico {
  width: 56px;
  height: 56px;
  border-radius: 17px;
}

.gh-article__crumb {
  margin: 0 0 0.25rem;
  color: var(--gh-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gh-article__head h3,
.gh-article__head h2 {
  margin: 0;
  color: var(--gh-ink);
  font-family: var(--gh-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.gh-article__desc {
  margin: 0.45rem 0 0;
  color: var(--gh-sub);
  font-size: 0.98rem;
  line-height: 1.55;
}

.gh-article__body h4 {
  margin: 1.4rem 0 0.7rem;
  color: var(--gh-mute);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gh-article__body h4:first-child {
  margin-top: 0;
}

.gh-checks {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gh-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: #f6f3f4;
  color: var(--gh-ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.gh-checks li > span {
  display: grid;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  place-items: center;
  border-radius: 50%;
  background: var(--gh-accent);
  color: #fff;
}

.gh-first {
  margin: 1.1rem 0 0;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(125, 68, 94, 0.1), rgba(125, 68, 94, 0.04));
  border: 1px solid rgba(125, 68, 94, 0.16);
}

.gh-first strong {
  display: block;
  color: var(--gh-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gh-first p {
  margin: 0.4rem 0 0;
  color: var(--gh-ink);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
}

.gh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gh-chips li {
  margin: 0;
}

.gh-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--gh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--gh-accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gh-chips a:hover {
  border-color: rgba(125, 68, 94, 0.35);
  background: rgba(125, 68, 94, 0.06);
}

.gh-article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
}

/* ---------- pannello di dettaglio (si apre sopra la pagina) ---------- */
html.gh-lock {
  overflow: hidden;
}

.gh-sheet {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gh-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 31, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gh-sheet.is-open .gh-sheet__backdrop {
  opacity: 1;
}

.gh-sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  max-height: min(92dvh, 900px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: #fbf9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 36px 90px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gh-sheet.is-open .gh-sheet__panel {
  opacity: 1;
  transform: none;
}

.gh-sheet__panel:focus {
  outline: none;
}

.gh-sheet__bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.35rem;
  min-height: 58px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--gh-line);
  background: rgba(251, 249, 250, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.gh-sheet__crumb {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--gh-mute);
  font-size: 0.8rem;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-sheet__nav,
.gh-sheet__close {
  position: relative;
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gh-fill);
  color: var(--gh-sub);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.gh-sheet__nav::after,
.gh-sheet__close::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.gh-sheet__nav:hover,
.gh-sheet__close:hover {
  background: rgba(120, 120, 128, 0.22);
}

.gh-sheet__nav:active,
.gh-sheet__close:active {
  transform: scale(0.92);
}

.gh-sheet__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.gh-sheet__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.4rem clamp(1.1rem, 4vw, 2rem) 1.6rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gh-sheet .gh-article {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gh-sheet .gh-article__foot {
  display: none;
}

.gh-sheet__more {
  margin-top: 1.6rem;
}

.gh-qa-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin: 1.8rem 0 0.8rem;
}

.gh-qa-head h4 {
  margin: 0;
  color: var(--gh-ink);
  font-family: var(--gh-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gh-qa-head small {
  color: var(--gh-mute);
  font-size: 0.82rem;
  font-weight: 600;
}

.gh-qa-filter {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0 0 0.8rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--gh-fill);
  color: var(--gh-ink);
  font: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.gh-qa-filter:focus {
  outline: none;
  border-color: rgba(125, 68, 94, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(125, 68, 94, 0.14);
}

.gh-qa-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gh-line);
  border-radius: 20px;
  background: #fff;
  list-style: none;
}

.gh-qa-list > li {
  margin: 0;
  padding: 0;
}

.gh-qa-list > li + li {
  border-top: 1px solid var(--gh-line);
}

.gh-qa summary {
  position: relative;
  display: block;
  padding: 1rem 3rem 1rem 1.1rem;
  color: var(--gh-ink);
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.gh-qa summary::-webkit-details-marker {
  display: none;
}

.gh-qa summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--gh-mute);
  border-bottom: 2px solid var(--gh-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.gh-qa[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.gh-qa summary:hover {
  background: rgba(125, 68, 94, 0.04);
}

.gh-qa p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--gh-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

.gh-qa.is-target {
  background: rgba(214, 124, 15, 0.08);
}

.gh-qa-more {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.gh-qa-note {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(125, 68, 94, 0.3);
  border-radius: 18px;
  color: var(--gh-sub);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gh-qa-note a {
  color: var(--gh-accent);
  font-weight: 700;
}

.gh-qa-skel {
  display: grid;
  gap: 0.6rem;
}

.gh-qa-skel i {
  display: block;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(120, 120, 128, 0.1) 25%, rgba(120, 120, 128, 0.2) 50%, rgba(120, 120, 128, 0.1) 75%);
  background-size: 200% 100%;
  animation: ghShimmer 1.4s linear infinite;
}

@keyframes ghShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.gh-sheet__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.2rem;
  margin: 1.8rem 0 0;
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #3f1d30, #6b3a52);
  color: #fff;
}

.gh-sheet__cta strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.gh-sheet__cta p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.gh-sheet__pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0 0;
}

.gh-sheet__pager button {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gh-line);
  border-radius: 18px;
  background: #fff;
  color: var(--gh-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gh-sheet__pager button:hover {
  border-color: rgba(125, 68, 94, 0.3);
  background: rgba(125, 68, 94, 0.04);
}

.gh-sheet__pager button[data-gh-next] {
  text-align: right;
}

.gh-sheet__pager small {
  color: var(--gh-mute);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gh-sheet__pager strong {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
}

.gh-sheet__pager button[hidden] {
  display: none;
}

/* ---------- ingressi morbidi: solo con JavaScript e senza "riduci movimento" ---------- */
.gh.is-enhanced [data-gh-reveal] {
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gh.is-enhanced [data-gh-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- schermi piu' piccoli ---------- */
@media (max-width: 1100px) {
  .gh-situations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-modrow {
    display: flex;
    margin-right: calc(-1 * max(1.25rem, env(safe-area-inset-right, 0px)));
    margin-left: calc(-1 * max(1.25rem, env(safe-area-inset-left, 0px)));
    padding: 0.2rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .gh-modrow li {
    flex: 0 0 min(280px, 78%);
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .gh .gh-subnav__title {
    display: none;
  }

  .gh-subnav__inner {
    gap: 0;
  }

  .gh-subnav__links {
    gap: 1.3rem;
  }

  .gh .gh-news {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.1rem;
    border-radius: 24px;
  }

  .gh-news__text {
    flex: 1 1 100%;
    order: 2;
  }

  .gh-news__badge {
    order: 1;
  }

  .gh-news__cta {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .gh-filter {
    display: flex;
    width: 100%;
    margin-right: calc(-1 * max(1.25rem, env(safe-area-inset-right, 0px)));
    padding-right: 3px;
    overflow-x: auto;
    border-radius: 14px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .gh-filter button {
    flex: 1 0 auto;
  }
}

@media (max-width: 640px) {
  .gh.gh-js .gh-tools {
    min-height: 186px;
  }

  .gh-situations {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .gh .gh-sit {
    min-height: 72px;
  }

  .gh-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .gh .gh-tile {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
    padding: 1rem;
    border-radius: 22px;
  }

  .gh .gh-tile .gh-ico {
    margin: 0 0.9rem 0 0;
  }

  .gh-tile__title {
    flex: 1 1 0;
    min-width: 0;
  }

  .gh-tile__desc {
    flex: 1 1 100%;
    margin-top: 0.7rem;
  }

  .gh-tile__meta {
    padding-top: 0.7rem;
  }

  .gh-cta__actions .gh-btn {
    width: 100%;
  }

  .gh-article__foot .gh-btn {
    width: 100%;
  }

  /* il pannello sale dal basso e occupa quasi tutto lo schermo, come i fogli di iOS */
  .gh-sheet {
    align-items: flex-end;
    padding: 0;
  }

  .gh-sheet__panel {
    max-width: none;
    height: 94vh;
    height: 94dvh;
    max-height: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
  }

  .gh-sheet__panel::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 50%;
    z-index: 3;
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: rgba(60, 60, 67, 0.28);
    transform: translateX(-50%);
  }

  .gh-sheet__bar {
    padding-top: 0.9rem;
  }

  .gh-sheet__scroll {
    padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  }

  .gh-sheet__pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .gh-sheet__pager button[data-gh-next] {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .gh-trending span {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh .gh-sit,
  .gh .gh-tile,
  .gh .gh-mod,
  .gh .gh-news,
  .gh .gh-btn,
  .gh-sheet .gh-btn,
  .gh-go {
    transition: none;
  }

  .gh .gh-sit:hover,
  .gh .gh-tile:hover,
  .gh .gh-mod:hover,
  .gh .gh-news:hover {
    transform: none;
  }

  .gh.is-enhanced [data-gh-reveal],
  .gh.is-enhanced [data-gh-reveal]:not(.is-in) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gh-sheet__backdrop,
  .gh-sheet__panel {
    transition: opacity 0.15s ease;
  }

  .gh-sheet__panel,
  .gh-sheet.is-open .gh-sheet__panel {
    transform: none;
  }

  .gh-qa-skel i {
    animation: none;
  }
}

@media print {
  .gh-subnav,
  .gh-search,
  .gh-trending,
  .gh-sheet,
  .gh-cta {
    display: none;
  }

  .gh.is-enhanced .gh-articles {
    display: block;
  }
}
