/* 
Theme Name: Giuseppina Tragni
*/

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
}

/* ------------------------ */
/*------ GLOBAL STYLES -----*/
/* ------------------------ */

:root {
  /* padding */
  --spacing-25: 0.25rem;
  --spacing-50: 0.625rem;
  --spacing-100: 1rem;
  --spacing-200: 2rem;
  --spacing-300: 3rem;
  --spacing-400: 4rem;
  --spacing-500: 5rem;
  --spacing-600: 6rem;

  /* font sizes */
  --fs-50: 0.625rem;
  --fs-75: 0.825rem;
  --fs-100: 1rem;
  --fs-150: 1.25rem;
  --fs-200: 1.5rem;
  --fs-300: 2rem;
  --fs-400: 2.5rem;
  --fs-500: 3rem;
  --fs-600: 3.5rem;
  --fs-700: 4rem;

  /* colors */
  --purple: #8e5fce;
  --purple-darker: hwb(264 18% 59%);
  --white-transparent: rgba(255, 255, 255, 0.1);

  /* transitions */
  --time: 0.3s;
}

/*----- TYPOGRAPHY -----*/
@font-face {
  font-family: "Moderat";
  src: url("./fonts/Moderat-Regular.woff2") format("woff2"),
    url("./fonts/Moderat-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Moderat";
  src: url("./fonts/Moderat-Bold.woff2") format("woff2"),
    url("./fonts/Moderat-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Plage";
  src: url("./fonts/Plage-RegularDisplay.woff2") format("woff2"),
    url("./fonts/Plage-RegularDisplay.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

/*----- TAGS -----*/
html {
  font-size: calc(19px + 0.390625vw);
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: "Moderat", Helvetica, Arial, sans-serif;
  font-size: var(--fs-100);
  font-weight: 400;
  line-height: 1.25;
  background-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Moderat", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  position: relative;
  z-index: 300;
}

h3 {
  font-size: var(--fs-150);
}

a {
  color: var(--black);
  text-decoration: none;
}

img {
  display: block;
}

/* ------------------ */
/* ---- REUSABLE ---- */
/* ------------------ */
.aqua {
  background-color: aqua;
}

.blue {
  background-color: blue;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
  top: 0;
  left: 0;
}

.display-grid {
  display: grid;
}

.display-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-self-top {
  align-self: start;
}

.justify-self-bottom {
  align-self: flex-end;
}

.space-between {
  flex-direction: column;
  justify-content: space-between;
}

.section-padding {
  padding: var(--spacing-100) var(--spacing-200);
}

.section-border-bottom {
  border-bottom: 2px solid var(--purple);
  padding-bottom: var(--spacing-200);
}

.margin-y-auto {
  margin-top: auto;
  margin-bottom: auto;
}

.margin-top-200 {
  margin-top: var(--spacing-200);
}

.margin-top-400 {
  margin-top: var(--spacing-400);
}

.margin-top-600 {
  margin-top: var(--spacing-600);
}

.margin-top-800 {
  margin-top: calc(var(--spacing-400) * 2);
}

.margin-bottom-25 {
  margin-bottom: var(--spacing-25);
}

.margin-bottom-50 {
  margin-bottom: var(--spacing-50);
}

.margin-bottom-100 {
  margin-bottom: var(--spacing-100);
}

.margin-bottom-200 {
  margin-bottom: var(--spacing-200);
}

.margin-bottom-300 {
  margin-bottom: var(--spacing-300);
}

.margin-bottom-400 {
  margin-bottom: var(--spacing-400);
}

.fs-200 {
  font-size: var(--fs-200);
}

.fs-400 {
  font-size: var(--fs-400);
}

.fs-500 {
  font-size: var(--fs-500);
}

.fw-700 {
  font-weight: 700;
}

.section-title {
  font-family: "Moderat", Helvetica, Arial, sans-serif;
  font-size: var(--fs-600);
  font-weight: 400;
  color: var(--purple);
  text-transform: uppercase;
}

.section-title .special {
  font-size: calc(var(--fs-600) - 6px);
}

.col-1-1 {
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-100);
  width: 100%;
}

.col-1-1-1-1 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--spacing-100);
}

.special {
  font-family: "Plage", "Moderat", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--purple);
}

.row-link {
  width: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 300;
}

.row-link::before {
  content: "";
  width: 1rem;
  height: 1.25rem;
  margin-right: var(--spacing-50);
  background-image: url("./assets/arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: transform var(--time) ease-in-out;
}

.row-link a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.left-arrow.row-link::before {
  transform: rotate(180deg);
}

.position-relative {
  position: relative;
}

.img-cover {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-black-and-white {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

.margin-top-auto {
  margin-top: auto;
}

.margin-bottom-auto {
  margin-bottom: auto;
}

.space-between {
  align-content: space-between;
}

.h-100 {
  height: 100%;
}

/* -------------- */
/* ---- MENU ---- */
/* -------------- */
#site-title {
  position: fixed;
  top: var(--spacing-50);
  left: var(--spacing-200);
  height: 2rem;
  z-index: 500;
}

#site-title a {
  font-size: var(--fs-100);
  font-weight: 400;
  text-transform: uppercase;
  background-color: var(--white-transparent);
  backdrop-filter: brightness(200%) blur(10px);
  -webkit-backdrop-filter: brightness(200%) blur(10px);
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 2rem;
  padding-left: var(--spacing-100);
  padding-right: var(--spacing-100);
}

#site-title a span {
  color: black;
  position: relative;
  top: -0.03rem;
}

#site-title a .special {
  font-size: calc(var(--fs-100 + 4px));
}

#menu-toggle {
  position: fixed;
  top: var(--spacing-50);
  right: var(--spacing-200);
  cursor: pointer;
  overflow: hidden;
  height: 2rem;
  width: 2rem;
  display: flex;
  flex-direction: column;
  place-content: center;
  background-color: var(--white-transparent);
  backdrop-filter: brightness(200%) blur(10px);
  -webkit-backdrop-filter: brightness(200%) blur(10px);
  border-radius: 2rem;
  padding: 0.5rem;
  z-index: 500;
}

#menu-toggle span {
  height: 2px;
  width: 100%;
  background-color: black;
  margin-bottom: 4px;
  border-radius: 2px;
  transition: all var(--time) ease-in-out;
}

#menu-toggle span:first-child {
  width: 75%;
}

#menu-toggle span:nth-child(2) {
  transition-property: opacity, transform;
  transition-duration: 0.1s;
}

#menu-toggle span:last-child {
  margin-bottom: 0;
  width: 50%;
}

#menu-toggle.open span:first-child {
  width: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
  transform: translateX(3rem);
  opacity: 0;
}

#menu-toggle.open span:last-child {
  width: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

#menu {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 400;
  background-color: white;
  opacity: 0;

  backdrop-filter: brightness(200%) blur(10px);
  -webkit-backdrop-filter: brightness(200%) blur(10px);
  padding: var(--spacing-600) var(--spacing-400) var(--spacing-400);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transition: opacity var(--time) ease-in-out 0.2s,
    right var(--time) ease-in-out;
}

#menu.visible {
  right: 0;
  opacity: 1;
}

#menu ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
}

#menu ul li {
  line-height: 1.5;
  list-style: none;
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 4px;
}

#menu ul li .special {
  color: black;
  font-size: calc(var(--fs-300) - 4px);
}

#blurred-orb {
  position: fixed;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  /* background-color: var(--purple); */
  background-color: #4e218b;
  filter: blur(2rem);
  -webkit-filter: blur(2rem);
  /* mix-blend-mode: color-dodge; */
  mix-blend-mode: hard-light;
  z-index: 200;
  pointer-events: none;

  transform: translate3d(0, 0, 0); /* or translateZ(0) */
  backface-visibility: hidden;
  perspective: 1000;
}

#blurred-orb.color-dodge {
  mix-blend-mode: color-dodge;
}

/* -------------------- */
/* ---- FRONT PAGE ---- */
/* -------------------- */
#front-page-hero {
  height: 100vh;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--spacing-200);
  align-items: center;
}

#front-page-hero div {
  height: fit-content;
}

.intro {
  text-align: right;
  width: 90%;
  justify-self: flex-end;
  position: relative;
  z-index: 300;
}

#front-page-hero .section-title {
  font-size: var(--fs-600);
  display: inline-block;
}

.role-wrapper {
  position: relative;
}

.role {
  justify-self: flex-start;
  transition: opacity var(--time) ease-in-out;
}

.role-wrapper .role-second-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
}

.role-mobile-wrapper {
  display: none !important;
}

.role-mobile {
  line-height: 0.8;
}

/* PROJECT ROW */
.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 60vh;
  background: var(--purple);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--time) ease-in-out;
}

.project-item__title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 75%;
  height: 100%;
  padding: var(--spacing-100);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: white;

  opacity: 0;

  transition: opacity var(--time) ease-in-out,
    padding-bottom var(--time) ease-in-out;
}

#project-items__wrapper .inner-page__details-footer {
  margin-top: 0.35rem;
  color: inherit;
}

.project-item .inner-page__categories .inner-page__category {
  border-color: white;
  color: white;
  background-color: rgba(142, 95, 206, 0.75);
  font-weight: 700;
}

.project-item-without-image .inner-page__categories .inner-page__category {
  transition: border var(--time) ease-in-out, color var(--time) ease-in-out;
}

.point {
  font-size: var(--fs-150);
}

@keyframes cursorAnimation {
  /* Define your keyframes for the animation */
  0% {
    filter: blur(1.25rem);
    transform: scale(0.75);
  }
  50% {
    filter: blur(3rem);
    transform: scale(1.25);
  }
  100% {
    filter: blur(1.25rem);
    transform: scale(0.75);
  }
}

.custom-cursor-animation {
  animation: cursorAnimation 1.15s ease-in-out infinite;
}

/* ---- WORKSHOPS ROW ---- */

.workshops-row__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.workshops-row__text .row-link {
  /* margin-top: auto; */
  min-height: var(--spacing-400);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
}

.row-link-mobile {
  display: none !important;
}

.row-link-desktop {
  display: flex !important;
}

/* ---- NEWS ROW ---- */
.news-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--spacing-100);
}

.news-item::before {
  content: "";
  display: block;
  padding-bottom: 133.33%;
}

.news-item h3 {
  width: 75%;
  position: absolute;
  bottom: 1rem;
  line-height: 1.125;
  margin-bottom: 0;
  transition: bottom var(--time) ease-in-out;
}

.news-item__with-image {
  position: relative;
  background-color: var(--purple) !important;
  transition: all var(--time) ease-in-out;
}

.news-item__with-image h3 {
  color: white;
}

.news-item__no-image h3 {
  color: var(--purple);
}

.news-item__with-image img {
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(60%) grayscale(100%);
  -webkit-filter: brightness(60%) grayscale(100%);
  mix-blend-mode: luminosity;
  transition: all var(--time) ease-in-out;
}

.news-item__with-image:hover img {
  filter: brightness(100%) grayscale(0%);
  -webkit-filter: brightness(100%) grayscale(0%);
  mix-blend-mode: normal;
}

.news-item__with-image:hover::after {
  content: "";
  position: absolute;
  top: unset;
  left: -8rem;
  bottom: -8rem;
  right: unset;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background-color: var(--purple);
  mix-blend-mode: multiply;
  filter: blur(4rem) saturate(150%);
  -webkit-filter: blur(4rem) saturate(150%);
  transition: all var(--time) ease-in-out;
}

.news-item__no-image {
  border: 2px solid var(--purple);
}

.news-item__no-image::after {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background-color: var(--purple);
  filter: blur(4rem);
  -webkit-filter: blur(4rem);
}

/* ----------------------- */
/* ---- PROJECTS PAGE ---- */
/* ----------------------- */
.extra-footer__links {
  background-color: white;
  border: 2px solid var(--purple);
  height: fit-content;
  padding: var(--spacing-100);
  font-size: var(--fs-150);
  letter-spacing: 1px;
  color: var(--purple);

  position: relative;
  z-index: 300;

  transition: background-color var(--time) ease-in-out,
    color var(--time) ease-in-out;
}

.extra-footer__left div::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.35rem;
  background-image: url("./assets/purple-arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: translateX(0);
}

.extra-footer__right {
  text-align: right;
  width: 100%;
}

.extra-footer__right div::after {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.25rem;
  background-image: url("./assets/purple-arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: rotate(180deg) translateX(0);
}

#projects .projects-item {
  position: relative;
}

#projects .project-item::after {
  content: "";
  position: absolute;
  top: unset;
  left: -12rem;
  bottom: -12rem;
  right: unset;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background-color: var(--purple);
  mix-blend-mode: multiply;
  filter: blur(4rem) saturate(150%);
  -webkit-filter: blur(4rem) saturate(150%);
}

#projects .project-item__title {
  opacity: 1;
}

.project-item-without-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 60vh;
  border: 2px solid var(--purple);
  color: var(--purple);

  padding: var(--spacing-100);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;

  transition: background-color var(--time) ease-in-out,
    color var(--time) ease-in-out;
}

.project-item-without-image::after {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background-color: var(--purple);
  filter: blur(4rem);
  -webkit-filter: blur(4rem);
}

/* ------------------- */
/* ---- NEWS PAGE ---- */
/* ------------------- */
.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-100);
  position: relative;
  z-index: 300;
}

.pagination .page-numbers {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-75);
}

.pagination .current {
  position: relative;
  font-weight: 700;
  color: white;
}

.pagination .current::before {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 1px;
  left: 0;
  z-index: -1;
  border-radius: 50%;
  background-color: var(--purple);
}

.pagination .page-numbers.current {
  height: 1.25rem;
  width: 1.25rem;
}

.pagination img {
  height: 0.75rem;
  width: 0.75rem;
  object-fit: contain;
  object-position: center;
}

.pagination .prev img {
  transform: rotate(180deg);
}

/* --------------------------- */
/* ---- SINGLE POST PAGES ---- */
/* --------------------------- */
.post-header {
  min-height: 100vh;
  max-width: 100%;
  gap: unset;
}

.post-header__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--spacing-400) var(--spacing-200) var(--spacing-200);
  overflow: hidden;
}

.post-header__text::before {
  content: "";
  position: absolute;
  bottom: -3rem;
  left: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background-color: var(--purple);
  filter: blur(3rem);
  -webkit-filter: blur(3rem);
  z-index: -1;
}

/* ----------------------------- */
/* ---- GENERIC INNER PAGES ---- */
/* ----------------------------- */
.inner-page__header {
  height: 100vh;
  gap: unset;
}

.inner-page__header__image {
  height: 100%;
  overflow: hidden;
}

.inner-page__header__title {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.inner-page__header__description {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.inner-page__header__content {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;

  padding: 0 var(--spacing-200);
}

.inner-page__header__content .row-link {
  margin-top: auto;
  margin-bottom: auto;
}

.inner-page__header__text {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--spacing-200) 0;
}

.inner-page__header__text p,
.inner-page__header__description p {
  width: 75%;
}

.inner-page__header--no-image {
  height: 75vh;
}

.inner-page__header--no-image .inner-page__header__text {
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-200);
}

.inner-page__header--no-image .row-link {
  padding: var(--spacing-100);
}

.inner-page__header--no-image .inner-page__header__content {
  padding-top: 8rem;
}

.inner-page__header--no-image .row-link.left-arrow {
  position: absolute;
  top: 0;
}

.inner-page__details-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: 700;
}

.inner-page__categories {
  margin-right: var(--spacing-50);
}

.inner-page__category {
  white-space: normal;
  display: inline-block;
  margin-right: 4px;
  line-height: 1.2;
  border: 2px var(--purple) solid;
  padding: 4px 8px;
  font-size: var(--fs-50);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple);
}

/* ---- FOOTER ---- */
footer {
  min-height: 25vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 300;
}

#footer-menu {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
}

#footer-menu li {
  list-style: none;
  margin-left: 0;
}

#footer-menu li::after {
  content: "|";
  margin-left: var(--spacing-100);
  margin-right: var(--spacing-100);
}

#footer-menu li:last-child::after {
  content: "";
  margin-left: unset;
  margin-right: unset;
}

#footer-menu a {
  font-size: var(--fs-75);
}

/* GENERIC CONTENT */
.generic-content h2,
.generic-content h3 {
  margin-bottom: var(--spacing-100);
}

.generic-content > *:last-child {
  margin-bottom: var(--spacing-600);
}

.generic-content a,
.content p a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
