/* ============================
   RESET & BASE
   ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
}

p {
  line-height: 1.6;
}

/* ============================
   LAYOUT PRINCIPALE
   ============================ */

.nav,
.slider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  background-color: #ffffff;
  text-align: center;
  padding: 0 2em;
}

/* Sezioni a tutta larghezza */
.row-full {
  width: 100vw;
  /* padding: 0 9vw;  margini interni a destra e sinistra  */
  /* box-sizing: border-box;  assicura che il padding sia incluso nella larghezza */
}

/* Canvas di background (particles.js) */
.background {
  position: absolute;
  height: 100vh;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

/* ============================
   TITOLI & TESTI
   ============================ */

.nav h1,
.slider h1,
.main h1 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 5vw;
  margin: 0;
  padding-bottom: 1rem;
  letter-spacing: 0.5rem;
  color: #000000;
  transition: all 0.3s ease;
  z-index: 3;
}

h1:hover {
  transform: translate3d(0, -10px, 22px);
  color: #ff0266;
}

.slider h2 {
  font-size: 2vw;
  letter-spacing: 0.3rem;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: #585858;
  z-index: 4;
}

h3.span {
  font-size: 2vw;
  letter-spacing: 0.6em;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: #588096;
  z-index: 4;
}

/* ============================
   LINK
   ============================ */

a {
  text-decoration: none;
  font-size: 2vw;
  letter-spacing: 0.6em;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: #faebd7;
}

a:link {
  color: rgb(0, 0, 0);
}

a:visited {
  color: green;
}

a:hover {
  color: hotpink;
}

a:active {
  color: blue;
}

/* ============================
   NAV BAR SCORREVOLE (se la usi)
   ============================ */

.nav-container {
  display: flex;
  flex-direction: row;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 75px;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  background: #ffffff;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container--top-first {
  position: fixed;
  top: 75px;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container--top-second {
  position: fixed;
  top: 0;
}

.nav-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  color: #000000;
  letter-spacing: 0.1rem;
  transition: all 0.5s ease;
  font-size: 2vw;
  /* overflow: hidden; */
}

.nav-tab:hover {
  color: #ffffff;
  background: #000000;
  transition: all 0.5s ease;
}

.nav-tab-slider {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #000000;
  transition: left 0.3s ease;
}

/* ============================
   EFFETTI TESTO "LOADER"
   ============================ */

.loader span {
  color: #faebd7;
  text-shadow: 0 0 0 #faebd7;
  -webkit-animation: loading 1s ease-in-out infinite alternate;
}

/* ATTENZIONE: questo riguarda tutti gli span.
   Se vuoi limitarlo solo alla scritta iniziale,
   potresti cambiare in ".loader span:hover" */
span:hover {
  color: #ff0266;
  font-weight: 500;
  font-size: 2.2vw;
}

@-webkit-keyframes loading {
  to {
    text-shadow: 20px 0 70px #ff0266;
    color: #ff0266;
  }
}

.loader span:nth-child(2)  { -webkit-animation-delay: 0.1s; }
.loader span:nth-child(3)  { -webkit-animation-delay: 0.2s; }
.loader span:nth-child(4)  { -webkit-animation-delay: 0.3s; }
.loader span:nth-child(5)  { -webkit-animation-delay: 0.4s; }
.loader span:nth-child(6)  { -webkit-animation-delay: 0.5s; }
.loader span:nth-child(7)  { -webkit-animation-delay: 0.6s; }
.loader span:nth-child(8)  { -webkit-animation-delay: 0.7s; }
.loader span:nth-child(9)  { -webkit-animation-delay: 0.8s; }
.loader span:nth-child(10) { -webkit-animation-delay: 0.9s; }
.loader span:nth-child(11) { -webkit-animation-delay: 1s;   }
.loader span:nth-child(12) { -webkit-animation-delay: 1.1s; }
.loader span:nth-child(13) { -webkit-animation-delay: 1.2s; }
.loader span:nth-child(14) { -webkit-animation-delay: 1.3s; }
.loader span:nth-child(15) { -webkit-animation-delay: 1.4s; }
.loader span:nth-child(16) { -webkit-animation-delay: 1.5s; }
.loader span:nth-child(17) { -webkit-animation-delay: 1.6s; }
.loader span:nth-child(18) { -webkit-animation-delay: 1.7s; }
.loader span:nth-child(19) { -webkit-animation-delay: 1.8s; }
.loader span:nth-child(20) { -webkit-animation-delay: 1.9s; }
.loader span:nth-child(21) { -webkit-animation-delay: 2s;   }
.loader span:nth-child(22) { -webkit-animation-delay: 2.1s; }

/* ============================
   GALLERY GRID
   ============================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  object-fit: cover;
}

/* ============================
   MEDIA QUERIES
   ============================ */

@media (min-width: 800px) {
  .nav h1,
  .slider h1 {
    font-size: 5vw;
  }

  .nav h2,
  .slider h2 {
    font-size: 3vw;
  }

  .nav-tab {
    font-size: 3vw;
  }
}

@media only screen and (min-width: 360px) {
  .nav h1,
  .slider h1 {
    font-size: 8vw;
  }

  .nav h2,
  .slider h2 {
    font-size: 6vw;
    letter-spacing: 0.2vw;
  }

  .nav-tab {
    font-size: 1.2vw;
  }
}

/* ============================
   SEZIONI GENERALI
   ============================ */

.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 120px; /* spazio per il menu fisso */
}

.main h1 {
  margin-bottom: 0.75rem;
}

.main h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #555;
}

/* Spaziatura standard tra blocchi */
.main > * {
  margin-bottom: 3rem;
}

/* Blocchi a tutta larghezza (gallery / installazioni) */
.row-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 2.5rem 9vw;
}

/* Contenuto intro iniziale */
.section-intro {
  max-width: 900px;
  margin: 0 auto;
}

/* Allineamento pulsanti/link di coda */
.text-right {
  text-align: right;
}

/* Bottoni */
.button,
.btn {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #000;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  transition: all 0.2s ease;
}

.button:hover,
.btn:hover {
  background: #000;
  color: #fff;
}

/* ============================
   LAYOUT GENERALE PORTFOLIO
   ============================ */

/* Contenitore principale del contenuto */
.main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Ogni sezione di progetto */
.section {
  margin-bottom: 4.5rem;
}

/* Titoli dentro le sezioni */
.section h1 {
  font-family: "Raleway", sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 1.4rem;
}

.section h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: #555;
  margin: -0.5rem 0 1.2rem;
}

/* Testo */
.section p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* Sezioni testo “normali” */
.text-section {
  /* per ora nessuno stile speciale, ma è qui se ti serve */
}

/* Sezioni con immagini */
.image-section img,
.media-section img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

/* Versione mobile: stack verticale */
@media (max-width: 900px) {
  .three-images-row {
    flex-wrap: wrap;
  }
  .three-images-row img {
    width: 100%;
    margin-bottom: 1.2rem;
  }
}


/* Sezioni con video (YouTube, Vimeo, ecc.) */
.video-section .youtube_player,
.video-section .vimeo_player,
.video-section iframe,
.media-section .youtube_player,
.media-section .vimeo_player {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 1.5rem 0;
}

/* Sezioni con audio (SoundCloud, Spotify, Spreaker) */
.audio-section .soundcloud_player,
.audio-section .spotify_player,
.audio-section iframe {
  width: 100%;
  display: block;
  margin: 1.5rem 0;
}

/* Pulsanti */
.button,
.btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.button:hover,
.btn:hover {
  background: #111;
  color: #fff;
}

/* Allineamento a destra (per i link finali) */
.text-right {
  text-align: right;
}

/* Media query per schermi piccoli */
@media (max-width: 768px) {
  .main {
    padding: 0 1.4rem 3rem;
  }

  .section {
    margin-bottom: 3rem;
  }

  .section h1 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }

  .button,
  .btn {
    font-size: 0.75rem;
    padding: 0.55rem 1.3rem;
  }
}

/* ============================
   NAVBAR MINIMALE (SOLO PAGINE INTERNE)
   ============================ */

/* Margine superiore solo per le pagine interne
   (body.page-kronotopia, in questo caso) */
.page-kronotopia .main {
  padding-top: 120px;
}

/* Navbar fissa in alto */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  z-index: 9999;
}

/* Link della navbar */
.top-nav a {
  font-family: "Raleway", sans-serif;
  text-decoration: none;
  color: #000;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.top-nav a:hover {
  opacity: 0.6;
}

/* Versione mobile */
@media (max-width: 768px) {
  .top-nav {
    padding: 14px 22px;
    gap: 18px;
  }

  .top-nav a {
    font-size: 0.75rem;
  }
}

/* ============================
   LISTE (ul, li) – stile elegante per testi informativi
   ============================ */

.text-section ul {
  margin: 1.2rem 0 1.8rem 0;
  padding-left: 1.2rem;        /* leggero rientro */
  list-style-type: disc;
}

.text-section ul li {
  margin-bottom: 0.7rem;        /* spazio tra punti elenco */
  line-height: 1.6;             /* maggiore leggibilità */
  font-size: 1rem;
}

.text-section ul li strong {
  font-weight: 600;
}

/* Versione più compatta su mobile */
@media (max-width: 768px) {
  .text-section ul {
    padding-left: 1rem;
  }
  .text-section ul li {
    margin-bottom: 0.6rem;
  }
}
