/* Pagina Template (src/pages/templates.html): stessa grafica di Privacy (css/legal.css) più la scheda
   del prodotto e la galleria. */

/* I pulsanti sono link: .lg a rimetterebbe il colore del testo. */
.lg a.lg-button {
  color: #121212;
  text-decoration: none;
}
.lg a.lg-button:hover {
  color: #f5f4f0;
}

/* Scheda del prodotto */
.tp-product {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid #343434;
}
.tp-cover,
.tp-shot {
  margin: 0;
}
.tp-cover img,
.tp-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #edece7;
}
.tp-info .lg-eyebrow {
  margin-bottom: 18px;
}
.tp-info h2 {
  margin: 0;
  font-size: clamp(48px, 5.6vw, 92px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.tp-byline {
  max-width: 30ch;
  margin: 20px 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #d9d8d3;
}
.tp-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #343434;
}
.tp-amount {
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.tp-tax,
.tp-note {
  max-width: 40ch;
  font-size: 13px;
  line-height: 1.45;
  color: #aaa;
}
.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.tp-actions .lg-button {
  margin: 0;
}
.lg a.tp-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #5a5a5a;
  border-radius: 999px;
}
.lg a.tp-ghost:hover {
  color: #121212;
  background: #f5f4f0;
  border-color: #f5f4f0;
}
.tp-note {
  margin: 18px 0 0;
}

/* Libreria: titolo e immagine portano alla pagina del template */
a.tp-cover {
  display: block;
}
a.tp-cover img {
  transition: opacity 0.2s ease;
}
a.tp-cover:hover img {
  opacity: 0.9;
}
.lg .tp-info h2 a {
  text-decoration: none;
}
.lg .tp-info h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
}
.tp-list .tp-product + .tp-product {
  border-top: 0;
}

/* Pagina del template: la colonna parte dal prezzo */
.tp-info > .tp-price:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.lg .lg-eyebrow a {
  text-decoration: none;
}
.lg .lg-eyebrow a:hover {
  color: #f5f4f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tp-specs {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #343434;
  font-size: 14px;
  line-height: 1.4;
}
.tp-specs dt {
  padding-top: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #aaa;
}
.tp-specs dd {
  margin: 0;
  color: #d9d8d3;
}

/* Galleria */
.tp-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid #343434;
}
.tp-shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #aaa;
}

@media (max-width: 900px) {
  .tp-product {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 44px;
  }
  .tp-gallery {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
}
@media (max-width: 619px) {
  .tp-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tp-actions .lg-button,
  .lg a.tp-ghost {
    justify-content: center;
  }
}
