.contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.contact-form-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* ===============================
   FORM CONTATTI UNIFORMATO
================================ */
.contact-form {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;   /* prima 1.2rem */
  align-items: center;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;   /* prima 0.4rem */
  width: 100%;
}
.form-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;   /* prima 0.6rem 0.9rem */
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  color: #222;
  width: 100%;
}
.form-input:focus {
  border-color: #111;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.contact-form label {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.1rem;
}
.contact-form textarea.form-input {
  min-height: 75px;   /* prima 110px */
  resize: vertical;
}
.contact-form .btn-primary {
  margin-top: 0.2rem;
  padding: 0.7rem 1rem;   /* bottone più compatto */
  font-size: 0.95rem;
}
/* ===============================
   SLIDESHOW (used in homepage hero)
================================ */
/* the container fills its parent; parent must be positioned relative */
.slideshow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.slideshow-bg .slide-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
  opacity: 1;
  transition: opacity 0.7s;
  filter: brightness(1.1) blur(0.5px);
}
.slideshow-bg .slide-img[style*="display: none"] {
  opacity: 0;
}

/* homepage specific hero layout */

/* homepage specific hero layout */

body.homepage .hero,
section.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: calc(100vh - var(--header-offset));
  min-height: 560px;
  background: #fff;
  padding: 0;
  margin: 0 50px !important;
  margin-left: 50px !important;
  margin-right: 50px !important;
  max-width: calc(100% - 100px) !important;
  gap: 2.5rem;
  box-sizing: border-box;
  width: calc(100% - 100px);
}
body.homepage .hero-left {
  flex: 1.25 1 0%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
  width: 100%;
}
body.homepage .slideshow-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  max-width: 100%;
  max-height: 82vh;
  min-height: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 36px rgba(0,0,0,0.14);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
body.homepage .slideshow-bg .slide-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
  opacity: 1;
  transition: opacity 0.7s;
  filter: brightness(0.97) contrast(1.08);
}
body.homepage .slideshow-bg .slide-img[style*="display: none"] {
  opacity: 0;
}
body.homepage .hero-right {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 0;
  min-width: 0;
  min-height: 0;
  height: auto;
  color: #111;
  width: 100%;
}
body.homepage .hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #777;
  margin-bottom: 0.75rem;
  text-align: center;
}
body.homepage .hero-right h1 {
  font-size: 2.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #000;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-align: center;
}
body.homepage .hero-right .hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.35;
  text-align: center;
}
body.homepage .hero-right .hero-description {
  font-size: 0.96rem;
  color: #333;
  line-height: 1.65;
  margin: 0 0 2.2rem 0;
  padding: 0;
  text-align: center;
  max-width: 480px;
}
body.homepage .hero-actions {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-text {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  color: #000;
  border: none;
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn-text:hover {
  opacity: 0.65;
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  color: #111;
  border: 1.5px solid #111;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background-color: #111;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===============================
   ATTIVITÀ SVOLTE (HOMEPAGE)
================================ */
.activities-section {
  padding: 6rem 5vw 7rem;
  max-width: 1200px;
  margin: 0 auto;
}

.activities-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.activities-header .timeline-title {
  margin-bottom: 0.75rem;
}

.activities-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.activity-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: #111;
}

.activity-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  background: #f4f4f4;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.activity-card p {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 1100px) {
  body.homepage .hero,
  section.hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 2.5rem 0 3.5rem;
    margin: 0 30px !important;
    margin-left: 30px !important;
    margin-right: 30px !important;
    max-width: calc(100% - 60px) !important;
    width: calc(100% - 60px);
  }
  body.homepage .hero-left, body.homepage .hero-right {
    padding: 1rem 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 650px;
  }
  body.homepage .hero-right {
    align-items: center;
    text-align: center;
    padding-top: 1.5rem;
  }
  body.homepage .slideshow-bg {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
  }
  body.homepage .hero-right h1 {
    font-size: 2.4rem;
  }
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  body.homepage .hero,
  section.hero {
    flex-direction: column;
    padding: 1.5rem 0 2.5rem;
    margin: 0 20px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    max-width: calc(100% - 40px) !important;
    width: calc(100% - 40px);
  }
  body.homepage .hero-left,
  body.homepage .hero-right {
    flex: unset;
    width: 100%;
    padding: 0;
  }
  body.homepage .hero-right {
    align-items: center;
    text-align: center;
    padding-top: 1.5rem;
  }
  body.homepage .hero-right h1 {
    font-size: 2rem;
  }
  body.homepage .hero-right .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
  }
  body.homepage .hero-right .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
  }
  body.homepage .slideshow-bg {
    min-height: 220px;
  }
  .activities-section {
    padding: 3.5rem 1.25rem 4.5rem;
  }
  .activities-header {
    margin-bottom: 2rem;
  }
  .activity-card {
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }
}

/* make header background lighter now that slideshow is not full-screen */
body.homepage header {
  background-color: #fff;
  color: #000;
  position: relative;
  z-index: 20; /* sit on top of hero content */
}
body.homepage header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
body.homepage header a,
body.homepage header .nav a,
body.homepage header .logo {
  color: #000000 !important;
}

/* override the homepage dark link rules earlier */
.homepage-header nav a {
  color: #000000 !important;
}
.homepage-header nav a:hover {
  color: #000000;
}

/* ===============================
   RESET & BASE
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.6;
}
html {
  scroll-behavior: smooth;
}
html, body {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  background: #fff !important;
  line-height: 1.6;
}

/* spazio di offset per header fisso, evita sovrapposizione dei contenuti quando si scorre */
:root {
  --header-offset: 110px; /* regola se il tuo header è più piccolo/grande */
}

main {
  padding-top: var(--header-offset);
}

/* ===============================
   IMMAGINI
================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
  HEADER / NAVBAR
================================ */

/* Homepage: make header match the darker hero/slideshow tone so the page feels uniform.
  We target only the homepage by using the `body.homepage` class. Links and logo
  inside the header are forced to a light color for contrast. */
body.homepage header {
  background-color: #fff;
  color: #000000;
}

body.homepage header.scrolled {
  /* slightly stronger when scrolled */
  background-color: rgba(0,0,0,0.42);
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
}

/* Ensure header links on homepage are visible against the dark tone */
/*body.homepage header a,
body.homepage header .nav a,
body.homepage header .logo {
  color: #fff !important;
}*/

/* If the header contains an img logo that is dark, allow using a light variant by
   adding `.logo img.logo--light` in markup; fallback: reduce opacity to blend. */
body.homepage header .logo img {
  opacity: 0.95;
}

.logo {
  height: 80px;
  width: 80px;
}

nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #000 !important;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #000;
}

/* Navbar bianca solo in homepage */
.homepage-header nav a {
  color: #000000 !important;
}
.homepage-header nav a:hover {
  color: #000000;
}

/* ===============================
   HAMBURGER MENU (MOBILE)
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 1100;
  width: 25px;
  height: 20px;
  justify-content: center;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.close-btn {
  display: none;
}

/* ===============================
   HERO
================================ */
.hero {
  /* Non usare height:100vh (causa sovrapposizione con header fisso).
     Usa min-height in base all'altezza della viewport meno l'header. */
  min-height: calc(100vh - var(--header-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
  background-size: cover;
  background-position: center;
}

/*.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}*/

/* Homepage: overlay/dimming stronger so slideshow appears darker */
/* homepage-specific overrides removed to restore original homepage tone */

/* ===============================
   HERO LIGHT THEME (per chi-siamo)
   sfondo chiaro statico con pattern sottile
================================ */
.hero--light {
  background-color: #fbfaf8; /* tonalità chiara e calda */
  /* leggero pattern a righe diagonali molto sottile */
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 24px);
  color: #222; /* testo scuro per tema chiaro */
}

.hero--light::after {
  /* rimuovi sovrapposizione scura; mantieni un lieve velamento bianco se necessario */
  background: rgba(255,255,255,0.0);
}

.hero--light .hero-content {
  color: #222;
  text-shadow: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: none;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.18);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
}

/* ===============================
   SECTION GENERICHE
================================ */
section:not(.hero) {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   PROJECTS GRID
================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  margin: 1rem;
  font-size: 1.1rem;
}

/* ===============================
   PROJECTS (featured small section)
================================ */
.projects-feature {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}

.project-image {
  flex: 1 1 50%;
  min-height: 320px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* slideshow images inside project-image */
.project-image {
  position: relative; /* needed for absolute images */
}

.project-image img.project-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.projects .project-text {
  flex: 1 1 45%;
  padding: 1rem 0.5rem;
}

.projects .project-text h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #111;
}

.projects .project-text p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Primary button */
.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #111;
  color: #fff;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ===============================
   TIMELINE
================================ */
.timeline-section {
  background-color: #fff;
  color: #000;
  padding: 0 5vw;       /* da 2rem a 5vw = più dinamico e largo */
  padding-top: 0px;
}

.timeline-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.timeline-title-link {
  color: black;
}

.timeline-container {
  position: relative;
  margin: 0 auto;
  max-width: 1100px; /* da 800px a 1100px */
  padding: 0 2rem; /* aggiunge un po' di spazio interno ai lati */
}

/*
.timeline-container {
  max-width: none;
  width: 90%;     o 95% se vuoi quasi full width 
  margin: 0 auto;
}
*/

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; /* width: 3px;*/
  background: #000;
  z-index: 1;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0; /*margin: 3rem 0; /* da 2rem a 3rem*/
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-color: #000;
  border: 2px solid #000;
  border-radius: 50%;
  z-index: 2;
}

.timeline-left {
  width: 40%;
  text-align: right;
  padding-right: 2rem;
}

.timeline-content {
  width: 40%;
  padding-left: 2rem;
  display: flex;
  justify-content: flex-start;
}

.timeline-label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.timeline-side-text {
  font-size: 0.85rem;
  font-style: italic;
  color: #888;
}

.timeline-image {
  width: 260px;   /* da 200px */
  height: 260px;  /* da 200px */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* ombra più visibile */
  transition: transform 0.3s ease;
}

.timeline-image:hover {
  transform: scale(1.03); /* effetto leggero al passaggio */
}

/* ===============================
   CONTATTI
================================ */
.contacts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  min-height: 80vh;
  padding: 2rem 2rem;
  /*border-top: 1px solid #000;*/
}

.contact-left,
.contact-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.contact-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.contact-info h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.contact-info p {
  margin-bottom: 0.4rem;
}

.contact-detail {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  background: #fff;
}

.contact-data {
  margin-top: 1rem;
}


/* ===============================
   FOOTER
================================ */
header {
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky; /* mantiene l'header in-flow ma resta visibile in cima */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow-x: hidden;
}

/* quando la pagina è scrollata aggiungiamo un'ombra per separare visivamente */
header.scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background-color: rgba(255,255,255,0.98);
  backdrop-filter: blur(3px);
}

/* ===============================
   TIMELINES CARRIERA
================================ */
table {
  width: 100%; 
  border-collapse: collapse; 
  table-layout: fixed;
}

.carriera-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:120px;
  margin-bottom:80px;
}

.carriera-columns-title{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:120px;
  text-align:center;
  margin-bottom:80px;
}

/* Layout principale */
.carriera-main {
  padding-top: 0px;  
  padding-left: 40px;
  padding-right: 40px;
}

.carriera-columns {
    display: flex;
    gap: 80px;
    justify-content: center;
}

.carriera-col {
    flex: 1;
    max-width: 700px;
    position: relative;
}

.carriera-col::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:2px;
  height:100%;
  background:#333;
  transform:translateX(-50%);
}

#timeline-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:120px;
  position:relative;
}

/* Titolo */
.timeline-title-carriera {
    font-size: 32px;
    margin-bottom: 60px;
    text-align: center;
}

/* Container timeline */
.timeline-container-carriera {
    position: relative;
}

/* Linea verticale */
.timeline-container-carriera::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #333;
    transform: translateX(-50%);
}

/* Item timeline */
.timeline-item-carriera {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 80px;
    z-index: 1;
}

/* Pallino */
.timeline-item-carriera::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: black;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

/* Contenuto */
.timeline-content-carriera {
    padding-right: 40px;
    text-align: right;
}

/* Testo a sinistra */
.timeline-label-carriera {
    font-size: 20px;
    font-weight: 600;
}

.timeline-side-text-carriera {
    font-weight: bold;
    margin-bottom: 6px;
}

.timeline-description {
    font-style: italic;
    color: #777;
}

/* Immagine */
.timeline-image-carriera {
    width: 260px;
    border-radius: 12px;
    justify-self: start;
    margin-left: 40px;
}





.timeline-side-text{
    font-weight: bold;
}

.timeline-description{
    color: #777;
    font-style: italic;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .logo {
    height: 60px;
    width: 60px;
  }

  /* header più compatto su mobile */
  :root {
    --header-offset: 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-feature {
    flex-direction: column;
  }

  .project-image {
    min-height: 200px;
    width: 100%;
  }

  .projects .project-text {
    padding: 0.5rem 0;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 3rem 1.5rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    gap: 1.5rem;
  }

  nav.open {
    right: 0;
  }

  nav a {
    color: black !important;
    padding: 0.75rem 0;
    font-size: 1.2rem;
    display: block;
    border-bottom: 1px solid #ddd;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: black;
  }

  .timeline-container {
    padding-left: 24px !important;
    padding-right: 16px !important;
  }

  .timeline-container::before {
    left: 24px;
    transform: translateX(-50%);
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 36px;
  }

  .timeline-item::before {
    left: 0;
    top: 6px;
    transform: translateX(-50%);
    border: 2px solid #fff;
  }

  .timeline-left,
  .timeline-content {
    width: 100%;
    padding: 0;
    text-align: left;
  }

  .timeline-left {
    background: transparent !important;
    max-width: 100% !important;
    margin-bottom: 0.5rem;
  }

  .timeline-content {
    margin-top: 0.5rem;
    justify-content: flex-start;
  }

  .timeline-image {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .timeline-label {
    font-size: 1rem;
  }
/*TIMELINE CARRIERA*/
  .timeline-side-text {
    font-size: 0.9rem;
  }

      .carriera-columns {
        flex-direction: column;
        gap: 60px;
    }

    .timeline-container-carriera::before {
        left: 20px;
    }

    .timeline-item-carriera {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
    }

    .timeline-item-carriera::before {
        left: 20px;
    }

    .timeline-content-carriera {
        width: 100%;
        padding: 10px 0;
    }

    .timeline-image-carriera {
        margin: 20px 0;
        width: 100%;
        max-width: 350px;
    }

      .contacts {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ===============================
   DETTAGLIO PROGETTO
================================ */
.project-detail-main {
  margin-top: 0px; /* spazio sotto la navbar */
  background-color: #fafafa;
  padding: 4rem 2rem;
  padding-top: 0px;
}

.project-detail {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.project-detail h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #222;
}

.project-date {
  font-size: 1rem;
  color: #777;
  margin-bottom: 2rem;
}

/* ✅ Copertina più piccola e centrata */
.project-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.project-cover-img {
  width: 60%; /* più piccola e centrata */
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ✅ Descrizione centrata */
.project-description {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: justify;
}

.project-detail h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #222;
}

/* Griglia immagini del progetto */
.project-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ✅ Tutte le immagini stessa dimensione */
.project-img {
  width: 100%;
  height: 250px; /* fissa */
  object-fit: cover; /* riempie il box */
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.project-img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .project-detail h1 {
    font-size: 2rem;
  }
  .project-cover-img {
    width: 85%;
  }
  .project-img {
    height: 200px;
  }
}

