* {
    box-sizing: border-box;
}

body{
    height: 100vh;
    /* border: 2px solid; */
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    flex-direction: column;

    font-family: var(--font-stack);
    font-size: var(--base-font-size);
    background-color: #070707;
    
}

#hero {
    position: relative;
    width: 100%;
    height: 100vh; /* schermo intero */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* h1 in basso */
    align-items: center;
    background: radial-gradient(circle at center, rgba(0,0,0,0.9) 60%, black);
}

header{
    position: static;
    left: 0;
    bottom: 80px;
    padding: 0px 0px;
    padding-bottom: 80px;
    width: 100%;
    z-index: 2;
    /* border: 2px solid; */

}

header h1,p{
    padding-left: 20px;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    font-weight: 700;
    margin: 0;
    
    position: absolute;
    bottom: 70px; /* distanza dal fondo: sopra la freccia */

    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Il titolo copre tutta la larghezza dello schermo, con un gradiente
   nero pieno dietro: così le immagini animate che passano di lì
   restano nascoste dietro al testo invece di sovrapporsi */
header h1{
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 20px 26px;
    background: linear-gradient(to top, rgba(7,7,7,1) 55%, rgba(7,7,7,0) 100%);
}

nav{
    background-color: rgba(0, 0, 0, 0);
    width: 100%;
    padding-top: 20px 0;
    margin-top: 100vh; /* dopo la sezione iniziale */
}


nav ul{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    padding: 0px;
    margin: 0;
    list-style-type: none;

}

nav ul li {
  width: 100%;
  border-bottom: 1px solid white; /* filetto bianco tra i link */
}


nav ul li a{

    width: 100%;
    display: block;
    padding: 20px 0 20px 22px;
    border: none;


    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    color: #fff;
    border-radius: 0;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

footer{
  width: 100%;
  height: 40px;
  position: relative; /* non fisso, segue il flusso della pagina */
  left: 0;
  bottom: 0;
  padding: 20px;
  margin-top: 20%;
  margin-bottom: 0;

  display: flex;
  justify-content: space-between;
  align-items: center; /* allinea verticalmente */
  gap: 20px;
  box-sizing: border-box;
  
  /* text-align: center; */
  font-size: 10px;
  background-color: black;


}

.footer-text{
    font-size: 10px;
}

footer a {
  color: white;            /* colore del testo */
  text-decoration: none;   /* rimuove la sottolineatura */
}

footer a:hover {
  text-decoration: underline; /* effetto hover facoltativo */
}

/* --- Freccia Scroll --- */
.scroll-indicator {
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    padding-bottom: 16%;
    padding-top: 10%;
    background-color: rgb(0, 0, 0);

    z-index: 2;
}

.arrow-down {
    width: 40px;
    height: 40px;
    border: 2px solid #EAEAEA;
    border-radius: 50%;
    position: relative;
    animation: bounce 2s infinite;
}

.arrow-down::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #EAEAEA;
    border-right: 2px solid #EAEAEA;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* ------------------------------------------------------- */

main{
    /* border: 2px solid; */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
}

.box{
    flex-grow: 1;
    height: auto;
    border: 1px solid rebeccapurple;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a.email-link {
    font-family: "Cutive Mono", monospace;
    font-size: 16px;
    color: rgba(118,252,148,1);
    text-decoration: underline;

}

p{
    font-family: "Cutive Mono", monospace;
    font-size: 16px;
    color: #EAEAEA;
    margin: 0;
    line-height: 200%;
}

h1{
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(2.8rem, 12vw, 4.5rem);
    line-height: 90%;
    font-style: normal;
    color: #EAEAEA;
    background: linear-gradient(to top, black, transparent);

    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin: 0;
}

h3{
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 1rem;
    font-style: normal;
    color: #EAEAEA;
    margin: 0;

}

.card{
    width: auto;
    /* min-width: 333px; */
    height: auto;
    margin: 10px 0px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;

    /* background-color: bisque; */
}

.card img {
    max-width: 300px;
    height: auto;              /* mantiene proporzioni */
    object-fit: cover;
}

video {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0;
}

.box_video{
    flex-grow: 1;
    height: auto;
    border: 1px solid rebeccapurple;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#contact_text{
    flex-grow: 2;
    height: auto;
    border: 1px solid rebeccapurple;

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

}



/* ---IMMAGINI IN MOVIMENTO--------------------------------------- */

/* hero: occupa lo schermo */
#hero {

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 75vh; /* oppure una misura flessibile */
  overflow: none; /* fondamentale */
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(0,0,0,0.9) 60%, black);
  z-index: -1;
  /* border: 1px solid blue; */

}

/* Playfield - area per le immagini animate */
#playfield {
  position: absolute;
  inset: 0;
  overflow: none;
}

.mover {
    position: absolute;
    touch-action: none;
    user-select: none;
    will-change: transform;
    display: block;
    /* dimensioni impostate via SVG, ma rendiamole scalabili */
    width: 12vw;
    max-width: 174px;
    min-width: 54px;
    height: auto;
    user-select: none;
    will-change: transform;
    pointer-events: none; /* non interferiscono con i click sui pulsanti */
}


/* ---Nav a Scomparsa--------------------------------------- */


/* ============================================================
   RIPRISTINO HOME MOBILE
   styles_prova_about.css (caricato anche qui come base) contiene
   ora regole per fissare la nav in basso, pensate per le pagine
   about/contacts/projects. Qui le annulliamo esplicitamente per
   riportare la Home esattamente com'era prima.
   ============================================================ */
header{
    background-color: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

nav{
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    padding: 0px 0 0;
    padding-bottom: 0;
    box-shadow: none;
    box-sizing: border-box;
}

nav ul{
    flex-wrap: nowrap;
    justify-content: flex-start;
}

nav ul li a{
    white-space: normal;
}

footer{
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-top: 20%;
}
