/*!
Theme Name: Morellini Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Vincenzo Di Dio
Author URI: https://vizo.it
Description: Morellini child theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */
.wbg-main-wrapper .wbg-item a.wgb-item-link {
	margin-right: 10px;
	margin-bottom: 18px;
	padding: 10px;
	font-size: 17px;
}
.wbg-main-wrapper .wbg-item {
   padding-bottom: 32px;
}
.wbg-main-wrapper .wbg-item span {
  font-size: 15px;
}
.wbg-item span.book-format,   span.book-format a {
  display: none;
}
.wbg-main-wrapper .wbg-item span {
  margin: 0px 0 20px 0 !important;
  padding: 0px !important;
}
.wbg-main-wrapper .wbg-item a.wgb-item-link {
  margin-bottom: 0px;
  padding: 0px;
  font-size: 17px;
}
span.wbgp-price.price-after {
	color: #555!important;
}
.wbg-details-summary span {
  font-size: 16px!important;
 }
span.loop-category {
    display: none!important;
		font-size: 16px!important;
}
.wbg-details-wrapper a.wbg-btn-back {
   	background: #fa750d !important;
}
.wbg-details-wrapper .wbg-details-description {
  padding-right: 30px;
  padding-left: 30px;
 }
 .wbg-details-wrapper h3.wbg-slide-title {
  padding-left: 30px;
 }
.wbg-search-container .wbg-search-item a#wbg-search-refresh:hover {
	background: #fa750d;
	border: 1px solid #fa750d;
	color: #FFF;
}

@media only screen and (max-width: 767px) {
  .wbg-details-wrapper {
    width: 100%;
    float: none;
    padding-right: 30px!important;
    padding-left: 30px!important;
  }
}


/* CSS pagina autore
-------------------------------------------------------------- */
/* Desktop: imposta layout orizzontale (già funzionante) */
.wpsh-author-wrapper {
    overflow: hidden;
}

/* Mobile: imposta layout verticale */
@media screen and (max-width: 768px) {
    .wpsh-author-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .wpsh-author-photo {
        float: none !important;
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto 1.5em auto !important;
    }

    .wpsh-author-photo img {
        width: 100% !important;
        height: auto;
        display: block;
    }

    .wpsh-author-bio {
        width: 100%;
    }
}


/* Layout autore nella tab "Conosci l'autore" */
.wpsh-frontend-conosci-autore .author-entry {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap; /* Per il mobile */
    margin-bottom: 2em;
}

.wpsh-frontend-conosci-autore .author-entry img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.wpsh-frontend-conosci-autore .author-biography {
    flex: 1;
    min-width: 250px;
}

/* Contenitore esterno della tab autore */
.wpsh-frontend-conosci-autore {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Wrapper della scheda autore */
.wpsh-author-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 1em;
  align-items: flex-start;
}

/* Immagine dell'autore */
.wpsh-author-photo img {
  max-width: 180px;
  border-radius: 8px;
  display: block;
}

/* Testo biografia autore */
.wpsh-author-bio {
  flex: 1;
}

/* Box autore */
.author-entry {
  border-bottom: 1px solid #ddd;
  padding-bottom: 2em;
  margin-bottom: 2em;
}

/* Link "Scopri altri libri di" */
.wpsh-author-bio p:last-child {
  margin-top: 1em;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .wpsh-author-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wpsh-author-photo {
    margin: 0 0 1em 0;
  }

  .wpsh-author-bio {
    width: 100%;
  }

  .wpsh-author-photo img {
    max-width: 100%;
    height: auto;
  }
}

/* Tabella informazioni aggiuntive */
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    text-align: left !important;
}

.woocommerce table.shop_attributes th {
    width: 24% !important;
    white-space: nowrap !important;
}

.woocommerce table.shop_attributes td {
    width: 76% !important;
}
