/**
 * HeartVerse — layout pagina articolo (rail, hero, TOC, recensione).
 */

body.hv-article-shell {
  --hv-rail-w: 248px;
  --hv-rail-collapsed: 76px;
  --hv-article-read-width: 100%;
  background: #0a0a0a;
}

body.hv-article-shell .hv-footer {
  margin-left: var(--hv-rail-w);
  transition: margin-left 0.28s ease;
}

html.hv-rail-collapsed body.hv-article-shell .hv-footer {
  margin-left: var(--hv-rail-collapsed);
}

.hv-article-app {
  position: relative;
  min-width: 0;
}

.hv-article-stage {
  margin-left: var(--hv-rail-w);
  min-width: 0;
  transition: margin-left 0.28s ease;
}

html.hv-rail-collapsed .hv-article-stage {
  margin-left: var(--hv-rail-collapsed);
}

.hv-article-topbar {
  display: none;
}

.hv-article-rail {
  position: fixed;
  top: var(--hv-admin-bar-height, 0px);
  left: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: var(--hv-rail-w);
  height: calc(100vh - var(--hv-admin-bar-height, 0px));
  background: #121212;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: width 0.28s ease;
}

html.hv-rail-collapsed .hv-article-rail {
  width: var(--hv-rail-collapsed);
}

.hv-article-rail__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 16px 12px 12px;
}

.hv-article-rail__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0 4px 12px;
  color: #fff;
  text-decoration: none;
}

.hv-article-rail__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.hv-article-rail__brand {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.hv-article-rail__brand strong {
  color: var(--hv-accent);
}

.hv-article-rail__search {
  position: relative;
  margin: 0 4px 16px;
}

.hv-article-rail__search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%);
  pointer-events: none;
}

.hv-article-rail__search input {
  width: 100%;
  height: 38px;
  padding: 0 10px 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
}

.hv-article-rail__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 210, 0, 0.35) transparent;
}

.hv-article-rail__heading {
  margin: 14px 8px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hv-accent);
}

.hv-article-rail__list,
.hv-article-rail__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hv-article-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #ececec;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.hv-article-rail__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
}

.hv-article-rail__icon svg {
  width: 18px;
  height: 18px;
}

.hv-article-rail__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-article-rail__link:hover,
.hv-article-rail__item.is-active > .hv-article-rail__link {
  background: rgba(255, 210, 0, 0.16);
  color: var(--hv-accent);
}

.hv-article-rail__sub {
  padding: 2px 8px 8px 38px;
}

.hv-article-rail__sub a {
  display: block;
  padding: 5px 0;
  color: #c8c8c8;
  font-size: 12px;
  text-decoration: none;
}

.hv-article-rail__sub a:hover,
.hv-article-rail__sub a.is-active {
  color: var(--hv-accent);
}

.hv-article-rail__foot {
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hv-article-rail__collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d0d0d0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.hv-article-rail__collapse:hover {
  color: var(--hv-accent);
  background: rgba(255, 210, 0, 0.08);
}

.hv-article-rail__collapse-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.hv-article-rail__collapse-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.28s ease;
}

.hv-article-rail__expand-label {
  display: none;
}

html.hv-rail-collapsed .hv-article-rail__collapse-icon svg {
  transform: rotate(180deg);
}

.hv-article-rail__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hv-article-rail__social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 210, 0, 0.35);
  border-radius: 50%;
  color: var(--hv-accent);
}

.hv-article-rail__social a:hover {
  background: var(--hv-accent);
  color: #111;
}

.hv-article-rail__backdrop {
  display: none;
}

html.hv-rail-collapsed .hv-article-rail__brand,
html.hv-rail-collapsed .hv-article-rail__search,
html.hv-rail-collapsed .hv-article-rail__heading,
html.hv-rail-collapsed .hv-article-rail__label,
html.hv-rail-collapsed .hv-article-rail__sub,
html.hv-rail-collapsed .hv-article-rail__collapse-label,
html.hv-rail-collapsed .hv-article-rail__social {
  display: none;
}

html.hv-rail-collapsed .hv-article-rail__expand-label {
  display: none;
}

html.hv-rail-collapsed .hv-article-rail__link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

html.hv-rail-collapsed .hv-article-rail__logo {
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

html.hv-rail-collapsed .hv-article-rail__collapse {
  justify-content: center;
}

body.hv-article-shell .hv-layout-single--shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px;
  align-items: start;
}

body.hv-article-shell .hv-article--shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

body.hv-article-shell .hv-article--shell:hover,
body.hv-article-shell .hv-article--shell:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.hv-article-hero {
  margin: 0 0 22px;
}

.hv-article-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: #111;
}

.hv-article-hero__photo,
.hv-article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transform-origin: center center;
  transition: transform 0.6s ease;
  will-change: transform;
}

.hv-article-hero__frame:hover .hv-article-hero__photo,
.hv-article-hero__frame:hover img {
  transform: scale(1.05);
}

.hv-article-hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.82) 70%, #0a0a0a 100%);
  pointer-events: none;
}

body.hv-article-shell .hv-article-category a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--hv-accent);
  color: #111;
  letter-spacing: 0.08em;
}

body.hv-article-shell .hv-article-category a:hover {
  color: #111;
  filter: brightness(1.05);
}

body.hv-article-shell .hv-article-title {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.03em;
}

.hv-article-lead {
  margin: 0 0 16px;
  max-width: 54ch;
  color: #ececec;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.hv-article-meta--shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.hv-article-meta__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hv-article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-article-share a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: #161616;
  color: #fff;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hv-article-share a:hover,
.hv-article-share a:focus-visible {
  border-color: var(--hv-accent);
  color: #111;
  background: var(--hv-accent);
}

.hv-article-toc {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #161616;
  overflow: hidden;
}

.hv-article-toc--inline {
  display: none;
  margin: 0 0 22px;
}

.hv-article-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--hv-accent);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.hv-article-toc__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hv-article-toc__chevron {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.hv-article-toc__chevron svg {
  width: 18px;
  height: 18px;
}

.hv-article-toc.is-open .hv-article-toc__chevron,
.hv-article-toc--aside .hv-article-toc__chevron {
  transform: rotate(180deg);
}

.hv-article-toc--aside:not(.is-open) .hv-article-toc__chevron {
  transform: none;
}

.hv-article-toc__panel[hidden] {
  display: none;
}

.hv-article-toc__list {
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
}

.hv-article-toc__item a {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  color: #eee;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

.hv-article-toc__item.is-h3 a {
  padding-left: 12px;
  font-size: 12px;
  color: #c8c8c8;
}

.hv-article-toc__num {
  flex-shrink: 0;
  color: var(--hv-accent);
  font-weight: 800;
}

.hv-article-toc__item.is-active a,
.hv-article-toc__item a:hover {
  color: var(--hv-accent);
}

body.hv-article-shell .hv-article-content #ez-toc-container,
body.hv-article-shell .hv-article-content .ez-toc-widget-container,
body.hv-article-shell #ez-toc-sticky-container,
body.hv-article-shell .ez-toc-sticky {
  display: none !important;
}

.hv-review-box--editorial {
  margin-top: 32px;
  border-color: rgba(255, 255, 255, 0.1);
  background: #161616;
  box-shadow: none;
}

.hv-review-box--editorial .hv-review-header {
  background: transparent;
  color: var(--hv-accent);
  text-align: left;
  padding: 16px 18px 0;
}

.hv-review-box--editorial .hv-review-header h3 {
  color: var(--hv-accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hv-review-hero {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 8px 18px 8px;
}

.hv-review-ring {
  position: relative;
  width: 128px;
  height: 128px;
}

.hv-review-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hv-review-ring__track,
.hv-review-ring__value {
  fill: none;
  stroke-width: 8;
}

.hv-review-ring__track {
  stroke: rgba(255, 255, 255, 0.12);
}

.hv-review-ring__value {
  stroke: var(--hv-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}

.hv-review-ring__score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hv-review-ring__score .hv-score-number {
  font-size: 32px;
}

.hv-review-ring__score span {
  margin-top: 4px;
  color: #bdbdbd;
  font-size: 12px;
  font-weight: 700;
}

.hv-review-verdict__label {
  margin: 0 0 8px;
  color: var(--hv-accent);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hv-review-verdict__text {
  margin: 0 0 12px;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.55;
}

.hv-review-meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 42%, #22c55e 100%);
}

.hv-review-meter__fill {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  border-right: 2px solid #fff;
}

.hv-review-verdict__platform {
  margin: 10px 0 0;
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 700;
}

.hv-similar {
  margin: 36px 0 8px;
}

.hv-similar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--hv-accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hv-similar__mark {
  color: var(--hv-accent);
}

.hv-similar__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hv-similar__card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  min-height: 84px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #141414;
  color: #fff;
  text-decoration: none;
}

.hv-similar__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: #1a1a1a;
}

.hv-similar__media img,
.hv-similar__media .hv-thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hv-similar__card:hover .hv-similar__media img {
  transform: scale(1.02);
}

.hv-similar__score,
.hv-aside-reviews__score {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 28px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--hv-accent);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.hv-similar__name,
.hv-aside-reviews__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.hv-similar__excerpt,
.hv-aside-reviews__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  color: #b8b8b8;
  font-size: 12px;
  line-height: 1.4;
}

.hv-similar__more,
.hv-aside-reviews__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid var(--hv-accent);
  border-radius: 8px;
  color: var(--hv-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hv-similar__more:hover,
.hv-aside-reviews__more:hover {
  background: var(--hv-accent);
  color: #111;
}

.hv-aside-reviews {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #161616;
}

.hv-aside-reviews__title {
  margin: 0 0 12px;
  color: var(--hv-accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hv-aside-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-aside-reviews__card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.hv-aside-reviews__media {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #1a1a1a;
}

.hv-aside-reviews__media img,
.hv-aside-reviews__media .hv-thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hv-aside-reviews__card:hover .hv-aside-reviews__media img {
  transform: scale(1.02);
}

body.hv-article-shell .hv-whatsapp-cta__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(255, 210, 0, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 210, 0, 0.08), transparent 42%),
    #121212;
}

body.hv-article-shell .hv-whatsapp-cta__copy {
  min-width: 0;
}

body.hv-article-shell .hv-whatsapp-cta__title {
  margin-bottom: 4px;
}

body.hv-article-shell .hv-whatsapp-cta__btn {
  border-color: var(--hv-accent);
  background: var(--hv-accent);
  color: #111;
  box-shadow: none;
}

body.hv-article-shell .hv-whatsapp-cta__btn:hover,
body.hv-article-shell .hv-whatsapp-cta__btn:focus-visible {
  background: var(--hv-accent-soft);
  border-color: var(--hv-accent-soft);
  color: #111;
}

body.hv-article-shell .hv-whatsapp-cta__btn-icon svg {
  color: #111;
}

.hv-whatsapp-cta__badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 210, 0, 0.12);
  color: var(--hv-accent);
}

.hv-whatsapp-cta__badge svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1120px) {
  body.hv-article-shell .hv-footer,
  html.hv-rail-collapsed body.hv-article-shell .hv-footer,
  .hv-article-stage,
  html.hv-rail-collapsed .hv-article-stage {
    margin-left: 0;
  }

  .hv-article-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: var(--hv-admin-bar-height, 0px);
    z-index: 1100;
    padding: 10px 14px;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hv-article-topbar__menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #161616;
  }

  .hv-article-topbar__menu span {
    display: block;
    height: 2px;
    background: var(--hv-accent);
  }

  .hv-article-topbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  .hv-article-topbar__logo img {
    width: 36px;
    height: 36px;
  }

  .hv-article-rail {
    transform: translateX(-105%);
    width: min(86vw, 320px);
    transition: transform 0.28s ease;
  }

  html.hv-rail-open .hv-article-rail {
    transform: none;
  }

  html.hv-rail-collapsed .hv-article-rail {
    width: min(86vw, 320px);
  }

  html.hv-rail-collapsed .hv-article-rail__brand,
  html.hv-rail-collapsed .hv-article-rail__search,
  html.hv-rail-collapsed .hv-article-rail__heading,
  html.hv-rail-collapsed .hv-article-rail__label,
  html.hv-rail-collapsed .hv-article-rail__social {
    display: revert;
  }

  html.hv-rail-collapsed .hv-article-rail__label {
    display: inline;
  }

  .hv-article-rail__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  html.hv-rail-open .hv-article-rail__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.hv-article-shell .hv-layout-single--shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px 32px;
  }

  .hv-sidebar--article {
    display: none;
  }

  .hv-article-toc--inline {
    display: block;
  }

  .hv-similar__grid {
    grid-template-columns: 1fr;
  }

  .hv-review-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body.hv-article-shell .hv-whatsapp-cta__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hv-article-meta--shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hv-article-hero__frame {
    border-radius: 10px;
  }

  body.hv-article-shell .hv-article-title {
    font-size: clamp(24px, 8vw, 34px);
  }

  body.hv-article-shell {
    overflow-x: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-article-rail,
  .hv-article-stage,
  body.hv-article-shell .hv-footer,
  .hv-article-hero__photo,
  .hv-similar__media img,
  .hv-aside-reviews__media img,
  .hv-article-toc__chevron {
    transition: none;
  }

  .hv-article-hero__frame:hover .hv-article-hero__photo,
  .hv-article-hero__frame:hover img,
  .hv-similar__card:hover .hv-similar__media img {
    transform: none;
  }
}
