
.guide-page {
  min-height: 100vh;
  padding-top: 82px;
  background:
    radial-gradient(circle at 85% 8%, rgba(247,186,24,.07), transparent 26%),
    #080808;
}

.guide-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: end;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.77) 45%, rgba(0,0,0,.35) 100%),
    linear-gradient(0deg, #080808 0%, transparent 45%),
    url("../assets/banner.png") center 52% / cover no-repeat;
  opacity: .68;
  transform: scale(1.015);
}

.guide-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 70px 0 58px;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #817d76;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 20px;
}

.guide-breadcrumb a:hover { color: var(--yellow); }
.guide-breadcrumb b { color: var(--yellow); }

.guide-hero h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: .86;
  font-weight: 400;
  letter-spacing: .015em;
  max-width: 900px;
}

.guide-hero h1 span { color: var(--yellow); }

.guide-hero p {
  margin-top: 20px;
  max-width: 720px;
  color: #c1bcb4;
  line-height: 1.7;
}

.guide-layout {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 62px;
  padding: 70px 0 120px;
}

.guide-sidebar {
  align-self: start;
  position: sticky;
  top: 112px;
}

.guide-sidebar-label {
  display: block;
  margin-bottom: 15px;
  color: #68645e;
  font-size: .68rem;
  letter-spacing: .16em;
  font-weight: 800;
}

.guide-sidebar nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.08);
}

.guide-sidebar a {
  padding: 12px 10px;
  color: #918c84;
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: .2s ease;
}

.guide-sidebar a:hover,
.guide-sidebar a.active {
  color: var(--yellow);
  padding-left: 15px;
  background: rgba(247,186,24,.045);
}

.guide-content { min-width: 0; }

.spoiler-note {
  border: 1px solid rgba(247,186,24,.25);
  border-left: 4px solid var(--yellow);
  background: linear-gradient(90deg, rgba(247,186,24,.08), rgba(247,186,24,.015));
  padding: 18px 20px;
  margin-bottom: 48px;
  color: #c7c1b8;
  line-height: 1.6;
  font-size: .88rem;
}

.spoiler-note strong { color: var(--yellow); }

.guide-section {
  margin-bottom: 68px;
  scroll-margin-top: 110px;
}

.guide-section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: .69rem;
  letter-spacing: .17em;
  font-weight: 800;
}

.guide-section h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: .96;
  margin-bottom: 18px;
}

.guide-section h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
  color: var(--white);
}

.guide-section p {
  max-width: 850px;
  color: #a9a39b;
  line-height: 1.78;
  margin: 0 0 15px;
}

.guide-section strong { color: #e4dfd7; }

.guide-cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  min-height: 150px;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.075);
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 60%),
    #111;
}

.info-card.yellow {
  border-color: rgba(247,186,24,.23);
  background:
    linear-gradient(145deg, rgba(247,186,24,.09), transparent 64%),
    #111;
}

.info-card small {
  display: block;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.info-card h3 {
  margin: 0 0 9px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: 1.65rem;
}

.info-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.62;
}

.steps {
  counter-reset: skstep;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.step {
  counter-increment: skstep;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.07);
  background: #101010;
}

.step::before {
  content: counter(skstep, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(247,186,24,.35);
  color: var(--yellow);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
}

.step h3 { margin: 2px 0 6px; }
.step p { margin: 0; font-size: .9rem; }

.key-table {
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.key-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.key {
  justify-self: start;
  min-width: 52px;
  padding: 8px 13px;
  border: 1px solid rgba(247,186,24,.32);
  background: rgba(247,186,24,.07);
  color: var(--yellow);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.3);
}

.key-row span:last-child {
  color: #aaa49c;
  font-size: .9rem;
}

.tip {
  margin-top: 22px;
  padding: 18px 20px;
  background: rgba(255,255,255,.025);
  border-left: 3px solid #6d6860;
  color: #aaa49c;
  line-height: 1.65;
  font-size: .88rem;
}

.tip strong { color: var(--yellow); }

.guide-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.guide-index-card {
  min-height: 190px;
  padding: 26px;
  position: relative;
  border: 1px solid rgba(255,255,255,.075);
  background: #101010;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.guide-index-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247,186,24,.38);
  background: #151515;
}

.guide-index-card small {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.guide-index-card h2 {
  margin: 13px 0 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  font-weight: 400;
}

.guide-index-card p {
  color: #908b83;
  font-size: .88rem;
  line-height: 1.55;
}

.guide-index-card b {
  position: absolute;
  right: 23px;
  bottom: 21px;
  color: var(--yellow);
}

.next-guide {
  margin-top: 90px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.next-guide a {
  color: #948f87;
  font-size: .82rem;
}

.next-guide a:hover { color: var(--yellow); }

@media (max-width: 900px) {
  .guide-page { padding-top: 72px; }

  .guide-hero-inner,
  .guide-layout { width: calc(100% - 40px); }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 40px;
  }

  .guide-sidebar {
    position: static;
    overflow-x: auto;
  }

  .guide-sidebar-label { display: none; }

  .guide-sidebar nav {
    flex-direction: row;
    width: max-content;
    border-top: 0;
  }

  .guide-sidebar a {
    border: 1px solid rgba(255,255,255,.08);
    margin-right: 7px;
    white-space: nowrap;
  }

  .guide-sidebar a:hover,
  .guide-sidebar a.active { padding-left: 10px; }
}

@media (max-width: 620px) {
  .guide-hero { min-height: 360px; }
  .guide-cards,
  .guide-index-grid { grid-template-columns: 1fr; }

  .key-row {
    grid-template-columns: 105px 1fr;
    gap: 15px;
  }

  .step {
    grid-template-columns: 45px 1fr;
    padding: 18px 15px;
  }

  .step::before {
    width: 42px;
    height: 42px;
  }
}


/* ---------- PC / Xbox / PlayStation control matrix ---------- */
.control-matrix {
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0d0d0d;
  overflow: hidden;
}
.control-head,
.control-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.45fr) repeat(3, minmax(120px, .85fr));
}
.control-head {
  background: rgba(247,186,24,.09);
  border-bottom: 1px solid rgba(247,186,24,.2);
}
.control-head > div {
  padding: 14px 18px;
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.control-row { border-bottom: 1px solid rgba(255,255,255,.065); }
.control-row:last-child { border-bottom: 0; }
.control-row > div {
  min-height: 68px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.055);
}
.control-row > div:last-child,
.control-head > div:last-child { border-right: 0; }
.control-action {
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 4px;
}
.control-action strong { color: #eee8df; font-size: .9rem; }
.control-action span { color: #78736c; font-size: .72rem; line-height: 1.4; }
.pad-key {
  display: inline-flex;
  min-width: 48px;
  min-height: 36px;
  padding: 7px 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247,186,24,.32);
  background: rgba(247,186,24,.055);
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.pad-key.ps { font-size: .78rem; letter-spacing: 0; }
.pad-key.muted {
  border-color: rgba(255,255,255,.1);
  background: transparent;
  color: #5e5a55;
  font-weight: 600;
}
.controller-note {
  margin-top: 18px;
  color: #77726a;
  font-size: .78rem;
  line-height: 1.65;
}
.controller-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.controller-nav article {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: #101010;
}
.controller-nav small {
  display: block;
  margin-bottom: 7px;
  color: var(--yellow);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.controller-nav strong { display: block; margin-bottom: 4px; font-size: .88rem; }
.controller-nav span { color: #817c74; font-size: .76rem; line-height: 1.45; }

@media (max-width: 780px) {
  .control-matrix { border: 0; background: transparent; }
  .control-head { display: none; }
  .control-row {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: #101010;
  }
  .control-row > div {
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
  }
  .control-row > div:last-child { border-bottom: 0; }
  .control-row > div:not(.control-action)::before {
    width: 105px;
    flex: 0 0 105px;
    color: #69645e;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .09em;
  }
  .control-row > div:nth-child(2)::before { content: "PC"; }
  .control-row > div:nth-child(3)::before { content: "XBOX"; }
  .control-row > div:nth-child(4)::before { content: "PLAYSTATION"; }
  .controller-nav { grid-template-columns: 1fr; }
}


/* Uniforma visivamente i pulsanti controller */
.control-row .pad-key {
  height: 38px;
  line-height: 1;
}

.control-row .pad-key.ps {
  font-size: .78rem;
  font-weight: 800;
}
