/* === BASE === */
body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Inter', 'Segoe UI', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-top: 80px;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: #ffffff;
}

/* === LINK === */
a {
  color: #00ffff;
  transition: color 0.3s;
}
a:hover {
  color: #00ffff;
}

/* === NAVBAR === */
.navbar {
  background-color: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #333;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: bold;
  color: #00ffff !important;
}

.nav-link {
  color: #e0e0e0 !important;
  margin-left: 1rem;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #00ffff !important;
  border-bottom: 2px solid #00ffff;
}

/* Stile per intestazione con immagine di sfondo */
.hero-header {
  background-image: url('../images/matrixblu.avif');
  background-size: cover;
  background-position: center;
  height: 60vh;
  position: relative;
}

.hero-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* overlay scuro per leggibilità */
  z-index: 1;
}

.hero-header h1 {
  position: relative;
  z-index: 2;
  color: white;
}

/* Altri stili esistenti del sito */

/* === HERO IMAGE === */
.hero-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 350px;
  position: relative;
}

.hero-image .text-white {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* === CARD === */
.card {
  background-color: #1f1f1f;
  border: 1px solid #2c2c2c;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,255,255,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
}

/* === BUTTONS === */
.btn-outline-primary {
  border: 1px solid #00ffff;
  color: #00ffff;
  transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
  background-color: #00ffff;
  color: #121212;
  box-shadow: 0 0 8px #00ffff;
}

.btn-primary {
  background-color: #00ffff;
  border-color: #00ffff;
  color: #121212;
}

.btn-primary:hover {
  background-color: #00e5e5;
  border-color: #00e5e5;
  color: #000;
}

/* === FORM === */
form .form-control {
  background-color: #1f1f1f;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 0.25rem;
}

form .form-control:focus {
  background-color: #1f1f1f;
  color: #fff;
  border-color: #00ffff;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 255, 0.25);
}

/* === FOOTER === */
footer {
  background-color: #1a1a1a;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  padding: 1rem 0;
}

/* === IMMAGINI === */
img.rounded-circle {
  border: 2px solid #2c2c2c;
}

/* === UTILITÀ === */
.text-white {
  color: #ffffff !important;
}

/* === SEZIONE TRAGUARDI === */
#traguardi {
  color: #ffffff;
}

#traguardi .card,
#traguardi .card p,
#traguardi .card h3,
#traguardi .card h4 {
  color: #ffffff;
}
/* Hover effect per i link nella sezione contatti (liste non ordinate) */
.list-unstyled a {
  transition: color 0.2s ease;
}

.list-unstyled a:hover {
  color:  #00ffff !important; /* stesso colore dei bottoni e dei link attivi */
}

/* Colori personalizzati per il bottone dell'accordion */
.accordion-button {
  background-color: #1a1a1a;       /* sfondo neutro scuro */
  color: #f0f0f0;                  /* testo chiaro */
  border: 1px solid #444;          /* bordo sottile */
  box-shadow: none;
}


/* Al passaggio del mouse */
.accordion-button:hover {
  background-color: #292929;       /* leggermente più chiaro */
  color: #ffffff;
  border-color: #00ffff;
}

/* Quando il bottone è attivo (espanso) */
.accordion-button:not(.collapsed) {
  background-color: #333;
  color: #ffffff;
  box-shadow: none;                /* rimuove ombra blu */
}

.flag-icon {
  width: 1.5em;
  height: auto;
}
/* FORZA sfondo scuro e testo chiaro sugli input del form contatti */
#contactForm .form-control {
  background-color: #343a40 !important;
  color: #f8f9fa !important;
  border: 1px solid #495057 !important;
}

/* Anche al focus */
#contactForm .form-control:focus {
  background-color: #343a40 !important;
  color: #f8f9fa !important;
  border-color: #66afe9 !important;
  box-shadow: none !important;
}

/* Placeholder scuro */
#contactForm .form-control::placeholder {
  color: #ced4da !important;
  opacity: 1;
}

/* === Sticky Footer === */
html {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* usa min-height anziché height */
  margin: 0;
}

main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto; 
  flex-shrink: 0;
}
/* Override di bg-dark su <body> per mantenere il #121212 definito in “BASE” */
body.bg-dark {
  background-color: #121212 !important;
}

/* Forza html/body full-height per lo sticky footer */
html, body {
  height: 100%;
  margin: 0;
}

.flag-img {
  width: 1.8rem;
  height: auto;
  object-fit: contain;
}
/* Ripristina i separator “nativi” di Bootstrap sulle list-group-flush */
.competenze-container .list-group-flush .list-group-item + .list-group-item {
  border-top: 1px solid rgba(255, 255, 255, 0.125) !important;
}

