/* ══════════════════════════════
   WORKS PAGE — CSS
══════════════════════════════ */

/* Active nav link */
.navbar_link.is-active { opacity: 0.5; }

/* ═══ HERO — sfondo chiaro (come About) ═══ */
.works-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 6rem;
  overflow: hidden;
  background: #f5f5f0;
  color: #000;
  text-align: center;
}

.works-hero_label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}

/* Globo e label adattati al fondo chiaro */
.works-hero .label_globe {
  border-color: rgba(0, 0, 0, .15);
}
.works-hero .label_globe::before {
  border-color: rgba(0, 0, 0, .25);
}
.works-hero .label_globe::after {
  background: #000;
}
.works-hero .text-style-label {
  color: #888;
}

.works-hero_heading {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 42rem;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.works-hero_sub {
  margin-top: 1.5rem;
  max-width: 30rem;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Fade gradiente verso nero */
.works-hero_fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 12rem;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  z-index: 3;
  pointer-events: none;
}


/* ═══ SEZIONE GRIGLIA (sfondo nero) ═══ */
.section-works {
  background: var(--color-bg);
  padding: 5rem 0 8rem;
}


/* ═══ FILTRI ═══ */
.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 3.5rem;
}

.works-filter {
  padding: .5rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}

.works-filter:hover {
  background: hsla(235, 100%, 50%, 0.15);
  border-color: hsla(235, 100%, 50%, 0.4);
}

.works-filter.is-active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}


/* ═══ GRIGLIA CARD ═══ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


/* ═══ CARD ═══ */
.works-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.works-card.is-hidden {
  display: none;
}

/* Contenitore immagine */
.works-card_img-wrap {
  background: #111;
  border-radius: 1.25rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .3s ease;
}

.works-card:hover .works-card_img-wrap {
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

/* Immagine con padding — sfondi vari */
.works-card_img {
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  object-fit: contain;
  display: block;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.works-card:hover .works-card_img {
  transform: scale(1.03);
}


/* Info sotto la card */
.works-card_info {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  padding: 0 .25rem;
}

.works-card_top {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.works-card_name {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-white);
}

.works-card_tag {
  font-size: .6875rem;
  font-weight: 500;
  padding: .2rem .65rem;
  border-radius: 1rem;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  color: var(--color-grey-200);
  white-space: nowrap;
}

.works-card_industry {
  font-size: .8125rem;
  color: var(--color-grey);
}

.works-card_link {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-blue);
  margin-top: .25rem;
  transition: text-decoration .2s;
}

.works-card_link:hover {
  text-decoration: underline;
}


/* ═══ REVEAL ANIMATION ═══ */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══ MOBILE MENU ═══ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, .97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu_link {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-white);
  transition: opacity .2s;
}

.mobile-menu_link:hover,
.mobile-menu_link.is-active { opacity: .5; }

.mobile-menu_cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .75rem 2rem;
  border-radius: 1rem;
  background: var(--color-white);
  color: #000;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 991px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .navbar_links-wrap { display: none; }
  .navbar_hamburger-wrap { display: flex; }
}

@media (max-width: 600px) {
  .works-hero_heading { font-size: clamp(2rem, 8vw, 3rem); }
  .works-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .works-filters { gap: .5rem; }
  .works-filter { font-size: .8125rem; padding: .4rem 1rem; }
}
