
/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d3b66;
  color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2em;
}

.section {
  padding: 4em 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========== Header (Hero) ========== */
.hero {
  background-image: url('../assets/img/bg-header.png');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 5em 2em;
  color: #fff;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 0.3em;
}

.hero p {
  font-size: 1.2em;
  color: #d2e0f1;
}

/* ========== Navbar ========== */
.main-nav {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1em;
  text-align: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.main-nav a {
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #a9d6ff;
}

/* ========== Sezione Profilo (Chi siamo) ========== */
.profilo-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}

.profilo-testo {
  flex: 1 1 60%;
}

.profilo-img {
  flex: 1 1 35%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2em; /* opzionale, per spingere un po’ più in basso */
}

.profilo-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 1em; /* aggiuntivo */
}

/* ========== Contatti ========== */
.contatti-bg {
  background-image: url('../assets/img/bg-contatto.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #ffffff;
  padding: 6em 0;
  display: flex;
  justify-content: flex-start;
  min-height: 100vh;
}

.contatti-testo {
  width: 50%;
  max-width: 720px;
  margin-left: 5%;
  padding: 3em;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  text-align: left;
}

.contatti-testo h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.contatti-testo p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-top: 1em;
}

.mail-img {
  margin-top: 2em;
  max-width: 280px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ========== Footer ========== */
footer {
  background-color: #061e36;
  text-align: center;
  padding: 2em;
  font-size: 0.9em;
  color: #a9c2db;
}


.home-link {
  text-decoration: none;
  color: inherit;
}

.home-link:hover {
  opacity: 0.8;
  cursor: pointer;
}

.servizi-bg {
  background-image: url('../assets/img/bg-servizi.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.section h2 {
  font-size: 2.2rem;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

.servizio-card {
  background-color: rgba(0, 0, 0, 0.35);
  border-left: 4px solid #ffffff88;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.servizio-card h3 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  color: #fff;
}

.servizio-card:hover {
  transform: translateY(-2px);
}

.testo-sezione {
  background: linear-gradient(to bottom, #f9f9f9 0%, #cccccc);
  color: #0d3b66;
  padding: 4em 2em;
  line-height: 1.7;
}

.testo-sezione h2 {
  color: #0d3b66;
  font-size: 1.8rem;
  margin-bottom: 1em;
}

.testo-sezione p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
}

.softskills-columns {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

.softskills-columns ul {
  flex: 1 1 45%;
  padding-left: 1.2em;
  list-style: disc;
}

.conclusione {
  background-image: url('../assets/img/bg-conclusione.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #0d3b66;
  text-align: center;
}

.citazione-finale {
  font-size: 2em;
  font-style: italic;
  margin-bottom: 1em;
  line-height: 1.5;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.chiusura-intro {
  font-size: 1.05em;
  line-height: 1.7;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.competenze-bg {
  background-image: url('../assets/img/bg-competenze.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #ffffff;
  padding: 6em 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
}

.competenze-testo {
  width: 48%;
  max-width: 720px;
  margin-left: 2%;
  padding: 2em;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  text-align: left;
}

.competenze-testo h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.competenze-testo h3 {
  font-size: 1.4em;
  margin-top: 1em;
  margin-bottom: 0.3em;
  color: #f0f0f0;
}

.competenze-testo p {
  font-size: 1em;
  line-height: 1.6;
  margin-top: 0.3em;
}

.esperienze-bg {
  background-image: url('../assets/img/bg-esperienze.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: #ffffff;
  padding: 6em 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh; /* copre tutta l’altezza della pagina */
}
.esperienze-testo {
  width: 50%;
  max-width: 750px;
  margin-left: 5%;
  padding: 3em;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  text-align: left;
}

.esperienze-testo h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.esperienze-testo p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-top: 1em;
}

/* ===== Pagina 404 ===== */

.page-404 {
  background-image: url('../assets/img/bg-404.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-404 .container {
  max-width: 700px;
  padding: 4em 2em;
}

.page-404 h1 {
  font-size: 2.2em;
  margin-bottom: 0.8em;
  color: #ffffff;
}

.page-404 p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 1.5em;
  color: #f0f0f0;
}

.page-404 a.btn-chiaro {
  display: inline-block;
  padding: 0.8em 1.8em;
  border: 1px solid #ffffff;
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-404 a.btn-chiaro:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
  /* Navbar e layout mobile */
  .main-nav ul {
    flex-direction: column;
    gap: 1em;
  }

  /* Competenze responsive */
  .competenze-bg {
    flex-direction: column;
    align-items: center;
    padding: 3em 1em;
    background-position: center center;
    background-size: cover;
    min-height: auto;
  }

  .competenze-testo {
    width: 94%;
    max-width: 100%;
    margin-left: 0;
    padding: 2em 1.2em;
    text-align: left;
  }

  /* Esperienze responsive */
  .esperienze-bg {
    flex-direction: column;
    align-items: center;
    padding: 3em 1em;
    background-position: center center;
    background-size: cover;
    min-height: auto;
  }

  .esperienze-testo {
    width: 94%;
    max-width: 100%;
    margin-left: 0;
    padding: 2em 1.2em;
    text-align: left;
   }

  /* Contatti responsive */
  .contatti-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-position: center center;
    padding: 4em 1.5em;
   }

  .contatti-testo {
    width: 92%;
    max-width: 100%;
    margin-left: 0;
    padding: 2em 1.5em;
    text-align: left;
   }

  /* Evita immagini troppo grandi */
  .mail-img {
    max-width: 100%;
    height: auto;
   }
}
