* {
    color: white;
    font-family: 'Questrial', sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    background-color: #000;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(0, 200, 255, 0.9) 0%, rgba(0, 0, 0, 0.95) 50%, transparent 100%),
        radial-gradient(circle at 90% 10%, rgb(181, 116, 19) 0%, rgba(0, 0, 0, 0.95) 50%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;

}

.topbar-cv {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

#titolo {
    font-family: "ABeeZee", sans-serif !important;
    font-style: italic;
    font-size: 50px;
    font-weight: normal;
    margin: 0;
}

ul li {
    margin-bottom: 8px;
}

#curriculum-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap;
}

.anni{
    font-size: 19px;
    float: right;
}

.colonna-sinistra {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    flex-shrink: 0;
}

.box-immagine {
    text-align: center;
    margin-bottom: 20px;
}

.box-immagine img.rounded {
    border-radius: 80%;
    border: 2px solid white;
    width: 100%;
    max-width: 250px;
}

.sidebar_curriculum {
    width: 100%;
    padding: 20px;
    border: 2px solid #fffefe;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 5px 5px 15px rgb(255, 255, 255);
    height: fit-content;
}

.sidebar_curriculum h2 {
    margin-top: 0;
}

.mappa-box {
    margin-top: 20px;
    width: 100%;
    border: 2px solid white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 3px 3px 10px white;
    background-color: rgba(255, 255, 255, 0.05);
}

.mappa-box h2 {
    margin: 0;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    background:rgba(255,255,255,0.2);
    font-weight: normal;
}

.contenitore_curriculum {
    flex: 1;
    min-width: 500px;
    padding: 20px;
    border: 2px solid #fffefe;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 5px 5px 15px rgb(255, 255, 255);
}

/* Sezioni con icone */
.sezione-titolo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.sezione-titolo img {
    height: 50px;
    width: auto;
}

.sezione-titolo h2 {
    margin: 0;
}

#iconalavoro {
    width: 70px;
    height: auto;
}

#iconaistruzione {
    width: 80px;
    height: auto;
}

.cv{
    display: inline-block;
    padding: 12px 24px;
    margin-top: 30px;
    background:rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 3px 3px 10px white;
    transition: transform 0.2s, box-shadow 0.3s;
  }
  
.cv:hover {
    transform: scale(1.05);
    filter: brightness(70%);
}

.contact-box input,
.contact-box textarea {
  background-color: rgba(255,255,255,0.1);
  color: rgb(255, 255, 255);
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

@media (max-width: 600px) {
    .topbar-cv {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px;
    }

    #titolo {
        font-size: 35px;
        text-align: center;
        margin-top: 0;
    }

     html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
  }

  #curriculum-wrapper {
    flex-direction: column;
    padding: 20px 15px; /* margine laterale per evitare tagli */
    box-sizing: border-box;
  }

  .colonna-sinistra,
  .contenitore_curriculum {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .sidebar_curriculum,
  .mappa-box {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  .box-immagine img.rounded {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    display: block;
  }

  svg, iframe {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .box-immagine img.rounded {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
}