body {
  background-image: url(../immagini/welcome.png);
  background-size: cover;       /* adatta l'immagine coprendo tutto lo spazio, senza deformarla */
  background-repeat: no-repeat; /* una sola volta, non a mattonelle */
  background-position: center;  /* centrata */
  background-attachment: fixed; /* opzionale: resta ferma durante lo scroll */
  min-height: 100vh;            /* il body copre almeno tutta l'altezza dello schermo */
  width: 100%;
}

a {
    color: #000000; /* o "black" */
}

a:hover {
    color: #34132b; /* opzionale: colore diverso al passaggio del mouse, coerente con la tua palette */
}

a:visited {
    color: #000000; /* mantiene il nero anche dopo che il link è stato cliccato */
}


.my-5 {
    margin-top: 7rem!important;
    margin-bottom: 6rem!important;
}

.p-4 {
    padding: 1.1rem!important;
}

.col-md {
    flex: 1 0 0;
    margin-top: 1.5rem;
    padding-left: 2rem; /* sposta il testo verso destra */
}

@font-face {
    font-family: 'neue-montreal-bold';
    src: url('../font/neuemontreal-bold.otf') format('opentype');
}

@font-face {
    font-family: 'neue-montreal-medium';
    src: url('../font/neuemontreal-medium.otf') format('opentype');
}

@font-face {
    font-family: 'nome-font-light';
    src: url('../font/neuemontreal-light.otf') format('opentype');
}
@font-face {
    font-family: 'neue-montreal-regular';
    src: url('../font/neuemontreal-regular.otf') format('opentype');
}


.font-h1{
  font-family: "neue-montreal-bold", sans-serif;
  font-size: 1.5rem;
  text-align: center;
  color: black;
}

.font-h1-s{
  font-family: "neue-montreal-bold", sans-serif;
  font-size: 1.2rem;
  color: black;
}

h5{
    font-family: "neue-montreal-medium", sans-serif;

}


h2{
  font-family: "neue-montreal-medium", sans-serif;
  font-size: 1rem;
  color: black;
}

.p1{
  font-family: "neue-montreal-regular", sans-serif;
  font-size:1rem;
  color: black;
}

.p2{
  font-family: "neue-montreal-light", sans-serif;
  font-size:0.8rem;
  margin-bottom: 0.3rem;
  text-align: justify;
  color: black;
}



.nav-pers {
    background: linear-gradient(73deg, #1e0a18, #cbc1be00);
    height: 58px;
    display: flex;   
    font-family: 'neue-montreal-medium';
}


.collapse.navbar-collapse {
    background-color: transparent;
}

.navbar-nav {
    background-color: transparent;
}

.nav-item {
    background-color: transparent;
    
    padding-top: 10px;
    font-family: 'neue-montreal-medium';
} /*Questi tre elementi (.navbar-collapse, .navbar-nav, .nav-item) sono tutti annidati dentro .container, quindi dentro .nav-pers. Anche se hai reso trasparente lo sfondo del .container, questi tre continuano a disegnare un blocco crema pieno esattamente dove si trovano i link. Soluzione: rendili trasparenti.*/

.nav-pers .navbar-nav .nav-link {
    color: rgb(203 193 190);
}

.nav-pers .navbar-nav .nav-link:hover {
    color: #7a7979;
}

.img-nav {
    vertical-align: middle;
    width: 40px;
    margin-top: 10px;
    margin-bottom:8px;
    margin-right: 8px;
}

.navbar-expand-lg .navbar-collapse {
    display: flex!important;
    flex-basis: auto;
    position: absolute;
    left: 2rem;
}

.btn {
    width: 45px;
    height: 45px;
    z-index: 999;
    background: #614559;
    bottom: 2rem;
    align-self: flex-end;
    color: #dcdcdc !important;
}

.btn:hover {
    color: #2c2b2b;
    background-color: #614559;

}


.formazione-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.9rem;
}

.formazione-stato {
    white-space: nowrap;
    font-family: 'neue-montreal-light', sans-serif;
    font-size: 0.75rem;
    color: #5e5e5e;
    flex-shrink: 0;
}

.container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1180px;
    max-height: 420px;
}



.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 70%;
    background-color: #eae6dbb0;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.nav-pers .container {
    background-color: transparent;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
} /*annulla lo sfondo e la larghezza ristretta del .container solo dentro la navbar, senza toccare gli altri container del sito:*/

.container-fluid:hover {
    animation-name: rimbalza;
    animation-duration: 1.5s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
}



.row-formazione-competenze {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch; /* fa sì che le colonne abbiano la stessa altezza della riga */

}

.split {
    width: 25rem;
}

.col-soft-altro {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* spazio tra "Soft skills" e "Altro" */
}

.col-soft-altro .section-box {
    flex: 1; /* Soft skills e Altro si dividono equamente lo spazio verticale disponibile */
}

.section-box {
    border-right: 5px solid #34132b;
    border-bottom: 5px solid #34132b;
    border-radius: 15px;
    background-color: #b096a99e;
}

.col-md {
    flex: 1 0 0;
    margin-top: 1.5rem;
}


.mb-1 {
    margin-bottom: 0.4rem!important;
}

.mb-2{
    margin-bottom: 0rem!important;

}


.text-prog {
    --bs-text-opacity: 1;
    color: black !important;
    font-family: 'neue-montreal-medium', sans-serif;
}


.progress, .progress-stacked {
    --bs-progress-height: 1rem;
    --bs-progress-font-size: 0.75rem;
    --bs-progress-bg: #ffffff4a;
    --bs-progress-border-radius: var(--bs-border-radius);
    --bs-progress-box-shadow: var(--bs-box-shadow-inset);
    --bs-progress-bar-bg: #34132bb5;
    --bs-progress-bar-transition: width 0.6s ease;
    display: flex;
    height: var(--bs-progress-height);
    overflow: hidden;
    font-size: var(--bs-progress-font-size);
    background-color: var(--bs-progress-bg);
    border-radius: var(--bs-progress-border-radius);
}

.badge {
    --bs-badge-padding-x: 1em;
    --bs-badge-padding-y: 0.55em;
    --bs-badge-font-size: 0.75em;
    font-family: 'neue-montreal-light', sans-serif;
    --bs-badge-color: #cbc1be ;
    --bs-badge-border-radius: 10rem;
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
    background: #614559;
}

.footer {
    background: linear-gradient(73deg, #34132b, #cbc1be00);
    height: 50px;
    font-family: 'neue-montreal-medium', sans-serif;
    font-size: 0.9em;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.social-icon {
    width: 30px;
    height: 30px;
    padding: 0;
}

.footer > div { /*Così il <div> che contiene tutte le icone diventa un flex container e le allinea correttamente sulla stessa riga, mentre i singoli <img> restano semplici immagini di 30×30px.*/
    display: flex;
    align-items: center;
    gap: 17px;
}

.footer p {
    margin: 0;
    padding: 0;
    
}

.footer a {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer a:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

#telefono-icona {
    position: relative;
    cursor: pointer;
    transition: top 0.2s ease, left 0.2s ease;
}
.btn-tesi {
    background-color: #614559;
    color: #f3f3f3  !important;
    font-family: 'neue-montreal-regular', sans-serif;
    font-size: 0.875em;
    padding-top: 0.4rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    height: 2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-tesi:hover {
  background-color: #5b5b5b;
}



.shadow-sm {
    box-shadow: 10px 1rem 0.5rem 2px rgba(0, 0, 0, 0.075) !important;
}

.img-fluid {
    max-width: 60%;
    height: auto;
    position: relative;
    left: 4.3rem;
}

p {
    margin-top: 0;
    margin-right: 20px;
    text-align: justify;
    margin-bottom: 1rem;
}


@keyframes rimbalza {
    0%, 100% {transform: translateY(0px);} /*all'inizio e alla fine la pos sarà 0px, a metà di quando sta per arrivare a -15px, torna a 0px*/
    50% {transform: translateY(-10px);} 
}





.t1 {
  box-sizing: border-box;
}

/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #34132b;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.containert {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.containert::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #bba6b1;
    border: 4px solid #34132b;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #34132b;
}

/* Add arrows to the right container (pointing left) */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent #34132b transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background: linear-gradient(147deg, #cbc1be, transparent);
    position: relative;
    border-radius: 10px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
  left: 31px;
  }
  
  /* Full-width containers */
  .containert {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }
  
  /* Make sure that all arrows are pointing leftwards */
  .containert::before {
  left: 60px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
  left: 15px;
  }
  
  /* Make all right containers behave like the left ones */
  .right {
  left: 0%;
  }
}