/*
Theme Name: giovannidimatteotema
Theme URI: https://giovannidimatteo.it/il-mio-tema-wordpress
Author: Giovanni Di Matteo
Author URI: https://giovannidimatteo.it/
Description: Descrizione del tema.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
    font-family: 'Clash Display';
    src: url('/fonts/Clash_Display/ClashDisplay-Variable.woff2') format('woff2'),
        url('/fonts/Clash_Display/ClashDisplay-Variable.ttf') format('truetype-variations');
    font-weight: 1 999;
    font-style: normal;
    font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-Variable.woff2') format('woff2'),
      url('/fonts/Inter/Inter-Variable.ttf') format('truetype-variations');
  font-weight: 1 999;
  font-style: normal;
  font-display: swap;
}
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

:root {
    --gdm-global-light: #F0F0F0;
    --gdm-global-green: #A0E085;
    --gdm-global-dark: #0A090C;
    --gdm-global-pink: #db2763;
    /* Font */
    --gdm-fontfamily-primary: 'Clash Display', sans-serif;
    --gdm-fontfamily-text: 'Inter', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    background-color: var(--gdm-global-dark);
    font-family: var(--gdm-fontfamily-primary);
    box-sizing: border-box;
}
strong, b {
    color: var(--gdm-global-green);
}
.contenitore-preloader {
  z-index: 9999;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #0A090C;
  text-align: left;
  padding: 50px;
  box-sizing: border-box;
}

.preloader-percentage {
  font-size: 100px;
  font-family: var(--gdm-fontfamily-primary), sans-serif;
  color: var(--gdm-global-light);
}

.preloader-text {
  color: var(--gdm-global-light);
  font-family: var(--gdm-fontfamily-primary), sans-serif;
  font-size: 34px;
  margin-bottom: 20px;
}

a {
  color: var(--gdm-global-light);
  font-weight: 500;
}
a:hover {
  color: var(--gdm-global-green);
}
div#grain {
    box-sizing: border-box;
    z-index: 2;
    position: fixed !important;
    width: 100%;
    height: 100vh;
}
shader-art {
    position: fixed;
    top: 0;
    z-index: -2;    
    display: block;
    width: 100vw;
    height: 100vh;
  }
  
  shader-art canvas {
    display: block;
    width: 100vw;
    height: 100vh;
  }
  .dg {display: none !important}

  .header {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    z-index: 999;
  }
  
  /*.topbar {
    width: 100%;
    text-align: center;
    padding: 5px 0;
    color: var(--gdm-global-dark);
    font-size: 14px;
    font-family: var(--gdm-fontfamily-text);
    background: var(--gdm-global-light);
  }*/
  
  .main-header {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 0 40px;
 
  }
  
  .logo-header {
    max-width: 60px;
    padding: 10px 0; /* Adjust padding for visual balance */
  }
  
  .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    
  }
  
  .menu li {
    padding: 0 15px;
    font-family: var(--gdm-fontfamily-text);
    color: var(--gdm-global-light);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
  }
  /*
  .data {
    z-index: 1;
  }
  */
    
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 999;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--gdm-global-light);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 998;
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu nav ul li {
    padding: 15px 0;
}

.mobile-menu .cta {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.mobile-menu .cta-button {
    width: 48%;
    padding: 10px 20px;
    background-color: var(--gdm-global-light);
    color: var(--gdm-global-dark);
    text-decoration: none;
    text-align: center;
    border-radius: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-header {
    padding: 0 20px;
 
  }
    .menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
  .menu {
      display: flex;
  }
  
  .hamburger {
      display: none;
  }

  .mobile-menu {
    display: none;
  }
}

#content {
    height: 100vh;
    width: 100%;
    z-index: 3;
    box-sizing: border-box;
    overflow: hidden;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: relative;
}
.contenitore-hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
}
.contenitore-testo {
    overflow: hidden;
}
.testo-s {
  font-family: var(--gdm-fontfamily-text);
  color: var(--gdm-global-light);
    font-size: 7vw;
    font-weight: 300;
    text-align: left;
    /*text-transform: uppercase;*/
}
.testo-s i {
  font-weight: 400;
}
.testo-s span {
  font-size: 3vw;
}
.testo-scroll {
  position: absolute;
  bottom: 20px;
  left: 40px;
}
.testo-piccolo {
    font-family: var(--gdm-fontfamily-primary);
    color: var(--gdm-global-light);
    font-size: 1.5vw;
    text-align: center;
}
.testo-piccolo span {
    font-family: var(--gdm-fontfamily-primary);
}

.nome-hero {
    font-family: var(--gdm-fontfamily-primary);
    font-size: 8.5vw;
    /*-webkit-text-stroke: 4px var(--gdm-global-accent);*/
    white-space: nowrap;
    color:  var(--gdm-global-green);
    z-index: 100;
    position: relative;
    text-transform: uppercase;
    font-weight: 900;
}


#animatedSmile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.section-2 {
    width: 100%;
    height: auto;
    position: relative;
    box-sizing: border-box;
}
.contenitore-section-2 {
    padding: 0 40px;
}
.contenitore {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    gap: 40px;
}

.colonna {
    flex: 1;
}

.testo {
    color: var(--gdm-global-light); 
    font-family: var(--gdm-fontfamily-text);
    font-size: 22px;
    z-index: 3;
}
@media (min-width:767px) and (max-width:1070px) {
    .testo {
        font-size: 20px;
    }
}
.split-word .line {
    overflow: hidden;
}
.contenitore-immagine {
    overflow: hidden;
}
.contenitore-immagine img {
  width: 100%;
    height: auto;
    max-width: 700px;
    max-height: 80vh;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto; 
    display: block; 
    z-index: 1;
    background-color: var(--gdm-global-dark);
    border-radius: 25px;
}
.section-3 {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    z-index: 3;
    box-sizing: border-box;

}

.wrapperRollingText {
    white-space: nowrap;
    background-color: var(--gdm-global-green);
    font-family: var(--gdm-fontfamily-primary);
    font-weight: 800;
    text-transform: uppercase;
    height: auto;
  }
  .rollingText {
    font-size: 8vw;
    display: inline-block;
    padding-left: 10px;
    color: var(--gdm-global-dark);
  }
  .wrapperRollingText02 {
    white-space: nowrap;
    background-color: var(--gdm-global-green);
    font-family: var(--gdm-fontfamily-primary);
    font-weight: 800;
    text-transform: uppercase;
    width: 150%;
    margin-left: -50px;
    transform: rotate(-10deg);
    height: auto;
  }
  .rollingText02 {
    font-size: 8vw;
    display: inline-block;
    padding-left: 13px;
    color: var(--gdm-global-dark);
  }
  .rollingText02 span {
    vertical-align: middle;
}
  .img-marquee {
    width: 120px;
    height: auto;
    margin: 20px;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(3%) sepia(6%) saturate(1854%) hue-rotate(218deg) brightness(93%) contrast(99%);
  }
  .section-4 {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
.content-wrap {
    display: inline-block;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
  }
  .portfolio-section {
    display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  align-items: center;
    overflow: hidden;
  box-sizing: border-box;
    height: 100vh;
  padding: 0 40px;
  gap: 40px;
}
.content {
    position: relative;
  min-width: calc(100vw - 80px);
  height: 90vh;
  overflow: hidden;
  border-radius: 25px;
  box-sizing: border-box;
}
  .content-wrap .wrapper-title {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    border: solid 1px var(--gdm-global-green);
    border-radius: 50px;
  }
  .content-wrap .title {
    color: var(--gdm-global-light);
    font-family: var(--gdm-fontfamily-primary);
    font-weight: 300;
    font-size: 30px;
    font-style: italic;
  }
  .image-portfolio {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; 
    border-radius: 25px;
  }
  .macro-container-section-5 {
      box-sizing: border-box;
      width: 100%;
      overflow: hidden;
  }
  .section-5 {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
  }
  .wrap-section-5 {
    width: 100%;
    height: 100vh;
    position: relative;
  }
  .contenitore-section-5 {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
  .contenitore-titolo {
    width: 100%;
    display: flex;
    padding: 0 40px;
    z-index: 3;
    align-items: flex-start;
    gap: 40px;
  }
  .titolo-strumenti {
    font-size: 6vw;
    margin-top: -20px;
    text-align: left;
    color: var(--gdm-global-light);
    flex: 1 0 0;
  }
  .sottotitolo-strumenti {
    font-size: 18px;
    text-align: left;
    color: var(--gdm-global-light);
    font-family: var(--gdm-fontfamily-text);
    flex: 1 0 0;
  }
  .gallery-strumenti {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    perspective: 2000px;
  }
  .block {
    position: absolute;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transform: translateZ(1750px);
  }
  .block-1 {
    top: 40%;
    left: 40%;
    background: url(/uploads/2024/03/1.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-2 {
    top: 20%;
    left: 60%;
    background: url(/uploads/2024/03/2.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-3 {
    top: 60%;
    left: 60%;
    background: url(/uploads/2024/03/3.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-4 {
    top: 15%;
    left: 70%;
    background: url(/uploads/2024/03/4.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-5 {
    top: 70%;
    left: 50%;
    background: url(/uploads/2024/03/5.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-6 {
    top: 30%;
    left: 10%;
    background: url(/uploads/2024/03/6.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-7 {
    top: 50%;
    left: 60%;
    background: url(/uploads/2024/03/7.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-8 {
    top: 70%;
    left: 20%;
    background: url(/uploads/2024/03/8.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .block-9 {
    top: 10%;
    left: 60%;
    background: url(/uploads/2024/03/9.png) no-repeat 50% 50%;
    background-size: contain;
  }
  .section-6 {
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    z-index: 3;
  }
  .titolo-contatti {
    font-size: 6vw;
    text-align: center;
    color: var(--gdm-global-light);
    margin-bottom: 40px;
  }
  .box-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: 300;
    font-family: var(--gdm-fontfamily-text);
}
  .icona svg {
    fill: var(--gdm-global-light);
    width: 24px;
    margin-top: 5px;
}

.copyright {
  margin-top: 20px;
  color: var(--gdm-global-light);
}

.section-7 {
  box-sizing: border-box;
    width: 100%;
    height: 100vh;
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
}
.section-8 {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  z-index: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 0 40px;
}

.section-8 .container-lista-lavori {
  padding-bottom: 50px;
}

 .section-8 a.project {
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 0.5fr; 
  align-items: center; 
  position: relative;
    border-bottom: solid 1px var(--gdm-global-light);
    padding: 0 20px;
    cursor: pointer;
}

  .project img {
  position: absolute;
  width: 350px;
  height: 0;
  object-fit: cover;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  left: 50%;
  z-index: -10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease;
}
.project-img-appear {
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;  
}

.project-img-disappear {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
}

.project .project-name {
  font-size: 28px;
  padding: 40px 0;
}
.project-type {
  text-align: center;
  transition: transform 0.3s ease;
}
.project-date {
  text-align: right;  
  transition: transform 0.3s ease; 
}

.icona-arrow {
  justify-self: end; 
  overflow: hidden;
}
.icona-arrow svg {
  fill: var(--gdm-global-light);
  opacity: 0; 
  transform: translate(-20px, 20px); 
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.project:hover .icona-arrow svg {
  opacity: 1;
  transform: translate(0, 0); 
}

.project:hover .project-date, .project:hover .project-type  {
  transform: translateX(-20px);
}

@media (max-width: 768px) {
  .testo-scroll {
    bottom: 80px;
  }
  .testo-piccolo {
    font-size: 14px;
  }
  .contenitore-section-2 {
    padding: 0 20px;
}
.contenitore {
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  height: auto;
}
.testo {
  font-size: 16px;
}
.colonna {
  flex: unset;
}
.section-3 {
  min-height: 370px;
}
.img-marquee {
  width: 100px;
  margin: 20px;
}
.content-wrap {
  width: 100%;
}
.portfolio-section {
padding: 0 20px;
gap: 20px;
display: flex;
flex-direction: column;
height: auto;
}
.content {
  min-width: 100%;
  height: 40vh;
}
.content-wrap .title {
  font-size: 26px;
}
.section-8 {
  padding: 40px 20px 0 20px;
}
.section-8 .titolo-contatti {
  margin: 0;
}
.titolo-contatti {
  font-size: 40px;
}
.contenitore-titolo {
  padding: 0 20px;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
}
@media (max-width: 768px) {
  .section-8 a.project {
    grid-template-columns: 1fr auto; /* Colonna per il testo e la freccia */
    grid-template-rows: auto auto; /* Righe per titolo e (tipo + data) */
  }

  .project .project-name {
    grid-column: 1; /* Occupa l'intera prima colonna */
    padding: 40px 0 20px 0; /* Riduci il padding per spazi più piccoli */
    font-size: 26px;
  }

  .project-type, .project-date {
    grid-row: 2; /* Si trovano nella seconda riga */
    grid-column: 1; /* Entrambi nella prima colonna, uno accanto all'altro */
    padding-bottom: 20px;
  }

  .project-type {
    text-align: left;
  }

  .project-date {
    text-align: right;
  }

  .icona-arrow {
    grid-column: 2; /* L'icona freccia va nella seconda colonna */
    grid-row: 1 / span 2; /* Estendi dall'inizio alla fine delle righe */
    justify-self: center; /* Centra l'icona freccia nella sua colonna */
    align-self: center; /* Centra verticalmente */
    
  }
  .icona-arrow svg {
    opacity: 1;
    transform: translate(0, 0);
  }
  .titolo-strumenti {
    font-size: 40px;
    margin-top: 0px;
}
.sottotitolo-strumenti {
  font-size: 16px;
}
}
@media (min-width: 1800px) {
  .nome-hero {
      font-size: 8vw;
  }
  .testo-s {
      font-size: 6.5vw;
  }
  }