/* ---------------- 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: 65px;
    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;
}
.logo {
 height: 60px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 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 #ffffff;
    color: #ffffff;
  
}

.btn-primary:hover {
    background: #ffffff;
    color: #2a4796;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.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;
    text-align: center;
    color: #fff;
}

.skills {
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* GRID PIÙ STABILE */
.projects {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

/* CARD */
.project {
    background: #000000;
    padding: 12px;
    border-radius: 14px;

    flex: 1 1 300px;
    max-width: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* HOVER PIÙ PRO */
.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* IMMAGINI */
.project img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: pointer;
}

/* SE USI IFAME (OPZIONALE) */
.project iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 10px;
}

/* TESTO */
.project p {
    color: #fff;
    font-size: 13px;
    margin: 5px 0;
}

/* MOBILE */
@media (max-width: 600px) {
    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project {
        width: 100%;
        max-width: 95%;
    }

    .project iframe {
        height: 55vh;
    }
}

/* LIGHTBOX MIGLIORATO */
.lightbox {
    display: none;
    position: fixed;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    cursor: grab;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* BOTTONE */
.contact-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 16px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.contact-btn:hover {
    background: #fff;
    color: #2a4796;
    transform: scale(1.05);
}


/* ---------------- FOOTER ---------------- */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 10px 20px;
    margin-top: auto;
    flex-shrink: 0;

    display: flex;
    justify-content: space-between; /* 👈 uno a sinistra, uno a destra */
    align-items: center;
}

.site-footer a {
  color: white;
  font-size: 22px;
  transition: 0.3s;
}

.site-footer a:hover {
  color: #E1306C;
}

@media (max-width: 600px) {
  .site-footer {
    justify-content: space-around;
    padding: 15px;
  }
}
/* ---------------- SEZIONE "Chi sono" ---------------- */
.Who-I-am p {
    color: #ffffff;
}

