/* reset generale */

* {
  margin: 0px;
  padding: 0px;
}

body {
  font-family: "area-normal", sans-serif;
  font-weight: 400;
  background-color: white;
  overflow-x: hidden;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  font-family: "area-normal", sans-serif;
  font-weight: 400;
}
.bold {
  font-weight: 700;
}
.headerNav1,
.headerNav2 {
  position: fixed;
  top: 16px;
  z-index: 10000000000000000;

  display: flex;
  align-items: center;

  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;

  text-decoration: none;
  cursor: pointer;

  mix-blend-mode: difference;

  /* IMPORTANT: allows pseudo text positioning */
  position: fixed;
}

/* positions */
.headerNav1 {
  left: 16px;
}

.headerNav2 {
  right: 16px;
}

/* =========================
   TEXT SWAP SYSTEM
========================= */

.headerNav1,
.headerNav2 {
  color: transparent; /* hide base text safely */
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* shared pseudo setup */
.headerNav1::before,
.headerNav1::after {
  content: "";
  position: absolute;
  inset: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* default text */
.headerNav1::before {
  content: "Gloria Geri";
  opacity: 1;
}

/* hover text */
.headerNav1::after {
  content: "GG";
  opacity: 0;
}

/* hover swap */
.headerNav1:hover::before {
  opacity: 0;
}

.headerNav1:hover::after {
  opacity: 1;
}

/* =========================
   SECOND NAV (unchanged)
========================= */

.headerNav2:hover {
  text-decoration: underline;
}
.modalAbout {
  position: fixed;
  width: calc(50% - 16px);
  right: calc(-50% - 16px);
  height: 100%;
  background-color: white;
  z-index: 10000000000;
  justify-content: center;
  align-items: center;
  display: flex;
  padding-right: 16px;
  flex-direction: column;
  gap: 128px;
  border-radius: 16px 0px 0px 16px;
}
.wrapAbout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;
}
.closeModal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
}
.infoAbout {
  font-size: 0.75rem;
}
.lavoroItem {
  height: 100svh;
  width: calc(100% - 32px);
  position: relative;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  display: grid;
  align-items: end;
  text-decoration: none;
  z-index: 9;
  color: white;
}
.lavoroItem:hover {
  text-decoration: underline;
  cursor: none;
}
body.focus-mode .lavoroInfo .titolo,
body.focus-mode .lavoroInfo .cliente,
body.focus-mode .lavoroInfo .anno,
body.focus-mode .lavoroInfo .studio {
  text-decoration: underline;
}

.swiper-button-next:hover .lavoroInfo .titolo,
.swiper-button-next:hover .lavoroInfo .cliente,
.swiper-button-next:hover .lavoroInfo .anno,
.swiper-button-next:hover .lavoroInfo .studio {
  text-decoration: underline;
  cursor: none;
}
.swiper-button-prev:hover .lavoroInfo .titolo,
.swiper-button-prev:hover .lavoroInfo .cliente,
.swiper-button-prev:hover .lavoroInfo .anno,
.swiper-button-prev:hover .lavoroInfo .studio {
  text-decoration: underline;
  cursor: none;
}
.lavoroItem::before {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0) 20%
  );
  z-index: 5;
  position: absolute;
  pointer-events: none;
}
.blurMiddle {
  position: absolute;
  width: 100%;
  height: 100svh;
  z-index: 100000000;

  background: transparent; /* remove grey layer */

  backdrop-filter: blur(var(--blur, 0px));
  -webkit-backdrop-filter: blur(var(--blur, 0px));

  pointer-events: none;
  cursor: none;
}
.lavoriSwiper {
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  z-index: 1;
  pointer-events: auto;
}

.lavoriSwiper .swiper-wrapper {
  height: 100%;
}

.swiper-slide {
  height: 100%;
  width: auto; /* 🔥 key for horizontal scroll */
}

.swiper-slide img,
.swiper-slide video {
  height: auto;
  width: 100%;
  min-height: 100svh;
  object-fit: cover;
  z-index: 1;
}

.swiper-button-next,
.swiper-button-prev {
  top: 0px !important;
  width: 25% !important;
  cursor: none !important;
  height: 100% !important;
  z-index: 99 !important;
  bottom: 0px !important;
  margin-top: 0px !important;
  z-index: 1000000001 !important;
}
.swiper-button-prev {
  left: 0px !important;
  transition: opacity ease 0.3s !important;
  opacity: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
.swiper-button-next {
  right: 0px !important;
  transition: opacity ease 0.3s !important;
  opacity: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
.swiper-button-prev:hover {
  opacity: 1;
}
.swiper-button-next:hover {
  opacity: 1;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: "" !important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  display: none !important;
}
.customCursor {
  position: fixed;
  top: 0;
  left: 0;

  width: 64px;
  height: 64px;

  display: flex;
  justify-content: center;
  align-items: center;

  line-height: 0;

  pointer-events: none;
  z-index: 9999;

  opacity: 0;
  mix-blend-mode: difference;

  transform: translate(-50%, -50%);
}

.customCursor img {
  width: 96px;
  height: 96px;

  display: block;
  object-fit: contain;
}
.lavoroInfoWrap {
  position: relative;
  inset: 0;
  top: 0px;
}
.lavoroInfoLayer {
  position: absolute;
  width: 100%;
  height: fit-content;
  width: calc(100% - 32px);
  bottom: 48px;
  padding: 0px 16px;
  grid-template-columns: repeat(12, 1fr);
  display: grid;
  height: fit-content;
}
.lavoroInfo {
  position: absolute;
  grid-column: span 12;
  gap: 16px;
  align-items: end;
  padding-bottom: 32px;
  z-index: 9;
  color: white;
  text-decoration: none;
  pointer-events: auto;
  position: absolute;
  grid-template-columns: repeat(12, 1fr);
  display: grid;
  width: calc(100% - 32px);
  z-index: 100000000000999990;
  pointer-events: none;
  cursor: none;
  padding: 0px 16px;
}
.lavoroInfo h2,
.lavoroInfo p {
  text-decoration: none;
  z-index: 100000000000999990;
}
.lavoroInfo .titolo,
.lavoroInfo .cliente,
.lavoroInfo .anno,
.lavoroInfo .studio {
  grid-column: span 3;
  font-size: 1rem;
  font-weight: bold;
  z-index: 100000000000999990;
}
.coverLavoro {
  width: 100%;
  height: 100svh;
  object-fit: cover;
}
.lavoroInfoSingle {
  grid-column: span 12;
  gap: 16px;
  align-items: start;
  color: white;
  text-decoration: none;
  grid-template-columns: repeat(12, 1fr);
  display: grid;
  width: calc(100% - 32px);
  padding: 64px 16px 128px 16px;
}
.lavoroInfoSingle h2,
.lavoroInfoSingle p {
  text-decoration: none;
  z-index: 100000000000999990;
}
.lavoroInfoSingle .titolo,
.lavoroInfoSingle .cliente,
.lavoroInfoSingle .descrizioneSingle,
.lavoroInfoSingle .anno,
.lavoroInfoSingle .studio {
  grid-column: span 3;
  font-size: 1rem;
  font-weight: bold;
  z-index: 100000000000999990;
  color: black;
}
.footer {
  min-height: 500px;
  width: 100%;
  background-color: grey;
}
.colInfoSingle {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blocco {
  width: 100%;
  height: auto;
}
.vivo img,
.vivo video {
  object-fit: cover;
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}
.boxed,
.due-colonne {
  width: calc(100% - 32px);
  height: auto;
  padding: 0px 16px;
}
.boxed img,
.boxed video {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}
.wrapBlocchiSingle {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 128px;
  padding-top: 128px;
}
.due-colonne {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.col2col {
  grid-column: span 1;
}
.due-colonne img,
.due-colonne video {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.wrapCats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* add comma AFTER each chip except last */
.chip {
  font-weight: bold;
  color: black;
}
.chip::after {
  content: ",";
  margin-right: 6px;
  font-weight: 400; /* comma normal weight */
}
.annoSingle {
  font-weight: 400 !important; /* comma normal weight */
}
/* remove comma from last item */
.chip:last-child::after {
  content: "";
}
.descrizioneSingle {
  font-weight: 400 !important;
}
/* Large screens */
@media (max-width: 1440px) {
}
/* Small laptops */
@media (max-width: 1024px) {
}
/* Tablets */
@media (max-width: 768px) {
  .lavoroInfoSingle {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .col2col {
    grid-column: span 2;
  }
}

/* Small tablets / large phones */
@media (max-width: 640px) {
}
