/* CALCAGNI 20/11/2026 - Scheda prodotto (tutti i prodotti):
   - descrizione in alto, chiusa dopo 5 righe con "Leggi di più"
   - frecce su/giù a destra per i prodotti con almeno 10 combinazioni
   Caricato da templates/catalog/product.tpl. */

/* ---------- Descrizione ---------- */
.cp-desc-wrap { margin: 14px 0 22px; max-width: 900px; }
.cp-desc {
  position: relative;
  font-size: 15px; line-height: 1.6; color: #2b252b;
}
.cp-desc h1, .cp-desc h2, .cp-desc h3, .cp-desc h4, .cp-desc h5, .cp-desc h6 { font-size: 18px; }
.cp-desc > :first-child { margin-top: 0; }
.cp-desc > :last-child { margin-bottom: 0; }
.cp-desc.is-collapsed { overflow: hidden; max-height: var(--cp-desc-collapsed, 8em); }
.cp-desc.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.cp-desc-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin-top: 6px; padding: 0 2px;
  border: none; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--secondary, #7e2e31);
  text-decoration: underline; text-underline-offset: 3px;
}
.cp-desc-toggle[hidden] { display: none; }
.cp-desc-toggle:hover { text-decoration-thickness: 2px; }
.cp-desc-toggle:focus-visible { outline: 3px solid var(--secondary, #7e2e31); outline-offset: 2px; border-radius: 4px; }
.cp-desc-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.cp-desc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Frecce su/giù ---------- */
.cp-scroll-nav {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 1040;
  display: flex; flex-direction: column; gap: 10px;
}
.cp-scroll-nav[hidden] { display: none; }
.cp-scroll-nav button {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--secondary, #7e2e31); color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  cursor: pointer; transition: opacity .2s ease, transform .15s ease, background .15s ease;
}
.cp-scroll-nav button:hover { transform: scale(1.06); }
.cp-scroll-nav button:focus-visible { outline: 3px solid #1f1a1f; outline-offset: 3px; }
.cp-scroll-nav button:disabled { opacity: .35; cursor: default; transform: none; }
.cp-scroll-nav svg { width: 22px; height: 22px; }
@media (max-width: 767px) {
  .cp-scroll-nav { right: 10px; top: auto; bottom: 90px; transform: none; }
  .cp-scroll-nav button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-desc-toggle svg, .cp-scroll-nav button { transition: none; }
}
