
/* ---------------- BODY ---------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #243d82;
    padding-top: 60px; /* spazio per header fisso */
    
}

/* ---------------- HEADER ---------------- */
header {
    background-color: #222;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* BANDIERE A SINISTRA */
.lang-buttons {
    position: absolute;
    left: 10px;
    display: flex;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 20px; /* grandezza bandiere */
    cursor: pointer;
}

nav {
  position: relative;
  width: 100%;
}

/* ICONA HAMBURGER A DESTRA */
.hamburger {
  position: absolute;
  right: 20px;
  top: -15px;
  width: 35px;
  height: 25px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 4px;           /* SPESSORE LINEE */
  background: #2a4796;
  margin: 5px 0;         /* SPAZIO TRA LINEE */
  border-radius: 2px;
}

/* MENU */
.menu {
  display: none;
  position: absolute;
  right: 20px;
  top: 0px;
  background: rgb(0, 0, 0);
  list-style: none;
  padding: 15px;
  border: 1px solid #fdfdfd;
}

.menu.show {
  display: block;
}
.menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #01b3ff;
}

/* ---------------- HOME ---------------- */
.home {
    text-align: center;       /* centra tutto il contenuto orizzontalmente */
    padding: 40px 20px;       /* spazio sopra e sotto */
}

.home-title {
    font-size: 3rem;          /* grandezza titolo */
    color: #f2f3ff;
    margin: 0 0 20px 0;       /* margine sotto il titolo */
}

.home-subtitle {
    color: #ffffff;
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px auto; /* centrato orizzontalmente */
    line-height: 1.6;
}

.home-buttons {
    display: flex;            /* bottone fianco a fianco */
    justify-content: center;  /* centrati orizzontalmente */
    flex-wrap: wrap;          /* vanno a capo se lo schermo è piccolo */
    gap: 10px;                /* spazio tra i bottoni */
}


.btn-primary, .btn-secondary {
    display: inline-flex;       /* flex per testo centrato dentro */
    justify-content: center;    /* centro orizzontale */
    align-items: center;        /* centro verticale */
    text-align: center;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    max-width: 180px;           /* larghezza massima */
    transition: 0.3s;
 /* 🔹 Reset stili button senza cambiare il verde */
    background: transparent;    /* trasparente di default */
    border-style: solid;        /* mantiene il bordo */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.btn-primary {
   border: 2px solid #fbfbfb;
    color: #000000d7;
  
}

.btn-primary:hover {
    background: #ffffff;
    color: #2a4796;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background: #f7f7f7;
    color: #2a4796;
}

/* ---------------- STATS ---------------- */
.home-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.stat h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat p {
    color: #ffffff;
    font-size: 0.9rem;
}

/* ---------------- SEZIONE "I MIEI LAVORI" ---------------- */
.I-miei-lavori {
    min-height: 100vh;
    padding: 120px 20px 60px 20px;
    text-align: center;
    color: #fff;
}

.skills {
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}
.projects {
    display: flex;
    gap: 15px;          /* spazio tra i progetti */
    flex-wrap: wrap;    /* se finiscono lo spazio vanno sotto */
    justify-content: flex-start; /* partono da sinistra */
}

.project {
    padding: 8px;
    border-radius: 8px;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project img {
    width: 100%;
    max-width: 220px;
    height: auto;
}

.project p {
    color: #ffffff;
    font-size: 12px;
    margin: 5px 0;
}
.project:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}


/* ---------------- LIGHTBOX ---------------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 95vw;
    height: 95vh;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    box-shadow: 0 0 20px rgb(255, 255, 255);
    cursor: grab;
    transition: transform 0.1s ease;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;

    border: 2px solid #ffffff;   /* linea verde */

    box-shadow: 
    0 0 8px #ffffff; 

    cursor: grab;
    transition: transform 0.1s ease;
}
.lightbox-content {
  cursor: zoom-in;
}

.lightbox-content:active {
  cursor: zoom-out;
}  
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}
/* ---------------- PULSANTE CONTATTO ---------------- */

.contact-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: transparent; /* interno trasparente */
    color: #000000d7; /* testo verde */
    text-decoration: none;
    border: 2px solid #fbfbfb; /* bordo verde */
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.contact-btn:hover {
    background: #ffffff; /* quando passi sopra diventa pieno */
    color: #2a4796;
    transform: scale(1.05);
}


/* ---------------- FOOTER ---------------- */
.site-footer {
    background-color: #222;
    color: #ffffff;
    padding: 5px 0;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

/* ---------------- SEZIONE "Chi sono" ---------------- */
.Who-I-am p {
    color: #ffffff;
}
.p {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

