@import url("tokens.css");
@import url("motion.css");
@import url("shell.css");
@import url("responsive.css");

#dove-ci-trovi iframe {
  pointer-events: none;
}

.brand-card {
  position: relative;
  flex: 0 0 82%;
  width: 82%;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 11, 63, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(18, 11, 63, 0.18);
}

.brand-card__media {
  position: relative;
  height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 241, 255, 0.96));
}

.brand-card__image,
.brand-card__veil,
.brand-card__logo-wrap,
.brand-card__copy {
  position: absolute;
  inset: 0;
}

.brand-card__image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.7s ease, opacity 0.45s ease, filter 0.45s ease;
}

.brand-card__veil {
  background: linear-gradient(180deg, rgba(11, 14, 34, 0.08) 0%, rgba(11, 14, 34, 0.82) 100%);
  transition: opacity 0.45s ease, background 0.45s ease;
}

.brand-card__logo-wrap {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.brand-card__logo {
  width: min(72%, 168px);
  max-height: 72px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 20px rgba(18, 11, 63, 0.08));
}

.brand-card__copy {
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
}

.brand-card__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.brand-card__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.brand-card__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.9rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .brand-card,
  .brand-card:hover,
  .brand-card:focus-visible,
  .brand-card.is-force-hover {
    transform: none;
    box-shadow: 0 14px 34px rgba(18, 11, 63, 0.08);
  }

  .brand-card {
    border-radius: 1.25rem;
    background:
      radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 48%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 241, 255, 0.96));
  }

  .brand-card__media {
    height: 220px;
    background:
      radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 48%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 241, 255, 0.96));
  }

  .brand-card__image,
  .brand-card__veil,
  .brand-card__copy {
    display: none !important;
  }

  .brand-card__logo-wrap {
    opacity: 1;
    transform: translateY(0);
    inset: 0;
    padding: 1.25rem;
  }

  .brand-card__logo {
    width: min(62%, 120px);
    max-height: 56px;
    filter: none;
  }
}

@media (min-width: 1024px) {
  .brands-showcase {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-right: 1.5rem !important;
  }

  .brand-card {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    border-radius: 1.75rem;
  }

  .brand-card__media {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .brand-card__image {
    opacity: 0.12;
    filter: grayscale(0.15) saturate(0.7);
  }

  .brand-card__veil {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(231, 235, 255, 0.92) 100%);
  }

  .brand-card__copy {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .brand-card:hover .brand-card__image,
  .brand-card:focus-visible .brand-card__image,
  .brand-card.is-force-hover .brand-card__image {
    opacity: 1;
    filter: none;
    transform: scale(1.08);
  }

  .brand-card:hover .brand-card__veil,
  .brand-card:focus-visible .brand-card__veil,
  .brand-card.is-force-hover .brand-card__veil {
    background: linear-gradient(180deg, rgba(18, 11, 63, 0.08) 0%, rgba(18, 11, 63, 0.78) 100%);
  }

  .brand-card:hover .brand-card__logo-wrap,
  .brand-card:focus-visible .brand-card__logo-wrap,
  .brand-card.is-force-hover .brand-card__logo-wrap {
    opacity: 0;
    transform: translateY(-12px);
  }

  .brand-card:hover .brand-card__copy,
  .brand-card:focus-visible .brand-card__copy,
  .brand-card.is-force-hover .brand-card__copy {
    opacity: 1;
    transform: translateY(0);
  }
}
