body{
    height: 100vh;
    /* border: 2px solid; */
    display: flex;
    gap: 10px;
    flex-direction: column;
    font-family: var(--font-stack);
    font-size: var(--base-font-size);
    background-color: black;
    
}

header{
    position: fixed;
    left: 0;
    bottom: 20px;
    padding: 0px 0px;
    padding-bottom: 20px;
    width: 100%;
    /* border: 2px solid; */
}

header h1,p,a{
    padding-left: 20px;
}

nav{
    background-color: rgb(0, 0, 0);
}


nav ul{
    display: flex;
    gap: 20px;
    padding: 20px 40px;
    padding-bottom: 24px;
    margin: 0;
    list-style-type: none;
}

nav ul li a{

    padding: 10px;
    border: 1px solid;
    border-radius: 20px;
    font-family: "Montserrat", sans-serif;
    color: #fff;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

footer{
width: 100%;
  height: 40px;
  position: fixed;
  left: 0;
  bottom: 0;

  display: flex;
  justify-content: space-between;
  align-items: center; /* allinea verticalmente */

  padding: 0 20px; /* <-- distanza dai bordi sinistro e destro */
  box-sizing: border-box;

  font-size: 10px;
  border: 1px solid;
  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 */
}

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

.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: #ffffff;
    margin: 0;
    line-height: 200%;
}

h1{
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 3rem;
    line-height: 90%;
    font-style: normal;
    color: #fff;
    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: #fff;
    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;

}




/* ABOUT----------------------------------------------------- */



.box-about{
    height: 100%;
    display: flex;
    align-content: center;
    gap: 20px;
    flex-shrink: 1;

    border: 1px solid;

}

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


.box_profilo{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    flex-shrink: 1;
    min-width: 233px;

    font-weight: 700;
    /* background-color: aqua; */
}

#text_profilo{
    display: flex;
    flex-direction: column;
    
    max-width: 322px;
    left: 12px;
    bottom: 12rem;
    font-weight: 700;
    color: #fff;
}


#foto_profilo{
    width: 16vw;
    max-width: 340px;
    min-width: 226px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ---Pagina Progetto Singolo------------------------------------- */
.p_img_cover{
    width: 100%;
    height: auto;
    padding-bottom: 20px;
    overflow: hidden;
}

.p_img_cover img{
    width: 100%;
    height: 80vh;
    object-fit:contain;
    display: block;
    
}

.p_img_lavoro{
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-bottom: 132px;
}

.p_img_lavoro img{
    max-width: 100vw;
    max-height: calc(100vh - 5%);
    /* object-fit:contain;
    display: block; */
}



/* Carosello */
.carosello {
  display: flex;
  overflow-x: auto;                  /* Scroll orizzontale */
  scroll-snap-type: x mandatory;     /* “Scatto” su ogni immagine */
  height: 80vh;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rebeccapurple;
  color: aquamarine;
}

/* Immagini */
.carosello img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  scroll-snap-align: center;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* --- GRADIENTE APPLICATO SOLO AL CAROSELLO --- */
.carosello::before,
.carosello::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10vw;                       /* Larghezza gradiente */
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carosello::before {
  left: 0;
  background: linear-gradient(to right, black 0%, transparent 100%);
}

.carosello::after {
  right: 0;
  background: linear-gradient(to left, black 0%, transparent 100%);
}

/* --- Scrollbar invisibile (opzionale) --- */
.carosello::-webkit-scrollbar {
  display: none;
}




/* ---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 */
  }