/* =========================================================
   HARMONIA — I NOSTRI INFUSI
   Pagina modulare: tipologia -> linea -> product card.
   ========================================================= */

html {
  scroll-behavior: smooth;
}

.ht-infusi-page {
  --ht-i-night: #000410;
  --ht-i-night-soft: #07111b;
  --ht-i-gold: #f5c28f;
  --ht-i-gold-light: #ffd28e;
  --ht-i-teal: #14383c;
  --ht-i-text: #000410;

  position: relative;
  width: 100%;
  min-height: 100vh;
  padding:
    calc(var(--ht-fixed-header-stack, 148px) + 38px)
    0
    70px;

  overflow: hidden;

  color: #ffffff;
  font-family: "Open Sans", sans-serif;
}


/* =========================================================
   PAGE SURFACE / WOO RESET
   ========================================================= */

body.tax-product_cat.term-i-nostri-infusi {
  background:
    linear-gradient(
      to bottom,
      rgba(0,4,16,0) 0%,
      rgba(0,4,16,0) 58%,
      rgba(0,4,16,.10) 68%,
      rgba(0,4,16,.32) 78%,
      rgba(0,4,16,.62) 89%,
      #000410 100%
    ),
    radial-gradient(
      circle at 84% 32%,
      rgba(37,104,109,.38),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 76%,
      rgba(46,72,75,.22),
      transparent 32%
    ),
    linear-gradient(
      125deg,
      #15171b 0%,
      #07111b 52%,
      #073038 100%
    ) !important;

  background-color: #000410 !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

body.tax-product_cat.term-i-nostri-infusi .site-main,
body.tax-product_cat.term-i-nostri-infusi .site-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.tax-product_cat.term-i-nostri-infusi .ht-infusi-page {
  background: transparent !important;
  background-color: transparent !important;
}


/* =========================================================
   INNER
   ========================================================= */

.ht-infusi-inner {
  position: relative;
  z-index: 3;

  width: min(calc(100% - 80px), 1500px);
  margin: 0 auto;
}


/* =========================================================
   PRODUCT TYPES / LINES
   ========================================================= */

.ht-product-type {
  position: relative;
}

.ht-product-type + .ht-product-type {
  margin-top: clamp(100px, 10vw, 170px);
}


.ht-product-type:last-child {
  padding-bottom: clamp(130px, 10vw, 180px);
}

.ht-product-line {
  position: relative;

  scroll-margin-top:
    calc(var(--ht-fixed-header-stack, 148px) + 28px);
}

.ht-product-line + .ht-product-line {
  margin-top: clamp(82px, 8vw, 135px);
}


/* =========================================================
   LINE HEADER
   Stessa grammatica visiva della precedente pagina Lullaby.
   ========================================================= */

.ht-product-line__header {
  max-width: 850px;
  margin: 0 auto 54px;
  text-align: center;
}

.ht-product-line__eyebrow {
  margin: 0 0 14px !important;

  color: var(--ht-i-gold) !important;

  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: 4px;

  text-transform: uppercase;
  text-align: center !important;
}

.ht-product-line__title {
  margin: 0 !important;

  color: var(--ht-i-gold-light) !important;

  font-family:
    Georgia,
    "Times New Roman",
    serif !important;

  font-size: clamp(36px, 3.8vw, 51px) !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;

  text-align: center !important;
}

.ht-product-line__description {
  max-width: 720px;
  margin: 20px auto 0;

  color: rgba(255,255,255,.82);

  font-size: 16px;
  line-height: 1.75;
  text-align: center;
}

.ht-product-line__description p {
  margin: 0 !important;
  color: inherit !important;
  text-align: inherit !important;
}


/* =========================================================
   PRODUCTS GRID
   ========================================================= */

.ht-product-line__products {
  position: relative;
  z-index: 4;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

  gap: clamp(28px, 4vw, 58px) !important;

  align-items: stretch !important;

  width: 100% !important;
  margin: 0 !important;
}


/* Stessa card, layout adattivo in base al numero di prodotti. */
.ht-product-line--count-2 .ht-product-line__products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: min(980px, 100%) !important;
  margin-inline: auto !important;
}

.ht-product-line--count-1 .ht-product-line__products {
  grid-template-columns: minmax(0, 460px) !important;
  justify-content: center !important;
  width: min(460px, 100%) !important;
  margin-inline: auto !important;
}

.ht-product-line__empty {
  width: min(600px, 100%);
  margin: 50px auto;

  text-align: center;
}

.ht-product-line__empty p {
  color: rgba(255,255,255,.72) !important;
  text-align: center !important;
}


/* =========================================================
   STARS
   ========================================================= */

.ht-infusi-stars {
  position: absolute;
  z-index: 1;
  inset: 0;

  overflow: hidden;
  pointer-events: none;
}

.ht-infusi-stars .star {
  position: absolute;

  color: rgba(255,210,142,.74);

  font-size: 15px;

  animation:
    htInfusiTwinkle
    3.5s
    ease-in-out
    infinite;
}

.ht-infusi-stars .star--1 { top: 22%; left: 8%; }
.ht-infusi-stars .star--2 { top: 32%; left: 31%; font-size: 9px !important; animation-delay: .8s !important; }
.ht-infusi-stars .star--3 { top: 18%; left: 57%; animation-delay: 1.4s !important; }
.ht-infusi-stars .star--4 { top: 36%; right: 7%; font-size: 20px !important; }
.ht-infusi-stars .star--5 { top: 51%; left: 18%; animation-delay: 1.9s !important; }
.ht-infusi-stars .star--6 { top: 63%; left: 44%; font-size: 10px !important; }
.ht-infusi-stars .star--7 { top: 71%; right: 21%; animation-delay: .6s !important; }
.ht-infusi-stars .star--8 { top: 82%; left: 12%; }
.ht-infusi-stars .star--9 { top: 79%; right: 8%; font-size: 9px !important; }
.ht-infusi-stars .star--10 { top: 46%; right: 34%; animation-delay: 2.2s !important; }
.ht-infusi-stars .star--11 { top: 14%; right: 18%; font-size: 10px !important; }
.ht-infusi-stars .star--12 { top: 90%; left: 60%; animation-delay: 1s !important; }

.ht-infusi-stars .star--13 { top: 55%; right: 10%; font-size: 11px !important; animation-delay: 1.3s !important; }
.ht-infusi-stars .star--14 { top: 60%; left: 8%; font-size: 17px !important; animation-delay: .4s !important; }
.ht-infusi-stars .star--15 { top: 67%; left: 32%; font-size: 9px !important; animation-delay: 1.8s !important; }
.ht-infusi-stars .star--16 { top: 73%; right: 12%; font-size: 14px !important; animation-delay: .9s !important; }
.ht-infusi-stars .star--17 { top: 84%; left: 36%; font-size: 12px !important; animation-delay: 2.1s !important; }
.ht-infusi-stars .star--18 { top: 92%; right: 24%; font-size: 18px !important; animation-delay: .2s !important; }

@keyframes htInfusiTwinkle {
  0%,
  100% {
    opacity: .28;
    transform: scale(.75) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(12deg);
  }
}


/* =========================================================
   GOLD ORBITS
   ========================================================= */

.ht-infusi-orbit {
  position: absolute;
  z-index: 1;

  width: 450px;
  height: 450px;

  border:
    4px solid
    rgba(255,210,142,.78);

  border-radius: 50%;

  pointer-events: none;
  opacity: .68;
}

.ht-infusi-orbit::after {
  content: "";

  position: absolute;
  inset: 23px -25px -23px 25px;

  border:
    3px solid
    rgba(245,194,143,.55);

  border-radius: 50%;
}

.ht-infusi-orbit--left {
  left: -280px;
  top: 52%;
  transform: rotate(-22deg);
}

.ht-infusi-orbit--right {
  right: -330px;
  top: 14%;

  width: 420px;
  height: 420px;

  opacity: .30;
}


/* =========================================================
   HEADER COME HOMEPAGE / PRODUCT PAGE
   ========================================================= */

@media (min-width: 993px) {

  body.tax-product_cat.term-i-nostri-infusi header#site-header,
  body.tax-product_cat.term-i-nostri-infusi .site-header {
    background: transparent !important;
    background-color: transparent !important;

    transition:
      background-color .35s ease,
      box-shadow .35s ease !important;
  }

  body.tax-product_cat.term-i-nostri-infusi header#site-header .header-inner,
  body.tax-product_cat.term-i-nostri-infusi header#site-header .site-navigation,
  body.tax-product_cat.term-i-nostri-infusi header#site-header .ht-menu-aligned {
    background: transparent !important;
    background-color: transparent !important;
  }

  body.tax-product_cat.term-i-nostri-infusi
  header#site-header:has(.site-navigation.scrolled),
  body.tax-product_cat.term-i-nostri-infusi
  .site-header:has(.site-navigation.scrolled) {
    background: #000410 !important;
    background-color: #000410 !important;

    box-shadow:
      0 6px 20px rgba(0,4,16,.12) !important;
  }
}


/* =========================================================
   FOOTER CONTINUO
   ========================================================= */

body.tax-product_cat.term-i-nostri-infusi footer#site-footer,
body.tax-product_cat.term-i-nostri-infusi footer#site-footer.site-footer,
body.tax-product_cat.term-i-nostri-infusi footer#site-footer.dynamic-footer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

body.tax-product_cat.term-i-nostri-infusi footer#site-footer::before,
body.tax-product_cat.term-i-nostri-infusi footer#site-footer::after {
  content: none !important;
  display: none !important;
  background: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) and (min-width: 701px) {

  .ht-infusi-inner {
    width: calc(100% - 48px);
  }

  .ht-product-line__products {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

  .ht-product-line__products
  .ht-camomille-product:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    width: min(460px, 100%) !important;
    justify-self: center !important;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 992px) {

  body.tax-product_cat.term-i-nostri-infusi header#site-header,
  body.tax-product_cat.term-i-nostri-infusi .site-header {
    background: #000410 !important;
    background-color: #000410 !important;
  }
}

@media (max-width: 700px) {

  .ht-infusi-page {
    padding:
      calc(var(--ht-fixed-header-stack, 152px) + 12px)
      0
      28px;
  }

  /*
   * Stesso principio usato sulla homepage:
   * gutter importante sui telefoni normali, ma adattivo sui device stretti.
   */
  .ht-infusi-inner {
    width:
      calc(
        100%
        - clamp(56px, 20vw, 96px)
      );
    max-width: 430px;
  }

  .ht-product-type + .ht-product-type {
    margin-top: 42px;
  }

  .ht-product-type:last-child {
    padding-bottom: 38px;
  }

  .ht-product-line + .ht-product-line {
    margin-top: 42px;
  }

  .ht-product-line {
    scroll-margin-top:
      calc(var(--ht-fixed-header-stack, 152px) + 10px);
  }

  .ht-product-line__header {
    max-width: 100%;
    margin-bottom: 26px;
  }

  .ht-product-line__eyebrow {
    margin-bottom: 8px !important;
    font-size: 9px !important;
    letter-spacing: 2.2px;
  }

  .ht-product-line__title {
    font-size: clamp(24px, 6.2vw, 28px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.035em !important;
  }

  .ht-product-line__description {
    max-width: 320px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
  }

  .ht-product-line__products,
  .ht-product-line--count-2 .ht-product-line__products,
  .ht-product-line--count-1 .ht-product-line__products {
    grid-template-columns: 1fr !important;
    gap: 42px !important;

    width: min(100%, 340px) !important;
    margin-inline: auto !important;
  }

  .ht-product-line__products .ht-camomille-product:last-child {
    grid-column: auto !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  .ht-product-line__empty {
    margin: 24px auto;
  }

  .ht-product-line__empty p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .ht-infusi-orbit {
    width: 250px;
    height: 250px;
  }

  .ht-infusi-orbit--left {
    left: -195px;
  }

  .ht-infusi-orbit--right {
    display: none;
  }

  .ht-infusi-stars .star {
    font-size: 10px;
    opacity: .68;
  }
}

@media (max-width: 360px) {

  .ht-infusi-inner {
    width: calc(100% - 48px);
  }

  .ht-product-line__title {
    font-size: 23px !important;
  }

  .ht-product-line__products,
  .ht-product-line--count-2 .ht-product-line__products,
  .ht-product-line--count-1 .ht-product-line__products {
    gap: 38px !important;
  }
}


/* =========================================================
   COLLEZIONI — stessa superficie e stessi componenti Infusi
   ========================================================= */

body.tax-product_cat:has(.ht-collections-page) {
  background:
    linear-gradient(
      to bottom,
      rgba(0,4,16,0) 0%,
      rgba(0,4,16,0) 58%,
      rgba(0,4,16,.10) 68%,
      rgba(0,4,16,.32) 78%,
      rgba(0,4,16,.62) 89%,
      #000410 100%
    ),
    radial-gradient(
      circle at 84% 32%,
      rgba(37,104,109,.38),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 76%,
      rgba(46,72,75,.22),
      transparent 32%
    ),
    linear-gradient(
      125deg,
      #15171b 0%,
      #07111b 52%,
      #073038 100%
    ) !important;

  background-color: #000410 !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

body.tax-product_cat:has(.ht-collections-page) .site-main,
body.tax-product_cat:has(.ht-collections-page) .site-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.tax-product_cat:has(.ht-collections-page) footer#site-footer,
body.tax-product_cat:has(.ht-collections-page) footer#site-footer.site-footer,
body.tax-product_cat:has(.ht-collections-page) footer#site-footer.dynamic-footer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

@media (min-width: 993px) {
  body.tax-product_cat:has(.ht-collections-page) header#site-header,
  body.tax-product_cat:has(.ht-collections-page) .site-header {
    background: transparent !important;
    background-color: transparent !important;
  }

  body.tax-product_cat:has(.ht-collections-page)
  header#site-header:has(.site-navigation.scrolled),
  body.tax-product_cat:has(.ht-collections-page)
  .site-header:has(.site-navigation.scrolled) {
    background: #000410 !important;
    background-color: #000410 !important;
  }
}

@media (max-width: 992px) {
  body.tax-product_cat:has(.ht-collections-page) header#site-header,
  body.tax-product_cat:has(.ht-collections-page) .site-header {
    background: #000410 !important;
    background-color: #000410 !important;
  }
}
