/**
 * La Cuccaia - pagina Prodotti tipici.
 */

.typical-products-page {
  width: 100%;
  overflow: clip;
  color: var(--ink);
  background: var(--paper);
}

.typical-products-hero {
  min-height: max(42rem, 100svh);
  display: grid;
  align-content: center;
  padding-top: calc(var(--header-height) + clamp(4rem, 8vw, 7rem));
  overflow: hidden;
}

.typical-products-hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -12rem;
  width: min(42rem, 58vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.typical-products-back {
  position: relative;
  z-index: 2;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  color: var(--olive);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.typical-products-back span {
  transition: transform 180ms ease;
}

.typical-products-back:hover span {
  transform: translateX(-0.35rem);
}

.typical-products-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 10rem);
}

.typical-products-hero h1 {
  max-width: 10ch;
  margin: 1.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 10vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.8;
}

.typical-products-hero h1 em {
  margin-left: clamp(1rem, 8vw, 8rem);
  color: var(--olive);
  font-size: 0.67em;
  font-weight: 400;
}

.typical-products-hero__intro {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 0 1rem;
  color: rgba(23, 32, 25, 0.72);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.25;
}

.typical-products-stamp {
  position: relative;
  z-index: 1;
  width: min(15rem, 45vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: clamp(4rem, 8vw, 7rem) 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.typical-products-stamp span {
  max-width: 9rem;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.typical-products-stamp i {
  position: absolute;
  right: 19%;
  bottom: 13%;
  width: 2.9rem;
  height: 1.7rem;
  border: 1px solid var(--clay);
  border-radius: 55% 45% 60% 40%;
  background: rgba(185, 111, 81, 0.12);
  transform: rotate(-28deg);
}

.typical-products-list {
  margin-top: clamp(4rem, 8vw, 8rem);
}

.typical-product-card {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(28rem, 1.15fr);
  min-height: 42rem;
  border-block: 1px solid var(--line);
}

.typical-product-card__visual {
  position: relative;
  min-height: 42rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--sand);
  border-right: 1px solid var(--line);
}

.typical-product-card__visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 32, 25, 0.18);
  border-radius: 50%;
}

.typical-product-card__visual--has-image::before {
  display: none;
}

.typical-product-card__gallery {
  position: relative;
  z-index: 1;
}

.typical-product-card__gallery--single {
  width: min(82%, 34rem);
  aspect-ratio: 1;
}

.typical-product-card__gallery--multiple {
  align-self: stretch;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(14rem, auto);
  gap: clamp(0.6rem, 1.2vw, 1rem);
  padding: clamp(0.8rem, 1.8vw, 1.5rem);
}

.typical-product-card__gallery-item {
  min-width: 0;
  min-height: 14rem;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.typical-product-card__gallery--single .typical-product-card__gallery-item {
  width: 100%;
  height: 100%;
}

.typical-product-card__gallery--multiple .typical-product-card__gallery-item:first-child {
  grid-column: 1 / -1;
  min-height: 24rem;
}

.typical-product-card__gallery--multiple .typical-product-card__gallery-item:last-child:nth-child(even) {
  grid-column: 1 / -1;
}

.typical-product-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-jar {
  position: relative;
  z-index: 1;
  width: min(15rem, 48%);
  aspect-ratio: 0.75;
  border: 1px solid var(--ink);
  border-radius: 0.65rem 0.65rem 1.8rem 1.8rem;
  background: rgba(185, 111, 81, 0.34);
  box-shadow: inset 1.1rem 0 rgba(250, 249, 244, 0.17);
}

.product-jar__lid {
  position: absolute;
  top: -1.35rem;
  right: -0.35rem;
  left: -0.35rem;
  height: 1.55rem;
  border: 1px solid var(--ink);
  background: var(--forest);
}

.product-jar__label {
  position: absolute;
  top: 28%;
  right: 8%;
  left: 8%;
  min-height: 42%;
  display: grid;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-align: center;
}

.product-jar__label small,
.product-jar__label em {
  color: var(--olive);
  font-family: var(--sans);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-jar__label strong {
  margin: 0.45rem 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
}

.plum {
  position: absolute;
  z-index: 2;
  width: 4.2rem;
  aspect-ratio: 0.9;
  border: 1px solid var(--ink);
  border-radius: 48% 52% 54% 46%;
  background: var(--clay);
}

.plum-one {
  right: 14%;
  bottom: 16%;
  transform: rotate(17deg);
}

.plum-two {
  right: 25%;
  bottom: 9%;
  width: 3.4rem;
  transform: rotate(-12deg);
}

.plum-leaf {
  position: absolute;
  right: 14%;
  bottom: 29%;
  z-index: 2;
  width: 5rem;
  height: 2.2rem;
  border: 1px solid var(--olive);
  border-radius: 100% 0 100% 0;
  transform: rotate(-24deg);
}

.typical-product-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 7rem);
}

.typical-product-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.typical-product-card__topline p {
  margin: 0;
}

.typical-product-card__topline > p:last-child {
  color: var(--olive);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-style: italic;
}

.typical-product-card h2 {
  max-width: 11ch;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 1.6rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.typical-product-card__description {
  max-width: 38rem;
  color: rgba(23, 32, 25, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.typical-product-card__details {
  max-width: 42rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.typical-product-card__details > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.36fr) 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.typical-product-card__details dt {
  color: var(--olive);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.typical-product-card__details dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.typical-product-card__price {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
}

.typical-product-card__price del {
  margin-right: 0.45rem;
  color: rgba(23, 32, 25, 0.48);
  font-size: 0.72em;
}

.typical-product-card__price ins {
  text-decoration: none;
}

.typical-product-card__details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.typical-product-card__details li:not(:last-child)::after {
  content: "·";
  margin-left: 1.5rem;
  color: var(--clay);
}

.typical-product-card .button {
  width: max-content;
}

.typical-products-empty {
  min-height: 24rem;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.5rem;
  padding: clamp(2rem, 6vw, 6rem);
  border-block: 1px solid var(--line);
}

.typical-products-empty p,
.typical-products-empty h3 {
  margin: 0;
}

.typical-products-empty h3 {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.typical-products-footer {
  overflow: hidden;
}

.typical-products-footer::after {
  content: "PRUGNE";
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  color: transparent;
  font-size: clamp(7rem, 18vw, 18rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(242, 240, 232, 0.055);
}

.typical-products-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.5fr);
  align-items: end;
  gap: clamp(4rem, 10vw, 12rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.typical-products-footer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.5vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.typical-products-footer__grid p {
  margin: 0;
  color: rgba(242, 240, 232, 0.7);
}

@media (max-width: 900px) {
  .typical-products-hero__grid,
  .typical-product-card,
  .typical-products-footer__grid {
    grid-template-columns: 1fr;
  }

  .typical-products-hero__intro {
    margin-top: 1rem;
  }

  .typical-products-stamp {
    margin-left: 0;
  }

  .typical-product-card__visual {
    min-height: 34rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .typical-products-footer__grid {
    gap: 3.5rem;
  }
}

@media (max-width: 600px) {
  .typical-products-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 4rem);
  }

  .typical-products-hero h1 {
    font-size: clamp(4rem, 19vw, 6rem);
  }

  .typical-products-hero h1 em {
    margin-left: 0.5rem;
  }

  .typical-product-card__visual {
    min-height: 26rem;
  }

  .typical-product-card__gallery--multiple {
    grid-template-columns: 1fr;
  }

  .typical-product-card__gallery--multiple .typical-product-card__gallery-item,
  .typical-product-card__gallery--multiple .typical-product-card__gallery-item:first-child,
  .typical-product-card__gallery--multiple .typical-product-card__gallery-item:last-child:nth-child(even) {
    grid-column: auto;
    min-height: 18rem;
  }

  .typical-product-card__content {
    padding: 2.5rem 1.25rem;
  }

  .typical-product-card__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .typical-product-card h2 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .typical-product-card__details > div {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .typical-product-card__details ul {
    display: grid;
    gap: 0.35rem;
  }

  .typical-product-card__details li::after {
    display: none;
  }

  .typical-product-card .button {
    width: 100%;
  }

  .typical-products-empty .button {
    width: 100%;
  }
}
