* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
    scroll-padding-top: 60px;
}

body {
  font-family: sans-serif;
  background-color: #f5f5f5;
  scroll-behavior: smooth;

}
/* DESKTOP: mostra menu classico, nascondi dropdown */
.desktop-menu {
  display: flex;
}

.mobile-dropdown {
  display: none;
}
header {
  position: sticky;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  color: #000000;
  padding: 0 40px;
  font-size: 16px;
  z-index: 1000;
}
.header-left {
  width: 20%; 
  text-align: left; 
  height: 40px;
  padding-left: 5px;
}

.header-logo {
  background-image: url("asset/immagini/logo_adp.webp");
  background-size: contain; /* o cover */
  background-repeat: no-repeat;
  background-position: start;
  height: 40px;
  width: 100%;
}

.header-center { 
  width: 60%; 
  display: flex;
   }
.header-right { 
  width: 20%; 
  text-align: right; 
  cursor: pointer;
  font-size: 20px;
  padding-right: 5px;
 }


.header-argomenti {
  display: flex;
  align-items: start;
  width: 100%;
}

.header-argomento {
  cursor: pointer;
  padding: 5px 10px;
  transition: background 0.2s;
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  flex: 1; /* tutti uguali */
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0; /* importante per il flexbox */
}
.header-argomento span:hover {
  background-color: #555;

}

/* Dropdown mobile */
.mobile-dropdown {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.dropdown-toggle {
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 40px;
  width: 120%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-item {
  padding: 12px;
  text-align: center;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}


.sezione {
  padding-top: 80px;
  padding-left: 40px;
  padding-right: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.sez-piccola{
  height:700px;
}
.sez-media{
    height:800px;
}
.sez-intermedia{
    height:1100px;
}

.sez-grande{
    height:1200px;
}

.hero-image-container {
  width: 95%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  margin-top: 40px;
  max-height: 20%;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: flex;
  transition: filter 0.5s ease;
  background-image: url("asset/immagini/main1.webp");
    background-repeat: no-repeat;
      background-size: cover; 
  background-position: center;   
}
.hero-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 5rem;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  width: 80%;
  margin: 0;
}

.hero-img-wrapper:has(.hero-text:hover) .hero-img {
  filter: blur(5px) brightness(70%);
}


.text-plain-father {
  display: flex;
  gap: 0px 120px;
  padding: 80px 0px;
}
.text-plain-children {
  flex: 1;
  text-align: left;
  line-height: 1.6;
  font-size: 24px;
  font-family: 'DM Sans', sans-serif;
}

.bullet-point {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;    
  align-items: center;  
  gap: 20px;                    
  padding: 40px;   
  background-image: url("asset/immagini/main2.webp");
  background-size: cover;
  background-position: center;
  height: 100%;
}
.bullet-element {
  width: 60%;             
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  white-space: nowrap; 
  overflow: hidden;         
  text-overflow: ellipsis; 
  padding: 0 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  background-color: #c6634d;
  opacity: 85%;
  font-size: 20px;
}


.contacts-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}
.contacts-text {
  flex: 1;
}
.contacts-image {
  flex: 0 0 400px;
}
.contacts-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

footer {
  position: relative;
  bottom: 0;
  height: 60px;  /* stessa altezza dell'header */
  display: flex;
  align-items: center;
  background-color: #ffffff;
  color: #000000;
  padding: 0 40px;
  font-size: 16px;
  z-index: 1000;
}

.footer-left {
  width: 20%;
  text-align: left;
  height: 40px;
  padding-left: 5px;
}

.footer-left p {
  margin: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.footer-center {
  width: 60%;
  display: flex;
  justify-content: start;
}

.footer-right {
  width: 20%;
  text-align: right;
  padding-right: 5px;
}

.footer-info {
  display: flex;
  width: 100%;
}

.footer-info p {
  cursor: pointer;
  padding: 5px 10px;
  transition: background 0.2s;
  font-size: 18px;  /* leggermente più piccolo dell'header per adattarsi */
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: start;
}

.icons {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #000000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon i {
  color: #ffffff;
  font-size: 16px;
}

.social-icon:hover {
  background-color: #333333;
  transform: scale(1.1);
}


.mobile-dropdown {
  display: none;
}

/* RESPONSIVE CSS - Aggiungi alla fine del tuo style.css */

@media screen and (max-width: 800px) {
    header {
    padding: 10px 15px;
    height: auto;
    min-height: 40px;
    flex-wrap: wrap;
  }
  
  .header-left {
    width: 33%;
    text-align: left;
    padding-left: 0;
    order: 1;
  }
  
  .header-right {
    width: 33%;
    text-align: right;
    padding-right: 0;
    order: 3;
    font-size: 16px;
  }
  
  .header-center {
    width: 33%;
    order: 2;
  }
  
  .header-argomenti {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }
  
  .header-argomento {
    font-size: 14px;
    padding: 8px 5px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .header-argomento:hover {
    background-color: #e0e0e0;
  }

  /* Sezioni */
  .sezione {
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .sez-piccola {
    height: 400px;
  }
  
  .sez-media {
    height: 500px;
  }
  
  .sez-intermedia {
    height: 800px;
  }
  
  .sez-grande {
    height: auto;
    min-height: 900px;
    padding-bottom: 60px;
  }
  
  /* Hero */
  .hero-text {
    font-size: 2rem;
    width: 95%;
    padding: 10px;
  }
  
  /* Testo */
  .text-plain-father {
    flex-direction: column;
    gap: 30px;
    padding: 40px 0px;
  }
  
  .text-plain-children {
    font-size: 18px;
    line-height: 1.5;
  }
  
  /* Bullet points */
  .bullet-point {
    padding: 20px;
    gap: 15px;
  }
  
  .bullet-element {
    width: 95%;
    font-size: 16px;
    white-space: normal;
    height: auto;
    min-height: 50px;
    padding: 10px 15px;
  }
  

  /* Slideshow Carousel */
  .slideshow-carousel-container {
    min-height: 300px;
  }
  
  .slideshow-descprition {
    font-size: 14px;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
  }
  
  /* Cards Carousel */
  .cards-carousel-container {
    margin-top: 20px;
  }
  
  .card-slide {
    flex: 0 0 85%;
  }
  
  .card-slide img {
    height: 200px;
  }
  
  .card-content {
    padding: 15px;
    font-size: 14px;
  }
  
  .card-content p {
    margin: 8px 0;
  }
  
  /* Dots */
  .slideshow-dots-container,
  .cards-dots-container {
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
  
  .slideshow-dot,
  .cards-dot {
    width: 8px;
    height: 8px;
  }
  
  /* Footer */
/* Footer - versione mobile verticale */
footer {
  display: flex;
  flex-direction: column;     /* tutto in verticale */
  align-items: center;        
  justify-content: center;    
  gap: 15px;                  
  height: auto;
  padding: 20px 15px;
  background-color: #ffffff;
  position: relative;
  bottom: 0;
  z-index: 1000;
}

.footer-left {
  width: 100%;               /* larghezza piena */
  text-align: center;        /* testo centrato */
  height: auto;
  padding-left: 0;
  order: 1;                  /* primo elemento */
}

.footer-left p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;   /* centrato */
  height: auto;
  font-size: 14px;
}

.footer-center {
  width: 100%;               /* larghezza piena */
  display: flex;
  justify-content: center;
  order: 2;                  /* secondo elemento */
}

.footer-info {
  display: flex;
  flex-direction: column;    /* informazioni in colonna */
  width: 100%;
  gap: 10px;                 /* spazio tra gli elementi */
  align-items: center;
}

.footer-info p {
  cursor: pointer;
  padding: 8px 12px;
  transition: background 0.2s;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  white-space: normal;       /* permette a capo */
  overflow: visible;
  text-overflow: clip;
  flex: none;                /* annulla il flex */
  text-align: center;
  width: auto;
  border-radius: 8px;
}

.footer-right {
  width: 100%;               /* larghezza piena */
  text-align: center;
  padding-right: 0;
  order: 3;                  /* terzo elemento */
}

.icons {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: auto;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #000000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon i {
  color: #ffffff;
  font-size: 16px;
}

.social-icon:hover {
  background-color: #333333;
  transform: scale(1.1);
}
.desktop-menu {
  display: none;
}

.mobile-dropdown {
  display: flex;
}

}

/* Mobile piccolo (max-width: 480px) */
@media screen and (max-width: 800px) {
  .sez-piccola {
    height: 350px;
  }
  
  .hero-text {
    font-size: 1.5rem;
  }
  
  .text-plain-children {
    font-size: 16px;
  }
  
  .bullet-element {
    font-size: 14px;
  }
  
  .slideshow-carousel-container {
    min-height: 250px;
  }
  
  .slideshow-descprition {
    font-size: 12px;
  }
  
  .card-slide {
    flex: 0 0 90%;
  }
  
  .card-content p:first-of-type {
    font-size: 13px;
  }
  
  .card-content p:last-of-type {
    font-size: 12px;
  }
  .desktop-menu {
  display: none;
}

.mobile-dropdown {
  display: flex;
}


}
