/* FONTIMPORT */
@import url('https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@100..900&display=swap');



/* Reset base */
/*
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}*/
 /*
 * {
  outline: 1px solid red;
} */

/* BODY */

body, html {
  height: 100%;
  font-family: "Smooch Sans", sans-serif;
  background-color: black;
  color: #d6c5a0;
  margin: 0;
  background: black;
}

/* VIDEO INIZIALE */
.hero {
  position: relative;
  height: 100vh;
  /* 100vh prendi tutto lo spazio in alto
  viewport, spazio della finestra */
  max-width: 100%;
}

/* Video full screen */
#bg-video {
  position: absolute; 
/* posizione assoluta reativa al div .hero */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  /* l'immagine copre tutte la superfice anche se deve essere tagliata */
  object-position: center 35%;
/* scegli quale parte di video vuoi vedere */
  opacity: 0.7;
  /* 1 completamente visibile */
  z-index: 1;
  /* z-index decide quale immagine sta sopra,quella con il numero più alto si vedra meglio */
  
}

/* Overlay nebbia */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
/* il primo rgba è il centro dwlla nebbia */
/* il secondo sono i bordi */ 
/* ellise = ovale */
  z-index: 2;
  /* fai vedere a peter senza nebbia come viene forse meglio */
}

/* Contenuto centrato */
/* contenitore del titolo */
.content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center /* top */;
  justify-content: center;
}

/* Titolo con fade dalla nebbia */
#site-title {
 /* font-size: 4rem;*/ 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 2s ease;
  
}
#site-title.visible {
  opacity: 1;
  transform: translateY(0);
}
h1 {
      letter-spacing: 5px;
       font-size: clamp(0.875rem, 1.5vw + 1.2rem, 5rem);
      }
      
/* ABOUT */
.about {
  padding: 0 20px 5px 20px;
  text-align: center;
  color: #d6c5a0;
   /* Beige dorato elegante */
  background: radial-gradient(circle at center, rgba(42, 37, 29, 0.8) 0%, rgba(10, 10, 10, 1) 100%);
  font-family: "Smooch Sans", sans-serif;
  letter-spacing: 5px;
  font-size: clamp(0.875rem, 1.5vw + 1.2rem, 5rem);
/*  background-color: rgb(184, 134, 11);*/
   /* Beige dorato elegante */
   
      }


.about h2 .title-portfolio h2 {
  font-size: clamp(0.875rem, 1.5vw + 1.2rem, 5rem);
  color: #d6c5a0;
  margin-bottom: 0rem;
  
}

.about h3 {
   font-size: clamp(0.875rem, 1.5vw + 1.2rem, 5rem);
  font-weight: normal;
}


/* Testo sopra tutto */
.about h2, .about h3 {
    position: relative;
    z-index: 2;
    color: #d6c5a0;
    text-align: center;
    padding: 0 20px;
    opacity: 1;
    transition: opacity 1s ease;
    margin: 0 20px;
     font-size: clamp(1.5rem, 1.5vw + 1.6rem, 6rem);
     top: clamp(60px, 5vw, 300px);

}

@media (max-width: 600px) and (max-height: 960px) {
  .about h2,
  .about h3 {
    top: 10px;
  }
}

@media (min-width: 1024px) and (min-height: 1366px) {
  .about h2,
  .about h3 {
    top: 60px;
  }
}

@media (width: 768px) and (height: 1024px) {
  .about h2,
  .about h3 {
    top: 70px;
  }
}

.puppetter {
  height: 1px; /* Linea sottile all'inizio */
  background: linear-gradient(to right, 
      #7a5c1d 0%, /* oro scuro */
      #556b2f 25%, /* verde ruggine */
      #a24d34 50%, /* ruggine */
      #b24a2f 75%, /* mattone */
      #704214 100%); /* terra */
  border: none; /* Rimuove il bordo di default */
  width: 100%; /* Larghezza completa */
  margin: 0px 0; /* Spazio sopra e sotto la linea */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Leggera ombra per effetto lucido */
  
}


/* BURATTINO */

.about {
    position: relative;
    background-image: url('pigiovanebr.png');
    background-size: cover;
    background-position: center 5%;
    /* posizione burattino */
    height: 250px;
}



/* Aggiungi un overlay trasparente per simulare la trasparenza dello sfondo */
/*.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4) 
    z-index: 1;
}
*/

.pc {
  display: block;
  margin: 80px 100px 0 100px;
  text-align: left;
 
}

@media (max-width: 768px) {
  .pc {
    display: none;
  }
}


/* GHOSTCONTAUNER */

.ghost-container { 
  color: #e0d6c1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-size: clamp(0.875rem, 1.5vw + 1.2rem, 2.5rem);
   /* da 14px a ~40px*/
   /* 1rem = 16px */
  text-align: center;
  overflow: hidden;
  position: relative;
  background: black;
  max-width: 100%;
  
}

/* APPARE CON LO SCROLL */
.ghost-text {
  opacity: 0;
  transform: scale(1.2);
  filter: blur(10px);
  transition: all 1.5s ease-out;
}

.ghost-text.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}


@keyframes ghostAppear {
  0% {
    opacity: 0;
    transform: scale(1.2);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.chisono {
    font-size: 2.4rem;
    text-align: left;
    margin-right: 5%;
    margin-left: 0;
    margin-bottom: 5%;
    padding-bottom: 0;
    margin-top: 0;
}

.descrizione {
    font-size: 1rem;
    text-align: left;
    margin-left: 3%;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    padding-bottom: 20px;
}
 
.text{
    text-align: left;
    font-size: 1.8rem;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 40px;
    padding-top: 0;
        
}
p {
    margin: 40px 0; 
}

.pi {
    margin-bottom: 0;
    padding-bottom: 0;
}


/* immagini about */
.about-img {
width:100%; 
max-width:280px; 
margin: 20px 0;
border-radius: 20%;
}

.last-img {
    max-width: 300px;
    border-radius: 5%;
}
.cv {
  color: #d6c5a0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: center;
  font-size: 2rem;
}


/* Per dispositivi con larghezza massima di 767px (mobile) */
@media (max-width: 767px) {
  .cv {
    font-size: 1rem;
  }
}


.link {
    text-align: center;
}




/* Sezione Portfolio */

.portfolio-title {
  position: relative;
  z-index: 3;
  color: #d6c5a0;
  margin-bottom: 30px;
  color: white;
  font-family: "Smooch Sans", sans-serif;
  letter-spacing: 5px;
  color: #d6c5a0; /* Beige dorato elegante*/
  font-size: 4.5rem;
  
}


/* Per dispositivi con larghezza massima di 767px (es. mobile) */
@media (max-width: 767px) {
  .portfolio-title {
    font-size: 2rem;
  }
}


.portfolio {
  min-height: 100vh;
  padding: 0 20px 20px 20px;
  text-align: center;
  color: #d6c5a0; /* Beige dorato elegante */
  color: white;
  background: radial-gradient(circle at center, rgba(42, 37, 29, 0.8) 0%, rgba(10, 10, 10, 1) 100%);
  
}

/* NON SO PERCHÈ MA ANDAVA MESSO SOTTO!! */
.portfolio {
  position: relative;
  background-image: url('pi.jpg'); /* Percorso dell'immagine */
  background-size: cover; /* Fai in modo che l'immagine copra tutta la sezione */
  background-position: 40% center; /* Centra l’immagine */
  background-attachment: fixed; /* Rende l'immagine fissa mentre scorri */
  overflow: hidden; /* Impedisce che l’immagine esca dai bordi della sezione */
  
}

/* ✅ Disattiva effetto fixed su mobile e sistema lo zoom */
@media (max-width: 768px) {
  .portfolio {
    background-attachment: scroll;
    background-position: top center;    
    background-size: contain; /* oppure prova '100% auto' */
    background-repeat: no-repeat;
    background-image: url('pipiccolo.jpg');
         
  }
  .portfolio-title {
      padding-bottom: 200px;
  }

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Nero semi-trasparente */
  z-index: 1;
}

.portfolio > * {
  position: relative;
  z-index: 2; /* Porta il contenuto sopra l’overlay */
}
}


@media screen and (min-width: 1024px) {
  .portfolio {
    background-position: 40% 20%; /* Sposta l'immagine verso il basso */
  }
   .portfolio-title {
      margin-bottom: 100px;
  }
}





.video-thumbnail {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  margin-bottom: 30px;
}

.video-thumbnail:hover {
  transform: scale(1.02);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 100;
  padding: 0;
  margin: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.watch-more {
  text-align: center;
  margin-top: 30px;
}

.curious-link {
  font-size: 1.5rem;
  background: linear-gradient(to right, #7a5c1d, #556b2f, #a24d34, #b24a2f, #704214);
  -webkit-background-clip: text;
  color: transparent;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  transition: opacity 0.3s ease;
  color: #d6c5a0;
  /* oro, togli se lo vuoi colorato */
}

.curious-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, #7a5c1d, #556b2f, #a24d34, #b24a2f, #704214);
  transition: opacity 0.3s ease;
  background: #d6c5a0;
  /* oro, togli se lo vuoi colorato*/
}

.curious-link:hover {
  opacity: 0.7;
}


/* Sezione Contattami */
.contact {
  padding: 20px 20px 30px 20px;
  text-align: center;
  color: #d6c5a0; /* Beige dorato elegante */
  background: radial-gradient(circle at center, rgba(42, 37, 29, 0.8) 0%, rgba(10, 10, 10, 1) 100%); /* Come le altre sezioni */
  font-family: "Smooch Sans", sans-serif;
  position: relative;
  z-index: 1;
  /*height: 100vh;*/
  /* Assicura che la sezione occupi tutta l'altezza della finestra */ 
min-height: 100vh;
 overflow-y: auto;
 
}

/* NON SO PERCHÈ MA ANDAVA MESSO SOTTO!! */
.contact {
  position: relative;
  height: 100vh; /* Imposta l’altezza della sezione */
  background-image: url('rampicante2.png'); /* Percorso dell'immagine */
  background-size: cover; /* Fai in modo che l'immagine copra tutta la sezione */
  background-position: 95% center; /* Centra l’immagine */
  background-attachment: fixed; /* Rende l'immagine fissa mentre scorri */
  overflow: hidden; /* Impedisce che l’immagine esca dai bordi della sezione */
  
}

/* Disabilito fixed su mobile */
@media only screen and (max-width: 768px) {
  .contact {
    background-attachment: scroll !important;
    background-image: url('rampicante1.0.png');
  }
}

/* Overlay simile alle altre sezioni */
.contact .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
  z-index: 2;
}

/* Contenuto centrato nella sezione */
.contact .content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Titolo Contattami centrato */
#contact-title {
  font-size: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 2s ease;
  margin: 0;
}

#contact-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Descrizione centrata */
.contact-description {
  font-size: 1.5rem;
  margin: 20px 0;
  max-width: 800px; /* Limita la larghezza per un migliore layout */
}

/* Form di contatto */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  width: 100%;
  max-width: 600px; /* Limita la larghezza del form per renderlo più leggibile */
  margin-top: 30px; /* Distanza tra la descrizione e il modulo */
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  background: transparent;
  border: 2px solid #d6c5a0;
  color: #d6c5a0;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 10px;
  border-radius: 5px; /* Aggiunge bordi arrotondati agli input */
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

/* Pulsante Invio - più elegante */
.contact-form button {
  padding: 12px 20px;
  background-color: #d6c5a0;
  color: black;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px; /* Angoli arrotondati per il pulsante */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  width: 100%;
  max-width: 300px; /* Limita la larghezza del pulsante */
}

.contact-form button:hover {
  background-color: #c49b3d; /* Colore più scuro quando il pulsante è in hover */
  transform: scale(1.05); /* Leggera animazione di ingrandimento */
}

/* Focus sugli input e textarea */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c49b3d; /* Colore di focus più scuro */
}

#response-message {
    font-family: "Smooch Sans", sans-serif;
    color: #d6c5a0 !important;
    text-align: center;
}


.success-msg {
  font-family: "Smooch Sans", sans-serif;
  color: #d6c5a0;
  font-weight: bold;
  padding: 10px;
}

.custom-hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    to right,
    #7a5c1d,   /* oro scuro */
    #556b2f,   /* verde ruggine */
    #a24d34,   /* ruggine */
    #b24a2f,   /* mattone */
    #704214    /* terra */
  );
  border-radius: 2px;
  width: 80%;
  margin: 0 0 0 8%
  
}



/* FOOTER */
.site-footer {
  background-color: #0b0b0b;
  color: #aaa;
  padding: 1px 20px 1px 20px;
  text-align: center;
  font-size: 0.9rem;
  vertical-align: center;  
  
}

.site-footer h2 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-title {
    margin: 10px 0 5px 0;
}

.diritti {
    margin-bottom: 0;
    margin-top: 10px;
}

/* Stili per le icone dei social */
.social-icons {
    display: flex; /* Allinea le icone orizzontalmente */
    justify-content: center; /* Centra le icone nella pagina */
    padding: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    margin: 10px; /* Distanza tra le icone */
    transition: transform 0.3s ease; /* Transizione per l'effetto hover */
}

.social-icon img {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: scale(1.2); /* Ingrandisce l'icona quando si passa sopra */
}



/* SENZA ANIMAZIONE */
.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hamburger-menu span {
  height: 3px;
  background-color: #d6c5a0; /* beige oro */
  border-radius: 2px;
  transition: all 0.3s ease;
  
}

.hamburger-menu.visible {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.9); /* scuro e trasparente */
  backdrop-filter: blur(8px);
  transition: right 0.4s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.side-menu ul li {
  margin: 20px 0;
}

.side-menu ul li a {
  color: #d6c5a0;
  text-decoration: none;
  font-size: 1.9em;
  font-family: "Smooch Sans", sans-serif;
}

.side-menu.open {
  right: 0;
}
html {
  scroll-behavior: smooth;
}

.hamburger-menu span {
  height: 3px;
  background-color: #7a5c1d; /* Iniziale oro scuro */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) {
  animation: colorChange1 5s infinite;
}

.hamburger-menu span:nth-child(2) {
  animation: colorChange2 5s infinite;
}

.hamburger-menu span:nth-child(3) {
  animation: colorChange3 5s infinite;
}

/* Animazioni con i vari colori */
@keyframes colorChange1 {
  0% {
    background-color: #7a5c1d; /* oro scuro */
  }
  25% {
    background-color: #556b2f; /* verde ruggine */
  }
  50% {
    background-color: #a24d34; /* ruggine */
  }
  75% {
    background-color: #b24a2f; /* mattone */
  }
  100% {
    background-color: #704214; /* terra */
  }
}

@keyframes colorChange2 {
  0% {
    background-color: #7a5c1d;
  }
  25% {
    background-color: #556b2f;
  }
  50% {
    background-color: #a24d34;
  }
  75% {
    background-color: #b24a2f;
  }
  100% {
    background-color: #704214;
  }
}

@keyframes colorChange3 {
  0% {
    background-color: #7a5c1d;
  }
  25% {
    background-color: #556b2f;
  }
  50% {
    background-color: #a24d34;
  }
  75% {
    background-color: #b24a2f;
  }
  100% {
    background-color: #704214;
  }
}


/* NAVBAR: desktop only */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0px;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0); /* inizialmente invisibile */
  backdrop-filter: blur(8px);
  transform: translateY(-100%);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 10000;
}

.main-navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-navbar a {
  color: #d6c5a0;
  text-decoration: none;
  font-family: "Smooch Sans", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.main-navbar a:hover {
  text-decoration: underline;
}


/* HAMBURGER & SIDE MENU: nascondi su desktop */
@media (min-width: 769px) {
  .hamburger-menu,
  .side-menu {
    display: none !important;
  }
}

/* NAVBAR: non visibile su mobile */
@media (max-width: 768px) {
  .main-navbar {
    display: none;
  }
}



@media (min-width:1024px) {
.about {
    background-image: url("MURORUGGINE.png") !important;
}
}

@media (min-width: 600px) and (max-width: 960px) {
  .about {
    background-image: url("MURORUGGINE.png") !important;
  }
}

@media (min-width: 900px) {
  .about {
    background-image: url("MURORUGGINE.png")!important;
  }
}



@media (min-width:1200px) {
.video-gallery {
  margin-top: 250px;
}  
}


@media (min-width:1024px) {
.video-gallery {
  margin-top: 200px;
}  
}


@media (max-width:600px) {
.video-gallery {
  margin-top: 300px;
}  
}


.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Contenitore principale */
.ghost-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}


/* Layout per desktop */
@media screen and (min-width: 768px) {
  .ghost-text {
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: repeat(7, auto);
    align-items: start; 
}
  
   
  
 
  /* Posiziona tutti i paragrafi e il bottone nella colonna destra */
  
  .text {
    grid-column: 2 / 3;
    padding: 0px 100px 0px 100px;
    margin-top: 0px;    
  }
  
  .first-text {
      margin-top: 100px;
      margin-bottom: 0;
  }
  
  .mobile {
      display: none;
  }
  #strunz {
      width: 300px;
      margin-left: 0;
}

.descrizione {
    margin-top: 10px;
    padding-left: 35px;
}

.pi {
    margin-top: 30px;
    padding: 0;
}
.chisono{
    padding-left: 35px;
    margin-bottom: 30px;
}


/* immagini about */
.pc-img {
width:100%; 
max-width:280px; 
margin-left: 60px;
padding: 0;
border-radius: 5px;
}

.cigno {
    margin-top: 0px;
    padding-top: 0;
}

/*  
 * {
  outline: 1px solid red;
} */

}

/* Layout mobile - tutto verticale */
@media screen and (max-width: 767px) {
  .ghost-text {
    display: block;
  }

  p {
    margin-bottom: 0
    40px;
    text-align: center;
  }
 

@media screen and (min-width: 768px) {
  .ghost-text {
    display: grid;
    grid-template-columns: 400px 1fr;
    grid-template-rows: repeat(7, auto);
    grid-gap: 1rem 1.5rem;
    align-items: start;
  
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .ghost-container {
    min-height: auto;
    padding-bottom: 5rem;
  }

  .ghost-container img {
    max-height: 65vh;
    object-fit: cover;
  }

  .ghost-container h2,
  .ghost-container h3 {
    font-size: clamp(1rem, 3.5vw, 2rem);
    margin-bottom: 1rem;
  }
}



/* Default: hidden */
.desk {
  display: none;
}




