/* ------------------------------
   BASE STYLE
------------------------------ */
body {
  margin: 0;
  padding-top: 80px;
  /* altezza approssimativa della navbar */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}


.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ------------------------------
   SEZIONI
------------------------------ */


.section {
  padding: 80px 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #163c49, #e8e8e8);
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.editorial {
  padding: 80px 0;
  background: linear-gradient(135deg, #163c49);
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.bg-dark-custom {
  background-color: #343a40;
}

.bg-light-custom {
  background-color: #f8f9fa;
}

/* ------------------------------
   LAYOUT
------------------------------ */
.grid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

#testo {
  text-align: justify;
}

.small-logo {
  width: 150px;
  height: auto;
}

/* ------------------------------
   EDITORIALE
------------------------------ */
.editorial-section .card {
  background-color: #ffffff;
  color: #333;
  font-family: 'Lora', serif;
  line-height: 1.7;
}

.editorial-section h1,
.editorial-section h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #222;
}

.editorial-section h5 {
  font-weight: 400;
  font-size: 18px;
  color: #6c757d;
}

.editorial-section p {
  font-size: 16px;
  color: #444;
}

.editorial-section a {
  color: #007bff;
  text-decoration: none;
}

.editorial-section a:hover {
  text-decoration: underline;
}

.editorial-section ul {
  padding-left: 1.2em;
  margin-top: 1em;
}

.editorial-section ul li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.editorial-section hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 2rem 0;
}

/* ------------------------------
   IMAGE CONTAINER
------------------------------ */
.image-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 20px;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.image-container:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.image-title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 18px;
  font-family: 'Staatliches', sans-serif;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 5px;
  letter-spacing: 2px;
  z-index: 10;
}

/* ------------------------------
   BOOK CARD
------------------------------ */
.book-card {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 900px;
  overflow: hidden;
}

.book-image {
  flex: 1 1 300px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.book-image:hover img {
  transform: scale(1.05);
}

.book-info {
  flex: 2 1 400px;
  padding: 20px;
  font-family: 'Lora', serif;
}

.book-info h3 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #222;
}

.book-author {
  font-style: italic;
  color: #666;
  margin-bottom: 15px;
}

.book-description {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.download-links {
  margin-top: 15px;
}

.download-links a {
  display: inline-block;
  margin-right: 15px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.download-links a:hover {
  text-decoration: underline;
}

.uppercase-text {
  text-transform: uppercase;
}

/* ------------------------------
   BUTTONS
------------------------------ */
.stripe-button,
.paypal-button,
.contact-button {
  background-color: #6772e5;
  color: white;
  font-size: 16px;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-button {
  background-color: #ff5722;
  /* arancione */
}

/* ------------------------------
   FRECCIA ANIMATA
------------------------------ */
.arrow-down {
  width: 60px;
  height: 60px;
  border-left: 5px solid #c87c37;
  border-bottom: 5px solid #c87c37;
  transform: rotate(-45deg);
  margin: 20px auto;
  animation: bounce 1.2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(-45deg);
  }

  40% {
    transform: translateY(10px) rotate(-45deg);
  }

  60% {
    transform: translateY(5px) rotate(-45deg);
  }
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .section-editoria {
    flex-direction: column;
    gap: 30px;
    padding: 60px 20px;
  }

  .nav-links {
    flex-direction: column;
    background-color: #111;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }
}