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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f5f5f5;
  min-height: 100px;
}

.header-left {
  flex: 1;
}

.logo img {
  height: 100px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-right nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120%;
  font-weight: 800;
}

.contact {
  display: flex;
  
  align-items: flex-start; /* se vuoi allineare orizzontalmente a destra */

  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  font-size: 120%;
  font-weight: 800;
}

.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}
.social-icons a {
  color: #333;
  font-size: 20px;
  text-decoration: none;
}
.social-icons a:hover {
  color: #007bff;
}

.btn-prenota {
  background: none;
  border: none;
  color: #007bff;
  font-weight: 600;
  font-size: 19.2px; /* stesso font size dei link */
  cursor: pointer;
  padding: 5px 10px;
  margin-left: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.btn-prenota:hover {
  text-decoration: underline;
}

section {
  padding: 60px 20px;
  min-height: 800px;
}

/** Sezione1: homepage sito ******************************************************** **/

#sezione1 {
  background-image: url("sfondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 800px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: white;
  padding-right: 40px;
}
#sezione1 h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1000%;
  font-weight: 300;
  line-height: 0.8;
  text-shadow: 1px 1px 4px black;
  text-align: right;
}
#sezione1 p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  text-align: right;
  text-shadow: 1px 1px 4px black;
}
#sezione1 .contenuto {
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 4px black;
}

/** Sezione house: presentazione casa *********************************************** **/
#section_house {
  background-color: #e0e0e0;
}
#richieste {
  background-color: #e0e0e0;
}    

#section_house h2{
  font-family: 'Cormorant Garamond', serif;
  font-size: 500%;
  font-weight: 300;
  line-height: 0.8;
  text-shadow: 1px 1px 4px black;
  text-align: left;
}
#section_house p{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: left;
}
.house-container {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  flex-wrap: wrap; /* Per layout responsive su schermi piccoli */
  border: solid 1px;
}
.house-text {
  flex: 1;
  min-width: 250px;
}
.house-text h5 {
  text-align: center;
}
.box-centrata {
  background-color: 	#4b0082;
  color: #fff;
  padding: 20px;
  text-align: center;
  margin: 20px auto;
  width: 300px;
  border-radius: 0px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.box-centrata a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  display: inline-block;
}

.box-centrata:hover {
  background-color: #444; /* Grigio scuro */
}

/** Sezione ambienti - cucina ***************************************************** **/
#section_ambienti {
  background-color: #fff;
}
#section_ambienti h2{
  font-family: 'Cormorant Garamond', serif;
  font-size: 500%;
  font-weight: 300;
  line-height: 0.8;
  text-shadow: 1px 1px 4px black;
  text-align: left;
}
#section_ambienti p{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.ambienti-riga {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* Centra i riquadri */
  margin-top: 30px;
}

.ambienti-cucina-container {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #ccc;
  padding: 15px;
  background-color: #f9f9f9;
  box-sizing: border-box;
  overflow: hidden; /* previene debordamenti */
}


.ambienti-cucina-text {
  flex: 1;
  min-width: 250px;
}
.ambienti-cucina-text h5{
  text-align: center;
}
.centrato {
  text-align: center;
}

#sub_sezione_cucina {
  background-color: #e0e0e0;
}
#sub_sezione_cucina h2{
  font-family: 'Cormorant Garamond', serif;
  font-size: 500%;
  font-weight: 300;
  line-height: 0.8;
  text-shadow: 1px 1px 4px black;
  text-align: left;
}
#sub_sezione_cucina p{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
}

/** ELEMENTI GRAFICI VARI *********************************************** **/
.box-nero {
  background-color: #000; /* sfondo nero */
  color: #fff;            /* testo bianco */
  padding: 20px;
  border-radius: 1px;
  margin-top: 20px;
  width: 100%;
}
.box-nero a {
  color: #00bfff; /* link azzurro visibile sul nero */
 
}
.box-nero a:hover {
  color: #ffffff;
}
.box-nero-large {
  background-color: #000; /* sfondo nero */
  color: #fff;            /* testo bianco */
  padding: 20px;
  border-radius: 1px;
  margin-top: 20px;
  min-width: 250px;
}


.btn-blu {
  display: inline-block;
  background-color: #007bff;  /* blu brillante */
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px; /* distanza dal testo precedente */
}
.btn-blu:hover {
  background-color: #0056b3; /* blu più scuro al passaggio del mouse */
  color: #fff;
}

.freccia-animata {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.freccia-animata i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.freccia-animata:hover {
  color: #0056b3;
}

.freccia-animata:hover i {
  transform: translateX(5px);
}


/** EFFETTI FADE IN ****************************************** **/
.fade-in-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}
.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-element img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  margin: 0;
  padding: 0;
}


.fade-in-element-left {
  opacity: 0;
  transform: translateX(40px); /* sposta da destra verso sinistra */
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}
.fade-in-element-left.visible {
  opacity: 1;
  transform: translateX(0); /* torna alla posizione normale */
}
.fade-in-element-left img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  margin: 0;
  padding: 0;
}



.section-title-wrapper {
    --text-align: center;
}

/** EFFETTO FADE UP ****************************************** **/
.fade-up-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/** CAROUSEL ************************************************************ **/
.carousel {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 8px;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  min-width: 100%;
}
.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: #333;
  border: 2px solid #333;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.carousel-btn:hover {
  background-color: #333;
  color: white;
  border-color: #333;
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}
.carousel-indicators {
  text-align: center;
  margin-top: 10px;
}
.carousel-indicators .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-indicators .dot.active {
  background-color: #333;
}



/** Sezione gallery: carosello immagini *********************************************** **/
#section_gallery {
  background-color: #d0d0d0;
}

/** Sezione contatti: form *********************************************** **/

#contatti {
  background-color: #f2f2f2;
  padding: 60px 20px;
}
#contatti h2{
  background-color: #f2f2f2;
  padding: 60px 20px;
   font-family: 'Cormorant Garamond', serif;
  font-size: 500%;
  font-weight: 300;
  line-height: 0.8;
  text-shadow: 1px 1px 4px black;
  text-align: left;
}
#contatti p{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: left;
}
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.contact-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}
.contact-form button {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #0056b3;
}

/** MODALE FOTO CUCINA ********************************* **/
/* Griglia responsive */

/* Wrapper con sfondo nero centrato */
.sub_sezione_cucina {
  background-color: #000;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Griglia di immagini */
.griglia-foto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  justify-items: center;
}

.foto-griglia {
  width: 100%;
  max-width: 380px; /* ingrandite */
  margin: 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.foto-griglia:hover {
  transform: scale(1.05);
}

/* Modal (come prima) */
.modal-foto {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Quando la modale è visibile e aperta */
.modal-foto.aperta {
  opacity: 1;
  transform: scale(1);
}

.modal-foto .contenuto-modal {
  margin: auto;
  display: block;
  max-width: 78%;      /* 60% + 30% = 78% */
  max-height: 78%;     /* 60% + 30% = 78% */
  margin-top: 5vh;
  border-radius: 0px;
}


.modal-foto .chiudi {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-foto .chiudi:hover {
  color: #ccc;
}


.sfondo-nero-griglia {
  background-color: #000;
  padding: 40px 20px;
  border-radius: 0px;
  max-width: 1200px;
  margin: 0 auto;
}
.sfondo-nero-contatti {
  display: flex;                /* layout affiancato */
  justify-content: space-between;
  align-items: flex-start;      /* allinea in alto */
  background-color: #000;
  padding: 40px 20px;
  border-radius: 0px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}
.map-container {
  flex: 1 1 60%;                /* prende più spazio */
}

.contact {
  flex: 1 1 30%;                /* colonna più stretta */
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 120%;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;        /* allinea contenuti a destra */
}

.collage-wrapper {
  position: relative;
  margin-top: 50px;
}

/* Rettangolo nero */
.collage-background {
  position: absolute;
  top: 40px;
  left: 0;
  width: 85%;
  height: 320px;
  background-color: #000;
  z-index: 1;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
  border-radius: 0px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* Link "Esplora" */
.link-esplora {
  color: white;
  text-decoration: none;
  font-weight: 600;
  background-color: transparent;
  border: 2px solid white;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.link-esplora:hover {
  background-color: white;
  color: black;
}

/* Immagini sopra il rettangolo */
.collage-foto {
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 2;
  justify-content: center;
  flex-wrap: wrap;
}

.collage-foto img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.collage-foto img:hover {
  transform: scale(1.05);
}

/* Fade-in da destra */
.fade-in-right.visible .collage-background {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mappa leggermente più veloce */
.fade-in-right-mappa {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right-mappa.visible {
  opacity: 1;
  transform: translateX(0);
}




/** FOOTER *********************************************** **/
footer {
  text-align: center;
  padding: 20px;
  background-color: #222;
  color: white;
}

/** RESPONSIVE ********************************************* **/
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    font-size: 100%;
  }

  .social-icons {
    justify-content: flex-start;
    gap: 10px;
  }

  .logo img {
    height: 70px;
  }

  #sezione1 h2 {
    font-size: 400%; /* molto più piccolo */
    text-align: center;
  }

  #sezione1 p {
    text-align: center;
    font-size: 1.2rem;
  }

  #sezione1 {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
    text-align: center;
  }

  .house-container {
    flex-direction: column;
    padding: 10px;
  }

  .house-text,
  .fade-in-element img {
    width: 100%;
  }

  .box-centrata {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 10px;
  }

  .collage-foto {
    flex-direction: column;
    align-items: center;
  }

  .collage-foto img {
    width: 100%;
    height: auto;
  }

  .collage-background {
    display: none; /* nasconde il rettangolo nero dietro */
  }

  .contact-form {
    width: 100%;
    padding: 20px;
  }

  .sfondo-nero-contatti {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-container,
  .contact {
    width: 100%;
    flex: 1 1 100%;
    align-items: flex-start;
  }

  footer {
    font-size: 0.9rem;
  }
}
/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* MENU MOBILE */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100px;
    right: 0;
    background-color: #f5f5f5;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    width: 100%;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .main-nav.open {
    display: flex;
  }

  .header-right {
    flex-direction: row-reverse;
    align-items: center;
  }

  .social-icons {
    display: none;
  }

  .box-centrata {
    display: none;
  }
}
