/* Reset di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
    color: #333;
    padding: 20px;
}

header {
    background: url('images/header-background.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 3px solid #e65602;
    margin-bottom: 0;
    border-radius: 0;
    position: relative;
}

h1 {
    margin-bottom: 10px;
    font-size: 3rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); /* Ombra scura */
}

nav {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4); /* ✅ trasparenza elegante */
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: #e65602;
    border-radius: 5px;
}

nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    width: 200px;
}

nav ul li:hover ul {
    display: flex;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 10px;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#home-description {
    text-align: center;
    margin-bottom: 40px;
}

#home-description h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

#home-description p {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 20px;
}

#home-description p {
    transition: background-color 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

#home-description p:hover {
    background-color: #ffe0cc; /* arancione chiaro ma più intenso */
}


.home-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Style for project sections */
.project-details {
    text-align: center;
    margin-bottom: 20px;
}

.project-details img {
    max-width: 70%; /* Reduced width for project images */
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    background: #333;
    color: #fff;
    border-radius: 0 0 10px 10px;
}

#contact-info {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}

#contact-info h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

#contact-info p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

#contact-info ul {
    list-style: none;
    padding: 0;
}

#contact-info ul li {
    margin-bottom: 10px;
}

#contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

#contact-info a:hover {
    color: #e65602;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-card {
    background: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-card h3 {
    margin-top: 0;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #ff4500;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.project-card a:hover {
    background: #e63e00;
}

.project-card img {
    width: 100%;
    height: auto;
    max-height: 100px; /* Imposta un'altezza massima */
    display: block;
    margin: 0 auto;
}

.download-btn {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 18px;
    background-color: #e65602;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #c74c00;
}

nav ul li a.active {
    background-color: #e65602;
    border-radius: 5px;
    color: white !important;
}

.project-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#education-experience li {
    transition: background-color 0.3s ease;
    padding: 6px 8px;
    border-radius: 6px;
}

#education-experience li:hover {
    background-color: #ffe0cc; /* arancione leggermente più scuro */
}


/* --- Sezione Esperienze --- */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
  text-align: left;
  border-left: 4px solid #e65602;
  padding-left: 10px;
}

.experience-container {
  margin: 30px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

/* Header esperienza principale (logo + titolo + ruolo) */
.experience-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.experience-header .logo {
  width: 140px;    /* 🔽 Logo più piccolo */
  height: auto;
  border-radius: 6px;
}

.experience-info h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.experience-info p {
  color: #555;
  font-size: 1rem;
  margin-top: 4px;
}

.accordion {
  background-color: #f9f9f9;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease-in-out;
}

.accordion:hover {
  background-color: #ffe0cc;
}

.accordion-logo {
  width: 26px;         /* ✅ dimensione uniforme */
  height: 26px;        /* ✅ mantiene equilibrio visivo */
  object-fit: contain; /* ✅ nessuna distorsione */
  flex-shrink: 0;      /* ✅ evita schiacciamento */
  border-radius: 4px;  /* ✅ smussa leggermente */
}


.panel {
  background-color: #fff;
  padding: 12px 16px;
  display: none;
  overflow: hidden;
  border-left: 3px solid #e65602;
  border-radius: 8px;
  margin-top: 8px;
}

.panel p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}


/* --- Sezione Formazione --- */
.education-container {
  margin: 30px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.education-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.education-header .logo {
  width: 100px; /* 🔽 Logo più piccolo */
  height: auto;
  border-radius: 6px;
}

.education-info h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.education-info p {
  color: #555;
  font-size: 1rem;
  margin-top: 4px;
}

.dark-mode .education-container {
  background: #1c1c1c;
  box-shadow: none;
}

.dark-mode .education-info h4 {
  color: #e0e0e0;
}

.dark-mode .education-info p {
  color: #bdbdbd;
}
