/* ──────────────── TYPOGRAPHY ──────────────── */

p,
li {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
  font-family: var(--font-sans);
  font-weight: 200;
}

h4 {
  font-size: 20px;
  line-height: 1.4;
  font-family: var(--font-sans);
  font-weight: 200;
}

h3 {
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.8;
  font-family: var(--font-mono);
  font-weight: 400;
  overflow-y: hidden;
}

h2 {
  font-size: clamp(28px, 3.5vw, 64px);
  line-height: 1.4;
  font-family: var(--font-mono);
  font-weight: 400;
  overflow-y: hidden;
}

h1 {
  font-size: clamp(45px, 4.5vw, 104px);
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  overflow-y: hidden;
}

th {
  font-family: var(--font-mono);
  font-weight: 400;
  overflow-y: hidden;
}

td {
  font-family: var(--font-sans);
  font-weight: 200;
}

ul {
  padding-inline-start: 0;
}

a:not(nav a):not(#openMenu a) {
  font-family: var(--font-mono);
  font-weight: 400;
  overflow-y: hidden;
}

/* ------------ SHARED COMPONENTS (standalone — these pages don't load general.css) --------- */

button {
  font-family: var(--font-mono);
}

.divider {
  margin-bottom: 15px;
}

.imgFreccia {
  opacity: 0.6;
}

#cta img,
.buttonWithBorder img {
  width: 12px;
  height: 12px;
}

.buttonWithBorder {
  border: 1px solid rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: linear-gradient(#000, #000) no-repeat center bottom;
  background-color: whitesmoke;
  background-size: 100% 0%;
  text-decoration: none;
  color: black;
  text-align: center;
  padding: 8px 16px;
  text-transform: uppercase;
  transition:
    background-size 0.3s ease,
    color 0.3s ease;
}

.buttonWithBorder:hover {
  background-size: 100% 100%;
  color: white;
}

.buttonWithBorderBlackText {
  border: 1px solid var(--color-border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  color: white;
  width: 20vw;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 0%;
  transition:
    background-size 0.3s ease,
    color 0.3s ease;
}

.buttonWithBorderBlackText:hover {
  background-size: 100% 100%;
  color: black;
}

.disabled-link {
  border: 1px solid var(--color-border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--color-bg-disabled) !important;
  background: var(--color-bg-disabled) !important;
  text-decoration: none;
  color: white !important;
  cursor: not-allowed !important;
  font-family: var(--font-mono);
  pointer-events: none;
}

.buttonContainer {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr;
  margin-bottom: 10%;
}

.buttonContainer a {
  grid-column: 2;
}

.siteFooter a,
.siteFooter li,
.siteFooter p {
  font-size: 16px;
  font-family: var(--font-sans);
  text-decoration: none;
}

/* ------------ LAYOUT ---------- */

.bookPgBody *,
.bookPgBodyTop *,
.proposteCopertina *,
.bookPgBodyFinale *,
.stepCopertina *,
.scacchiera *,
.mappa *,
.ctaBook * {
  overflow-x: hidden;
}

#bookPgBodyPetrichor,
#bookPgBodyPapaNonPerdereLaTesta,
#bookPgBodyPetrichor2 {
  margin: 0;
  background-color: #ececec;
  background-image: linear-gradient(
    90deg,
    transparent 99%,
    rgba(255, 255, 255, 0.5)
  );
  background-size: 10%;
}

.bookPgBody,
.bookPgBodyTop,
.bookPgBodyFinale {
  padding: 5% 10%;
}

.bookPgBodyTop {
  padding-top: max(80px, 5%);
}

.bookPgBodyNoTop {
  padding: 0 10% 5% 10%;
}

.bookPgBodyIntermedio {
  padding: 0 10%;
}

.introBook {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.titleBook h4 {
  margin: 0;
}

.retroSpinaFronte {
  height: 80vh;
  min-height: 400px;
}

.tecnicaECliente {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr 3fr 1fr;
}

.descrizioneTecnica {
  grid-column: 2;
}

.schedaLibro {
  grid-column: 4;
}

.schedaLibro {
  width: 100%;
  border-collapse: collapse;
}

.schedaLibro tr:not(:last-child) th,
.schedaLibro tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.schedaLibro th,
.schedaLibro td {
  text-align: left;
  padding: 5px 30px 5px 5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.schedaLibro th {
  font-weight: 600;
  width: 100px;
}

.stepCopertina {
  display: flex;
  flex-direction: column;
  padding: 0 10%;
}

.sezioneTrama {
  display: flex;
  flex-direction: column;
}

.sezioneTrama .trama {
  font-size: 14px;
}

.sezioneTrama a {
  align-self: end;
}

.img100vw {
  height: 80vh;
  width: 100vw;
}

.img100vw.mappa {
  background: center / cover no-repeat
    url("/img/lavori-editoriali/petrichor/mappa-petrichor.webp");
}

.scacchiera {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 20px;
}

.nomePersonaggio {
  font-weight: 600;
}

.imgStudioPersonaggio {
  min-height: 400px;
  background-color: white;
  background-position: center;
}

#imgStudioPersonaggioSilas {
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/img/lavori-editoriali/petrichor/studio personaggi/silas.webp");
}

#imgStudioPersonaggioKieran {
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/img/lavori-editoriali/petrichor/studio personaggi/kieran.webp");
}

#imgStudioPersonaggioFratelloKieran {
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/img/lavori-editoriali/petrichor/studio personaggi/Fratello Kieran.webp");
}

.descrizionePersonaggio {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proposteCopertina {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.propostaCopertina {
  width: 100%;
  object-fit: contain;
}

.ctaBook {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
}

.ctaBook .ctaBookColSin {
  grid-column: 1;
}

.ctaBook .ctaBookColSin a {
  text-align: center;
}

.ctaBook .ctaBookColDex {
  grid-column: 3;
}

.ctaBook a {
  display: block;
}

.copertinaFull {
  width: 100vw;
}

#bookPgBodyPetrichor .step1copetinaLibro,
#bookPgBodyPetrichor .step2copertinaLibro,
#bookPgBodyPetrichor .scacchiera {
  margin-bottom: 10%;
}

#bookPgBodyPetrichor .step1copetinaLibro h2,
#bookPgBodyPetrichor .step1copetinaLibro section,
#bookPgBodyPetrichor .step2copertinaLibro h2,
#bookPgBodyPetrichor .step3copertinaLibro > h3 {
  margin-bottom: 30px;
}

.proposteCopertina {
  margin-bottom: 15px;
}

/* ------------ CTA SECTION ---------- */

.ctaSection {
  padding: 0 10% 5% 10%;
}

.ctaSection .buttonContainer {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr;
  margin-bottom: 0;
  margin-top: max(30px, 5%);
}

.ctaSection .buttonWithBorder {
  grid-column: 2;
}
