/* FONT & BASE VERSIONE GIUSTA */
body {
    font-family: 'Playfair Display', serif;
    color: #222;
    background-color: #fafafa;
  }
  
  /* NAVBAR */
  .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.3s ease;
    padding: 30px;
  }
  
  .navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }
  
  .navbar-brand {
    font-weight: 600;
    letter-spacing: 1px;
  }

  /* LOGO NAVBAR */
.navbar-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* BURGER MENU – RESET COMPLETO */
.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: none;
}

/* NAVBAR – MOBILE CENTERED MENU */
@media (max-width: 991px) {

  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    margin-top: 24px;
    align-items: center;
  }

  .navbar-nav .nav-item {
    margin-bottom: 12px;
  }

  .navbar-brand {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   NAVBAR – MOBILE < 425px
========================= */
@media (max-width: 425px) {

  .navbar > .container {
    flex-direction: column;
    align-items: center;
  }

  .navbar-brand {
    margin: 0;
    text-align: center;
  }

  .navbar-toggler {
    margin-top: 10px;
  }

  .navbar-collapse {
    width: 100%;
    text-align: center;
  }

  .navbar-nav {
    margin-top: 24px;
    align-items: center;
  }

  .navbar-nav .nav-item {
    margin-bottom: 12px;
  }
}


  
  /* HERO */
  .hero-section {
    height: 70vh;
    background: #e8e7ec46;
  }
  
  .hero-section h1 {
    font-size: 3rem;
    font-weight: 400;
  }
  
  .hero-section p {
    font-size: 1.2rem;
    color: #555;
  }

  /* HERO REFINEMENT */
.hero-section {
  min-height: 85vh;
  background: linear-gradient(
    180deg,
    #f5f5f7 0%,
    #fafafa 100%
  );
  padding-top: 120px;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #555;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-actions .btn {
  font-size: 0.95rem;
  padding: 10px 28px;
}

.hero-link {
  font-size: 0.95rem;
  color: #222;
  text-decoration: none;
  position: relative;
}

.hero-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.hero-link:hover::after {
  width: 100%;
}

/*UX HERO*/

.hero-title,
.hero-subtitle,
.hero-actions {
  animation: heroFade 0.8s ease forwards;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  
  /* SEZIONI */
  .section-padding {
    padding: 80px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
  }

  /* NOVITÀ */
.book-slide {
  text-align: center;
  cursor: pointer;
}

/* =========================
   NOVITÀ – CARD EDITORIALE
========================= */

.book-slide {
  text-align: center;
  cursor: pointer;
  max-width: 260px;
  margin: 0 auto;
}

/* CONTENITORE FISSO */
.book-cover {
  width: 100%;
  height: 300px;
  background-color: #f1f1f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease;
}

/* IMMAGINE SEMPRE INTERA */
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.book-meta {
  margin-top: 10px;
}

.book-meta h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.book-meta p {
  font-size: 0.85rem;
  color: #666;
}

/* =========================
   DESKTOP – RIDUZIONE IMPATTO
========================= */
@media (min-width: 992px) {
  .book-cover {
    height: 260px;
  }

  .book-slide {
    max-width: 240px;
  }
}

/* =========================
   MOBILE – CONSISTENZA
========================= */
@media (max-width: 768px) {
  .book-cover {
    height: 240px;
  }

  .book-meta h5 {
    font-size: 0.95rem;
  }

  .book-meta p {
    font-size: 0.8rem;
  }
}

.book-meta h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.book-meta p {
  font-size: 0.9rem;
  color: #666;
}

/* carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

  

  
  /* FOOTER */
  .footer {
    background-color: #2f4a6d;
    color: #fff;
    padding: 30px 0;
  }
  
  .footer p {
    margin: 0;
    font-size: 0.9rem;
  }

  /* FOOTER */
.site-footer {
  background-color: #2f4a6d;
  color: #ffffff;
  padding: 80px 0 40px;
  font-size: 0.95rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
}

.footer-text {
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-text a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

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

.footer-social a {
  display: inline-block;
  margin-right: 14px;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  transition: transform 0.15s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.book-slide {
  text-align: center;
  cursor: pointer;
  max-width: 260px;
  margin: 0 auto;
}

.book-cover {
  width: 100%;
  height: 280px;
  background-color: #f1f1f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.book-meta {
  margin-top: 10px;
}

.book-meta h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.book-meta p {
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 768px) {
  .book-cover {
    height: 240px;
  }
}


/* COLLANA CARD – STILE EDITORIALE PULITO */

.collana-card {
  background: transparent;
  padding: 0;
  box-shadow: none;
  height: 100%;
}

/* IMMAGINI – ALLINEAMENTO E CONSISTENZA */
.collana-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  transition: transform 0.10s, box-shadow 0.10s;
  will-change: transform;
  border-radius: 5px;
}



.collana-img-wrapper {
  width: 100%;
  background-color: transparent; /* #f3f3f3 leggerissimo, puoi anche toglierlo */
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.collana-img-wrapper.rettangolare {
  aspect-ratio: 16 / 9;
}


.collana-img-wrapper.saggistica {
  aspect-ratio: 4 / 3;
}

.collana-img-wrapper.poesia {
  aspect-ratio: 5 / 3;
}

.collana-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* HOVER LEGGERO */
/*.collana-card:hover .collana-img {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}*/

.collana-card:hover .collana-img-wrapper {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}


/* TESTI */
.collana-card h3,
.collana-card h4 {
  font-weight: 400;
  margin-bottom: 10px;
}

.collana-card p {
  margin-bottom: 8px;
}

.collana-keywords {
  font-size: 0.9rem;
  color: #555;
}

.collana-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.collana-link:hover {
  color: inherit;
  text-decoration: none;
}

.collana-link:focus-visible {
  outline: 2px solid #2f4a6d;
  outline-offset: 6px;
}

/* RITMO GENERALE SEZIONI */
.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

section + section {
  position: relative;
}

section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 1px;
  background: #ddd;
  transform: translateX(-50%);
}

.section-title {
  margin-bottom: 60px;
  letter-spacing: 0.04em;
}

.section-title + p,
.section-title + .row {
  margin-top: -20px;
}

.bg-light {
  background-color: #f7f7f9 !important;
}

/* =========================
   CAROSELLO NOVITÀ – MOBILE
========================= */
@media (max-width: 768px) {

  .book-cover {
    height: 260px;
  }

  .book-meta h5 {
    font-size: 1rem;
  }

  .book-meta p {
    font-size: 0.85rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 12%;
  }
}

/* =========================
   CATALOGO – MOBILE
========================= */
@media (max-width: 768px) {

  .catalogo-grid .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .catalogo-grid img {
    height: 280px;
  }
}

.carousel {
  touch-action: pan-y;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 70% 70%;
}

/* =========================
   RESET TOTALE CARD LIBRI
========================= */

/* Rimuove QUALSIASI background / bordo */
.book-slide,
.book-card,
.card,
.carousel-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Rimuove padding Bootstrap */
.book-slide,
.book-card,
.card-body {
  padding: 0 !important;
}

/* Forza layout pulito */
.book-slide * {
  background: transparent !important;
}

/* =========================
   HOVER COPERTINE – EDITORIALE
========================= */

.book-cover {
  overflow: hidden;
}

.book-cover img {
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.book-slide:hover .book-cover img,
.book-card:hover .book-cover img {
  transform: scale(1.035);
  filter: contrast(1.05) saturate(1.02);
}

/* =========================
   NAVBAR – DROPDOWN EDITORIALE
========================= */

.navbar .dropdown-menu {
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  font-size: 0.95rem;
}

.navbar .dropdown-item {
  padding: 8px 20px;
  color: #222;
  transition: background-color 0.15s ease;
}

.navbar .dropdown-item:hover {
  background-color: #f5f5f7;
}

.navbar .dropdown-toggle::after {
  margin-left: 6px;
  font-size: 0.7em;
  vertical-align: middle;
}


/* =========================
   SERVIZI – STILE EDITORIALE
========================= */

.service-item {
  text-align: center;
  padding: 0 12px;
}

.service-item i {
  font-size: 1.8rem;
  color: #2f4a6d;
  margin-bottom: 14px;
  display: inline-block;
}

.service-item h6 {
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* Hover quasi impercettibile */
.service-item:hover i {
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

/* =========================
   CONTATTI – STILE EDITORIALE
========================= */

.contact-block {
  margin-bottom: 48px;
}

.contact-block h5 {
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.contact-email {
  font-size: 1.05rem;
  margin: 8px 0;
}

.contact-email a {
  color: #2f4a6d;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.9rem;
  color: #555;
}

.contact-divider {
  width: 40px;
  height: 1px;
  background: #ddd;
  margin: 40px 0;
}

/* =========================
   HERO EDITORIALE – SIGNATURE
========================= */

.hero-editorial {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    #ededf0 0%,
    #f7f7f9 100%
  );
  
  overflow: hidden;
}

/* LUCE ALTA, COME CARTA */
.hero-light {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  pointer-events: none;
}

/* CONTENUTO */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* EYEBROW */
.hero-eyebrow {
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2f4a6d;
  margin-bottom: 28px;
}

/* TITOLO */
.hero-title {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #1d1d1f;
  margin-bottom: 32px;
}

/* SOTTOTITOLO */
.hero-subtitle-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.65;
  color: #555;
  letter-spacing: 0.015em;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.62);
}

.hero-subtitle-italic::first-letter {
  font-size: 1.05em;
}

/*Logo Hero*/
.hero-logo {
  height: 3rem;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%);
}



/* ANIMAZIONE MICRO */
.hero-eyebrow,
.hero-title,
.hero-subtitle {
  animation: heroReveal 0.9s ease forwards;
}

.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-editorial {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Hero Catalogo */
.hero-editorial--catalogo .hero-eyebrow {
  opacity: 0.85;
}

.hero-editorial--catalogo .hero-title {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
}

/* Hero Collane */
.hero-editorial--collane .hero-title {
  letter-spacing: 0.04em;
}

.hero-editorial--collane .hero-subtitle {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* Hero Chi Siamo */
.hero-editorial--about .hero-title {
  letter-spacing: 0.06em;
}

.hero-editorial--about .hero-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}



/* =========================
   OFFSET CONTENUTO PER NAVBAR FIXED
========================= */

.book-page {
  padding-top: 120px;
}

@media (max-width: 768px) {
  .book-page {
    padding-top: 110px;
  }
}

@media (min-width: 992px) {
  #bookDetail {
    justify-content: center;
  }
}

/* IMG SINGLE BOOK */
.img-single-book{
  max-width: 300px;
  max-height: 400px;
}

.img-box-shadow{
  box-shadow: 3.8px 7.5px 7.5px hsl(0deg 0% 0% / 0.38);
}

@media (max-width: 1024px) {
  .img-single-book {
    max-width: 250px;
  }
}

/* Pagination */
.page-item.active .page-link {
  background-color: #2f4a6d; /* stesso del footer */
  color: #f7f7f9;
  border: none;
}

.page-link {
  background: transparent;
  color: #1d1d1f;
  border: none;
}

.page-item:not(.active) .page-link:hover {
  text-decoration: underline;
  background: transparent;
  color: #1d1d1f;
}

.page-link:focus-visible {
  outline: 1px solid #2f4a6d;
  outline-offset: 3px;
}

/* =========================
   COLLANE – DESCRIZIONE
========================= */

.section-collana-description {
  background-color: #f7f7f9; /* stesso tono delle sezioni soft */
}

.collana-description {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1d1d1f;
}

.collana-description p:last-child {
  margin-bottom: 0;
}

.collanaSubtitle {
  font-size: 1rem;
  color: #555;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Spinner */

.loader-wrapper {
  width: 100%;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.2em;
}
