/* --- IMPOSTAZIONI GLOBALI E VARIABILI --- */
:root {
  --primary-color: #2c3e50; /* Blu scuro/grigio */
  --secondary-color: #e8f1f2; /* Azzurro chiarissimo */
  --accent-color: #27ae60; /* VERDE NATURALE per coerenza con il logo */
  --white-color: #ffffff;
  --text-color: #34495e;
  --font-headings: "Playfair Display", serif;
  --font-body: "Montserrat", sans-serif;
  --font-size-h3: 1.5rem;
  --font-size-p: 1.1rem;
  --font-size-li: 1.07rem;
  --font-size-service-item-p: 1rem;
  --font-size-service-item-h3: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f9f9f9;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-headings);
  color: var(--primary-color);
  margin-bottom: 1rem;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.3;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: var(--font-size-h3);
}
li {
  font-size: var(--font-size-li);
}
/* Imposta un margine di scorrimento per compensare l'header sticky */
section {
  scroll-margin-top: 80px; /* altezza del tuo header */
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

p {
  margin-bottom: 1rem;
  font-size: var(--font-size-p);
}

/* --- BOTTONI (CTA) --- */
.cta-button {
  border: none;
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white-color);
  /* padding: 15px 30px; */
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
}
.cta-button:hover {
  background-color: #2ecc71;
}

.cta-button-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}
.cta-button-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* --- HEADER & LOGO --- */
.main-header {
  background: var(--white-color);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.main-header.trasparent {
  background-color: rgba(255, 255, 255, 0.9);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--primary-color);
}

.logo-svg {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: bold;
  font-size: 1.3rem;
}

/* --- HERO SECTION --- */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("img/foto/06_photo_2024-06-02_07-59-20.jpg") no-repeat center
      center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  padding: 0 20px;
}

.hero-content h1 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

.hero-content p {
  margin-bottom: 2rem;
}

/* --- SEZIONI CONTENUTO --- */
.welcome,
.services,
.gallery,
.location-highlights {
  padding: 4rem 0;
}

.services,
.gallery,
.availability-section {
  background-color: var(--white-color);
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

/* Griglia Servizi */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: center;
}

.service-item i {
  font-size: 2.5rem;
  color: var(--accent-color); /* Usa il colore verde */
  margin-bottom: 1rem;
}
.service-item h3 {
  font-size: var(--font-size-service-item-h3);
  line-height: 1.3;
}
.service-item p {
  font-size: var(--font-size-service-item-p);
}

/* --- POSIZIONE STRATEGICA --- */
.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}
.highlight-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.highlight-item h3 {
  margin-bottom: 0.5rem;
}
.highlight-item p,
.highlight-item ul {
  max-width: 350px; /* Imposta una larghezza massima per il testo */
  margin-left: auto; /* Centra automaticamente il blocco di testo */
  margin-right: auto; /* Centra automaticamente il blocco di testo */
}
.highlight-item ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.highlight-item ul li {
  margin-bottom: 0.25rem;
}

/* Galleria */
.gallery-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 30px;
  gap: 3rem;
}

.gallery-item {
  max-width: 300px;
  margin: 0 auto;
}

.gallery-item img {
  width: 100%; /* Assicura che l'immagine riempia il suo contenitore */
  height: auto;
  display: block;
  transition: transform 0.3s ease; /* Aggiunge una transizione fluida all'hover */
}

img {
  max-width: 100%;
  border-radius: 8px;
}

/* --- NUOVA SEZIONE CONTATTI MINIMALE --- */
.contact {
  padding: 4rem 0;
  text-align: center; /* Centra tutto il contenuto */
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr; /* Una colonna su mobile */
  gap: 3rem;
  margin-top: 3rem;
}

.contact-item .contact-icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  background-color: var(--accent-color);
  border-radius: 50%; /* Cerchio perfetto */
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--white-color);
  font-size: 2rem;
}
.contact-item .contact-icon-wrapper .icon-brands {
  font-size: 2.5rem;
}

.contact-item h3 {
  font-family: var(--font-body);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
}

.contact-item p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* --- FOOTER --- */
.main-footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 2rem 0;
  text-align: center;
}
.social-links a {
  color: var(--white-color);
  margin: 0 0.5rem;
  font-size: 1.2rem;
}
.main-footer .container p {
  margin-bottom: 0;
}

/* ================================================= */
/* --- STILE COMPLETO PER CALENDARIO E SEZIONE --- */
/* ================================================= */
.availability-wrapper {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
  margin-bottom: 30px;
}

.calendar-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.calendar {
  width: 350px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.calendar-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day-name {
  font-weight: bold;
  text-align: center;
}
.day {
  text-align: center;
  padding: 6px;
  border-radius: 6px;
}
.occupied {
  background-color: #d66868; /* colore rosso, modificabile */
  color: #fff;
}
.disabled {
  opacity: 0.4;
}

.availability-section {
  padding: 4rem 0.8rem;
  padding-bottom: 200px;
}

.header-cta {
  display: none;
}

/******************************************************
            GALLERY
*******************************************************/
.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Sfondo scuro e trasparente */
}

.gellery-modal-container {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.modal-content {
  margin: 20% auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

/* Frecce di navigazione */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
}

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

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover,
.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (min-width: 576px) {
  .gallery-grid {
    padding: 0;
    gap: 50px;
  }

  .header-cta {
    display: block;
  }

  .service-item h3 {
    font-size: 1.4rem;
  }
  .service-item p {
    font-size: 1.1rem;
  }

  .main-header .container {
    padding: 0 20px;
  }
}

/* --- MEDIA QUERY PER DESKTOP (Responsive) --- */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  /* .header-cta {
    display: block;
  } */

  .content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .section-intro {
    margin: 0 auto 5rem auto;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 2rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center; /* Allinea verticalmente gli elementi al centro */
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }

  .contact-details {
    grid-template-columns: repeat(3, 1fr); /* Tre colonne su desktop */
    gap: 1rem;
  }

  .description-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .description-content .cta-button {
    align-self: flex-start;
  }

  .availability-wrapper {
    flex-direction: row;
  }
}
