/*
Theme Name: Booksaw BookStore Template
Theme URI: https://templatesjungle.com/
Author: TemplatesJungle
Author URI: https://templatesjungle.com/
Description: Booksaw is specially designed product packaged for Book Store by TemplateJungle.
Version: 1.1

Whisper Books - foglio di stile riordinato

INDICE
   1. Variabili (colori, font, dimensioni)
   2. Override variabili Bootstrap
   3. Base (reset, link, liste, tipografia, form, tabelle, spaziature)
   4. Bottoni
   5. Componenti (tabs, accordion, utilita', pattern, titoli di sezione)
   6. Card prodotto e copertine libro
   7. Header (top bar, ricerca, navigazione)
   8. Sezioni home (billboard, client holder, featured, best selling,
      popular books, quotation, special offer, subscribe, latest blog,
      download app)
   9. Footer
  10. Pagine di dettaglio: libro e autore
  11. Amministrazione
*/


/* ==========================================================================
   1. VARIABILI
   ========================================================================== */

/* Palette precedente (beige): accent #C5A992 | dark #2f2f2f | light #F3F2EC | testo #757575 | testo chiaro #afafaf */

:root {
    /* Dimensioni header */
    --header-height: 160px;
    --header-height-min: 80px;
    /* Colori tema */
    --accent-color: #B84B60;
    /*--secondary-color: #9A3A4E;*/
    --secondary-color: #9F3E52;
    --dark-color: #2C1A1F;
    --light-color: #FBF5F6;
    --body-text-color: #5A4448;
    --light-text-color: #9A8082;
    --dark-text-color: #2C1A1F;
    --wine-dark-color: #5C242F;
    --rose-color: #EBD9DD;
    --amazon-color: #f6b500;
    /* Colori di supporto (valori invariati, prima ripetuti in piu' punti) */
    --gold-color: #74642F;
    --surface-color: #EDEBE4;
    /* Font */
    --body-font: "Raleway", sans-serif;
    --heading-font: "Prata", Georgia, serif;
    --secondary-font: "Playfair Display", Georgia, serif;
}

@media screen and (max-width: 600px) {
  :root {
    --header-height: 100px;
    --header-height-min: 80px;
  }
}


/* ==========================================================================
   2. OVERRIDE VARIABILI BOOTSTRAP
   ========================================================================== */

:root,
[data-bs-theme=light] {
  --heading-font-weight: 400;
  --heading-color: var(--bs-dark);
  --heading-line-height: 1.1;
  --swiper-theme-color: var(--bs-primary);
  --custom-easing: cubic-bezier(.17, .67, .83, .67);
  --bs-body-font-family: "Raleway", arial, sans-serif;
  --bs-body-font-size: 0.9rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.7;
  --bs-body-color: #333;
  --bs-body-color-rgb: 51, 51, 51;
  --bs-primary: #C5A992;
  --bs-primary-dark: #C5A992;
  --bs-secondary: #C5A992;
  --bs-black: #111;
  --bs-light: #F1F1F0;
  --bs-dark: #212529;
  --bs-gray: #949494;
  --bs-gray-dark: #51565b;
  --bs-primary-rgb: 169, 128, 115;
  --bs-secondary-rgb: 253, 238, 233;
  --bs-black-rgb: 17, 17, 17;
  --bs-light-rgb: 241, 241, 240;
  --bs-dark-rgb: 33, 37, 41;
  --bs-link-color: var(--bs-dark);
  --bs-link-color-rgb: 17, 17, 17;
  --bs-link-decoration: underline;
  --bs-link-hover-color: var(--bs-primary);
  --bs-link-hover-color-rgb: 169, 128, 115;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 3rem;
}

.container-fluid {
  max-width: 1800px;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
}

.dropdown-menu {
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-border-width: 0;
}

.dropdown-item {
  --bs-dropdown-item-padding-y: 0.25rem;
  --bs-dropdown-item-padding-x: 1rem;
  --bs-dropdown-link-color: var(--bs-black);
  --bs-dropdown-item-border-radius: 0;
}

.dropdown-item.active,
.dropdown-item:active {
  --bs-dropdown-link-active-color: var(--bs-light);
  --bs-dropdown-link-active-bg: var(--bs-black);
}

.list-group-item {
  --bs-list-group-item-padding-x: 0;
  --bs-list-group-border-width: 0;
}

.btn {
  --bs-btn-border-radius: 0;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary-dark);
  --bs-btn-hover-border-color: var(--bs-primary-dark);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-active-border-color: var(--bs-secondary);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bs-primary);
  --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-gradient: none;
}

.pagination {
  --bs-pagination-active-bg: var(--bs-black);
  --bs-pagination-bg: transparent;
  --bs-pagination-border-width: 0;
  --bs-pagination-border-radius: 0;
}

.breadcrumb {
  --bs-breadcrumb-item-padding-x: 1em;
}

.text-white {
  --heading-color: var(--bs-light);
  --bs-breadcrumb-item-active-color: var(--bs-light);
  --bs-breadcrumb-divider-color: var(--bs-light);
  --bs-link-color-rgb: var(--bs-light-rgb);
  --bs-link-hover-color-rgb: var(--bs-light-rgb);
}

.text-white .nav-link {
  --bs-nav-link-color: var(--bs-light);
  --bs-nav-link-hover-color: var(--bs-light);
  --bs-nav-link-active-color: var(--bs-light);
  --bs-navbar-active-color: var(--bs-light);
}

.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-btn-color: var(--bs-dark);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-focus-border-color: var(--bs-dark);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 1rem;
  --bs-accordion-active-color: var(--bs-dark);
  --bs-accordion-active-bg: transparent;
}

.form-control:focus {
  border-color: #ccc;
  box-shadow: 0 0 0 0.25rem rgba(200, 200, 200, .25);
}

[data-bs-theme=dark] {
  color-scheme: dark;
  --heading-color: #fff;
  --bs-heading-color: #fff;
  --bs-link-color: #CCCCCC;
  --bs-link-hover-color: var(--bs-primary);
  --bs-link-color-rgb: 204, 204, 204;
  --bs-link-hover-color-rgb: 131, 169, 172;
  --bs-body-color: var(--bs-light);
  --bs-body-color-rgb: 241, 241, 240;
  --bs-body-bg: #111;
  --bs-body-bg-rgb: 17, 17, 41;
  color: var(--bs-gray);
}

[data-bs-theme=dark] .dropdown-item {
  --bs-dropdown-link-color: var(--bs-light);
  --bs-dropdown-link-hover-color: var(--bs-white);
}

[data-bs-theme=dark] .bg-white,
[data-bs-theme=dark] .bg-light {
  --bs-bg-opacity: 0.1;
}

/* ==========================================================================
   3. BASE
   ========================================================================== */

/* ---- Reset e documento ---- */

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 2;
  color: var(--body-text-color);
  background-color: var(--light-color);
}

body.no-scroll {
  overflow: hidden;
}

/* ---- Link ---- */

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s color ease-out;
}


a:hover {
  color: #111;
}

/* ---- Liste e definizioni ---- */

ul,
ol {
  margin-top: 0;
  margin-left: 0;
  padding-left: 0;
}


ul {
  list-style: circle inside;
}

ol {
  list-style: decimal inside;
}

ul ul,
ul ol,
ol ol,
ol ul {
  margin: 1.5rem 0 1.5rem 3rem;
  font-size: 90%;
}

ul li,
ol li {
  margin-bottom: 5px;
  outline: 0;
}

ul li.active a {
  color: #daa556;
}

ul li:last-child,
ol li:last-child {
  margin-bottom: 0;
}

li {
  margin-bottom: 1rem;
}

dl {
  margin-top: 0;
}

dt,
dd {
  line-height: 1.42857143;
}

dt {
  font-weight: bold;
}

dd {
  margin-left: 0;
}

/* ---- Elementi di base ---- */

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: 0;
}

figure {
  margin: 0;
}

img {
  display: inline-block;
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

::selection {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-shadow: none;
}

::-moz-selection {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-shadow: none;
}

figure.align-right {
  margin: 30px 0 30px 30px;
}

/* ---- Tipografia ---- */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--heading-font);
  line-height: 1.2;
  color: var(--dark-color);
}

h1.light,
.h1,
h2.light,
.h2,
h3.light,
.h3,
h4.light,
.h4,
h5.light,
.h5,
h6.light,
.h6 {
  color: #fff;
}

h1,
h2,
h3 {
  margin: 25px 0;
}

h5,
h6 {
  letter-spacing: 1px;
}

h1,
.h1 {
  font-size: 2.5em;
  line-height: 1.4;
}

h2,
.h2 {
  font-size: 1.5em;
  line-height: 1.4;
}

h3,
.h3 {
  font-size: 1.4em;
  line-height: 1.4;
}

h4,
.h4 {
  font-size: 1.1em;
  line-height: 1.4;
}

h5,
.h5 {
  font-size: .83em;
  line-height: 1.25;
}

h6,
.h6 {
  font-size: .67em;
  line-height: 1.1;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

p:empty {
  display: none;
}

small {
  font-size: 85%;
}

mark {
  background-color: #fcf8e3;
  padding: 0.28rem;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

kbd,
var {
  font-size: 14px;
}

abbr {
  border-bottom: 0.1px dotted #666;
  cursor: help;
}

::placeholder {
  color: #999;
}

::-webkit-input-placeholder {
  color: #7A7A7A;
}

:-ms-input-placeholder {
  color: #7A7A7A;
}

/* ---- Allineamenti e testo ---- */

.align-left {
  float: left;
  text-align: left;
}

.align-right {
  float: right;
  text-align: right;
}

.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.container::after,
.row::after,
.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.text-nowrap {
  white-space: nowrap;
}

.text-lead {
  font-size: 120%;
  line-height: 1.7em;
}

.text-lead strong {
  font-size: 115%;
  font-weight: 500;
}

.text-muted {
  color: #777;
}

.text-pri {
  color: #ff9697;
}

.text-hide {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

/* ---- Form ---- */

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  padding: 6px 10px;
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px;
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0;
}

label,
legend {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
}

fieldset {
  padding: 0;
  border-width: 0;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline;
}

label>.label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal;
}

/* ---- Codice e tabelle ---- */

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px;
}

pre>code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #E1E1E1;
}

th:first-child,
td:first-child {
  padding-left: 0;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

/* ---- Spaziature, utilita' e separatori ---- */

button,
.button {
  margin-bottom: 1rem;
}

input,
textarea,
select,
fieldset {
  margin-bottom: 1.5rem;
}

pre,
blockquote,
dl,
figure,
table,
p,
ul,
ol,
form {
  margin-bottom: 2.5rem;
}

.u-full-width {
  width: 100%;
  box-sizing: border-box;
}

.u-max-full-width {
  max-width: 100%;
  box-sizing: border-box;
}

.u-pull-right {
  float: right;
}

.u-pull-left {
  float: left;
}

.list-icon i {
  margin-right: 10px;
}

.list-unstyled {
  list-style: none;
}

.txt-fx .letter {
  opacity: 0;
}

hr {
  margin-top: 3rem;
  margin-bottom: 3.5rem;
  border-width: 0;
  border-top: 1px solid #E1E1E1;
}

/* ==========================================================================
   4. BOTTONI
   ========================================================================== */

/* ---- Bottone Amazon ---- */

.btn.btn-outline-amazon {
  background: #FF9900;
  border-color: #FF9900;
  color: #111;
}

.btn.btn-outline-amazon:hover {
  border-color: #FF9900;
  color: #FF9900;
  background: transparent;
}

.btn-outline-ebay {
  background: #0064D2;
  border-color: #0064D2;
  color: #fff;
}

.btn-outline-ebay:hover {
  border-color: #0064D2;
  color: #0064D2;
  background: transparent;
}

/* ---- Base ---- */

a.btn,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"],
button {
  background-image: none;
  background: var(--accent-color);
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.75em 1.5em;
  margin-top: 15px;
  font-size: 15px;
  font-weight: bold;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  z-index: 1;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

button {
  font-size: 1em;
  font-weight: 600;
  border: none;
  height: 65px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn:hover,
.btn:focus,
input[type="button"]:focus,
input[type="button"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
input[type="reset"]:focus,
input[type="reset"]:hover,
input[type="file"]:focus,
input[type="file"]:hover,
button:focus,
button:hover {
  text-decoration: none;
  outline: 0;
}

.light .btn:hover {
  color: #fff;
}

.btn:last-child {
  margin-right: 0;
}

.btn:active,
.btn.btn-outline-light:active,
.btn.btn-outline-dark:active,
.btn.btn-outline-accent:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="file"]:active,
button:active {
  outline: 0;
  background-image: none;
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

a.btn.disabled,
fieldset[disabled] a.btn {
  pointer-events: none;
}

.btn.btn-small {
  padding: 0.325em 1.7em;
  font-size: 0.65em;
}

.btn.btn-medium {
  padding: 0.5em 1.75em;
  font-size: 0.75em;
}

.btn.btn-large {
  padding: 1em 2.5em;
}

.btn.btn-xlarge {
  padding: 1.5em 2.7em;
  font-size: 0.9em;
}

.btn.btn-image {
  background-color: transparent;
  padding: 0;
  max-height: 50px;
}

.btn.btn-image img {
  max-height: 50px;
}

.btn.btn-rounded,
.btn.btn-rounded::after {
  border-radius: 4px;
}

.btn.btn-pill,
.btn.btn-pill::after {
  border-radius: 2em;
}

.btn.btn-outline-dark,
.btn.btn-outline-light,
.btn.btn-outline-accent {
  border: 1px solid #fff;
  background: transparent;
  text-shadow: none;
  box-shadow: none;
}

.btn.btn-outline-dark:hover::after,
.btn.btn-outline-light:hover::after {
  background-color: transparent;
}

.btn.btn-outline-dark {
  border-color: #121212;
  color: #121212;
}

.btn.btn-outline-dark:hover {
  background: #121212;
  border-color: #121212;
  color: #fff;
}

.btn.btn-outline-accent {
  background: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn.btn-outline-accent:hover {
  border-color: var(--dark-color);
  color: var(--dark-color) !important;
}

.btn.btn-outline-light {
  background: transparent;
  border-color: var(--light-text-color);
  color: var(--light-text-color);
}

.btn.btn-outline-light:hover {
  border-color: var(--accent-color);
  color: var(--accent-color) !important;
}

.btn.btn-full {
  display: block;
  margin: .85em 0;
  width: 100%;
  text-align: center;
}

.btn-with-line {
  color: #fff;
  position: relative;
}

.btn-with-line:after {
  content: "";
  position: absolute;
  top: 8px;
  right: -66px;
  border-bottom: 2px solid #fff;
  width: 50%;
  z-index: 9;
  transition: 0.3s ease-out;
}

.btn-with-line:hover {
  color: #fff;
}

.btn-with-line:hover:after {
  width: 30%;
  right: -41px;
}

.btn.btn-common {
  background: var(--accent-color);
  color: #fff;
}

.btn.btn-common:hover {
  background: #151515;
  color: #fff;
}

.btn.btn-accent {
  color: #ffffff;
  background-color: var(--accent-color);
}

.btn.btn-accent:hover {
  color: #ffffff !important;
  background-color: #121212;
}

.btn.btn-gray,
.btn.btn-grey {
  background: #9e9e9e;
  color: #fff;
}

.btn.btn-black {
  background: #121212;
  color: #fff;
}

.btn.btn-black:hover {
  background-color: #797979;
}

.btn.btn-white {
  background: #f8f8f8;
  text-shadow: none;
  color: #121212 !important;
}

.btn.btn-white:hover {
  background: var(--accent-color);
  text-shadow: none;
}

.btn-left {
  text-align: left;
  display: block;
}

.btn-center {
  text-align: center;
  display: block;
}

.btn-right {
  text-align: right;
  display: block;
}

/* ---- Wrap, link con freccia, submit, subscribe ---- */

.btn-wrap {
  text-transform: capitalize;
}

.btn-wrap a {
  text-decoration: none;
  font-weight: 600;
}

.btn-wrap a:hover {
  color: var(--gold-color);
}

.btn-normal {
  color: #fff;
}

.btn-accent {
  color: #111;
}

.btn-submit {
  background: #fff;
  color: #2f2f2f;
}

.btn-submit:hover {
  background-color: #c5a992;
  color: #fff;
}

.btn-accent-arrow {
  color: #111;
}

.btn-wrap i.icon {
  transition: 0.5s ease-out;
  font-size: 9px;
  padding-left: 10px;
}

.btn-wrap:hover i.icon {
  padding-left: 20px;
}

.btn-subscribe {
  width: 30%;
  color: #111;
  background: transparent;
  margin: 0;
  height: max-content;
}

.btn-subscribe span {
  transition: 0.5s ease-out;
  padding-right: 5px;
  opacity: 1;
}

.btn-subscribe:hover span {
  padding-right: 10px;
  opacity: 0.5;
}

/* ==========================================================================
   5. COMPONENTI
   ========================================================================== */

/* ---- Nav, tabs e pills ---- */

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .nav-link {
    transition: none;
  }
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-color);
}

.nav-link.disabled {
  color: #6c757d;
  pointer-events: none;
  cursor: default;
}

.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
  color: #999;
  padding: 10px 30px;
  margin-bottom: -1px;
  background: none;
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: #e9ecef #e9ecef #dee2e6;
  isolation: isolate;
}

.nav-tabs .nav-link.disabled {
  color: #6c757d;
  background-color: transparent;
  border-color: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #495057;
  border-color: #dee2e6 #dee2e6 #f3f2ec;
  --bs-nav-tabs-link-active-bg: transparent;
}

.nav-tabs .dropdown-menu {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.nav-pills .nav-link {
  background: none;
  border: 0;
  border-radius: 0.25rem;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff;
  background-color: #0d6efd;
}

.nav-fill>.nav-link,
.nav-fill .nav-item {
  flex: 1 1 auto;
  text-align: center;
}

.nav-justified>.nav-link,
.nav-justified .nav-item {
  flex-basis: 0;
  flex-grow: 1;
  text-align: center;
}

.nav-fill .nav-item .nav-link,
.nav-justified .nav-item .nav-link {
  width: 100%;
}

.bootstrap-tabs .tab-content {
  padding: 20px 0;
}

.bootstrap-tabs .tab-content>.tab-pane {
  display: none;
}

.bootstrap-tabs .tab-content>.active {
  display: block;
}

/* ---- Fade, collapse e accordion ---- */

.fade {
  transition: opacity 0.15s linear;
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    transition: none;
  }
}

.fade:not(.show) {
  opacity: 0;
}

.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .collapsing {
    transition: none;
  }
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-anchor: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .accordion-button {
    transition: none;
  }
}

.accordion-button:not(.collapsed) {
  color: var(--accent-color);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .accordion-button::after {
    transition: none;
  }
}

.accordion-button:hover {
  z-index: 2;
}

.accordion-button:focus {
  z-index: 3;
  outline: 0;
  box-shadow: none;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-item {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion-body {
  padding: 1rem 1.25rem;
}

.accordion-flush .accordion-collapse {
  border-width: 0;
}

.accordion-flush .accordion-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.accordion-flush .accordion-item:first-child {
  border-top: 0;
}

.accordion-flush .accordion-item:last-child {
  border-bottom: 0;
}

.accordion-flush .accordion-item .accordion-button {
  border-radius: 0;
}

/* ---- Spaziature di sezione ---- */

.padding-xsmall {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.padding-small {
  padding-top: 2em;
  padding-bottom: 2em;
}

.padding-medium {
  padding-top: 4em;
  padding-bottom: 4em;
}

.padding-xlarge {
  padding-top: 9.5em;
  padding-bottom: 9.5em;
}

.padding-2xlarge {
  padding-top: 15em;
  padding-bottom: 15em;
}

.no-padding-top {
  padding-top: 0 !important;
}

.no-padding-bottom {
  padding-bottom: 0 !important;
}

.no-gutter {
  padding: 0 !important;
}

.no-padding {
  padding: 0;
}

.no-margin {
  margin: 0;
}

.margin-small {
  margin-top: 3em;
  margin-bottom: 3em;
}

.margin-medium {
  margin-top: 4.5em;
  margin-bottom: 4.5em;
}

.margin-large {
  margin-top: 6em;
  margin-bottom: 6em;
}

.margin-xlarge {
  margin-top: 7.5em;
  margin-bottom: 7.5em;
}

@media only screen and (max-width: 768px) {
  .margin-small,
  .margin-medium,
  .margin-large,
  .margin-xlarge {
    margin-top: 1em;
    margin-bottom: 1em;
  }
}

/* ---- Effetto hover immagini ---- */

.image-hvr-effect {
  display: flex;
  overflow: hidden;
}

.image-hvr-effect img.post-image {
  transform: scale(1);
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.image-hvr-effect:hover img.post-image {
  transform: scale(1.1);
}

/* ---- Pattern overlay ---- */

.pattern-overlay {
  background-image: url(images/pattern1.png);
  background-repeat: no-repeat;
  background-position: top right;
}

.leaf-pattern-overlay {
  background-image: url(images/leaf.png);
  background-repeat: no-repeat;
  background-position: bottom left;
}

.corner-pattern-overlay {
  background-image: url(images/pattern2.png);
  background-repeat: no-repeat;
  background-position: top right;
}

/* ---- Titoli di pagina e di sezione ---- */

.page-title {
  font-size: 4.5em;
  margin-top: 2em;
}

@media screen and (max-width: 768px) {
  .page-title {
    font-size: 2.5em;
    margin-top: 1em;
  }
}

.section-header {
  position: relative;
}

.section-title {
  font-size: 3em;
  font-weight: 500;
  line-height: 1;
  position: relative;
  margin-bottom: 75px;
}

.section-title.divider {
  width: 100%;
}

.section-title.divider:after {
  content: "";
  border-bottom: 3px solid var(--gold-color);
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  width: 50px;
}

.section-header .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

    .section-header .section-title:before,
    .section-header .section-title:after {
        content: "";
        flex: 1 1 auto;
        border-bottom: 1px solid #E0E0E0;
    }

.section-header .title span {
  font-size: 18px;
  color: #999;
  text-transform: uppercase;
}

/*@media screen and (max-width: 1366px) {
  .section-header .section-title:before,
  .section-header .section-title:after {
    width: 30%;
  }
}

@media screen and (max-width: 999px) {
  .section-header .section-title:before,
  .section-header .section-title:after {
    width: 25%;
  }
}*/

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2em;
  }

  .section-header .section-title:before,
  .section-header .section-title:after {
    top: 60px;
    width: 100%;
  }
}

/* ---- Immagini ---- */

img.post-image {
  width: 100%;
  height: 328px;
  object-fit: cover;
}

/* ==========================================================================
   6. CARD PRODOTTO E COPERTINE LIBRO
   ========================================================================== */

.products-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.product-style {
  position: relative;
  overflow: hidden;
}

.slick-slider .product-style {
  margin: 0 15px 25px;
}

.product-style figcaption p {
  margin-bottom: 20px;
}

.product-style img.product-item {
  position: relative;
  background: #EFEEE8;
  border: 1px solid #EAE8DF;
  padding: 15%;
  cursor: pointer;
  width: 100%;
}

.product-style button.add-to-cart {
  position: absolute;
  background: #000;
  color: #fff;
  width: 100%;
  margin: 0;
  text-transform: uppercase;
  text-align: center;
  line-height: 3;
  bottom: -65px;
  left: 0;
  z-index: 9;
  transition: 0.3s ease-out;
}

.product-style:hover button.add-to-cart {
  bottom: 0;
}

.product-item figcaption {
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.product-item figcaption>h3 {
  font-size: 1.4em;
  font-weight: 500;
  color: var(--gold-color);
  margin: 0;
}

.product-item figcaption>p {
  margin: 0;
}

.product-item .item-price {
  color: var(--gold-color);
  font-size: 1.3em;
}

@media screen and (max-width: 768px) {
  .products-grid .product-item {
    width: 45%;
  }

  .product-style img.product-item {
    object-fit: contain;
    margin: 0 auto;
  }

  .products-grid.col-3 .product-style,
  .products-grid.col-4 .product-style,
  .products-grid.col-5 .product-style {
    width: 100%;
  }
}

@media screen and (max-width: 575px) {
  .products-grid .product-style {
    width: 100%;
  }
}

.book-card-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: #f0ede6;
}

.book-cover {
  position: relative;
  width: 80%;
  line-height: 0;
}

.book-cover::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 8px;
  height: 100%;
  background: rgba(80, 80, 80, 0.25);
  border-radius: 3px;
  pointer-events: none;
}

.book-cover img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
}

.book-cover-big {
  position: relative;
  width: 80%;
  line-height: 0;
}

.book-cover-big::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 14px;
  height: 100%;
  background: rgba(80, 80, 80, 0.25);
  border-radius: 3px;
  pointer-events: none;
}

.book-cover-big img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
}

/* ==========================================================================
   7. HEADER
   ========================================================================== */

/* ---- Top bar ---- */

.top-content {
    padding: 15px 0;
    border-bottom: 1px solid rgba(251, 245, 246, 0.18);
    background-color: var(--secondary-color);
}

.social-links ul {
  list-style: none;
  display: flex;
  margin-bottom: 0;
}

.social-links a {
  color: var(--dark-text-color);
  text-decoration: none;
}

.top-content li {
  padding-right: 30px;
}

.top-content li:last-child {
  padding-right: 0;
}

.social-links li {
  padding-right: 20px;
}

.top-content a {
    color: var(--light-color);
    text-decoration: none;
}

.top-content .right-element {
  text-align: right;
}

.top-content .right-element .for-buy {
  margin-right: 40px;
}

/* ---- Ricerca ---- */

#header-wrap .action-menu {
  display: inline-block;
  align-items: baseline;
}

#header-wrap .action-menu span.opennav.openicon {
  cursor: pointer;
}

.action-menu .icon {
  font-size: 18px;
  font-weight: 800;
}

.action-menu .search-bar {
  overflow: hidden;
}

.action-menu .search-bar,
.action-menu .open-icon-wrap {
    width: 40px;
    height: 40px;
    background: rgba(251, 245, 246, 0.16);
    border-radius: 40px;
    display: flex;
    justify-content: right;
    align-items: center;
    cursor: pointer;
    transition: 0.3s width cubic-bezier(0, 0.75, 0.49, 0.99);
}

#header-wrap .search-button {
    order: 1;
    padding-right: 10px;
    padding-left: 10px;
    text-decoration: none;
    color: var(--light-color);
}

#header-wrap.show .search-bar {
  width: 300px;
}

#header-wrap .search-bar form {
  margin: 0;
}

#header-wrap .search-box .search-input {
    width: 250px;
    border: 0;
    margin-bottom: 0;
    font-weight: 300;
    padding-left: 20px;
    background: transparent;
    color: var(--light-color);
}

    #header-wrap .search-box .search-input::placeholder {
        color: rgba(251, 245, 246, 0.7);
    }

.action-menu .side-nav-bar .menu-btn a,
.action-menu .searchbar a {
  color: #000;
  text-decoration: none;
  line-height: 2.2;
}

.action-menu .menu-btn a {
  color: #07051a;
  text-decoration: none;
}

.action-menu .icon.icon-menu-btn:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/*@media screen and (max-width: 768px) {
  .action-menu .search-bar {
    margin-top: 20px;
    width: 100%;
  }
}
*/

@media screen and (max-width: 767px) {
    /* barra social su una sola riga */
    .top-content {
        padding: 8px 0;
    }

        .top-content .container-fluid,
        #header .container-fluid {
            --bs-gutter-x: 1.5rem;
        }

        .top-content .row {
            flex-wrap: nowrap;
            align-items: center;
        }

            .top-content .row > * {
                width: auto;
                flex: 1 1 auto;
            }

        .top-content .right-element .for-buy {
            margin-right: 15px;
        }

    /* con la ricerca aperta nasconde social e utente per fare spazio */
    #header-wrap.show .social-links,
    #header-wrap.show .user-account {
        display: none;
    }

    /* logo a sinistra, MENU a destra sulla stessa riga */
    #header {
        padding: 8px 0;
    }

        #header > .container-fluid {
            position: relative;
        }

        #header .row {
            flex-wrap: nowrap;
            align-items: center;
        }

            #header .row > .col-md-2 {
                flex: 1 1 auto;
                width: auto;
                min-width: 0;
            }

            #header .row > .col-md-10 {
                flex: 0 0 auto;
                width: auto;
            }

        /* pulsante MENU e tendina a tutta larghezza */
        #header .stellarnav .menu-toggle {
            padding: 8px 0 8px 12px;
            color: var(--wine-dark-color);
        }

            #header .stellarnav .menu-toggle span.bars span {
                background: var(--wine-dark-color);
            }

        #header .stellarnav.mobile > ul {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--rose-color);
            box-shadow: 0 10px 20px rgba(92, 36, 47, 0.18);
            z-index: 20;
        }

        #header .stellarnav.mobile > ul,
        #header .stellarnav.mobile li a {
            border-color: rgba(92, 36, 47, 0.12);
        }
}


/* ---- Navigazione principale e logo ---- */

#header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(92, 36, 47, 0.12);
    background-color: var(--rose-color);
}

    #header .menu-list a {
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 0.12em;
        color: var(--wine-dark-color);
    }

        #header .menu-list a.active,
        #header .menu-list a:hover {
            color: var(--secondary-color);
        }

.main-logo img {
    mix-blend-mode: darken;
}

/* ==========================================================================
   8. SEZIONI HOME
   ========================================================================== */

/* ---- Billboard ---- */

#billboard {
    background-image: url('images/wave01.png'), linear-gradient(#9F3E52, #9F3E52);
    background-repeat: no-repeat;
    background-position: bottom center, top center;
    background-size: 100% auto, 100% calc(100% - 20vw);
}

#billboard .container {
  padding-left: 0;
}

#billboard .main-slider {
  padding: 40px 0 60px 0;
  min-height: 500px;
}


#billboard .main-slider.pattern-overlay {
  background-image: none;
}

.main-slider .slider-item {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    min-height: 600px;
}

.main-slider .banner-content {
  width: 45%;
  margin-top: 0px;
  margin-right: 50px;
  margin-left: 0;
}

.banner-content h2.banner-title {
  font-size: 3.5em;
  font-weight: 500;
  color: #222;
  line-height: 1.1;
}


.banner-content p {
  margin: 0 0 30px 0;
  font-size: 1.2em;
  line-height: 1.5;
}

#billboard .banner-content a {
  color: #fff;
  opacity: 0.8;
}

#billboard .banner-content a:hover {
  color: #fff;
  opacity: 1;
}

#billboard .slick-dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: 110px;
    width: 10%;
    text-align: inherit;
}

#billboard button.slick-arrow {
  background: transparent;
  border: 1px solid #E5E3DA;
  padding: initial;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  z-index: 5;
  cursor: pointer;
}

#billboard button.slick-arrow:hover {
  border: 1px solid var(--gold-color);
  background-color: #E5E3DA;
}

#billboard button.prev.slick-arrow {
  left: 110px;
}

#billboard button.next.slick-arrow {
  right: 110px;
}

#billboard .slick-arrow i.icon {
  color: #8C8C8C;
}

#billboard .book-cover-big {
  width: 375px;
  align-self: flex-start;
}

#billboard .book-cover-big img {
  width: 413px;
  height: auto;
  object-fit: unset;
  box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.5);
}

#billboard .btn-outline-accent:not(.x),
#best-selling .btn-outline-accent:not(.x) {
    background: #fff;
    border-color: #fff;
    color: var(--secondary-color) !important;
}

#billboard .btn-outline-accent:hover:not(.x) {
    background: var(--wine-dark-color);
    border-color: var(--wine-dark-color);
    color: #fff !important;
}

#best-selling .btn-outline-accent:hover:not(.x) {
    background: var(--wine-dark-color) !important;
    border-color: var(--wine-dark-color) !important;
    color: #fff !important;
}


@media screen and (max-width: 1366px) {
  #billboard button.prev.slick-arrow {
    left: 0;
  }

  #billboard button.next.slick-arrow {
    right: 0;
  }
}

@media screen and (max-width: 999px) {
  #billboard .main-slider {
    margin: 70px 0;
  }

    .main-slider .slider-item {
        flex-wrap: wrap;
        text-align: center;
        flex-direction: column-reverse;
        align-items: center;
    }

  .main-slider .banner-content {
    margin-top: 60px;
    margin-bottom: 80px;
  }

  #billboard .slick-dots {
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
    #billboard {
        position: relative;
    }
        /* le frecce si ancorano al billboard */
        #billboard .container {
            padding-left: 1.5rem;
        }
        /* ripristina il margine laterale */
        #billboard .main-slider {
            margin: 0;
            padding: 24px 0 44px;
            min-height: 0;
        }

    .main-slider .slider-item {
        min-height: 0;
    }

    #billboard .banner-content {
        width: 100%;
        margin: 24px 0 0;
        text-align: center;
    }

    .banner-content h2.banner-title {
        font-size: 2.2em;
    }

    #billboard .banner-content .btn-wrap {
        justify-content: center;
    }

    #billboard .book-cover-big {
        width: auto;
        align-self: center;
    }

    #billboard button.slick-arrow {
        top: 230px;
        bottom: auto;
        width: 36px;
        height: 36px;
        background: rgba(251, 245, 246, 0.85);
        border-color: transparent;
    }

    #billboard button.prev.slick-arrow {
        left: 4px;
    }

    #billboard button.next.slick-arrow {
        right: 4px;
    }

    #billboard .slick-arrow i.icon {
        color: var(--wine-dark-color);
    }
}

/*#billboard .slick-dots li button:before {
    color: #fff;
    opacity: 0.45;
    font-size: 10px;
}

#billboard .slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}
*/


#billboard .slick-dots li {
    width: 24px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    #billboard .slick-dots li button {
        width: 18px;
        height: 3px;
        padding: 0;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.45);
        font-size: 0;
        transition: width 0.25s ease, background-color 0.25s ease;
    }

        #billboard .slick-dots li button:before {
            content: none;
        }

    #billboard .slick-dots li.slick-active button {
        width: 40px;
        background: #fff;
    }



/* ---- Client holder ---- */

#client-holder {
  background: var(--surface-color);
  padding: 105px 0;
}

#client-holder .logo-wrap {
  max-width: 1000px;
  margin: auto;
}

/* ---- Featured books ---- */

:is(#featured-books, #latest-posts, #author-books) .product-list {
    border-bottom: 1px solid #E5CDD3;
    margin-bottom: 30px;
}

:is(#featured-books, #latest-posts, #author-books) figcaption h3 {
    min-height: 3em;
    font-size: 1.3em; 
    color: var(--wine-dark-color);
    margin-bottom: 8px;
}

:is(#featured-books, #latest-posts, #author-books) figcaption {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 22px 0 0;
    padding: 0 24px 24px;
}  

:is(#featured-books, #latest-posts, #author-books) .btn-wrap {
  margin-top: auto;
  text-align: center;
}

/* intestazione */
:is(#featured-books, #latest-posts, #author-books) .section-header .title span {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

:is(#featured-books, #latest-posts, #author-books) .section-title {
    color: var(--wine-dark-color);
}

:is(#featured-books, #latest-posts, #author-books) .section-header .section-title:before,
:is(#featured-books, #latest-posts, #author-books) .section-header .section-title:after {
    border-bottom-color: #E5CDD3;
}

/* card */
:is(#featured-books, #latest-posts, #author-books) .col-md-3 {
    display: flex;
    margin-bottom: 24px;
}

:is(#featured-books, #latest-posts, #author-books) .product-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #F0DEE2;
    border-radius: 10px;
    box-shadow: 0 6px 28px rgba(92, 36, 47, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    :is(#featured-books, #latest-posts, #author-books) .product-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 36px rgba(92, 36, 47, 0.16);
    }

:is(#featured-books, #latest-posts, #author-books) .product-style {
    margin-bottom: 0;
}

/* pannello rosa e copertina */
:is(#featured-books, #latest-posts, #author-books) .book-card-inner {
    background: linear-gradient(#F7E9EC, #EED6DC);
}

:is(#featured-books, #latest-posts, #author-books) .book-cover img {
    border: 0;
    box-shadow: 7px 10px 18px rgba(92, 36, 47, 0.42);
}

/* testi */
:is(#featured-books, #latest-posts, #author-books) figcaption > p:first-child {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

:is(#featured-books, #latest-posts, #author-books) figcaption > span {
    align-self: center;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #F4E4E8;
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

:is(#featured-books, #latest-posts, #author-books) figcaption p i {
    font-size: 13px;
    color: #8C6A70;
}

/* pulsante pieno in vino, a tutta larghezza */
:is(#featured-books, #latest-posts, #author-books) .btn-wrap .btn {
    display: block;
    padding: 0.8em 1em;
    border-radius: 3px;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-color);
    font-size: 13px;
    letter-spacing: 0.06em;
}

    :is(#featured-books, #latest-posts, #author-books) .btn-wrap .btn:hover {
        background: var(--wine-dark-color);
        border-color: var(--wine-dark-color);
        color: var(--light-color) !important;
    }

/* link "elenco completo" */
:is(#featured-books, #latest-posts, #author-books) .btn-wrap > a:not(.btn) {
    color: var(--wine-dark-color);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Riepilogo libri di Books.aspx: copertina proporzionata a tutta larghezza */
#featured-books.catalog-grid .book-cover {
    width: 100%;
}

    #featured-books.catalog-grid .book-cover img {
        height: auto;
        aspect-ratio: 27 / 40;
    }

/* due per riga su mobile, con testi e spaziature pił compatti */
@media screen and (max-width: 767px) {
    #featured-books.catalog-grid .row {
        --bs-gutter-x: 0.75rem;
    }

    #featured-books.catalog-grid .meta-lang {
        display: none;
    }

    #featured-books.catalog-grid figcaption {
        margin: 14px 0 0;
        padding: 0 12px 16px;
    }

        #featured-books.catalog-grid figcaption h3 {
            min-height: 0;
            font-size: 1em;
            margin-bottom: 6px;
        }

        #featured-books.catalog-grid figcaption > p:first-child {
            font-size: 10px;
            margin-bottom: 6px;
        }

        #featured-books.catalog-grid figcaption > span {
            padding: 3px 9px;
            font-size: 9px;
            margin-bottom: 8px;
        }

        #featured-books.catalog-grid figcaption p i {
            font-size: 11px;
        }

    #featured-books.catalog-grid .btn-wrap .btn {
        padding: 0.6em 0.5em;
        font-size: 11px;
    }

    #featured-books.catalog-grid .book-card-inner {
        padding: 15px 6px;
    }

    #featured-books.catalog-grid .book-cover {
        width: 85%;
        margin: 0 auto;
    }

    #featured-books.catalog-grid .btn-full-label {
        display: none;
    }
}

/* Riepilogo autori: niente effetto "pagina di libro" sulle foto */
#featured-books.authors-grid .book-cover img {
    border-radius: 4px;
}

#featured-books.authors-grid .book-cover::after {
    content: none;
}

#featured-books.authors-grid .book-cover {
    width: 100%;
}

    #featured-books.authors-grid .book-cover img {
        height: auto;
        aspect-ratio: 27 / 40;
    }

@media screen and (max-width: 767px) {
    #featured-books.authors-grid .row {
        --bs-gutter-x: 0.75rem;
    }

    #featured-books.authors-grid figcaption {
        margin: 14px 0 0;
        padding: 0 12px 16px;
    }

        #featured-books.authors-grid figcaption h3 {
            min-height: 0;
            font-size: 1em;
            margin-bottom: 6px;
        }

        #featured-books.authors-grid figcaption > span {
            font-size: 11px;
        }

    #featured-books.authors-grid .btn-wrap .btn {
        padding: 0.6em 0.5em;
        font-size: 11px;
    }

    #featured-books.authors-grid .book-card-inner {
        padding: 15px 6px;
    }

    #featured-books.authors-grid .book-cover {
        width: 85%;
        margin: 0 auto;
    }
}

/* Pubblicazioni di un autore (pagina Autore): stesso trattamento mobile del riepilogo libri */
#author-books .book-cover {
    width: 100%;
}

    #author-books .book-cover img {
        height: auto;
        aspect-ratio: 27 / 40;
    }

@media screen and (max-width: 767px) {
    #author-books .row {
        --bs-gutter-x: 0.75rem;
    }

    #author-books .meta-lang {
        display: none;
    }

    #author-books figcaption {
        margin: 14px 0 0;
        padding: 0 12px 16px;
    }

        #author-books figcaption h3 {
            min-height: 0;
            font-size: 1em;
            margin-bottom: 6px;
        }

        #author-books figcaption > p:first-child {
            font-size: 10px;
            margin-bottom: 6px;
        }

        #author-books figcaption > span {
            padding: 3px 9px;
            font-size: 9px;
            margin-bottom: 8px;
        }

        #author-books figcaption p i {
            font-size: 11px;
        }

    #author-books .btn-wrap .btn {
        padding: 0.6em 0.5em;
        font-size: 11px;
    }

    #author-books .book-card-inner {
        padding: 15px 6px;
    }

    #author-books .book-cover {
        width: 85%;
        margin: 0 auto;
    }

    #author-books .btn-full-label {
        display: none;
    }
}




/* ---- Best selling (Consigliato) ---- */

#best-selling {
    background-image: url('images/wave01.png'), linear-gradient(var(--secondary-color), var(--secondary-color));
    background-repeat: no-repeat;
    background-position: bottom center, top center;
    background-size: 100% auto, 100% calc(100% - 20vw);
    padding: 50px 0 calc(40px + 5.2vw); /* era: background: var(--surface-color); padding: 100px 0 */
}

#best-selling .products-thumb {
  margin-right: 0px;
  box-shadow: 2px 6px 34px 4px rgba(63, 63, 63, 0.08);
}

#best-selling .product-entry {
  margin-left: 50px;
}

    #best-selling .product-entry h2.item-title {
        font-size: 3.5em; /* era 3.8em */
        font-weight: 500;
        line-height: 1.1; /* era 1.2 */
        color: var(--light-color); /* nuova */
    }

#best-selling .product-entry h3.item-title {
  font-size: 1.8em;
  font-weight: 100;
}

    #best-selling .product-entry p {
        font-size: 1.2em;
        font-weight: 400; /* era 100 */
        line-height: 1.5; /* era 1.4 */
        margin-bottom: 30px; /* nuova */
        color: rgba(255, 255, 255, 0.9); /* nuova */
    }

#best-selling .product-entry .item-price {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
  #best-selling .products-thumb {
    margin: 0;
  }
}

#best-selling .book-cover {
    width: 300px; /* era 80% */
    max-width: 100%; /* nuova */
    margin: 0 auto;
    background: transparent;
}

    #best-selling .book-cover img {
        width: 100%;
        height: auto;
        object-fit: unset;
        border: 0; /* nuova */
        box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.9); /* nuova, come il billboard */
    }

#best-selling .btn-wrap {
  display: flex !important;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#best-selling .section-header .title span {
    color: #F3D3DA;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

#best-selling .section-title {
    color: var(--light-color);
}

#best-selling .section-header .section-title:before,
#best-selling .section-header .section-title:after {
    border-bottom-color: rgba(251, 245, 246, 0.3);
}

#best-selling .author-name a {
    color: #fff;
    opacity: 0.8;
}

#best-selling .btn-wrap .btn-outline-accent {
    color: #fff;
    border-color: #fff;
}

    #best-selling .btn-wrap .btn-outline-accent:hover {
        background: #fff;
        border-color: #fff;
        color: var(--secondary-color) !important;
    }

/* copertina e testo come un blocco unico, centrato */
@media screen and (min-width: 992px) {
    #best-selling #consigliato-grid {
        justify-content: center;
    }

        #best-selling #consigliato-grid > .col-md-6:first-child {
            flex: 0 0 auto;
            width: auto;
        }

        #best-selling #consigliato-grid > .col-md-6:last-child {
            flex: 0 1 540px;
            width: auto;
        }
}

/* mobile */
@media screen and (max-width: 767px) {
    #best-selling .product-entry {
        margin: 24px 0 0;
        text-align: center;
    }

        #best-selling .product-entry h2.item-title {
            font-size: 2.2em;
        }

    #best-selling .btn-wrap {
        justify-content: center;
    }
}

/* ---- Popular books ---- */

.tab-content {
  position: relative;
}

[data-tab-content] {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.active[data-tab-content] {
  opacity: 1;
  visibility: visible;
  height: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 55px 0;
  justify-content: center;
  list-style: none;
}

.tabs .tab {
  font-weight: 600;
  color: #999;
  margin-right: 50px;
  cursor: pointer;
}

.tabs .tab.active,
.tabs .tab:hover {
  color: #111;
  border-bottom: 2px solid #9A884C;
}

img.books-image {
  margin-right: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* ---- Quotation ---- */

#quotation .section-title.divider,
#quotation .section-title.divider:after {
  margin: 0 auto;
}

#quotation blockquote {
  width: 40%;
  margin: 0 auto;
}

#quotation q {
  display: block;
  font-size: 1.6em;
  padding: 40px 0;
}

#quotation .author-name {
  font-family: "Prata", Georgia, serif;
  font-size: 1.4em;
}

@media screen and (max-width: 768px) {
  #quotation blockquote {
    width: 80%;
  }
}

/* ---- Special offer ---- */

#special-offer .section-header {
  background: var(--surface-color);
  padding: 140px 0 220px;
  margin-bottom: -141px;
  z-index: -1;
}

#special-offer .section-title {
  width: 70%;
  margin: 0 auto;
}

span.prev-price {
  color: #999;
  font-size: 0.8em;
  padding-right: 10px;
  text-decoration: line-through;
}

/* ---- Subscribe ---- */

#subscribe {
  background: var(--surface-color);
  padding: 120px 0;
}

#subscribe .subscribe-content {
  margin-left: 15px;
}

#subscribe .subscribe-content input[type="text"] {
  background: none;
  border: none;
  width: 252px;
}

#subscribe form#form {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #6F6F6F;
}

@media screen and (max-width: 1200px) {
  #subscribe form#form {
    width: 90%;
  }

  #subscribe .subscribe-content input[type="text"] {
    width: 100%;
  }

  #subscribe .btn-subscribe {
    width: 30%;
  }
}

@media screen and (max-width: 980px) {
  #subscribe .section-title {
    width: 100%;
    margin: 0 auto 50px;
  }

  #subscribe p {
    width: 100%;
    text-align: left;
    margin: 30px auto;
  }

  #subscribe form#form,
  #subscribe .subscribe-content {
    width: 100%;
  }

  #subscribe form#form {
    margin: 0 auto;
  }

  #subscribe .subscribe-content {
    margin-left: 0;
  }

  #subscribe {
    margin-bottom: 90px;
  }
}

/* ---- Latest blog ---- */

#latest-blog article.column {
  margin-bottom: 60px;
}

#latest-blog figure {
  margin-bottom: 30px;
}

#latest-blog .meta-date {
  font-family: "Prata", Georgia, serif;
  color: var(--gold-color);
  padding-bottom: 20px;
}

#latest-blog h3 {
  font-size: 1.7em;
  font-weight: 500;
  margin-top: 0;
}

#latest-blog .links-element {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #C8C8C8;
  padding-top: 20px;
}

#latest-blog .categories {
  text-transform: uppercase;
}

@media screen and (max-width: 999px) {
  #latest-blog h3 {
    font-size: 1.4em;
  }
}

@media screen and (max-width: 767px) {
  #latest-blog .grid {
    flex-wrap: wrap;
  }

  #latest-blog article.column {
    width: 100%;
  }
}

/* ---- Download app ---- */

#download-app {
  background: var(--surface-color);
  padding: 120px 0;
  overflow: hidden;
  z-index: 0;
}

#download-app .app-info {
  padding-top: 100px;
  margin-left: 50px;
}

#download-app .app-info p {
  margin-bottom: 50px;
}

@media screen and (max-width: 820px) {
  #download-app .grid {
    flex-wrap: wrap;
  }

  #download-app figure {
    margin: 0 auto;
  }

  #download-app .app-info {
    width: 90%;
    margin: 0 auto;
    padding-top: 80px;
  }
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

footer#footer {
    position: relative; /* nuova */
    background: var(--secondary-color); /* nuova */
    padding: 60px 0 20px; /* era: padding-bottom: 80px */
    margin-top: calc(6vw + 20px); /* era 100px: fa spazio all'onda */
    margin-bottom: 0; /* era 60px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.18); /* era #E0E0E0 */
}

#footer .footer-item {
  margin-right: 100px;
}

#footer .footer-item img.footer-logo {
  margin-bottom: 40px;
}

    #footer .footer-item p {
        width: 80%;
        color: #ECC6D0; /* nuova */
    }

#footer .footer-menu {
  margin-right: 40px;
  margin-bottom: 40px;
}

    #footer .footer-menu ul {
        list-style: none;
        color: var(--light-color); /* nuova: per Italiano, Spagnolo, Inglese */
    }

        #footer .footer-menu ul a {
            color: var(--light-color); /* era var(--dark-text-color) */
            text-decoration: none;
        }

#footer .footer-menu:last-child {
  margin-right: 0;
}

.footer-menu h5 {
    font-size: 1.5em;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 40px;
    text-transform: capitalize;
    color: #F3D3DA; /* nuova */
}

/* onda capovolta in cima, la stessa immagine del billboard */
footer#footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 1px);
    height: 6vw;
    background: url('images/wave01.png') bottom center / 100% auto no-repeat;
    transform: scaleY(-1);
    pointer-events: none;
}

/* logo crema, senza il riquadro chiaro incorporato */
#footer .company-brand img {
    filter: invert(1);
    mix-blend-mode: lighten;
}

#footer .footer-menu ul a:hover {
    color: #F3D3DA;
}

/* barra del copyright */
#footer-bottom {
    background: var(--wine-dark-color);
    padding: 30px 0;
}

    #footer-bottom .copyright .row {
        align-items: center;
    }

    #footer-bottom p {
        margin: 0;
        color: #E2BAC4;
    }

    #footer-bottom .social-links a {
        color: var(--light-color);
    }

        #footer-bottom .social-links a:hover {
            color: #F3D3DA;
        }

@media screen and (max-width: 768px) {
  #footer .footer-item {
    margin-right: 0;
  }
}

/* ==========================================================================
   10. PAGINE DI DETTAGLIO: LIBRO E AUTORE
   ========================================================================== */

/* ---- Struttura comune: fascia vino con onda, intestazione e corpo ---- */

:is(#book-detail, #article-detail) .book-hero,
#author-detail .book-hero {
    background-image: url('images/wave01.png'), linear-gradient(var(--secondary-color), var(--secondary-color));
    background-repeat: no-repeat;
    background-position: bottom center, top center;
    background-size: 100% auto, 100% calc(100% - 20vw);
    padding-bottom: calc(40px + 5.2vw);
}

:is(#book-detail, #article-detail) .breadcrumb,
#author-detail .breadcrumb {
    padding: 1.5rem 0 0.5rem;
    font-size: 0.82rem;
    color: #F3D3DA;
}

    :is(#book-detail, #article-detail) .breadcrumb a,
    #author-detail .breadcrumb a {
        color: #F3D3DA;
        text-decoration: none;
    }

        :is(#book-detail, #article-detail) .breadcrumb a:hover,
        #author-detail .breadcrumb a:hover {
            color: #fff;
        }

    :is(#book-detail, #article-detail) .breadcrumb span,
    #author-detail .breadcrumb span {
        margin: 0 0.4rem;
    }

:is(#book-detail, #article-detail) .book-detail-layout,
#author-detail .book-detail-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding-top: 32px;
}

:is(#book-detail, #article-detail) .book-detail-cover,
#author-detail .book-detail-cover {
    flex: 0 0 300px;
}

:is(#book-detail, #article-detail) .book-detail-info,
#author-detail .book-detail-info {
    flex: 1;
    min-width: 0;
}

    :is(#book-detail, #article-detail) .book-detail-info .book-genre,
    #author-detail .book-detail-info .book-genre {
        margin-bottom: 0;
        color: #F3D3DA;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.22em;
        text-transform: uppercase;
    }

    :is(#book-detail, #article-detail) .book-detail-info h1,
    #author-detail .book-detail-info h1 {
        margin: 10px 0 12px;
        color: var(--light-color);
        font-size: 3.5em;
        font-weight: 500;
        line-height: 1.1;
    }

/* corpo della pagina, sul crema */
:is(#book-detail, #article-detail) .book-detail-body,
#author-detail .book-detail-body {
    padding-top: 36px;
    padding-bottom: 4rem;
}

:is(#book-detail, #article-detail) .book-specs,
#author-detail .author-specs {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

:is(#book-detail, #article-detail) .book-spec-item,
#author-detail .author-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    max-width: 264px;
    gap: 0.5rem;
    text-align: center;
}

    :is(#book-detail, #article-detail) .book-spec-item + .book-spec-item,
    #author-detail .author-spec-item + .author-spec-item {
        border-left: 1px solid #E5CDD3;
    }

    :is(#book-detail, #article-detail) .book-spec-item i,
    #author-detail .author-spec-item i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        margin-bottom: 4px;
        border-radius: 50%;
        background: #F4E4E8;
        color: var(--secondary-color);
        font-size: 1.3rem;
    }

    :is(#book-detail, #article-detail) .book-spec-item .spec-label,
    #author-detail .author-spec-item .author-spec-label {
        color: #8C6A70;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    :is(#book-detail, #article-detail) .book-spec-item .spec-value,
    #author-detail .author-spec-item .author-spec-value {
        color: var(--wine-dark-color);
        font-size: 0.95rem;
        font-weight: 700;
    }

:is(#book-detail, #article-detail) .book-presentation,
#author-detail .book-presentation {
    max-width: 760px;
    margin: 0 auto;
}

    :is(#book-detail, #article-detail) .book-presentation h2,
    #author-detail .book-presentation h2 {
        margin: 0 0 40px;
        color: var(--wine-dark-color);
        font-size: 2.1rem;
        font-weight: 400;
        text-align: center;
    }

        :is(#book-detail, #article-detail) .book-presentation h2::after,
        #author-detail .book-presentation h2::after {
            content: "";
            display: block;
            width: 48px;
            height: 3px;
            margin: 14px auto 0;
            background: var(--secondary-color);
        }

    :is(#book-detail, #article-detail) .book-presentation p,
    #author-detail .book-presentation p {
        margin-bottom: 18px;
        color: var(--body-text-color);
        font-size: 17px;
        line-height: 1.9;
    }

        :is(#book-detail, #article-detail) .book-presentation p:first-of-type,
        #author-detail .book-presentation p:first-of-type {
            color: var(--wine-dark-color);
            font-size: 20px;
            line-height: 1.7;
        }

/* ---- Pagina libro ---- */

:is(#book-detail, #article-detail) .book-detail-cover .book-cover {
    width: 100%;
    margin: 0;
}

    :is(#book-detail, #article-detail) .book-detail-cover .book-cover img {
        width: 100%;
        height: auto;
        object-fit: unset;
        border: 0;
        box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.9);
    }

:is(#book-detail, #article-detail) .book-collana {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(251, 245, 246, 0.16);
    color: #F3D3DA;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

:is(#book-detail, #article-detail) .book-detail-info .book-author {
    margin-bottom: 1.5rem;
    color: #ECC6D0;
    font-size: 1.2em;
}

    :is(#book-detail, #article-detail) .book-detail-info .book-author a {
        color: #ECC6D0;
    }

        :is(#book-detail, #article-detail) .book-detail-info .book-author a:hover {
            color: #fff;
        }

:is(#book-detail, #article-detail) .book-detail-info .book-description {
    max-width: 640px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2em;
    line-height: 1.5;
}

:is(#book-detail, #article-detail) .book-cta {
    margin-top: 2.5rem;
    text-align: center;
}

/* ---- Pagina autore ---- */

#author-detail .author-photo-wrap {
    width: 100%;
}

    #author-detail .author-photo-wrap img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 4px;
        box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.9);
    }

#author-detail .author-lead {
    max-width: 640px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2em;
    line-height: 1.5;
}

#author-detail .author-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    #author-detail .author-contacts .btn-outline-accent {
        color: #fff;
        border-color: #fff;
    }

        #author-detail .author-contacts .btn-outline-accent:hover {
            background: #fff;
            border-color: #fff;
            color: var(--secondary-color) !important;
        }

#author-detail .book-detail-body {
    padding-bottom: 0;
}

#author-detail .author-spec-item .author-spec-value {
    line-height: 1.6;
}

/* ---- Responsive (max 767px) ---- */

@media (max-width: 767px) {
    :is(#book-detail, #article-detail) .book-detail-layout,
    #author-detail .book-detail-layout {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-top: 16px;
        text-align: center;
    }

    :is(#book-detail, #article-detail) .book-detail-cover,
    #author-detail .book-detail-cover {
        flex: none;
        width: 300px;
        max-width: 100%;
    }

    :is(#book-detail, #article-detail) .book-detail-info h1,
    #author-detail .book-detail-info h1 {
        font-size: 2.2em;
    }

    :is(#book-detail, #article-detail) .book-detail-info .book-description,
    #author-detail .author-lead {
        margin-right: auto;
        margin-left: auto;
    }

    #author-detail .author-contacts {
        justify-content: center;
    }

    :is(#book-detail, #article-detail) .book-specs,
    #author-detail .author-specs {
        flex-wrap: wrap;
        row-gap: 28px;
    }

    :is(#book-detail, #article-detail) .book-spec-item,
    #author-detail .author-spec-item {
        flex: 0 0 50%;
    }

        :is(#book-detail, #article-detail) .book-spec-item + .book-spec-item,
        #author-detail .author-spec-item + .author-spec-item {
            border-left: 0;
        }

    :is(#book-detail, #article-detail) .book-presentation p:first-of-type,
    #author-detail .book-presentation p:first-of-type {
        font-size: 18px;
    }
}


/* ==========================================================================
   11. AMMINISTRAZIONE
   ========================================================================== */

#admin-section {
  padding: 2rem 0 4rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e5e5;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.admin-header-actions {
  display: flex;
  gap: 1rem;
}

.admin-book-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-book-item img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 2px;
}

.admin-book-info {
  flex: 1;
}

.admin-book-info strong {
  font-size: 0.95rem;
  color: #222;
  display: block;
}

.admin-book-info span {
  font-size: 0.78rem;
  color: #999;
}

.admin-book-actions {
  display: flex;
  gap: 0.5rem;
}

#form-section {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 2rem;
  margin-top: 2rem;
}

.admin-form-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.admin-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  display: block;
  margin-bottom: 0.3rem;
}

.admin-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.admin-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #444;
  cursor: pointer;
  background: #f5f5f5;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  transition: all 0.15s;
}

.admin-radio-group input[type=radio] {
  cursor: pointer;
  accent-color: var(--gold-color);
}

.admin-radio-group label:has(input:checked) {
  background: var(--gold-color);
  color: #fff;
  border-color: var(--gold-color);
}

.admin-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.admin-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.25rem;
}

.admin-select-inline {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.78rem;
}


#billboard .banner-content h2.banner-title {
    color: var(--light-color);
}

#billboard .banner-content p {
    color: rgba(255, 255, 255, 0.9);
}

#billboard .banner-content .banner-author {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

#billboard .banner-content .banner-meta {
    color: rgba(255, 255, 255, 0.7);
}

#best-selling.latest-book .book-cover {
    width: 190px;
}

#best-selling.latest-book .product-entry h2.item-title {
    font-size: 2.2em;
}

/* Dettaglio articolo (solo desktop): foto piccola e centrata sopra il testo,
   invece che affiancata - stesso meccanismo del mobile, ma con la foto piu'
   piccola invece che a piena larghezza. Scritta per #article-detail da solo,
   per non toccare #book-detail e #author-detail che condividono la regola base. */
@media (min-width: 768px) {
    #article-detail .book-detail-layout {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    #article-detail .book-detail-cover {
        flex: none;
        width: 440px;
        max-width: 100%;
    }
}

/* copertina proporzionata (niente piu' altezza fissa), vale a qualunque larghezza */
#featured-books.home-grid .book-cover,
#latest-posts .book-cover {
    width: 100%;
}

    #featured-books.home-grid .book-cover img,
    #latest-posts .book-cover img {
        height: auto;
        aspect-ratio: 27 / 40;
    }

/* Home, solo mobile: "In evidenza" e "Dal blog" a due colonne per riga,
   come gia' fatto per il riepilogo libri. #featured-books.home-grid per
   distinguerla da quella omonima del catalogo articoli; #latest-posts non
   serve scoparla, esiste solo qui. */
@media screen and (max-width: 767px) {
    #featured-books.home-grid .row,
    #latest-posts .row {
        --bs-gutter-x: 0.75rem;
    }

    #featured-books.home-grid .meta-lang {
        display: none;
    }

    #featured-books.home-grid figcaption,
    #latest-posts figcaption {
        margin: 14px 0 0;
        padding: 0 12px 16px;
    }

    #featured-books.home-grid figcaption h3,
    #latest-posts figcaption h3 {
        min-height: 0;
        font-size: 1em;
        margin-bottom: 6px;
    }

    #featured-books.home-grid figcaption > p:first-child,
    #latest-posts figcaption > p:first-child {
        font-size: 10px;
        margin-bottom: 6px;
    }

    #featured-books.home-grid figcaption > span,
    #latest-posts figcaption > span {
        padding: 3px 9px;
        font-size: 9px;
        margin-bottom: 8px;
    }

    #featured-books.home-grid figcaption p i,
    #latest-posts figcaption p i {
        font-size: 11px;
    }

    #featured-books.home-grid .btn-wrap .btn,
    #latest-posts .btn-wrap .btn {
        padding: 0.6em 0.5em;
        font-size: 11px;
    }

    #featured-books.home-grid .book-card-inner,
    #latest-posts .book-card-inner {
        padding: 15px 6px;
    }

    #featured-books.home-grid .book-cover,
    #latest-posts .book-cover {
        width: 85%;
        margin: 0 auto;
    }

    #featured-books.home-grid .btn-full-label,
    #latest-posts .btn-full-label {
        display: none;
    }
}

/* Riepilogo articoli (Articles.aspx): stesso trattamento del riepilogo libri */
#featured-books.articles-grid .book-cover {
    width: 100%;
}

    #featured-books.articles-grid .book-cover img {
        height: auto;
        aspect-ratio: 27 / 40;
    }

@media screen and (max-width: 767px) {
    #featured-books.articles-grid .row {
        --bs-gutter-x: 0.75rem;
    }

    #featured-books.articles-grid figcaption {
        margin: 14px 0 0;
        padding: 0 12px 16px;
    }

    #featured-books.articles-grid figcaption h3 {
        min-height: 0;
        font-size: 1em;
        margin-bottom: 6px;
    }

    #featured-books.articles-grid figcaption > p:first-child {
        font-size: 10px;
        margin-bottom: 6px;
    }

    #featured-books.articles-grid figcaption > span {
        padding: 3px 9px;
        font-size: 9px;
        margin-bottom: 8px;
    }

    #featured-books.articles-grid figcaption p i {
        font-size: 11px;
    }

    #featured-books.articles-grid .btn-wrap .btn {
        padding: 0.6em 0.5em;
        font-size: 11px;
    }

    #featured-books.articles-grid .book-card-inner {
        padding: 15px 6px;
    }

    #featured-books.articles-grid .book-cover {
        width: 85%;
        margin: 0 auto;
    }

    #featured-books.articles-grid .btn-full-label {
        display: none;
    }
}
