/* ============================================================
   Giuliano Store - home refinements
   Loaded after app.css.
   ============================================================ */

:root {
  --gs-anim-duration: .9s;
  --gs-anim-ease: cubic-bezier(.22, 1, .36, 1);
  --gs-marker-ring-color: var(--gs-blue);
}

[data-theme="dark"] {
  --gs-marker-ring-color: #ffffff;
}

/* Stato iniziale: niente flash prima che parta JS/WOW */
[data-animate-class],
[data-animate-in],
[data-iso-panel],
.wow {
  visibility: hidden;
  opacity: 0;
}

/* Quando JS/WOW attiva l'elemento */
[data-animate-class].is-visible,
[data-animate-in].is-visible,
[data-iso-panel].is-visible,
.wow.animate__animated {
  visibility: visible;
  opacity: 1;
}

/* Animate.css global timing for this page */
.page-index .animate__animated {
  animation-duration: var(--gs-anim-duration);
  animation-timing-function: var(--gs-anim-ease);
}
.gs-scroll-next__label {
  display: inline-block;
  animation: gs-arrow-bounce 1.8s ease-in-out infinite;
}


@keyframes gs-arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

/* Values section ---------------------------------------------------------- */

.gs-values-card {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: -90px;
  width: min(650px, 90vw);
  transform-origin: left bottom;
}

.gs-values-card .gs-marker {
  position: absolute;
  left: 28px;
  bottom: -13px;
}

.gs-people-section {
  position: relative;
  z-index: 1;
}

/* ISO panel --------------------------------------------------------------- */

.gs-iso-panel {
  overflow: visible;
}

.gs-iso-icon {
  display: inline-block;
  width: 132px;
  height: 110px;
  color: currentColor;
  background-color: currentColor;
  -webkit-mask: url("../icons/iso.svg") center / contain no-repeat;
  mask: url("../icons/iso.svg") center / contain no-repeat;
}

.gs-iso-item {
  --animate-duration: var(--gs-anim-duration);
}

/* Certification strip ---------------------------------------------------- */

.gs-cert-strip {
  border-bottom: 2px solid var(--gs-blue);
  background: var(--gs-bg);
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
}

.gs-cert-strip__panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 80px;
  min-height: 150px;
  padding-block: 26px;
}

.gs-cert-strip__logo {
  display: grid;
  place-items: center;
}

.gs-cert-strip__logo .gs-iso-icon {
  width: 120px;
  height: 100px;
}

.gs-cert-strip__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  column-gap: 70px;
}

.gs-cert-strip__item {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-items: center;
  min-height: 58px;
  text-align: center;
}

.gs-cert-strip__item span {
  display: block;
}

/* Footer ----------------------------------------------------------------- */

.gs-footer {
  padding: 80px 0 26px;
}

.gs-footer__grid {
  grid-template-columns: .9fr 1.35fr 1.15fr;
  gap: 100px;
}

.gs-footer__logo {
  width: 220px;
  margin-bottom: 54px;
}

.gs-footer__info p {
  margin: 0;
}

.gs-footer__info strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gs-bg);
  font-size: 14px;
  font-weight: 800;
}

.gs-footer__info span,
.gs-footer__info a {
  color: var(--gs-bg);
  font-size: 14px;
  line-height: 1.25;
}

.gs-footer__social-block {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.gs-footer__menus {
  gap: 30px;
}

.gs-footer__menus h2,
.gs-contact-form h2 {
  color: var(--gs-bg);
  font-size: 18px;
  font-weight: 800;
}

.gs-footer__menus a {
  color: var(--gs-bg);
  font-size: 14px;
  line-height: 1.1;
}

.gs-contact-form {
  max-width: 520px;
}

.gs-contact-form h2 {
  margin-bottom: 20px;
}

.gs-input {
  min-height: 42px;
  border-color: var(--gs-bg);
  background: var(--gs-bg);
  color: var(--gs-dark);
}

.gs-input::placeholder {
  color: var(--gs-blue);
  font-size: 12px;
  font-weight: 700;
  opacity: 1;
}

.gs-contact-form textarea.gs-input {
  min-height: 120px;
  resize: vertical;
}

.gs-checkbox {
  color: var(--gs-bg);
}

.gs-btn--footer {
  min-width: 88px;
  min-height: 34px;
  border-color: var(--gs-bg);
  color: var(--gs-bg);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.gs-btn--footer:hover {
  background: var(--gs-bg);
  color: var(--gs-blue);
}

.gs-footer__legal,
.gs-footer__legal a {
  color: var(--gs-bg);
}

/* Marker pulse ----------------------------------------------------------- */

.gs-marker--pulse {
  animation: gs-marker-pulse 1.35s ease-in-out infinite;
}

@keyframes gs-marker-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px var(--gs-marker-ring-color),
      0 0 0 0 rgb(212 2 11 / 42%);
  }

  70% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 1px var(--gs-marker-ring-color),
      0 0 0 12px rgb(212 2 11 / 0%);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px var(--gs-marker-ring-color),
      0 0 0 0 rgb(212 2 11 / 0%);
  }
}

@media (max-width: 900px) {
  .gs-values,
  .gs-values-stage {
  }

  .gs-values-stage {
    padding-block: 42px 0;
  }

  .gs-value {
    position: relative;
  }

  .gs-value--reliability,
  .gs-value--easy {
    text-align: right;
  }

  .gs-dot-row {
    position: relative;
    margin-left: auto;
    gap: 40px;
  }

  .gs-dot-row span {
    width: 10px;
    height: 10px;
  }

  .gs-dot-row--reliability {
    margin-right: auto;
    margin-left: 0;
  }

  .gs-values-card {
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
  }

  .gs-iso-icon {
    width: 90px;
    height: 76px;
  }

  .gs-cert-strip__panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 34px;
  }

  .gs-cert-strip__items {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .gs-footer__grid,
  .gs-footer__info,
  .gs-footer__menus {
    grid-template-columns: 1fr;
  }

  .gs-footer__grid {
    gap: 52px;
  }

  .gs-footer__logo {
    width: 180px;
    margin-bottom: 34px;
  }

  .gs-contact-form {
    max-width: none;
  }
}
/* Social icons ------------------------------------------------------------ */

.gs-socials__link {
  position: relative;
  overflow: hidden;
}

.gs-socials__icon {
  position: absolute;
  inset: 6px;
  display: block;
  background-color: currentColor;
  transition: opacity .18s ease, transform .18s ease;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.gs-socials__icon--outline {
  -webkit-mask-image: var(--social-outline);
  mask-image: var(--social-outline);
}

.gs-socials__icon--solid {
  opacity: 0;
  transform: scale(.92);
  -webkit-mask-image: var(--social-solid);
  mask-image: var(--social-solid);
}

.gs-socials__link:hover .gs-socials__icon--outline {
  opacity: 0;
  transform: scale(1.08);
}

.gs-socials__link:hover .gs-socials__icon--solid {
  opacity: 1;
  transform: scale(1);
}

.gs-socials__fallback {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
