* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  width: 100%;
  height: 210px;
  background-color: white;
  flex-shrink: 0;
}

.logo {
  padding-top: 25px;
  padding-left: 35px;
}

.logo img {
  width: 80%;
  max-width: 250px;
  height: auto;
}

#intro {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

#intro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 50px; /* Aggiunto margine inferiore */
}

.responsive-main {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 30px; /* Aggiunto margine inferiore aggiuntivo */
}

.catalog-container, .priv {
  width: 100%;
  max-width: 1000px;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  margin-top: 10px;
  text-align: center;
}

h3 {
  margin-bottom: 15px;
  margin-top: 30px;
}

p {
  margin-bottom: 15px;
  line-height: 1.5;
}

ul {
  list-style: none;
  padding: 0;
}

.catalog-container ul {
  text-align: center;
}

.catalog-container p {
  text-align: center;
}

.catalog-container li {
  margin: 10px 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #ff47d7;
}

footer {
  background-color: black;
  width: 100%;
  padding: 1.5rem;
  flex-shrink: 0;
  margin-top: auto;
}

#pfooter {
  font-size: 18px;
  color: white;
  text-align: left;
  line-height: 1.7;
  margin-bottom: 10px;

}

#copy {
  padding-left: 20px;
  padding-top: 15px;
}

#cp {
  color: white;
  text-align: left;
  font-size: 14px;
  margin-top: 40px; /* Aumentato da 20px a 40px */
  padding-top: 40px; /* Aggiunto padding superiore */
  /* border-top: 1px solid rgba(255, 255, 255, 0.2);  Linea separatrice opzionale */
}

/* Media Queries */
  
@media (max-width: 600px) {
  .logo {
    padding-top: 25px;
    padding-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .logo img {
    width: 180px; /* Oppure usa un valore fisso come `180px` */
  }

  #cp {
    margin-top: 30px; /* Ridotto per mobile */
    padding-top: 15px; /* Ridotto per mobile */
    font-size: 0.9rem;
  }
}

/* Galleria */
#gallery-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

@media (max-width: 600px) {
  #gallery-container {
    height: 300px;
  }
}