/* -------------------------------------------------------------------------------- */
/* !Variables */
/* -------------------------------------------------------------------------------- */
:root {
  /* Main Colours */
  --yellow: rgba(245, 222, 49, 1);
  --darkgrey: #131313;
}

/* Reset------------------------------------------------------*/
body,
html {
  font-family: "Montserrat", sans-serif;

  line-height: 1;
  font-size: 16px;
  margin: 0;
  padding: 0;

  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0 0 5px 0;
  padding: 0;
}

ol,
ul {
  padding-left: 20px;
  line-height: 1.5;
}

img {
  height: auto;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1rem;
}

h5 {
  font-size: 0.8rem;
}

h6 {
  font-size: 0.6rem;
}

a {
  text-decoration: none;
}

/* -------------------------------------------------------------------------------- */
/* !Body Style */
/* -------------------------------------------------------------------------------- */

body {
  background: var(--darkgrey);
  cursor: none;
}

a {
  cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  color: #fff;
  line-height: normal;
}

h1 {
  font-size: 64px;
  font-weight: 800;
}

h2 {
  font-size: 48px;
  font-weight: 700;
}

h3 {
  font-size: 32px;
  font-weight: 600;
}

h4 {
  font-size: 20px;
  font-weight: 400;
}

p {
  font-size: 16px;
  font-weight: 300;
}

@media (max-width: 768px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 16px;
  }

  p {
    font-size: 12px;
  }
}

/* -------------------------------------------------------------------------------- */
/* Swup Page Transitions */
/* -------------------------------------------------------------------------------- */

.transition-left {
  width: 100%;
}

html.is-animating .transition-left {
  width: 0;
}

/* -------------------------------------------------------------------------------- */
/*  !Cursor */
/* -------------------------------------------------------------------------------- */
.cursor {
  width: 10px;
  height: 10px;

  background: var(--yellow);
  border-radius: 100%;

  position: fixed;
  top: 0;
  left: 0;

  transform: translate(-10px, -10px);

  z-index: 540;

  pointer-events: none;
}

/* #5d548b */
.cursor-outline {
  background: rgb(138, 12, 227);

  width: 80px;
  height: 80px;

  border-radius: 100%;

  position: fixed;
  top: 0;
  left: 0;

  transform: translate(-80px, -80px);

  z-index: 530;

  mix-blend-mode: difference;

  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);

  pointer-events: none;
}

@media (max-width: 768px) {
  .cursor {
    width: 0;
    height: 0;
  }

  .cursor-outline {
    width: 0;
    height: 0;
  }
}

/* -------------------------------------------------------------------------------- */
/*  !Custom scrollbar  */
/* -------------------------------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--darkgrey);
}

::-webkit-scrollbar-thumb {
  background-color: rgb(237, 237, 237);
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--yellow);
}

/* -------------------------------------------------------------------------------- */
/* !Header */
/* -------------------------------------------------------------------------------- */

.header {
  /*Dimension*/
  width: 100%;
  height: 15vh;

  /*Position*/
  position: fixed;
  z-index: 420;

  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Animation at scroll */
.header.reduce {
  height: 8vh;
}

/* Project Page Modifier */
.header--prjPage {
  /*Dimension*/
  width: 100%;
  height: 8vh;
  position: relative;
  background: var(--darkgrey);
}

/* *Logo */
.header__logo {
  /*Dimension */
  width: 500px;
  height: 70%;

  /* Position */
  position: absolute;
  left: 50%;
  top: 50%;

  /* Center Pivot */
  transform: translate(-50%, -50%);

  /*Logo*/
  background: url(svg/full_logo.svg) no-repeat center center;

  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Animation at scroll */
.header.reduce>.header__logo {
  width: 150px;

  position: absolute;
  left: 0;
  top: 50%;
  /* Center Pivot */
  transform: translateY(-50%);

  margin-left: 30px;
}

.header__logo--prjPage {
  width: 150px;

  position: absolute;
  left: 0;
  top: 50%;
  /* Center Pivot */
  transform: translateY(-50%);

  margin-left: 30px;

  background: url(svg/full_logo.svg) no-repeat center center;
}

@media (max-width: 768px) {
  .header__logo {
    width: 50px;

    /*Logo*/
    background: url(svg/logo.svg) no-repeat center center;

    /* Position */
    position: absolute;
    left: 0%;
    top: 50%;

    /* Height Compensation */
    transform: translateY(-50%);

    margin-left: 30px;
  }

  /* Animation at scroll */
  .header.reduce>.header__logo {
    width: 50px;
  }
}

/* Contact Me Button */
.header__contactme {
  border: 1px solid rgb(255, 255, 255);

  /* Dimension */
  width: 140px;
  height: 50%;

  /* Rounded Border */
  border-radius: 50px;

  /* Position */
  position: absolute;
  right: 0%;
  top: 50%;

  /* Height Compensation */
  transform: translateY(-50%);

  margin: 0 30px;

  box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.2);

  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);

  background: rgba(245, 222, 49, 0.8);
}

.header__contactme:hover {
  background: var(--yellow);
  margin: 0 50px;
}

@media (max-width: 768px) {
  .header__contactme {
    width: 100px;
  }

  .header__contactme:hover {
    margin: 0 30px;
  }
}

/* Contact Me Button Text */
.header__contactme h2 {
  /* Dimension */
  width: 100%;
  height: 100%;

  /* Flexbox Center */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Color */
  color: var(--darkgrey);

  /* All Uppercase */
  text-transform: uppercase;

  /* Font */
  font-weight: 700;
  font-size: 12pt;
}

@media (max-width: 768px) {
  .header__contactme h2 {
    /* Font */
    font-size: 8pt;
  }
}

/* Contact Form */
.contactform {
  width: 0%;
  height: 100vh;

  color: white;

  position: fixed;
  left: 0;
  top: 0;

  z-index: 400;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.contactform.open {
  width: 100%;
  height: 100vh;
}

.form-container {
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(19, 19, 19, 0.9);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  border: none;
  border-bottom: 4px solid #f5de31;
  border-radius: 10px;
  box-shadow: none;
  font-size: 1.2rem;
  padding: 12px;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

.form-control:focus {
  border-bottom: 2px solid #333;
  outline: none;
}

.btn {
  background-color: #555;
  color: #fff;

  padding: 12px 20px;
  border-radius: 10px;

  font-size: 1.2rem;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

.btn:hover {
  background-color: #f5de31;
  color: var(--darkgrey);
}

#send_confirm {
  color: var(--yellow);
  text-align: center;
  padding-top: 20px;
}

/* -------------------------------------------------------------------------------- */
/* !Hero Section */
/* -------------------------------------------------------------------------------- */

.hero {
  width: 100%;
  height: 100vh;

  position: relative;
}

.hero__text {
  display: flex;
  max-width: 998px;
  padding-left: 40px;
  padding-bottom: 40px;
  position: absolute;
  bottom: 0;
}

.hero__text h1 {
  padding: 5px;
}

/* *Goto Project page Button */
.goto-prj-btn {
  width: 50px;
  height: 50px;

  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);

  margin: 0 35px;

  background: url(svg/icons/right-arrow.svg) no-repeat center center;
  background-size: cover;

  opacity: 0.7;

  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.goto-prj-btn:hover {
  opacity: 1;
  margin: 0 20px;
}

@media (max-width: 768px) {
  .goto-prj-btn {
    width: 100%;
    height: 100%;


    background: var(--darkgrey);

    opacity: 0;
  }
}

/* *Scroll Button */
.scroll-btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  margin: 30px 0;

  /* background: url(svg/icons/bot-arrow.svg) no-repeat center center;
    background-size: cover; */

  opacity: 0.7;

  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-btn:hover {
  opacity: 1;
}

.scroll-out {
  border: 3px solid white;
  background: rgba(255, 255, 255, 0.3);

  width: 20px;
  height: 40px;

  border-radius: 1rem;

  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-out:hover {
  border: 3px solid var(--yellow);
}

.scroll-in {
  background: var(--yellow);

  width: 8px;
  height: 8px;

  border-radius: 1rem;

  position: absolute;
  top: 0.3rem;
  left: 50%;
  transform: translateX(-50%);

  transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.scroll-out:hover>.scroll-in {
  top: 1.7rem;
}

/* -------------------------------------------------------------------------------- */
/* !Projects Section */
/* -------------------------------------------------------------------------------- */

#prj {
  display: block;
  width: 100%;
  height: 100%;
  /* margin-top: 50px; */
}

/*Box-----------------*/

.prj__box {
  width: 100%;
  height: 500px;

  position: relative;
  top: 0;
  left: 0;

  opacity: 0.1;
  transition: all 0.8s ease-in-out;
}

.prj__box.in-page {
  opacity: 1;
}

@media (max-width: 768px) {
  .prj__box {
    height: 250px;
  }
}

/*Title-----------------*/

.prj__box__title {
  position: absolute;
  left: 0;
  bottom: 0;

  margin: 40px 30px;
}

@media (max-width: 768px) {
  .prj__box__title {
    margin: 15px;
    background: linear-gradient(0deg,
        rgba(19, 19, 19, 0) 0%,
        rgba(19, 19, 19, 0.2) 100%);
  }
}

/* -------------------------------------------------------------------------------- */
/* ! About */
/* -------------------------------------------------------------------------------- */

.about {
  position: relative;

  width: 100%;
  height: 100vh;
}

.about__cover {
  position: absolute;

  width: 100%;
  height: 100%;

  background: url(img/foto-yellow.jpg) no-repeat left center;

  background-size: cover;
}

.about__copy {
  position: absolute;

  display: block;

  width: 50%;
  height: 100%;

  right: 0;

  align-items: center;

  justify-content: left;

  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .about__copy {
    width: 100%;
  }
}

.about__copy__title {
  padding: 40px 20px;
}

.about_copy_text {
  padding: 20px;
  line-height: 30px;
}

/* -------------------------------------------------------------------------------- */
/* ! Prj Pages */
/* -------------------------------------------------------------------------------- */

/* *Main Video */

.video-container--prjpage {
  /* per posizionare gli elementi all'interno */
  position: relative;
  /* per adattarsi alla larghezza del container */
  width: 100%;
  /* per creare un rapporto di proporzione */
  height: 92vh;
}

@media (max-width: 768px) {
  .video-container--prjpage {
    /* per posizionare gli elementi all'interno */
    /* position: relative; */
    /* per adattarsi alla larghezza del container */
    /* width: 100%; */
    /* per creare un rapporto di proporzione */
    height: 40vh;
  }
}

.video--prjpage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  aspect-ratio: 16/9;
}

.info {
  width: 100%;
  height: 100%;
}

/* *Titles Box */

.titles-box {
  width: 100%;
  background: rgb(35, 35, 35);

  padding: 25px 0;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 15px;
}

.subtitle {
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 15px;
}

/* *Description Box */

.description-box {
  max-width: 998px;

  position: relative;
  left: 50%;
  transform: translateX(-50%);

  margin-top: 50px;

  display: flex;
}

.description {
  width: 70%;
  margin: 20px;
}

.roles {
  width: 30%;
  margin: 20px;

  text-align: right;
}

.fullpage{
  width: 100%;
  margin: 20wh;

  text-align: center;
}

/* -------------------------------------------------------------------------------- */
/* !Footer */
/* -------------------------------------------------------------------------------- */

.footer {
  text-align: center;
  margin: 10px;
  padding: 15px;
}

.copyright {
  margin: 20px;

}

.icon-social {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #000;

  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 24px;

  margin: 10px;

  transition: all .3s ease-in-out;
}

.icon-social.instagram {
  /* background-color: #c32aa3; */
  background: url(svg/instagram_icon.svg) repeat center center;
}

.icon-social.linkedin {
  /* background-color: #0a65d4; */
  background: url(svg/linkedin_icon.svg) repeat center center;
}

.icon-social:hover {
  size: 10%;
}

.policy {
  margin: 20px;
}

/* -------------------------------------------------------------------------------- */
/* !Helpers */
/* -------------------------------------------------------------------------------- */

/**Images*/

.img_res {
  width: 100%;
  height: auto;
}

.dotgrid-filter {
  pointer-events: none;

  width: 100%;
  height: 100%;

  position: fixed;

  background: url(svg/dot-grid.svg) repeat center center;
  background-size: 4%;
  opacity: 0.2;
}

.dark-filter {
  pointer-events: none;

  width: 100%;
  height: 100vh;

  position: fixed;

  background: rgba(19, 19, 19, 1);
  opacity: 0.5;
}

/* *Video */

.video-container {
  /* Telling our absolute positioned video to 
    be relative to this element */
  position: relative;

  width: 100%;
  height: 100%;

  /* Will not allow the video to overflow the 
    container */
  overflow: hidden;

  /* Centering the container's content vertically 
    and horizontally */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video {
  object-fit: cover;
  height: 100%;
  width: 100%;

  position: absolute;
  top: 0;
  left: 0;
}

/* *Text */

.light-text {
  font-weight: 300;
}

.regular-text {
  font-weight: 400;
}

.semibold-text {
  font-weight: 600;
}

.bold-text {
  font-weight: 700;
}

.extrabold-text {
  font-weight: 800;
}

.ty {
  color: var(--yellow);
}

.tw {
  color: white;
}

.tu {
  text-transform: uppercase;
}

/* Position: Absolute Center */

/* .pac {

    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
} */

/* Flexbox Center */

/* 
display: flex;
justify-content: left;
align-items: center; 
*/

/* *Transitions */

.transition {
  transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.transition-eio {
  transition: all 1s ease-in-out;
}

/* -------------------------------------------------------------------------------- */
/* !Border Box */
/* -------------------------------------------------------------------------------- */
*,
*:before,
*:after {
  box-sizing: border-box;
}