/* Home: tema void / paper / oro. I contenuti restano quelli del sito. */

.page-home {
  --home-chrome: 7.5rem;
}

.page-home main.hp {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--home-chrome));
}

.page-home .zone-header-top {
  position: relative;
  z-index: 41;
}

.page-home .site-header-sticky {
  position: relative;
  top: auto;
  z-index: 40;
}

.page-home :is(
  .hp-hero-title,
  .hp-section-head h2,
  .hp-feature-copy h2,
  .hp-close h2,
  .hp-card h3,
  .hp-case h3,
  .hp-migrate h2,
  .hp-stats-grid strong
) {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.page-home h1.hp-hero-title {
  line-height: 1.42;
}

.page-home :is(
  .hp-hero-lead,
  .hp-lead,
  .hp-card p,
  .hp-case p:last-child,
  .hp-migrate p,
  .hp-feature-list li
) {
  font-family: var(--font-sans);
  color: var(--steel, var(--muted));
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
}

.hp-kicker {
  margin: 0 0 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--steel, var(--muted));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hp-kicker--glow {
  color: var(--steel, var(--muted));
  text-shadow: none;
}

.hp-section {
  padding: 5.25rem 0;
  scroll-margin-top: 4.5rem;
}

.hp-section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.hp-section-head h2,
.hp-feature-copy h2,
.hp-close h2 {
  margin: 0 0 0.85rem;
  max-width: 16em;
  color: var(--paper, var(--text));
  font-size: clamp(2.15rem, 4.4vw, 3.6rem);
}

.hp-lead {
  margin: 0;
  max-width: 42rem;
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.hp-section-foot {
  margin: 1.75rem 0 0;
}

.hp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper, #f4f1ea);
  color: var(--void, #070708);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hp-btn::before,
.hp-btn::after {
  content: none;
}

.hp-btn-label {
  position: relative;
  z-index: 1;
}

.hp-btn:hover,
.hp-btn:focus-visible {
  background: var(--gold, var(--accent));
  color: var(--void, #070708);
  filter: none;
  transform: none;
}

.hp-btn--ghost {
  min-height: 2.75rem;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--paper, var(--text));
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(245, 197, 24, 0.75);
  text-underline-offset: 0.28em;
}

.hp-btn--ghost:hover,
.hp-btn--ghost:focus-visible {
  background: none;
  color: var(--gold, var(--accent));
}

.hp-hub {
  margin: 0 auto;
  padding: 0 0 1rem;
}

.hp-hub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-hub-list a {
  color: var(--paper, var(--text));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hp-hub-list a:hover,
.hp-hub-list a:focus-visible {
  color: var(--gold, var(--accent));
}

.hp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--void, #070708);
}

.hp-hero-source,
.hp-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hp-hero-source {
  object-fit: cover;
  opacity: 0;
}

.hp-hero-shade {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding-bottom: 4.5rem;
  pointer-events: none;
}

.hp-hero-shade a,
.hp-hero-shade button {
  pointer-events: auto;
}

.hp-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0;
}

.hp-hero-copy {
  max-width: 40rem;
}

.hp-hero-logo {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.hp-hero-title {
  margin: 0;
  max-width: 14em;
  color: var(--paper, #f4f1ea);
  font-size: clamp(2.5rem, 4.8vw, 4.35rem);
  text-shadow: none;
}

.hp-hero-lead {
  max-width: 36rem;
  margin: 1rem 0 0;
}

.hp-hero .hp-actions {
  margin-top: 1.15rem;
}

.hp-hero-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.hp-hero-phase {
  display: inline-flex;
  align-items: center;
  min-width: 1.35rem;
  margin: 0;
  color: var(--gold, var(--accent));
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hp-rail-glyph {
  font-size: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--gold, var(--accent));
  text-transform: none;
}

.hp-hero-rail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold, var(--accent));
  cursor: pointer;
}

.hp-hero-rail-icon:hover,
.hp-hero-rail-icon:focus-visible {
  color: var(--paper, #f4f1ea);
}

.hp-hero-rail-icon:hover .hp-rail-glyph,
.hp-hero-rail-icon:focus-visible .hp-rail-glyph {
  color: inherit;
}

.hp-hero-rail-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.hp-hero-rail-bar i {
  display: block;
  height: 2px;
  overflow: hidden;
  background: rgba(244, 241, 234, 0.18);
}

.hp-hero-rail-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold, var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
}

.hp-hero-rail-actions {
  display: flex;
  gap: 0.9rem;
}

.hp-hero-rail-actions .hp-btn[hidden] {
  display: none;
}

.hp-hero-ignite {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 3;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border: 1px solid var(--gold, #f5c518);
  border-radius: 999px;
  background: rgba(7, 7, 8, 0.72);
  color: var(--gold, #f5c518);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.hp-hero-ignite[hidden] {
  display: none;
}

.hp-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-content: flex-end;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.hp-stats-grid li {
  min-width: 6.6rem;
  padding: 0.55rem 0.85rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(7, 7, 8, 0.46);
  backdrop-filter: blur(10px);
}

.hp-stats-grid span {
  display: block;
  color: var(--steel, var(--muted));
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hp-stats-grid strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--paper, var(--text));
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hp-bento,
.hp-cases {
  display: grid;
  gap: 0.8rem;
}

article.hp-card {
  cursor: default;
}

article.hp-card:hover h3,
article.hp-card:focus-visible h3 {
  color: var(--paper, var(--text));
}

.hp-card,
.hp-case {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 13rem;
  padding: 1.25rem 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(7, 7, 8, 0.35);
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  transform: none;
}

.hp-card::before,
.hp-case::after {
  content: none;
}

.hp-card:hover,
.hp-case:hover,
.hp-card:focus-visible {
  color: inherit;
  border-color: var(--line);
  background: rgba(7, 7, 8, 0.5);
  box-shadow: none;
  transform: none;
}

.hp-card:hover h3,
.hp-case:hover h3,
.hp-card:focus-visible h3 {
  color: var(--gold, var(--accent));
}

.hp-card-icon {
  display: none;
}

.hp-card h3,
.hp-case h3 {
  margin: 0.35rem 0 0;
  color: var(--paper, var(--text));
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
}

.hp-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hp-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.55);
  color: inherit;
  text-decoration: none;
}

.hp-news-card:hover,
.hp-news-card:focus-visible {
  border-color: rgba(245, 197, 24, 0.45);
  color: inherit;
}

.hp-news-card:hover h3,
.hp-news-card:focus-visible h3 {
  color: var(--gold, var(--accent));
}

.hp-news-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.85);
}

.hp-news-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-news-cover--empty {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(10, 10, 10, 0.9);
}

.hp-news-card h3 {
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
  color: var(--paper, var(--text));
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.hp-card p,
.hp-case p:last-child {
  margin: 0.55rem 0 0;
}

.hp-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--paper, var(--text));
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hp-card-link::after {
  content: none;
}

.hp-card:hover .hp-card-link,
.hp-card:focus-visible .hp-card-link {
  color: var(--gold, var(--accent));
}

.hp-card--wide,
.hp-card--lg {
  display: flex;
  grid-column: auto;
  grid-row: auto;
}

.hp-pillars {
  padding-bottom: 2.75rem;
}

.hp-migrate-band {
  padding: 2.5rem 0 4.25rem;
  border-top: 1px solid var(--line);
}

.hp-migrate {
  display: grid;
  gap: 1.2rem 2rem;
  margin-top: 0;
  padding: 1.45rem 1.3rem 1.4rem 1.45rem;
  border: 1px solid rgba(245, 197, 24, 0.62);
  border-radius: 0.9rem;
  background:
    linear-gradient(105deg, rgba(245, 197, 24, 0.2), rgba(245, 197, 24, 0.06) 36%, rgba(7, 7, 8, 0.55) 70%);
  box-shadow: inset 4px 0 0 var(--gold, #f5c518);
}

.hp-migrate .hp-kicker {
  color: var(--gold, var(--accent));
}

.page-home .hp-migrate h2 {
  margin: 0;
  max-width: 16em;
  color: var(--paper, var(--text));
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.hp-migrate-punch {
  max-width: 38rem;
}

.page-home .hp-migrate .hp-migrate-punch {
  margin-top: 0.85rem;
  color: var(--paper, var(--text));
  font-weight: 600;
}

.hp-migrate-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.page-home .hp-migrate .hp-migrate-side-label {
  margin: 0;
  color: var(--steel, var(--muted));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hp-migrate-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-migrate-platforms li {
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(245, 197, 24, 0.45);
  border-radius: 999px;
  background: rgba(7, 7, 8, 0.35);
  color: var(--paper, var(--text));
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.hp-case-index {
  display: block;
  margin: 0;
  color: var(--gold, var(--accent));
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.hp-case-meta {
  margin: 0.45rem 0 0;
  color: var(--steel, var(--muted));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hp-case--featured {
  background: rgba(7, 7, 8, 0.35);
}

.hp-feature {
  padding-top: 0;
}

.hp-feature-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.hp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.hp-feature-list li {
  padding: 1rem 0.15rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--steel, var(--muted));
  backdrop-filter: none;
}

.hp-feature-list li:hover {
  color: var(--paper, var(--text));
  background: transparent;
  border-color: var(--line);
  transform: none;
}

.hp-feature-copy .hp-btn {
  margin-top: 1.35rem;
}

.hp-close {
  padding: 4.5rem 0 5rem;
  border-top: 1px solid var(--line);
  background: none;
}

.hp-close .hp-lead {
  margin-bottom: 1.35rem;
}

.page-home .zone-footer-top--brands,
.page-home .zone-footer {
  margin-top: 0;
}

@media (min-width: 860px) {
  .hp-stats-grid {
    flex-direction: column;
    align-items: stretch;
    width: min(18rem, 32%);
  }

  .hp-stats-grid li {
    min-width: 0;
  }

  .hp-bento,
  .hp-cases {
    grid-template-columns: 1fr 1fr;
  }

  .hp-cases {
    grid-template-columns: 1.15fr 1fr 1fr;
  }

  .hp-feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hp-migrate {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.72fr);
    align-items: center;
    padding: 1.7rem 1.75rem 1.65rem 1.9rem;
  }
}

@media (max-width: 859px) {
  .page-home {
    --home-chrome: 5.75rem;
  }
}

@media (max-width: 860px) {
  .hp-hero {
    height: auto;
    min-height: 100svh;
  }

  .hp-hero-shade {
    min-height: 100svh;
    padding-bottom: 2.5rem;
  }

  .hp-hero-inner {
    flex-direction: column;
    align-items: stretch;
    /* Come sul desktop: le diciture partono a metà viewport e sopra resta il film. */
    padding: 49svh 0 0;
  }

  .hp-hero-rail {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .hp-stats-grid {
    justify-content: flex-start;
  }

  .hp-section {
    padding: 3.5rem 0;
  }

  .hp-pillars {
    padding-bottom: 2rem;
  }

  .hp-migrate-band {
    padding: 1.75rem 0 2.75rem;
  }

  .hp-news-grid {
    grid-template-columns: 1fr;
  }
}

.hp-talk {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.hp-talk[hidden] {
  display: none;
}

.hp-talk__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.72);
}

.hp-talk__panel {
  position: relative;
  width: min(100%, 34rem);
  padding: 1.35rem 1.35rem 1.15rem;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 1rem;
  background: #111113;
  color: var(--paper, #f4f1ea);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.hp-talk__panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.hp-talk__form {
  display: grid;
  gap: 0.75rem;
}

.hp-talk__form label {
  font-size: 0.95rem;
  line-height: 1.45;
}

.hp-talk__form textarea {
  width: 100%;
  min-height: 9rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 0.7rem;
  background: #070708;
  color: var(--paper, #f4f1ea);
  font: inherit;
  resize: vertical;
}

.hp-talk__status {
  margin: 0;
  color: var(--gold, var(--accent));
}

.hp-talk__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .hp-btn,
  .hp-card,
  .hp-case,
  .hp-feature-list li {
    transition: none;
  }
}
