
/* Font e colori */
body {
  font-family: 'Quicksand', sans-serif;
  background: url('orchidea.png') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  color: #333;
}

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3em;
  color: #800080;
  text-align: center;
  margin: 20px 0 10px;
}

h2 {
  font-size: 2em;
  color: #800080;
  margin-top: 30px;
  text-align: center;
}

nav {
  background-color: #f5e6f7;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #800080;
  font-weight: bold;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  background-color: rgba(255,255,255,0.88);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 10px #ccc;
}

.evidenziato {
  background-color: rgba(230, 210, 255, 0.8);
  padding: 15px;
  border-left: 6px solid #cc99ff;
  border-right: 6px solid #cc99ff;
  margin: 15px 0;
  font-weight: bold;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #aaa;
  border-radius: 5px;
}

input[type="submit"] {
  background-color: #cc66cc;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 5px;
}

input[type="submit"]:hover {
  background-color: #993399;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  background-color: rgba(255, 255, 255, 0.7);
  margin-top: 30px;
}

.scroll-top-button {
  background-color: #cc99ff;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 6px;
}

.scroll-top-button:hover {
  background-color: #993399;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  text-align: center;
}

.gallery-grid img {
  border-radius: 10px;
  border: 4px solid #d3b2f0;
  max-height: 180px;
  object-fit: cover;
}

.gallery-grid a {
  color: #800080;
  font-weight: bold;
  text-decoration: none;
}

.galleria-dettaglio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.galleria-dettaglio img {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  border: 4px solid #d3b2f0;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid,
  .galleria-dettaglio {
    grid-template-columns: 1fr !important;
    flex-direction: column;
    align-items: center;
  }

  form {
    padding: 0 10px;
  }

  header {
    text-align: center;
  }
}


/* Titolo ben visibile e centrato */
.titolo {
  color: #4b0082;
  text-align: center;
  text-shadow: 2px 2px 4px #ffffff;
  padding: 20px 10px;
}


/* Contenitore trasparente sfumato per titolo */
.hero-header {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 5px;
  text-align: center;
  margin-bottom: 0;
  border-radius: 20px;
  box-shadow: 0 0 10px #ccc;
}
/* Testo titolo e sottotitolo */
.titolo {
  color: #4b0082;
  text-shadow: 1px 1px 2px #fff;
}

.sottotitolo {
  color: #5f0099;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 2px;
}


/* Spaziatura ravvicinata titolo e sottotitolo */
.hero-header h1 {
  margin-bottom: 5px;
}

.sottotitolo {
  margin-top: 0;
  font-size: 1em;
  line-height: 1.3;
}


/* Elimina spazio tra header e nav */
header {
  margin-bottom: 0;
  padding-bottom: 0;
}

nav {
  margin-top: 0;
}


/* Riduzione spaziatura titolo e sottotitolo */
.hero-header h1 {
  margin-bottom: 2px;
}

.sottotitolo {
  margin-top: 0;
  font-size: 1.1em;
  font-weight: bold;
}

.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.slide {
  display: none;
  text-align: center;
}


.slide img {
  max-width: 80%;
  max-height: 550px;
  height: auto;
  border-radius: 10px;
  border: 4px solid #d3b2f0;
  object-fit: contain;
  margin: auto;
  display: block;
}


.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  color: #800080;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s ease;
  user-select: none;
  border-radius: 0 3px 3px 0;
  background-color: rgba(255, 255, 255, 0.7);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: #cc99ff;
  color: white;
}


/* Sfondo con velo semitrasparente sopra l'immagine di sfondo */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.55);
  z-index: -1;
}


.slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding-top: 20px;
}

.slider {
  position: relative;
}

.arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  color: #800080;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  transition: 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.arrow:hover {
  background-color: #cc99ff;
  color: white;
}
