/* ===============================
   STILI ARTICOLO SINGOLO
=============================== */

.single-post-page .container {
  max-width: 800px;
  margin-inline: auto;
  padding-top: 1rem;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  text-align: center;
  font-weight: 500;
  color: #555;
}
.breadcrumb a {
  color: #084537;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #c2380c;
}

/* ---------- INTESTAZIONE ---------- */
.single-header {
  text-align: center;
}

.single-title {
  color: #04211A;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.single-featured-image {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.single-featured-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
}

.single-meta {
  color: #555;
  margin-top: 0.5rem;
}

/* ==================================================
   SINGLE POST – CONTENUTO ARTICOLO
================================================= */
.single-content {
  color: #333;
  margin-bottom: 3rem;
}

/* Titoli */
.single-content h2 {
  font-size: 2rem;
  color: #04211A;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.single-content h3 {
  font-size: 1.5rem;
  color: #c2380c;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.single-content h4 {
  font-size: 1.25rem;
  color: #084537;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  text-align: left;
}

.single-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.single-content img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
  margin-top: 4rem;
}

.single-content .wp-block-image {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.single-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  
}

.single-content figure {
  margin: 2rem auto;
  text-align: center;
  
}

.single-content ul,
.single-content ol {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.single-content li {
  margin-bottom: 0.6rem;
}

/* ADATTAMENTI MOBILE */
@media (max-width: 600px) {
  .single-content {
    margin-bottom: 2rem;
  }
  .single-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
  }
  .single-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
  }
  .single-content h4 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .single-content p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }
}
/* ===========================
   POST NAVIGATION
=========================== */
.post-navigation {
  margin: 3rem auto;
  padding: 1.5rem 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  max-width: 900px;
}

.post-navigation-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap; /* 🔒 evita che vada su due righe */
}

.nav-previous,
.nav-next {
  flex: 1 1 auto;
  max-width: 50%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.post-navigation a {
  color: #084537;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

.post-navigation a:hover {
  color: #c2380c;
}

/* 🔧 Ottimizzazioni su schermi piccoli */
@media (max-width: 480px) {
  .post-navigation a {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
  }
}




/* ===========================
   BOX AUTORE
=========================== */
.post-author-box {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

/* Titolo sezione */
.post-author-box h3 {
  text-align: center;
  color: #04211A;
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* Container autore: due colonne flessibili */
.author-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
  max-width: 900px;
  margin: 0 auto;
}

/* Colonna immagine autore */
.author-photo {
  flex: 0 0 50%;
  display: flex;
  justify-content: flex-start;
}

.author-photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
}

/* Colonna testo autore */
.author-text {
  flex: 0 0 50%;
  text-align: right;
}

/* Nome autore */
.author-name {
  color: #04211A;
  margin: 0 0 0.3rem 0;
}

/* Titolo professionale */
.author-title {
  font-size: 1.2rem;
  color: #c2380c;
  margin: 0 0 0.6rem 0;
}

/* Descrizione */
.author-text p {
  margin: 0 0 1rem 0;
  color: #555;
  line-height: 1.5;
}

/* Link “Conoscimi meglio” */
.author-text a {
  display: inline-block;
  background-color: #084537;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s ease;
  margin-left: auto;
}

.author-text a:hover {
  background-color: #c2380c;
  color: #ffffff !important;
}

/* MOBILE: inversione colonne */
@media (max-width: 767px) {
  .author-info {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }

  .author-photo {
    justify-content: center;
  }

  .author-text {
    width: 100%;
    text-align: center;
  }

  .author-text a {
    margin: 0 auto;
  }
}


/* ---------- CTA FINALE stringata ---------- */
.post-cta {
  margin: 6rem auto 1rem;
  max-width: 800px;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  border: 2px solid #084537;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  text-align: center;
}

.post-cta h2 {
  color: #04211A;
  margin-bottom: 1rem;
}

.post-cta p {
  margin-bottom: 1rem;
  color: #333;
}

.post-cta .cta-button {
  display: inline-block;
  background-color: #084537;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}

.post-cta .cta-button:hover {
  background-color: #c2380c;
}
@media (max-width: 767px) {
  .post-cta {
    width: 75%;
    padding: 5px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    
  }
  .post-cta h2 {
  font-size: 1.6rem;
}
.post-cta .cta-button {
  font-size: 1rem;
}
}


/* ---------- ARTICOLI CORRELATI ---------- */
.related-posts {
  margin-top: 4rem;
}

.related-posts h2 {
  text-align: center;
  color: #04211A;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  
}

@media (max-width: 480px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

.related-post {
  background: transparent;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.related-post img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

.related-post h3 {
  font-size: 1.3rem;
  color: #04211A;
  transition: color 0.2s ease;
}

.related-post:hover h3 {
  color: #c2380c;
}

/* ---------- COLLEGAMENTI NEL CONTENUTO ---------- */
.single-content a {
  color: #084537;
  text-decoration: none;
}

.single-content a:hover {
  color: #c2380c;
  text-decoration: none;
}
