/* =========================
   BASE
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  margin: 0;
  background-color: #050b14;
  color: #eaeaea;
}

a {
  color: #eaeaea;
  text-decoration: none;
}

a:hover {
  color: #9fb4cc;
}

/* =========================
   OPERE
   ========================= */



/* =========================
   NAVIGAZIONE LIBRO
   ========================= */
.book-nav {
  display: flex;
  justify-content: center;
    align-items: center;
  gap: 60px;
  margin: 40px 0 30px; /* ↑ più vicino alle foto */
}

.book-nav.center {
  justify-content: center;
}

.nav-arrow {
  font-size: 28px;
  color: rgba(255,255,255,0.6);
}

.nav-arrow:hover {
  color: #ffffff;
}
.nav-arrow {
  position: relative; /* necessario per il tooltip */
}
/* tooltip titolo capitolo */

.nav-arrow::after {
  content: attr(data-title);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.4px;

  background: rgba(0,0,0,0.75);
  color: #eaeaea;
  padding: 6px 10px;
  border-radius: 4px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-arrow:hover::after {
  opacity: 1;
}
/* =========================
   FOOTER
   ========================= */

.footer {
  margin-top: 30px;
  margin-bottom: 40px;
}

.footer_area {
  text-align: center;
}

.footer-languages {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-languages img {
  width: 34px;
  opacity: 0.7;
}

.footer-languages img:hover {
  opacity: 1;
}

.rights_text {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.rights_text_center {
  width: 100%;
  text-align: center;        /* centro reale */
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
  .opera-images {
    flex-direction: column;
  }
}
/* =========================
 /* =========================
   CAPITOLI (STORIA)
   ========================= */

.chapter {
  padding: 80px 0;
}

.chapter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8%;

  display: flex;
  gap: 70px;

  align-items: stretch; /* fondamentale */
}


/* TESTO A SINISTRA */
.chapter-text {
  flex: 1;
}

.chapter-text h1 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
  margin-bottom: 40px;
}

.chapter-text p {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 26px;
  color: #dcdcdc;
}

/* IMMAGINE A DESTRA */


.chapter-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 0 50px rgba(0,0,0,0.7);
}
.chapter-image {
  flex: 1.3;
  display: flex;
  align-items: flex-end; /* IMMAGINE IN BASSO */
}
.chapter-image.center {
  align-items: center;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
  .chapter-inner {
    flex-direction: column;
    gap: 40px;
  }
}

/* =========================
   COPERTINA
   ========================= */

.cover {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-inner {
  max-width: 1100px;          /* BLOCCA LA LARGHEZZA */
  width: 100%;
  margin: 0 auto;
  padding: 0 8%;

  display: flex;
  gap: 70px;
  align-items: center;        /* CENTRO VERTICALE */
}

/* IMMAGINE */
.cover-image {
  flex: 1;
  display: flex;
  justify-content: center;    /* CENTRA ORIZZONTALE */
}

.cover-image img {
  max-width: 620px;           /* QUESTO È IL LIMITE */
  width: 100%;
  height: auto;
  display: block;

  box-shadow: 0 0 55px rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.08);
}

/* TESTO */
.cover-text {
  flex: 1;
  max-width: 460px;
}

.cover-text .poesia {
  font-size: 20px;      /* +2px: si sente, ma resta elegante */
  line-height: 1.75;
}

@media (max-width: 900px) {
  .cover-inner {
    flex-direction: column;
    gap: 40px;
  }

  .cover-image img {
    max-width: 90%;
  }
}
/* =========================
   OPERE
   ========================= */

.opera-page {
  padding: 80px 0 40px;
}

.opera-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8%;
}

/* IMMAGINE PRINCIPALE */
.opera-image.main img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 50px;
  box-shadow: 0 0 50px rgba(0,0,0,0.7);
}

/* BLOCCO TESTO + IMMAGINE LATERALE */
.opera-text {
  display: flex;
  gap: 40px;
  align-items: flex-start;

  max-width: 900px;
  margin: 0 auto;
}

.opera-body {
  flex: 1;
  min-width: 0;
}

.opera-title {
  font-family: Georgia, serif;
  font-size: 21px;
  margin-bottom: 8px;
}

.opera-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.opera-text p {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
}

/* IMMAGINE SECONDARIA */
.opera-side {
  flex: 0 0 200px;
}

.opera-side img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 0 35px rgba(0,0,0,0.6);
}

/* =========================
   OPERE – MOBILE
   ========================= */

@media (max-width: 900px) {

  .opera-text {
    flex-direction: column;
    gap: 25px;
  }

  .opera-side {
    order: 2;
    width: 100%;
    max-width: 70%;
    margin: 30px auto 0;
  }
}

.chapter-image {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra tutto */
}

.chapter-caption {
  display: block;
  width: 100%;
  text-align: center;   /* testo sotto, centrato */
  margin-top: 12px;
}
/* --- COLONNA DESTRA CAPITOLI --- */
.chapter-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* immagine in fondo */
}

.side-text {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #dcdcdc;
}

/* immagine più piccola, editoriale */
.chapter-side .chapter-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

/* MOBILE: torna tutto in colonna */
@media (max-width: 900px) {
  .chapter-inner {
    flex-direction: column;
  }

  .chapter-side {
    margin-top: 40px;
  }
}

/* =========================
  