html, body {
  overflow-x: hidden;
}



h1, h2, h3, h4, h5, h6, h7 {
  font-weight: 900 !important;
}

::selection {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: rgba(159, 1, 250, 0.644);
}

body{
    background-color: #3b3939;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}


header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: transparent;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1500; /* sopra tutto il resto */
  }
  

main{
  margin-top: 270px;
  width: 100%;
}
  
.a{
  color: black;
    text-decoration: none;
    font-weight: bold;
}

.a.active {
  color: #5f5fcf;
}

.dropdown:hover > .a {
  color: #5f5fcf !important; /* viola o altro colore a tua scelta */
}

/* Colora le voci interne al dropdown */
.submenu2 li a:hover {
  color: #5f5fcf !important;
}

.menu-left .dropdown .a:hover,.menu-right .dropdown .a:hover{
color: #5f5fcf;
}

a{
    color: white;
    text-decoration: none;
}
.menu {
    text-decoration: none;
}

#header-top nav {
    display: flex;
    justify-content: center; /* distribuisce meglio gli elementi */
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}



 nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

#header-top nav > ul > li {
  margin: 0 15px;
  padding: 15px 20px;
  font-size: 18px;
  width: auto; /* non fissa */
  text-align: center;
  border: 4px solid transparent;
  transition: all 0.4s ease;
}

#logo {
    position: relative; /* prima era absolute */
    transform: none;
    margin: 0 40px;
    margin-top: 30px;
    background-color: transparent;
    width: auto;
    border: 4px solid transparent;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

#carousel-quote {
  opacity: 0;
  transition: opacity 1s ease;
}

#carousel-quote.fade-in {
  opacity: 1;
}
 



.menu-left,
.menu-right {
    display: flex;
    justify-content: center;
    list-style: none;
    align-items: center;
    padding: 0px;
    width: 100%;
    margin: 0;
}
.logo_menu {
  width: 220px;
  height: auto;
}

.carousel-section {
    position: relative;
    height: 100vh; /* Occupa tutta l’altezza della finestra */
    overflow: hidden;
    z-index: 1;
}

.carousel-section2 {
  position: relative;
  height: 55vh; /* Occupa tutta l’altezza della finestra */
  overflow: hidden;
  z-index: 1;
}

#carousel-image {
  transition: background-image 0.5s ease-in-out; /* Purtroppo non animabile */
  opacity: 0;
}

#carousel-image.fade-in {
  opacity: 0.6;
}
  
  .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
  }

  .carousel-image2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
  }
  
  .carousel-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  .carousel-content blockquote {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 66px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.1;
    padding: 0 50px;
  }
  
  .carousel-content blockquote div {
    text-align: center;
    display: block;
    width: 100%;
  }
  
  
  .carousel-content blockquote::before {
    content: '“';
    font-size: 80px;
    color: white;
    position: absolute;
    font-weight: bold;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .carousel-content blockquote::after {
    content: '”';
    font-size: 80px;
    color: white;
    font-weight: bold;
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  

.carousel-button {
    display: inline-block;
    padding: 15px 50px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border: 1px solid white;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    margin-top: 60px;
}

.carousel-button:hover {
    background-color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}


.carousel-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 30px;
    height: fit-content;
  }
  
  .carousel-dots button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(71, 126, 247, 0.336);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border: 1px solid #ffffff;
  }
  
  .carousel-dots button.active {
    background-color: white;
  }

  .carousel-dots2 {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 5;
  }
  
  
  .carousel-dots2 button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(71, 127, 247, 0);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border: 1px solid #ffffff;
  }
  
  .carousel-dots2 button.active {
    background-color: white;
  }
  
  .dropdown {
    position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  min-width: 250px; /* ✅ imposta una larghezza minima */
  background-color: transparent;
  border: 1px solid white;
  z-index: 10;
}




.submenu li {
    margin: 0;
    padding: 10px;
    font-size: 17px;
    text-align: left;
    transition: all 0.3s ease;
    margin: 7px;
}


.dropdown:hover .submenu {
    display: block;
}

.submenu2 {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  min-width: 250px; /* ✅ imposta una larghezza minima */
  background-color: #ffffff;
  border: 1px solid rgb(0, 0, 0);
  z-index: 10;
}



.submenu2 li {
  margin: 0;
  padding: 10px;
  font-size: 17px;
  text-align: left;
  transition: all 0.3s ease;
  margin: 7px;
}


.dropdown:hover .submenu2 {
  display: block;
}

  
#header-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #ffffff;
    color: #24323f;
    display: none;
    align-items: center;
    padding: 0 60px;
    z-index: 20;
    border-bottom: 3px solid #164479;
    transition: all 0.6s ease;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
  }  
  
  #header-scroll.visible {
    display: flex;
  }
  
  #header-scroll nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    gap: 80px;
  }  
  
  .scroll-logo img.logo_menu_scroll {
    height: 80px;
    transform: rotate(0deg);
  }
  
  .menu-scroll {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: bold;
    gap: 40px;
  }
  
  .menu-scroll li a {
    position: relative;
    text-decoration: none;
    color: #164479;
    padding: 10px;
    border-radius: 8px;
    transition: color 0.3s ease;
  }
  
  .menu-scroll li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px; /* distanza dalla parola */
    width: 0%;
    height: 2px;
    background-color: #164479;
    transition: width 0.3s ease;
  }
  
  .menu-scroll li a:hover::after {
    width: 100%;
  }
  

  
  .scroll-cta .scroll-button {
    padding: 10px 25px;
    background-color: #164479;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 120px;
  }
  
  .scroll-cta .scroll-button:hover {
    background-color: #e3e4e6;
    color: #164479;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  
  header {
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  .word-pattern {
    position: absolute;
    font-size: 60px;
    font-weight: bold;
    opacity: 0.07;
    color: #ce8f76;
    white-space: pre;
    line-height: 1.2;
    pointer-events: none;
    user-select: none;
  }
  
  
  .pattern-left {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    transform: rotate(-10deg);
    background-image: repeating-linear-gradient(
      90deg,
      #164479 0,
      #164479 10%,
      transparent 10%,
      transparent 20%
    );
    -webkit-mask-image: repeating-linear-gradient(
      0deg,
      #000 0,
      #000 1em,
      transparent 1em,
      transparent 2em
    );
    mask-image: repeating-linear-gradient(
      0deg,
      #000 0,
      #000 1em,
      transparent 1em,
      transparent 2em
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  
  .pattern-right {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100%;
    text-align: right;
    transform: rotate(10deg);
    background-image: repeating-linear-gradient(
      90deg,
      #ce8f76 0,
      #ce8f76 10%,
      transparent 10%,
      transparent 20%
    );
    -webkit-mask-image: repeating-linear-gradient(
      0deg,
      #000 0,
      #000 1em,
      transparent 1em,
      transparent 2em
    );
    mask-image: repeating-linear-gradient(
      0deg,
      #000 0,
      #000 1em,
      transparent 1em,
      transparent 2em
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  
  #home {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    overflow: hidden;
  }
  
  .word-grid {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-auto-rows: 50px;
    font-size: 60px;
    font-weight: bold;
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
  }
  
  .word-grid span {
    color: inherit;
  }
  
  .grid-left {
    top: 0;
    left: -50%;
    margin-top: -400px;
    color: #3174c2;
    opacity: 0.1;
    transform: rotate(12deg);
  }
  
  .grid-right {
    bottom: -140px;
    right: -36%;
    opacity: 0.1;
    color: #3174c2;
    transform: rotate(12deg);
  }
  
  #trapezio-right {
    position: relative;
    padding-top: 30px;
    top: 0;
    right: 30px;
    width: 100%;
    padding-left: 40px; 
    height: auto;
    background-color: rgba(255, 0, 0, 0);
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    gap: 30px;
  }

  .trapezio-content {
    width: fit-content;
    height: auto;
    margin-top: 5%; 
    margin-left: 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    color: #5f5fcf;
    box-sizing: border-box;
  }
  
  
  .trapezio-content h2 {
    font-size: 80px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
  }

  .trapezio-buttons {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
  }

  
  .trapezio-button {
    position: relative;
    display: inline-block;
    padding: 14px 75px;
    font-size: 20px;
    max-width: fit-content;
    height: max-content;
    font-weight: bold;
    border: 1px solid #5f5fcf;
    background-color: transparent;
    color: #5f5fcf;
    text-decoration: none;
    line-height: 1.2;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease;
  }
  
  .trapezio-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #5f5fcf;
    z-index: -1;
    transition: width 0.4s ease;
  }

  .trapezio-button:hover {
    color: white;
  }
  
  .trapezio-button:hover::before {
    width: 100%;
  }
  
  .trapezio-button span {
    position: relative;
    z-index: 1;
  }
  
  
  .mini-carousel {
    position: relative;
    width: 64%;
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
    z-index: 3;
  }
  
  .carousel-main {
    width: 100%;
    overflow: hidden;
  }
  
  .carousel-main img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.4s ease;
  }
  
  .carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
  }
  
  .carousel-thumbnails img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .carousel-thumbnails img.active {
    border-color: #164479;
    transform: scale(1.05);
  }
  
  .carousel-arrow {
    position: absolute;
    top: 45%;
    width: 60px;
    height: 60px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    border: 3px solid transparent;
    font-size: 36px;
    color: #3d3d3c;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .carousel-arrow:hover {
    background-color: #fff6f2;
    color:#164479 ;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  }
  
  
  .carousel-arrow.left {
    left: -120px;
  }
  
  .carousel-arrow.right {
    right: -120px;
  }
  
  .trapezio-rtext {
    width: fit-content;
    margin-left: 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: justify;
    box-sizing: border-box;
  }
  

  .trapezio-rtext p {
    font-size: 18px;
    width: 70%;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  #trapezio-left {
    position: relative;
    margin-top: 100px;
    left: 10px;
    width: 100%;
    height: auto;
    background-color: rgba(0, 255, 255, 0); /* leggero azzurro */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  .trapezio-left-content {
    width: 80%;
    height: auto;
    margin-right: 100px;
    margin-top: 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: rgb(0, 0, 0);
    padding: 40px;
    box-sizing: border-box;
  }
  
  .trapezio-left-content h2 {
    font-size: 80px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
  }
  
  .trapezio-left-content p {
    font-size: 18px;
    max-width: 1000px;
    margin-bottom: 30px;
    line-height: 1.6;
  }
  
  .trapezio-ltext {
    width: 70%;
    height: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: justify;
    color: rgb(0, 0, 0);
    box-sizing: border-box;
  }

  .trapezio-ltext p {
    font-size: 18px;
    max-width: 1000px;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .word-grid-card {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-auto-rows: 50px;
    font-size: 60px;
    font-weight: bold;
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
  }
  
  .word-grid-card span {
    color: inherit;
  }
  
  .grid-right-card {
    bottom: -45px;
    right: -40%;
    color: #fa8759;
    transform: rotate(18deg);
  }

  .servizi-section {
    display: flex;
    flex-wrap: wrap; /* 👈 Aggiungi questa */
    justify-content: center; /* 👈 Centra gli elementi */
    align-items: center; /* 👈 Centra verticalmente */
    gap: 40px;
    padding: 30px 100px;
  }  

  .word-grid-footer,
.grid-right-footer,
.pattern-right,
.grid-right-card,
.word-grid {
  max-width: 100%;
  box-sizing: border-box;
}

  
  .servizi-card {
    display: flex;
    flex: 1 1 530px; /* 👈 Flessibile ma con larghezza minima */
    max-width: 660px;
    background-color: white;
    box-shadow: 12px 12px 10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    height: auto;
    z-index: 3;
  }

.servizi-card p{
	margin-top:auto;
}

.servizi-card h3{
	line-height:1.1;
}
  
  .card-left {
    position: relative;
    flex: 1;
    min-width: 300px; /* 👈 larghezza minima */
    padding: 30px;
    color: white;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  
  /* Testo contenuto */
  .card-left h3 {
    font-size: 40px;
    margin-bottom: 10px; 
    margin-top: 0px;
    margin-left: 10px;
    z-index: 2;
    white-space: normal;
  }  
  
  .card-left p {
    margin-left: 10px;
    font-size: 18px; /* 👈 stesso font-size per tutti */
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* 👈 mostra al max 4 righe */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    z-index: 2;
  }
  
  
  .scopri-btn {
    margin-left: 10px;
    margin-top: auto;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    border: 1px solid white;
    width: 80%;
    z-index: 2;
  }
  
.scopri-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
  }
  
  /* Personalizzazione colore sfondo */
  .card-left[data-word="AUTISMO"] {
    background-color: #f03a95;
  }
  
  .card-left[data-word="SERVIZI"] {
    background-color: #3c9df8;
  }

  .card-left[data-word="SOC"] {
    background-color: #a0d3cf;
  }
  
  .card-left[data-word="GIOVANI"] {
    background-color: rgb(140, 209, 75);
  }

  .card-left[data-word="ANZIANI"] {
    background-color: #834e9b;
  }

  .card-left[data-word="WELF"] {
    background-color: #f7f1d1;
  }
  
  
  /* Colonna destra immagine */
  .card-right {
    flex: 1;
    min-width: 300px;
  }
  
 .card-right img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover; /* oppure "cover", a seconda dell’effetto desiderato */
  display: block;
}

  #progetti {
    background-image: url('img/sfondo news2.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 40px;
    color: white;
    text-align: center;
  }
  
  .progetti-title {
    font-size: 69px;
    font-weight: bold;
    margin-bottom: 30px;
  }
  
  .progetti-title span {
    color: #ffe277;
  }
  
  .progetti-subtitle {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 60px;
  }
  
  .progetti-card-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
  }
  
  .progetto-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid white;
    width: 300px;
    padding: 10px;
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .progetto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    background-color: white;
    color: black;
  }
  
  .progetto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
  
  .progetto-info {
    padding: 5px 20px;
  }
  
  .progetto-info h3 {
    font-size: 22px;
    font-weight: bold;
	 line-height:1.1;
    margin-bottom: -10px;
    color: white;
  }
  
  .progetto-info p {
    font-size: 16px;
    line-height: 1.4;
    color: #e0e0e0;
  }
  
  .progetto-card:hover .progetto-info h3 {
    color: black;
  }
  
  .progetto-card:hover .progetto-info p {
    color: #333; /* o anche black, a tua scelta */
  }
  
  #partner {
    padding: 50px 0;
    background-color: rgb(255, 255, 255);
    text-align: left;
    overflow: hidden;
  }
  
  .partner-title {
    font-size: 60px;
    margin-left: 100px;
    font-weight: bold;
    color: #5f5fcf;
    margin-bottom: 20px;
  }
  
  .partner-carousel {
    width: 100%; 
    margin: auto;
    padding: 50px;
    background-color: rgba(39, 39, 41, 0);
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  
  .partner-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    gap: 200px;
    will-change: transform;
  }
  
  .partner-track img {
    height: 100px;
    width: 300px; /* fissa per mantenere allineamento */
    object-fit: contain;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
  }
  
  #footer {
    background-color: #5361ce;
    position: relative;
    z-index: 3;
    color: white;
    padding: 80px 60px 40px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
  }
  
  .footer-container {
    display: flex;
    gap: 300px;
  }
  
  .footer-column {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    z-index: 3;
  }
  
.logo-col img {
    max-width: 400px;
    min-width: 300px; /* ad esempio */
    margin-left: 30px;
    margin-top: 30px;
}

  
  .footer-column h4 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0px;
  }
  
  .footer-column p {
    font-size: 24px;
    line-height: 1.5;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.5);
    font-size: 16px;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-bottom a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    padding: 0 30px;
    z-index: 3;
    cursor: default;
  }

  .footer-bottom a:not(:first-child):hover {
    text-decoration: underline;
    cursor: pointer;
  }

  .footer-bottom p{
    color: white;
    font-size: 21px;
    font-weight: bold;
    z-index: 3;
    cursor: text;
  }

  
  .word-grid-footer {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(1, auto);
    grid-auto-rows: 50px;
    font-size: 60px;
    font-weight: bold;
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
  }
  
  .word-grid-footer span {
    color: inherit;
  }
  
  .grid-right-footer {
    right: -8%;
    top:-80px;
    color: #2189df;
    transform: rotate(16deg);
    z-index: 2;
  }

  .chi-siamo {
    margin-top: 50px;
    background-color: #ffffff;
    padding: 100px 60px;
    font-family: 'Poppins', sans-serif;
  }
  
  .virgolette2 {
    font-size: 80px;
    font-weight: bold;
    color: #000000;
    line-height: 1;
    padding: 40px;
  }
  .chi-siamo-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  .row-align {
    display: flex;
    gap: 30px;
    align-items: flex-start;
  }

  .row-align2 {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 60px;
    align-items: center; /* ✅ centra perfettamente i due blocchi */
  }  
  
  .colonna-sinistra {
    flex: 1;
  }
  
  .colonna-sinistra {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centra verticalmente il contenuto */
    width: 80%;
    min-width: 400px;
    object-fit: cover; /* obbliga ad allungarsi quanto la riga */
  }

  .colonna-sinistra4 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 100%;
}

.colonna-sinistra4 img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  min-width: 350px;
}


  
  .colonna-sinistra3 {
    flex: 1;
    padding-left: 7%;
    display: block;
    flex-direction: column;
    gap: 20px;
  }

  .colonna-sinistra3 h2 {
  font-size: 50px;
  font-weight: bold;
  color: #000000;
}

.colonna-sinistra3 p {
  font-size: 18px;
  line-height: 1.5;
}
  
    .evidenziato{
      font-weight: bold;
    }

    .colonna-destra {
      font-size: 18px;
      line-height: 1.8;
      max-width: 800px;
      width: 100%;
    }

  .colonna-destra h2{
    color: black;
    font-size: 60px;
    line-height: 0.9;
    font-weight: bold;
    margin-bottom: 40px;
  }



  .colonna-destra h3{
    color: #5f5fcf;
    font-size: 32px;
    line-height: 0.9;
    font-weight: bold;
    margin-bottom: 0px;
  }
  
  .logo-coress,
.logo-sai {
  width: 200px;
  height: 50%;
  object-fit: contain;
}

  
  .virgolette {
    font-size: 80px;
    font-weight: bold;
    color: #5f5fcf;
    line-height: 1;
  }
  
  .claim {
    font-size: 36px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    color: #000;
    margin-top: 0px;
  }
  
  /* === COLONNE SOCI === */

.colonna-unica {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1024px;
  gap: 20px;
  padding: 0 80px;
}

.colonna-unica2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1024px;
  gap: 20px;
  padding: 0 80px;
}

.colonna-unica h3 {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

.colonna-unica2 h3 {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

.colonna-unica2 h4 {
  font-size: clamp(50px, 6vw, 70px);
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

.colonna-unica2 p {
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.colonna-unica h4 {
  font-size: clamp(50px, 6vw, 70px);
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

.colonna-unica p {
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.colonna-unica ul {
  font-size: 17px;
  line-height: 1.6;
  list-style: disc;
  padding-left: 20px;
}


.colonna-sinistra2 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.colonna-sinistra2 h2 {
  font-size: 50px;
  font-weight: bold;
  color: #000000;
}

.colonna-sinistra2 p {
  font-size: 18px;
  line-height: 1.5;
}

.colonna-destra2 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.colonna-destra2 img {
  width: 80%;
  min-width: 400px;
  object-fit: cover;
}



.form-candidatura {
  border: 10px solid #5f5fcf;
  padding: 30px 80px;
  margin: 100px auto;
  max-width: 1000px;
  font-family: 'Poppins', sans-serif;
}

.form-title {
  font-size: 36px;
  color: #5f5fcf;
  font-weight: bold;
  line-height: 1.0;
  text-align: left;
}

.form-box {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
}

.form-left{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.casella{
  gap:0px;
}

.form-left input {
  padding: 15px;
  font-size: 16px;
  background-color: transparent;
  border: none;
  width: 100%; /* ✅ si allarga completamente */
  box-sizing: border-box; /* include padding nel width */
  border-bottom: 1px solid #ccc;
  resize: none;
  font-family: 'Poppins', sans-serif;
  outline: none; /* Remove the default outline */
}

.form-left input:focus {
  border-bottom: 1px solid #5f5fcf; /* Change border color on focus */
  background-color: transparent; /* Ensure background remains transparent */
}

.form-left input::placeholder,
.form-right textarea::placeholder {
  font-style: italic;
}

.form-right textarea {
  padding: 30px;
  font-size: 16px;
  width: 85%;
  background-color: transparent; /* Ensure background remains transparent */  
  border: 1px solid #c9c9c9;
  resize: none;
  font-family: 'Poppins', sans-serif;
  outline: none; /* Remove the default outline */
}

.form-right textarea:focus {
  border: 1px solid #5f5fcf; /* Change border color on focus */
}

.form-left select {
  padding: 15px;
  font-size: 16px;
  background-color: transparent;
  border: none;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #000;
}

/* bordo viola al focus */
.form-left select:focus {
  border-bottom: 1px solid #5f5fcf;
  background-color: transparent;
}

.form-right select {
  padding: 15px;
  font-size: 16px;
  background-color: transparent;
  border: none;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #000;
}

/* bordo viola al focus */
.form-right select:focus {
  border-bottom: 1px solid #5f5fcf;
  background-color: transparent;
}

#zona-select {
  overflow-y: hidden; /* nascosto da chiuso */
}

#zona-select:focus {
  height: auto;
  max-height: 150px; /* Mostra 4-5 voci */
  overflow-y: auto;
}

.casella h5{
  padding: 0px;
  font-size: 20px;
  margin-bottom: 10px;
}

.form-right textarea {
  height: 150px;
}

.form-upload {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-upload input[type="file"] {
  font-size: 16px;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.btn-form {
  background-color: #5f5fcf;
  color: white;
  border: none;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.btn-form:hover {
  color: black;
}

.form-upload {
  width: 85%;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.form-upload span{
  margin-top: 0px;
}

.contatti-info {
  padding: 80px 100px;
  background-color: #ffffff;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
}

.contatti-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 80%;
  gap:40px;
}

.contatti-col {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 18px;
  color: #000;
}

.contatti-col h3 {
  font-size: 22px;
  font-weight: bold;
  color: #5f5fcf;
  margin-bottom: 10px;
}

.contatti-col p {
  margin: 0;
  line-height: 1.4;
  width: 100%;
}

.cont {
  color: black !important;
  font-size: 16px;
  font-weight: normal;
  visibility: visible !important;
  opacity: 1 !important;
}

.contatti-col.mappa{
  max-width: 100%;
  min-width: 500px;
}

.contatti-col.mappa iframe {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  border: none;
}

.orari-riga {
  display: flex;
  gap: 5px;
  padding: 5px 0;
}
.orari{
  min-width: max-content;
}

.giorno {
  width: 80px;
  font-weight: bold;
}

.ora {
  font-weight: normal;
}

.trapezio-buttons {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}


.aut-button {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  padding: 14px 75px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  border: 1px solid #f03a95;;
  background-color: transparent;
  color: #f03a95;;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

.aut-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #f03a95;
  z-index: -1;
  transition: width 0.4s ease;
}

.aut-button:hover {
  color: white;
  cursor: pointer;
}

.aut-button:hover::before {
  width: 100%;
}

.aut-button span {
  position: relative;
  z-index: 1;
}

.socA-button {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  padding: 14px 75px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: bold;
  border: 1px solid #3a98e6;
  background-color: transparent;
  color: #3a98e6;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

.socA-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #3a98e6;
  z-index: -1;
  transition: width 0.4s ease;
}

.socA-button:hover {
  color: white;
  cursor: pointer;
}

.socA-button:hover::before {
  width: 100%;
}

.socA-button span {
  position: relative;
  z-index: 1;
}

.socO-button {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  padding: 14px 75px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: bold;
  border: 1px solid rgb(183, 207, 44);
  background-color: transparent;
  color: rgb(183, 207, 44);
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

.socO-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgb(183, 207, 44);
  z-index: -1;
  transition: width 0.4s ease;
}

.socO-button:hover {
  color: white;
  cursor: pointer;
}

.socO-button:hover::before {
  width: 100%;
}

.socO-button span {
  position: relative;
  z-index: 1;
}

.eta-button {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  padding: 14px 75px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  border: 1px solid #5f5fcf;
  background-color: transparent;
  color: #5f5fcf;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

.eta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #5f5fcf;
  z-index: -1;
  transition: width 0.4s ease;
}

.eta-button:hover {
  color: white;
  cursor: pointer;
}

.eta-button:hover::before {
  width: 100%;
}

.eta-button span {
  position: relative;
  z-index: 1;
}

.giov-button {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  padding: 14px 75px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  border: 1px solid rgb(140, 209, 75);
  background-color: transparent;
  color: rgb(140, 209, 75);
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

.giov-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgb(140, 209, 75);
  z-index: -1;
  transition: width 0.4s ease;
}

.giov-button:hover {
  color: white;
  cursor: pointer;
}

.giov-button:hover::before {
  width: 100%;
}

.giov-button span {
  position: relative;
  z-index: 1;
}

.welf-button {
  position: relative;
  display: inline-block;
  padding: 14px 75px;
  font-size: 20px;
  font-weight: bold;
  border: 1px solid #b0b041;
  background-color: transparent;
  color: #b0b041;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

.welf-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #b0b041;
  z-index: -1;
  transition: width 0.4s ease;
}

.welf-button:hover {
  color: white;
}

.welf-button:hover::before {
  width: 100%;
}

.welf-button span {
  position: relative;
  z-index: 1;
}

.intervento-servizi {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.testo-intro h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}

.box-pulsanti {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonne */
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

.box-pulsanti button {
  width: 100%;
  max-width: 100%;
}

.sezione-autismo {
  background-color: #ffffff;
  padding: 60px 100px;
  display: flex;
  flex-direction: column;
  max-width: 1500px;
  gap: 60px;
  margin: 0 auto;
}

.responsive{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.contenuto-autismo {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.testo-autismo {
  flex: 1;
  min-width: 300px;
}

.testo-autismo h2 {
  font-size: 50px;
  color: #f03a95;
  font-weight: bold;
  margin-bottom: 20px;
}

.testo-autismo p {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
}

.immagine-autismo {
  flex: 1;
  text-align: center;
}

.immagine-autismo img {
  max-width: 100%;
  height: auto;
  min-width: 300px;
}

.box-servizio {
  border-top: 4px solid #f03a95;
  padding-top: 40px;
  font-size: 18px;
  line-height: 1.6;
  color: #000;
}

.box-servizio h4 {
  color: #f03a95;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contatto-invito {
  font-style: italic;
  margin-top: 30px;
}

.sezione-sanitari {
  background-color: #ffffff;
  padding: 60px 100px;
  display: flex;
  margin-top: 100px;
  flex-direction: column;
  gap: 60px;
  max-width: 1800px;
}

.contenuto-sanitari {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center; /* centra meglio su schermi piccoli */
}

.immagine-sanitari {
  flex: 1 1 300px;
  text-align: center;
}

.immagine-sanitari img{
	  max-width: 100%;
  height: auto;
  min-width: 300px;
}

.testo-sanitari {
  flex: 1 1 300px;
}

.testo-sanitari h2 {
  font-size: 52px;
  color: #3a98e6;
  font-weight: bold;
  margin-bottom: 20px;
}

.testo-sanitari p {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.riquadri-sanitari {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-inline: 200px;
}

.box-singolo {
  border-top: 4px solid #3a98e6;
  padding-top: 20px;
}

.box-singolo h4 {
  font-size: 18px;
  font-weight: bold;
  color: #3a98e6;
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1.2;
}

.box-singolo p {
  font-size: 16px;
  line-height: 1.5;
}

.fine-sanitari {
  text-align: right;
}

.sezione-occupazionali {
  background-color: #ffffff;
  padding: 60px 100px;
  display: flex;
  max-width: 1800px;
  margin-top: 100px;
  flex-direction: column;
  gap: 60px;
}

.contenuto-occupazionali {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center; /* centra meglio su schermi piccoli */
}

.immagine-occupazionali {
  flex: 1;
  text-align: center;
}

.immagine-occupazionali img {
	width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testo-occupazionali {
  flex: 1 1 300px;
}

.testo-occupazionali h2 {
  font-size: 40px;
  color: rgb(183, 207, 44);
  font-weight: bold;
  margin-bottom: 20px;
}

.testo-occupazionali p {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.riquadri-occupazionali {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-inline: 200px;
}

.box-singolo.occ {
  border-top: 4px solid rgb(183, 207, 44);
  padding-top: 20px;
}

.box-singolo.occ h4 {
  font-size: 18px;
  font-weight: bold;
  color: rgb(183, 207, 44);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sezione-terzaeta {
  background-color: #ffffff;
  padding: 60px 100px;
  display: flex;
  margin-top: 100px;
  max-width: 1800px;
  flex-direction: column;
  gap: 60px;
}

.contenuto-terzaeta {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: center; /* centra meglio su schermi piccoli */
}

.immagine-terzaeta {
  flex: 1;
  text-align: center;
}

.immagine-terzaeta img {
  width: 80%;
  min-width: 320px;
  height: auto;
}

.testo-terzaeta {
  flex: 1 ;
  min-width: 320px;
}

.testo-terzaeta h2 {
  font-size: 40px;
  color: #5f5fcf;
  font-weight: bold;
  margin-bottom: 20px;
}

.testo-terzaeta p {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.riquadri-terzaeta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-inline: 200px;
}

.box-singolo.eta {
  border-top: 4px solid #5f5fcf;
  padding-top: 20px;
}

.box-singolo.eta h4 {
  font-size: 18px;
  font-weight: bold;
  color: #5f5fcf;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sottotitolo{
  font-size: 70px; 
  text-align: left; 
  margin-bottom: 80px; 
  padding-left: 5%; 
}

.sezione-welfare {
  background-color: #ffffff;
  padding: 60px 100px;
  margin-inline: 100px;
  display: flex;
  flex-direction: column;
}

.contenuto-welfare {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
}

.testo-welfare {
  flex: 1;
  min-width: 300px;
}

.testo-welfare h2 {
  font-size: 40px;
  color: #b0b041;
  font-weight: bold;
  margin-bottom: 20px;
}

.testo-welfare p {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  margin-bottom: 20px;
}

.immagine-welfare {
  flex: 1;
  text-align: center;
}

.immagine-welfare img {
	width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accordion-container {
  margin: 80px 100px;
  width: 60%;
}

.accordion-item {
  margin-bottom: 40px;
}

.accordion-toggle {
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: black;
	font-family: 'Poppins', sans-serif;
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 2px solid black;
  text-align: left;
  width: 100%;
  transition: all 0.3s ease;
}

.accordion-toggle:hover {
  color: #5f5fcf;
  border-color: #5f5fcf;
}

.accordion-toggle.active {
  color: #5f5fcf;
  border-color: #5f5fcf;
}

.accordion-content {
  display: none;
  padding-top: 20px;
}

.accordion-content.open {
  display: block;
}

.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.file-box {
    width: 200px;
    height: 160px;
    border: 2px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
	line-height: 1.3;
    padding: 10px;
    background-color: #f9f9f9;
    background-size: cover;         /* Adatta l'immagine alla box */
    background-position: center;    /* Centra l'immagine */
    background-repeat: no-repeat;   /* Evita la ripetizione */
    transition: border-color 0.3s;
}

.file-box a{
	color: #7a2ca1;
	cursor: pointer;
	margin-top:15px;
}

.file-box a:hover{
	text-decoration: underline;
}

.file-box:hover {
  border-color: #7a2ca1;
}

.progetti-cards-section {
      max-width: 1200px;
      margin: 0 auto;
	padding: 60px 100px;
    }

    .progetto-card-large {
      border: 3px solid #333;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      transition: transform 0.3s ease;
    }

    .progetto-card-large:hover {
      transform: translateY(-5px);
    }

    .progetto-content {
      display: flex;
      min-height: 300px;
      background-image: url('img/RETOUR SFONDO_Tavola disegno 1.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .progetto-content.fuori-norma {
      background-image: url('img/FUORI NORMA SFONDO_Tavola disegno 1.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .progetto-content.nirvana {
      background-image: url('img/NIRVANA SFONDO_Tavola disegno 1.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .progetto-logo {
      flex: 0 0 300px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: white;
      border-right: 2px solid rgba(255, 255, 255, 0.2);
    }

    .progetto-logo img {
      max-width: 70%;
      height: auto;
      object-fit: contain;
    }

    .logo-retour {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #ff6b35;
    }

.info-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1;
  transition: left 0.6s ease;
}

.progetto-info2 {
  position: relative;
  flex: 1;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: transparent; /* niente bianco fisso */
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

    .progetto-info2 h2,
.progetto-info2 p {
  position: relative;
  z-index: 2;
  color: white;
  transition: color 0.5s ease;
}

.progetto-info2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #ffffff;
  z-index: 0;
  transition: width 0.4s ease;
}

.progetto-info2 > * {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.progetto-content:hover .progetto-info2::before {
  width: 100%;
}

.progetto-content:hover .progetto-info2 > * {
  color: black !important;
}

.form-privacy a:hover{
	text-decoration:underline;
}
	

.news-grid {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* FISSO: 3 per riga */
  gap: 40px;
  padding: 60px 100px;
  background-color: #ffffff;
}

.news-card {
  background-color: #fff;
  text-align: left;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  cursor: pointer;
}

.news-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.news-date {
  margin-top: 15px;
  font-size: 14px;
  margin-left: 10px;
  color: #333;
}

.news-title {
  font-size: 16px;
  margin-left: 10px;
  font-weight: 600;
  color: #000;
  margin-top: 8px;
}

.news-text {
  font-size: 15px;
  margin-left: 10px;
  margin-right: 10px;
  color: #000;
  line-height: 1.3;
}

.notizia-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 100px;
}

.notizia-main {
  flex: 1;
  text-align: justify;
  max-width: 70%;
  margin: 0 auto;
}

.notizia-titolo {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 30px;
}

.notizia-img {
  width: 100%;
  max-height: 530px;
  min-height: 240px;
  margin-bottom: 40px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.notizia-testo p {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}

.notizia-carousel {
  width: 100%;
  overflow: hidden;
  margin-top: 120px;
  margin-bottom: 120px;
}

.carousel-track {
  display: flex;
    min-width: 100%;
  gap: 100px;
  animation: scrollLeft 28s linear infinite;
  width: max-content;
}

.carousel-track img {
  width: auto;
  max-height: 280px;
  object-fit: cover;
  flex-shrink: 0;
}

.notizia-allegati h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.pdf-list {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.pdf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-item a {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-item img {
  width: 60px;
  height: auto;
}

.privacy-policy h4 {
  font-size: 22px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #5f5fcf;
}

.privacy-policy p {
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.4;
  text-align: justify;
}

.privacy-policy ul {
  margin: 10px 0 20px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.4;
}

.privacy-policy{
  margin-bottom: 160px;
}

.telefono-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-right: 10px;
}

.prefisso {
  padding: 0 12px;
  font-size: 16px;
  color: #000;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.telefono-wrapper input[type="tel"] {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  background-color: transparent;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.bacheca-lavoro {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonne fisse */
  gap: 80px 60px; /* spazio tra righe e colonne */
  margin: 80px 200px 150px;
  align-items: start;
}


.offerta {
  min-width: 350px;
  width: 100%; /* prende tutta la colonna */
  background-color: #fafafa;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px;
  border-left: 6px solid #5f5fcf;
  transition: all 0.3s ease;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.offerta-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.2;
}

.offerta-header h3 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  color: #000;
}

.offerta-header p {
  font-size: 16px;
  color: #444;
  margin: 0;
}

.info-toggle {
  margin-top: 10px;
  align-self: flex-start;
  padding: 10px 25px;
  background-color: transparent;
  color: #5f5fcf;
  border: 2px solid #5f5fcf;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-toggle:hover {
  background-color: #5f5fcf;
  color: #fff;
}



@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.offerta-dettagli {
  display: none;
  margin-top: 10px;
  overflow: hidden;
}

.offerta-dettagli.open {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Blocco testo (grigiastro) */
.offerta-testo {
  background-color: #f2f2f2;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  line-height: 1.4;
}

/* Blocco pulsanti (bianco, affiancati) */
.offerta-btn {
  background-color: transparent;
  padding: 20px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.offerta-btn a {
  flex: 1;
  text-align: center;
  height: 50px;
  box-sizing: border-box;
}

.form-btn{
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #5f5fcf;
  background-color: transparent;
  color: #5f5fcf;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  transition: color 0.3s ease;
}

.ind-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #0000ff;
  background-color: transparent;
  color: #5f5fcf;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  transition: color 0.3s ease;
}

.form-btn::before,
.ind-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: width 0.4s ease;
}

.form-btn::before {
  background-color: #5f5fcf;
}

.ind-btn::before {
  background-color: #e8effe;
}



.form-btn:hover::before,
.ind-btn:hover::before {
  width: 100%;
}

.form-btn:hover {
  color: white;
}


.form-btn span {
  position: relative;
  z-index: 1;
}

.ind-btn img {
  position: relative;
  z-index: 1;
  height: 22px;
}

.pagina-lavoro {
  display: flex;
  gap: 60px;
  margin: 100px 200px;
  align-items: flex-start;
}

.contenitore-layout {
  display: flex;
  gap: 40px;
  box-sizing: border-box;
}

.menu-sinistra {
  width: 250px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.menu-sinistra ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-sinistra li {
  margin-bottom: 20px;
}

.menu-sinistra a {
  display: block;
  padding: 12px 20px;
  background-color: #f2f2f2;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.menu-sinistra a:hover {
  background-color: #ddd;
}

.contenuto-destro {
  flex: 1;
}

.notizia-sidebar {
  display: flex;
  justify-content: flex-end;
}

.notizia-sidebar-box {
  position: fixed;
  top: 350px;/* distanza dall'alto quando scrolla */
  background-color: #9898fc;
  padding: 40px 30px;
  width: 10%;
  height: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.notizia-sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notizia-sidebar-box li {
  margin-bottom: 20px;
  line-height: 1.2;
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
}

.notizia-sidebar-box a {
  display: block;
  text-decoration: none;
  font-weight: bold;
  color: #000;
  font-size: 16px;
  transition: all 0.3s ease;
}

.notizia-sidebar-box a:hover {
  color: white;
  transform: translateX(5px);
}

.wrapper-candidatura {
  display: flex;
  gap: 60px;
  box-sizing: border-box;
  align-items: flex-start;
}


.menu-laterale {
  position: fixed;
  top: 400px; /* distanza dall'alto quando scrolla */
  background-color: #9898fc;
  padding: 40px 30px;
  width: 10%;
  height: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}


.menu-laterale ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-laterale li {
  margin-bottom: 20px;
  line-height: 1.2;
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
}

.menu-laterale a {
  display: block;
  text-decoration: none;
  font-weight: bold;
  color: #000;
  font-size: 16px;
  transition: all 0.3s ease;
}

.menu-laterale a:hover {
  color: white;
  transform: translateX(5px);
}

.candidatura {
  max-width: 60%;
  margin-bottom: 50px;
}

.titolo{
  font-weight: bold;
  color: #ebebeb;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #000;
  color: white;
  font-size: 13px;
  text-align: center;
  padding: 10px 20px;
  z-index: 9999;
  border-top: 1px solid #444;
}

.cookie-banner a {
  color: #ccc;
  text-decoration: underline;
  margin-left: 5px;
}

.cookie-banner a:hover {
  color: #fff;
}

.cookie-banner.hidden {
  display: none;
}


.toast {
  position: fixed;
  top: 30px;
  right: 50%;
  background-color: #5f5fcf;
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  transform: translateY(20px);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  display: none;
}

.start{
  width: 90px;
  height: 90px;
  object-fit: contain;
  padding:0 10px;
  border-radius: 20px;
}

.soci-benefici, .assemblea-soci, .diventare-socio{
  padding: 70px 100px;
}

.custom-marker {
  background-color: #2196f3;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  border: 2px solid white;
  box-shadow: 0 0 3px #555;
  position: relative;
}

.custom-marker::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #2196f3;
}

/* Griglia contenitore */
.row-servizi-diurni {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-inline: auto;
  max-width: 1600px;
   font-family: 'Poppins', sans-serif;
}

/* Card singola */
.card-diurno {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: #fcfcfc;
  border: 2px solid #3b98e5;
  padding: 20px;
  max-width: 300px;
  min-height: 538px;
  width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.card-diurno:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 6px solid #3b98e5;
}

/* Colonna sinistra */
.card-diurno-left {
  flex: 1;
  text-align: left;
}

.card-diurno-left h3 {
  margin-top: 0;
  font-size: 24px;
  line-height: 1.1;
  color: #000000;
  text-align: left;
}

.card-diurno-subtitle {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  text-align: left;
    margin-bottom: 20px;
}

.card-diurno-left p {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}


/* Colonna destra con immagine */
.card-diurno-right {
  flex-shrink: 0;
  max-width: 100%;
  display: flex;
  align-items: left;
}

.card-diurno-right img {
  max-width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.servizio-singolo {
  padding: 60px 100px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  font-family: 'Poppins', sans-serif;
}

.contenuto-servizio {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.immagine-principale {
    position: relative;
  top: auto;
  overflow-x: hidden;  
  align-self: flex-start;
  flex: 1;
  min-width: 250px;
}

.immagine-principale img {
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.galleria-foto-wrapper {
  position: relative;
  margin-top: 20px;
  display: flex;
  min-width: max-content;
  justify-content: center;
  overflow-x: hidden;
}

.galleria-foto {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.galleria-foto img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s;
}

.galleria-foto img:hover {
  transform: scale(1.05);
}

.galleria-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.galleria-controls button {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  pointer-events: all;
  transition: background-color 0.3s;
  z-index: 10;
}

.footer-container a:hover{
	text-decoration: underline;
}

.galleria-controls button:hover {
  background-color: #eee;
}

.testo-servizio {
  height: 750px;
  flex: 1;
  max-width: 800px;
  line-height: 1.2;
  padding-left: 50px;
	overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: smooth;
  padding-right: 15px;
scrollbar-width: thin;
  scrollbar-color: var(--scroll-color) transparent;
}

.testo-servizio::-webkit-scrollbar {
  width: 8px;
}

.testo-servizio::-webkit-scrollbar-track {
  background: transparent;
}

.testo-servizio::-webkit-scrollbar-thumb {
  background-color: var(--scroll-color);
  border-radius: 6px;
}

.testo-servizio h2 {
  font-weight: 900;
  font-size: 70px;
  flex-wrap: wrap;
  margin: 0;
}

.testo-servizio h2 span {
  color: #333;
  font-weight: normal;
  font-size: 23px;
}

.big{
  font-size: 28px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 16px;
}

.testo-servizio p {
  font-size: 21px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 16px;
}

.testo-servizio ul{
	font-size: 21px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
}

.carousel-image2 {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image2.visible {
  opacity: 1;
}


.orari-equipe {
  display: flex;
  margin-top: 35px;
  gap: 80px; 
}

.equipe{
  margin-left:auto;
}

.orari-equipe div,
.contatti-servizio p,
.info-servizio p {
  font-size: 21px;
  line-height: 1.6;
}

@media screen and (max-width: 850px) {

    .colonna-unica2 h3 { 
    font-size: clamp(1.5rem, 10vw, 2.5rem) !important;
}

  .orari-equipe {
    flex-direction: column;
  }

  .galleria-foto img {
    max-width: 90px;
    max-height: 60px;
  }

  .testo-servizio h2 {
    font-size: 40px;
  }

  .testo-servizio h2 span {
    font-size: 18px;
  }

  .immagine-principale {
    z-index: 1;
	 max-width:100%;
	  min-width:300px;
  }
} 

/* Effetto animazione (opzionale) */
.galleria-foto {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 40px; /* padding interno per lasciare spazio alle frecce */
  max-width: 100%;
}

.galleria-visibile {
  opacity: 1;
  transform: translateY(0);
}

#map{
	height: 500px; 
	width: 100%; 
	max-width: 1500px;
}

.dyn{
  width: 100%; 
  max-width: 700px; 
  min-width: 600px;
}

@media screen and (max-width: 768px) {
  .card-diurno {
    flex-direction: column;
    align-items: center;
  }

  .card-diurno-right {
    max-width: 100%;
  }

  .card-diurno-left h3 {
    text-align: center;
  }

  .dyn{
    max-width: 300px;
	 min-width:250px;
  }
  
} 



@media (max-width: 1790px) {

  #trapezio-right{
      top:0;
      padding-bottom: 100px;
      height: max-content;
    }
}

@media (max-width: 1404px) {

  .testo-servizio h2 {
    font-size: 58px;
  }
	
	.notizia-wrapper{
		gap:0px;
		justify-content:center;
	}
	
	.notizia-main{
		max-width:80%;
		margin:0 auto;
	}

  .notizia-sidebar, .menu-laterale, .notizia-sidebar-box{
    display: none;
  }

  .footer-container {
    gap:150px;
  }

    .row-servizi-diurni{
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

}
@media (max-width: 1400px) {

  .orari-equipe{
    gap: 40px;
  }
  
  .equipe {
    margin-right:30px;
  }
}

@media (max-width: 1180px) {

.big{
  font-size: 22px;
}

  .form-box{
    flex-direction: column;
  }
.grid-left{
    display: none;
  }

  .contenuto-servizio {
    flex-direction: column;
  }

  .testo-servizio{
        margin-top: 50px;
        max-width: 100%;
        width:100%;
        padding:0px
  }

  .testo-servizio h2{
    text-align:center;
    font-size: clamp(2.2em, 6vw,3.5em);

  }

.bacheca-lavoro{
  grid-template-columns: repeat(2, 1fr); /* 2 colonne */
}

.news-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonne */
    padding: 20px;
  }

  .trapezio-content, .trapezio-rtext, .trapezio-left-content {
    margin-left: 5%;
    padding-left: 20px;
  }

  .servizi-section {
    gap: 50px;
  }
  
  .card-left p {
    font-size: 16px;
  }

  .servizi-card {
    flex-direction: column;
    max-width: 100%;
  }


  .carousel-content blockquote {
    font-size: 36px;
    padding: 0 20px;
  }

  .trapezio-content h2, .trapezio-left-content h2 {
    font-size: 48px;
  }

  .partner-track {
    gap: 100px;
  }

  .footer-container {
    gap: 120px;
    justify-content: center;
  }

.logo-col img{
  min-width: 250px;
  max-width: 300px;
}

  .footer-column h4 {
    font-size: 22px;
  }

  .footer-column p {
    font-size: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
  }

  .footer-bottom a {
    font-size: 22px;
    min-width: max-content;
  }

   .footer-bottom a:first-child {
    color: rgb(49, 48, 48);
    font-size: 18px;
  }

}

@media (max-width: 900px) {

  .equipe {
    margin-right: 0;
    margin-left: 0;
  }

  .orari-equipe {
    flex-direction: column;
    gap: 40px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-column {
    justify-content: center;
    align-items: center;
  }

  .footer-column p {
    font-size: 21px;
  }

  .footer-bottom {
    flex-direction: column;
    font-size: 12px;
    padding-top: 20px;
  }

  .footer-bottom a {
    font-size: 18px;
  }

  .footer-bottom p{
    font-size: 17px;
  }

}

@media (max-width: 720px) {

.form-box{
  gap: 20px;
}
	
		.galleria-controls{
		display:none;
	}
	

  .contatti-col.mappa{
  min-width: 300px;
  max-height: 300px;
  
}

  .bacheca-lavoro{
  grid-template-columns: repeat(1, 1fr); /* 2 colonne */
}

  .carousel-button {
    padding: 10px 20px;
    font-size: 12px;
  }

  .progetti-title {
    font-size: 36px;
  }

  .partner-track img {
    width: 160px;
    height: auto;
  }

  .news-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 1124px) {

  .card-right{
    max-height: 300px;
    width: auto;
    overflow: hidden;
    object-fit: contain;
  }


.assemblea-soci,.soci-benefici{
  flex-direction: column;
}

.colonna-sinistra3{
  padding: 0px 60px;
  display: flex;
  gap:0px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.row-align2{
  flex-direction: column;
  gap:20px;
}
  

  .colonna-destra h2:first-of-type {
    font-size: 50px ;
  }

  .colonna-destra{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .row-align {
    justify-content: center;
    align-items: center;
    max-width: 650px;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
  }

   .chi-siamo-content {
    align-items: center;
    justify-content: center;
  }



.colonna-unica h3:first-of-type {
    margin-top: 60px !important;
    font-size: 50px !important;
  }

  .colonna-unica h3{
    margin-top: 60px !important;
    font-size: 25px !important;
  }

  .colonna-unica h2 {
    margin-top: 60px !important;
    font-size: 25px !important;
  }

.box-pulsanti{
  display: flex;
  flex-direction: column;
}

.fine-sanitari{
    text-align: center;
  }

  #header-top nav {
    flex-direction: row;
    gap: 10px;
  }

  nav ul {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  #header-top nav > ul > li {
    padding: 10px;
    font-size: 16px;
  }

  .submenu {
    position: static;
    min-width: 200px;
    border: none;
    background-color: #333;
  }

  .submenu li {
    font-size: 14px;
    padding: 8px;
  }
}

@media (max-width: 600px) {


.trapezio-button{
  text-align: center;
}

.pdf-list {
  flex-direction: column;
  align-items: center;
  gap:20px;
  margin-top: 30px;
}

}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-right: auto;
}

.hamburger span {
  height: 4px;
  width: 40px;
  background: #fff;
  margin: 4px 0;
  display: block;
}

.menu-mobile {
  display: none;
  flex-direction: column;
  background-color: #333;
  position: absolute;
  top: 70px;
  right: 10px;
  width: 200px;
  z-index: 1000;
}

.menu-mobile li {
  padding: 10px;
  border-bottom: 1px solid #444;
}

.menu-mobile li a {
  color: white;
  text-decoration: none;
}

@media (max-width: 1300px) {
  .menu-left,
  .menu-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo_menu {
    min-width: 150px;
  }

  #header-top nav {
    padding: 10px;
  }

  #logo {
    margin: 10px auto;
  }

  .menu-left, .menu-right {
    flex-direction:row;
    gap: 5px;
  }

  #header-top nav > ul > li {
    font-size: 14px;
  }

  .submenu {
    font-size: 12px;
  }
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3d3d3d;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.menu-overlay.active {
  display: flex;
}

.close-btn {
  color: white;
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
  font-size: 40px;
  transition: color 0.5s;
}

.menu-overlay li{
    width:100%;
}

.close-btn:hover {
  color: rgb(159,1,250);
}

.menu-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
}

.overlay-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap:10px;
  width: max-content;
  align-items: flex-start;
}

.overlay-menu li {
  padding: 15px;
  font-size: 22px;
  position: relative;
  padding-bottom: 20px;
  text-align: left;
  border-bottom: 1px solid rgb(159,1,250);
}

/* Contenitore: resta nascosto ma pronto all'effetto */
.submenu-overlay {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: max-height 0.7s ease, opacity 0.7s ease, transform 0.7s ease;
}

@media (min-width: 1225px) {
  .has-submenu:hover .submenu-overlay {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.toggle-sub::after {
  content: '\203A';
  font-family: 'Arial', 'Helvetica', sans-serif; /* forza font senza emoji */
  margin-left: 8px;
  font-size: 1.5em;
}

.toggle-sub {
  display: inline-block;
  margin-left: 8px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}


.has-submenu.open .toggle-sub::after {
  content: '\25BE';
  font-family: 'Arial', 'Helvetica', sans-serif;
  color: rgb(159,1,250);
  font-size: 1.8em;
}

.menu-overlay .submenu-overlay {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.7s ease;
  pointer-events: none;
}

.menu-overlay .has-submenu.open .submenu-overlay {
  max-height: 370px;
  opacity: 1;
  pointer-events: auto;
}


.submenu-overlay li:first-child{
  margin-top: 30px;
}



/* Effetto a scalino sui singoli <li> */
.submenu-overlay li {
  opacity: 0;
  border: none;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Anima i <li> solo quando visibili */
.has-submenu:hover .submenu-overlay li {
  opacity: 1;
  transform: translateY(0);
}

/* Ritardo graduale (scalino) */
.submenu-overlay li:nth-child(1) { transition-delay: 0.05s; }
.submenu-overlay li:nth-child(2) { transition-delay: 0.10s; }
.submenu-overlay li:nth-child(3) { transition-delay: 0.15s; }
.submenu-overlay li:nth-child(4) { transition-delay: 0.20s; }
.submenu-overlay li:nth-child(5) { transition-delay: 0.25s; }
.submenu-overlay li:nth-child(6) { transition-delay: 0.30s; }


.has-submenu.open .submenu-overlay {
  display: block;
}

.has-submenu{
  font-size: 25px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.overlay-menu li a {
  font-size: 25px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.overlay-menu li a:hover {
  color: rgb(159,1,250);
}

.submenu-overlay li a{
  font-size: 18px;
}

.main-link, .toggle-sub, .toggle-sub::after{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.main-link.active a {
  color: rgb(159,1,250);
}

.titolo-amministrazione{
  font-size: 70px;
}

/* Mostra il sottomenu quando si passa il mouse sopra la voce principale */
@media (min-width: 1025px) {
  .has-submenu:hover .submenu-overlay {
    display: block;
  }
}



#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 50px;
  z-index: 1000;
  background-color: #7a2ca1;
  color: white;
  border: none;
  padding: 0;
  font-size: 35px;
  cursor: pointer;
  display: none; /* nascosto all’inizio */
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
  aspect-ratio: 1 / 1;
  width: 70px;
  height: auto;
  min-height: 40px;
  max-width: 70px;
  max-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTopBtn:hover {
  background-color: #561f7d;
}

@media screen and (max-width: 460px) {

  .sottotitolo{
    font-size: 34px;
  }

.candidatura .row-align2 .colonna-unica h3:first-of-type {
        margin-top: 60px !important;
        font-size: 33px !important;
    }
	
  .carousel-track {
    animation: none !important;
	  display:flex;
	  justify-content:center;
    gap: 0 !important;
    transform: none !important;
  }

  .carousel-track img {
    display: block;
    max-width:300px;
	min-width:200px;
	height:auto;
    object-fit: cover;
  }
  
  .chi-siamo-content h2 {
    font-size: 1.0rem;
    line-height: 1.2;
  }

	.galleria-foto{
		padding:10px;
	}

  #map{
    width: 280px;
    height: 280px;
  }

  .chi-siamo-content h3 {
    font-size: 1.3rem;
    margin-top: 10px;
  }

  .chi-siamo-content p,
  .chi-siamo-content ul,
  .chi-siamo-content li {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .claim {
    font-size: 3rem;
    line-height: 1.2;
  }

  .evidenziato {
    font-size: 0.90rem;
  }

  .trapezio-button {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .row-align,
  .row-align2 {
	width:94%;
    flex-direction: column;
    gap: 20px;
  }

  .colonna-sinistra,
  .colonna-destra,
  .colonna-sinistra2,
  .colonna-destra2,
  .colonna-sinistra3,
  .colonna-sinistra4,
  .colonna-unica, .colonna-unica2 {
    width: 96%;
  }

  .logo-coress,
  .logo-sai {
    max-width: 80%;
    height: auto;
  }

  .footer-bottom a{
    font-size: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.9rem;
  }

.colonna-unica, .colonna-unica2{
  padding: 0 20px;
  }

  .colonna-unica h3 {
    font-size: 1.2rem;
  }

  .soci-benefici, .assemblea-soci, .diventare-socio{
    padding: 70px 20px;
  }

  .contatti-info{
    padding:80px 20px;
  }
  .contatti-col p{
    color:#000;
  }

  .form-candidatura{
    padding: 30px 40px;
  }
	
	.trapezio-rtext p{
		text-align:left;
	}

  .testo-welfare{
    padding: 0 30px;
  }

  .servizio-singolo {
    padding: 20px;
  }

}

@media (max-width: 768px) {
      .progetti-cards-section {
        padding: 40px 20px;
      }
	.progetto-info2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 0;
  transition: height 0.4s ease;
}

.progetto-info2 > * {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.progetto-content:hover .progetto-info2::before {
  height: 100%;
}

      .progetto-content {
        flex-direction: column;
        min-height: auto;
      }

      .progetto-logo {
        flex: none;
        padding: 30px;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
      }

      .progetto-content.nirvana .progetto-logo {
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
      }

      .progetto-info2 {
        padding: 30px 20px;
      }

      .progetto-info2 h2 {
        font-size: 36px;
      }

      .progetto-info2 p {
        font-size: 16px;
      }
    }

    @media (max-width: 480px) {
      .progetti-intro .colonna-unica h3 {
        font-size: 50px !important;
      }

      .progetti-intro .colonna-unica {
        padding: 0 20px;
      }

      .progetto-info2 h2 {
        font-size: 28px;
      }

      .progetto-info2 p {
        font-size: 14px;
      }
    }

@media screen and (max-width: 460px) {
  .colonna-unica h4 {
    font-size: 37px !important;
  }

}

    .retour-main {
  font-family: 'Poppins', sans-serif;
  color: #000;
}

.retour-top {
  display: flex;
  position: relative;
  padding: 4rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  background-color: white;
}

.freccia {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 100px;
  opacity: 0.8;
}
.freccia.sinistra {
  top:120px;
  left: -400px;
}
.freccia.destra {
    top:150px;
  right: -150px;
  margin-right: auto;
}
.freccia img {
  width: 100%;
  min-width: 600px;
  max-width: 800px;
  height: auto;
}

.freccia2 img {
  width: 100%;
  min-width: 550px;
  max-width: 800px;
	height:3800px;
}

.intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 3rem 2rem;
    z-index: 3;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-left {
    flex: 1 1 60%;
    min-width: 400px;
}

.intro-right {
    flex: 1 1 180px;
    margin-left: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.intro-right2 {
    flex: 1 1 300px;
    margin-left: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.logo-fuorinorma {
    max-width: 100%;
    width: 250px;
}

.logo-retour2 {
    max-width: 100%;
    width: 180px;
}

.title-retour {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    margin-top: 0;
}

.claim2 {
    color: #e3492b;
    font-style: italic;
    margin-left: 0.7rem;
    font-size: 4rem;
    font-weight: 200;
}

.colori {
    font-size: clamp(2rem, 4vw, 4rem);
    font-style: italic;
    text-align: right;
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.descrizione,.parag {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    text-align: left;
    z-index: 5;
}

.bottoni {
    margin-top: 3rem;
}

.card-diurno-left .intro-card {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* numero di righe visibili */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 9em; /* fallback per browser vecchi */
  line-height: 1.5em;
}

.intro-card p:not(:first-child) {
  display: none;
}

.intro-card ul {
  display: none;
}


.btn {
    display: inline-block;
    padding: 1.2rem 2.2rem;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    margin-right: 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}
.orange {
    background-color: #f15b05;
}
.outlined {
    border: 3px solid #f15b05;
    color: #f15b05;
    background-color: transparent;
}

.citazione {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 80px;
}

.contenitore {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  z-index: 1000;
}

.citazione p:first-of-type{
  font-size: 3.1rem;
    font-weight: bold;
    font-style: italic;
    font-family: 'Helvetica Neue', sans-serif;
  color: #1b1b1b;
  margin: 0;
}

.citazione p:last-of-type {
  font-size: 1.6rem;
  color: #1b1b1b;
  margin-top: 0.5rem;
  text-align: right;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
}
.gallery .row {
  display: flex;
    z-index: 3;
  flex-direction: column;
  gap: 1rem;
}
.gallery img {
  width: 100%;
  max-width: 720px;
  border-radius: 5px;
}

.categorie {
    margin-top: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  margin-bottom: 150px;
  font-size: 1.4rem;
}

.categorie .box {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 1rem;
  background-color: #ffffff;
  z-index: 3;
  padding-bottom: 50px;
}

.categorie img {
    width: 160px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    transition: width 0.3s;
}

.retour-button {
    position: relative;
    display: inline-block;
    padding: 14px 75px;
    font-size: 20px;
    max-width: fit-content;
    height: max-content;
    font-weight: bold;
    border: 1px solid #ff3f05;
    background-color: transparent;
    color: #ff3f05;
    text-decoration: none;
    line-height: 1.2;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease;
  }
  
  .retour-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #ff3f05;
    z-index: -1;
    transition: width 0.4s ease;
  }

  .retour-button:hover {
    color: white;
  }
  
  .retour-button:hover::before {
    width: 100%;
  }
  
  .retour-button span {
    position: relative;
    z-index: 1;
  }

/* RESPONSIVE STYLES - TABLET */
@media screen and (max-width: 1024px) {
  .freccia.sinistra {
    left: -500px;
  }
  .freccia.destra {
    right: 0px;
  }
  
  .intro {
    padding: 2rem 1rem;
  }
  
  .intro-left {
    min-width: 300px;
  }
  
  .intro-right {
    margin-left: 30px;
  }
  
  .title-retour {
    font-size: 3.5rem;
  }
  
  .claim2 {
    font-size: 3rem;
  }
  
  .descrizione, .parag {
    font-size: 1.4rem;
  }
  
  .citazione p:first-of-type {
    font-size: 2.5rem;
  }
  
  .categorie {
    margin-top: 80px;
    margin-bottom: 120px;
  }
}

/* RESPONSIVE STYLES - MOBILE */
@media screen and (max-width: 768px) {
  .retour-top {
    padding: 2rem 1rem;
  }
  
  .freccia {
    display: none; /* Nascondi le frecce su mobile */
  }
  
  .intro {
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    text-align: center;
  }
  
  .intro-left {
    flex: 1;
    min-width: auto;
  }
  
  .intro-right {
    flex: 1 ;
    margin-left: 0;
    margin-bottom: 2rem;
  }
  
  .colori {
    text-align: center;
    margin: 0 auto 2rem auto;
    flex-direction: row;
    gap: 0.5rem;
    font-size: 2rem;
  }
  
  .title-retour {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .claim2 {
    font-size: 2rem;
    margin-left: 0;
    display: block;
    margin-top: 0.5rem;
  }
  
  .descrizione, .parag {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .row-align2 {
    flex-direction: column;
    align-items: center;
    gap: 1rem !important;
  }
  
  .retour-button {
    min-width: 250px !important;
    text-align: center;
    font-size: 16px;
    padding: 12px 20px;
  }
  
  .citazione {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 1rem;
  }
  
  .citazione p:first-of-type {
    font-size: 2rem;
    text-align: center;
  }
  
  .citazione p:last-of-type {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .gallery {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  
  .gallery .row {
    width: 100%;
    max-width: 500px;
  }
  
  .gallery img {
    max-width: 100%;
  }
  
  .categorie {
    margin-top: 50px;
    margin-bottom: 80px;
    gap: 1rem;
  }
  
  .categorie .box {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 1rem;
  }
  
  .contenitore {
    padding: 0 1rem;
  }
}

/* RESPONSIVE STYLES - SMALL MOBILE */
@media screen and (max-width: 480px) {
  .retour-top {
    padding: 1rem 0.5rem;
  }
  
  .intro {
    padding: 0.5rem;
  }
  
  .title-retour {
    font-size: 2rem;
  }
  
  .claim2 {
    font-size: 1.5rem;
  }
  
  .colori {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  .descrizione, .parag {
    font-size: 1.1rem;
  }
  
  .retour-button {
    min-width: 200px !important;
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .citazione p:first-of-type {
    font-size: 1.6rem;
  }
  
  .citazione p:last-of-type {
    font-size: 1.1rem;
  }
  
  .categorie .box {
    margin: 0 0.5rem;
    padding: 0.8rem;
  }
  
  .categorie img {
    width: 120px;
  }
  
  .categorie h3 {
    font-size: 1.1rem;
  }
  
  .categorie p {
    font-size: 0.9rem;
  }
}


.riquadro-immagini {
  padding: clamp(20px, 5vw, 30px);
  margin: clamp(30px, 8vw, 70px) 0;
  border-radius: 10px;
}

.griglia-immagini {
  display: grid;  
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: clamp(15px, 3vw, 20px);
}

.griglia-immagini img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.griglia-immagini img:hover {
  transform: scale(1.05);
}

/* Liste */
.elenco-puntato {
  list-style-type: circle;
  padding-left: 1.5em;
  margin-left: clamp(10px, 3vw, 3.2vw);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 20px;
}

.elenco-puntato2 {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-left: clamp(10px, 2vw, 2vw);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: clamp(50px, 15vw, 150px);
}

.elenco-puntato li,
.elenco-puntato2 li {
  margin-bottom: 8px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* Frecce decorative */
.freccia2 {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 100px;
  opacity: 0.8;
}

.freccia2.sinistra2 {
  top: 150px;
  left: -150px;
}

.freccia2.destra2 {
  top: 0px;
  right: -70px;
}

@media screen and (max-width: 1500px) {
  .freccia2.sinistra2 {
    opacity: 0.6;
    left: -250px;
  }
  
  .freccia2.destra2 {
    opacity: 0.6;
    right: 100px;
  }
}

@media screen and (max-width: 1024px) {
  .freccia2.sinistra2 {
    left: -300px;
  }
  
  .freccia2.destra2 {
    right: 150px;
  }
}

@media screen and (max-width: 768px) {
  
  .freccia2 {
    display: none; /* Nascondi le frecce su mobile */
  }

  .elenco-puntato{
    text-align: left;
  }

  .logo-fuorinorma {
    max-width: 150px;
  }
  
  .griglia-immagini {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }
  
  .griglia-immagini img {
    height: 180px;
  }
  
  .riquadro-immagini {
    margin: 40px 0;
  }
}
@media screen and (max-width: 480px) {
  
  .griglia-immagini {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    gap: 15px;
  }
  
  .griglia-immagini img {
    height: 200px;
  }
  
  .elenco-puntato,
  .elenco-puntato2 {
    margin-left: 15px;
    padding-left: 1em;
  }
  
  .riquadro-immagini {
    padding: 15px;
    margin: 30px 0;
  }
}
@media screen and (max-width: 320px) {
  
  .griglia-immagini img {
    height: 150px;
  }
  
  .logo-fuorinorma {
    max-width: 120px;
  }
}

@media screen and (max-width:1000px) {
	.colonna-sinistra{
		flex-direction: column;
	}
	
	#chi-siamo-cols{
		flex-direction:row;
	}
}

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .sezione-autismo,
  .sezione-sanitari,
	.sezione-occupazionali,
	.sezione-terzaeta{
    padding: 40px 60px;
    gap: 40px;
  }
  

  .contenuto-autismo,
  .contenuto-sanitari {
    gap: 30px;
  }
  
  .box-servizio {
    font-size: 17px;
    padding-top: 30px;
  }
}

/* Tablet piccolo (481px - 768px) */
@media screen and (max-width: 768px) {
 .sezione-autismo,
  .sezione-sanitari,
	.sezione-occupazionali,
	.sezione-terzaeta {
    padding: 30px 40px;
    gap: 30px;
    margin-top: 60px;
  }
  
  .contenuto-autismo,
  .contenuto-sanitari {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  
  .testo-autismo,
  .testo-sanitari,
  .immagine-autismo,
  .immagine-sanitari,
	.immagine-occupazionali{
    flex: none;
    width: 100%;
    min-width: auto;
  }
  

  .box-servizio {
    font-size: 16px;
    padding-top: 25px;
  }


}

/* Mobile (320px - 480px) */
@media screen and (max-width: 480px) {
  .sezione-autismo,
  .sezione-sanitari {
    padding: 20px 15px;
    gap: 20px;
    margin-top: 40px;
  }
  
  .contenuto-autismo,
  .contenuto-sanitari {
    gap: 20px;
  }
  
  .testo-autismo h2,
  .testo-sanitari h2,
.testo-occupazionali h2{
    font-size: 30px;
    margin-bottom: 15px;
  }
  
  .testo-autismo p,
  .testo-sanitari p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  
  .box-servizio {
    font-size: 15px;
    padding-top: 20px;
  }
  
  .box-servizio h4 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  

}
@media screen and (max-width:400px){
.main-link, .toggle-sub, .toggle-sub::after, .overlay-menu li {
	justify-content:center;
}
/* Mobile molto piccolo (max 320px) */
@media screen and (max-width: 320px) {
  .sezione-autismo,
  .sezione-sanitari {
    padding: 15px 10px;
  }
  
  .testo-autismo h2,
  .testo-sanitari h2 {
    font-size: 22px;
  }
  
  .testo-autismo p,
  .testo-sanitari p {
    font-size: 14px;
  }
  
  .box-servizio {
    font-size: 14px;
  }
  
  .box-servizio h4 {
    font-size: 16px;
  }
  

  
  .aut-button,
  .socA-button {
    padding: 8px 20px;
    font-size: 14px;
  }
}


/* Assicura che le immagini siano sempre responsive */
.immagine-autismo img,
.immagine-sanitari img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Migliora la leggibilità dei testi */
.testo-autismo p,
.testo-sanitari p,
.box-servizio p {
  text-align: justify;
  hyphens: auto;
}

