
/* colors palette cipria: bfa6a0 (bright) & 7a5c61 (dark) / lilla c8bbd4 (bright) and 4a405a (dark)*/

body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  background: #ffffff;
  color: #6f4f5c;
  font-size: 18px;
  line-height: 1.5;
}

html, body {
  margin: 0;
  padding: 0;
}

header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin: 0;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #6f4f5c;
  font-weight: 500;
}

nav ul li a:hover {
  color: #aa9bb8;
}

section {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

h1 {
  color: #cdbbd4;
  font-weight: 700;
}

h2 {
  color: #cdbbd4;
  font-weight: 700;
}

h3 {
  color: #6f4f5c;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  color: #6f4f5c;
  font-weight: 700;
  line-height: 1.3;
  font-size: 20px;
}

h5 {
  color: #cdbbd4;
  font-weight: 700;
  font-size: 25px;
  margin: 10px;

}

h6 {
  color: #cdbbd4;
  font-weight: 700;
  font-size: 20px;
  margin:0px;
}

a {
  text-decoration: underline;
  color: #6f4f5c;
}

a:hover {
  color: #aa9bb8;
}

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

.language-selector {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1001;
  display: flex;
  gap: 10px;
}

.lang-flag {
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-flag:hover {
  transform: scale(1.1);
  opacity: 1;
}

.active-lang {
  opacity: 1;
  border-bottom: 2px solid #cdbbd4;
}

.password-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: #f4f0f8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.password-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #6f4f5c;
}

.language-switcher-pass {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.lang-flag {
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lang-flag:hover,
.lang-flag.active-lang {
  opacity: 1;
  border-bottom: 2px solid #cdbbd4;
}

.password-card input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 100%;
  margin: 10px 0;
  font-family: inherit;
}

.password-card button {
  background-color: #cdbbd4;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
}

.password-card button:hover {
  background-color: #aa9bb8;
}

.hero {
  position: relative; /* ✅ fondamentale */
  width: 100%;
  height: 500px; /* o altra altezza visibile */
  overflow: hidden;
}

.hero1 {
  position: relative;
  width: 100%;
  height: 400px; /* imposta l'altezza visibile dell'immagine */
  overflow: hidden;
}

.hero-img-desktop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  display: block;
}

.overlay2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.overlay2 h1 {
  font-size: 3.5em;
  margin: 0;
  white-space: nowrap;
}

.hero1-img-desktop {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  filter: brightness(0.5);
  border-radius:0;
  display: block;
}

.hero-img-mobile {
 display: none;
}

.overlay, .overlay1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.overlay h1 {
  font-size: 4em;
  margin-bottom: 10px;
  top: 50%
}

.overlay p {
  font-size: 1.5em;
  margin-bottom: 30px;
}

.overlay1 h1 {
  font-size: 4em;
  margin-bottom: 30px;
  top:50%
}

.overlay1 p {
  font-size: 1.5em;
}

.btn {
  padding: 12px 24px;
  background: #cdbbd4;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block; /* per evitare comportamenti strani */
  overflow: visible;
}

.btn:hover {
  color: #aa9bb8;
}

.mobile-header {
  display: none;
}

.details .block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.details .block.reverse {
  flex-direction: row-reverse;
}

.details img {
  width: 450px;
  height:auto;
  max-width: 500px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}

.details-img-desktop {
  display: block;
}

.details-img-mobile {
 display: none;
}

.details div {
  flex: 1;
  text-align: center;
  line-height: 1.3;
}

.mobile-title {
  display: none;
}

.card1 {
  background-color: #f4f0f8; /* colore tenue */
  padding: 20px;
  padding-top: 10px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(74, 64, 90, 0.05);
  margin: 20px;
  text-align: center;
}

.card1 album-layout {
  background-color: #f4f0f8; /* colore tenue */
  padding: 20px;
  padding-top: 10px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(74, 64, 90, 0.05);
  margin: 20px auto;
  text-align: center;
  max-width: 900px; 
  display: block;
  width: 100%;
}

.card2 {
  background-color: #f4f0f8; /* colore tenue */
  padding: 20px;
  padding-top: 10px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(74, 64, 90, 0.05);
  margin: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.faq-section {
  padding: 20px 20px;
  background-color: #ffffff;
  text-align: center;
}

.faq-section h2 {
  color: #c8bbd4;
  margin-bottom: 5px;
}

.faq-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  flex: 1 1 100px;
  text-align: center;
}

.faq-item h3 {
  color: #6f4f5c;
  font-size: 1.2rem;
}

.faq-item p {
  color: #6f4f5c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 2rem;
  font-weight: bold;
}

.countdown-timer div {
  text-align: center;
}

.countdown-timer small {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  margin-top: 5px;
  color: #7c5b6a;
}

.album-layout {
  text-align: center;
}

.album-title {
  text-align: center;
  color: #c8bbd4;
   margin-bottom: 20px !important;
}

.album-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap;
  text-align: left;
  padding-left: 40px;
  padding-right: 40px;
}

.album-qr {
  flex: 0 0 auto;
}

.album-content p {
  margin-top: 0px !important;
   flex: 1;
  text-align: center;
}


.qr-img {
  max-width: 150px;
  height: auto;
}

.text-desktop {
  display: block;
}

/* Nasconde su desktop */
.text-mobile {
  display: none;
}

.hotel-list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hotel-card {
  flex: 1;
  min-width: 250px;
  background-color: #f4f0f8;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(74, 64, 90, 0.05);
  text-align: center;
}

.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 30px;
  border-left: 2px solid #cdbbd4;
  max-width: 900px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-date {
  font-weight: bold;
  color: #cdbbd4;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.timeline-content {
  background: #f4f0f8;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(74, 64, 90, 0.05);
}

.timeline-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.timeline-img-container {
  flex-shrink: 0;
  width: 200px;
}

.timeline-img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(74, 64, 90, 0.05);
}

.timeline-text {
  flex: 1;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: #cdbbd4;
  border-radius: 50%;
  border: 2px solid white;
  z-index: 1;
}

.sogno-img {
  max-width: 95%;
} 

.rsvp {
  background: #f4f0f8;
  padding-bottom: 40px;
}

.rsvp p {
  margin-bottom: 30px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 4;
  overflow: hidden;
  margin: 0 auto;
}

.slideshow-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.slideshow-image.active {
  opacity: 1;
  z-index: 2;
}

.slideshow-container button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color:#cdbbd4;
  font-size: 1.2rem;
  padding: 4px 8px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s;
}

.slideshow-container button:hover {
  color: #bfa6a0;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.map-container {
  width: 100%;
  max-width: 900px; /* or adjust as needed */
  margin: 0 auto;    /* this centers it horizontally */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

iframe {
  max-width: 100%;
}

.honeymoon-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto; /* per evitare rotture se lo spazio è stretto */
  max-width: 100%;
  padding: 10px 0;
}

.honeymoon-gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* Navbar Responsive */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
}

.form-custom {
  background-color: #f4f0f8;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.form-custom form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-custom input,
.form-custom select,
.form-custom textarea {
  padding: 12px;
  border: 1px solid #d4cce2;
  border-radius: 10px;
  font-family: inherit;
  background-color: #fff;
}

.form-custom button {
  background-color: #cdbbd4;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
}

.form-custom button:hover {
  background-color: #aa9bb8;
}

.confirmation-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(244, 240, 248, 0.85); /* lilla trasparente */
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirmation-card {
  background-color: #ffffff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 90%;
  color: #6f4f5c;
  font-family: 'Playfair Display', serif;
  z-index: 2001;
}

.confirmation-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #6f4f5c;
}

.confirmation-close {
  background-color: #c8bbd4;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.confirmation-close:hover {
  background-color: #aa9bb8;
}

@media (max-width: 768px) {

  nav {
    position: relative;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #eee;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li a.active {
    color: #bfa6a0;
    border-bottom: 2px solid #bfa6a0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  p, a {
    font-size: 0.95rem;
  }

  .menu-toggle {
    position: absolute;
    left: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    color: #cdbbd4;
    display: block;
  }
  
  #nav-list {
    position: fixed;
    top: 0;
    left: -300px; /* start off-screen */
    height: 100%;
    width: 250px;
    background-color: #f4f0f8; /* your light lilac */
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 20px;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
  }
  
  #nav-list.active {
    left: 0;
  }
  
  #nav-list li {
    margin: 15px 0;
  }
  
  #nav-list li a {
    font-size: 1.2rem;
    color: #6f4f5c;
    text-decoration: none;
  }
  
  #nav-list li a:hover {
    color: #cdbbd4;
  }
  
  .language-selector {
    top: 8px;
    right: 14px;
    font-size: 1.2rem;
  }

  .hero {
    max-width: 90%;
    background-size: cover;
    background-position: center;
    position: relative;
    height: auto;
  }

  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1;
    padding: 0;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  .hero p {
    font-size: 1rem !important;
    padding: 0;
    text-align: center;
  }

  .hero-content {
    max-width: 90%;
    margin: 0;
    padding: 0;
    padding-left: 0.5;
    padding-right: 0.5; 
    text-align: center;
  }
  
  .hero-img-desktop {
    display: none;
  }
  
  .hero-img-mobile {
   display: block;
   filter: brightness(0.5);
   object-fit: cover;
  }

  .rsvp .btn {
    padding: 0.8rem;
    font-size: 1rem;
    display: inline-block;
    margin-top: 1rem;
  }

  .hero1 {
    display: none;
  }

  .details .block {
    flex-direction: column !important;
    padding-top: 20px;
  }

  .details img {
    width: 80%;
  }

  .details-img-desktop {
    display: none;
  }
  
  .details-img-mobile {
   display: block;
  }

  .card {
    background-color: #f4f0f8; /* colore tenue */
    padding: 20px;
    padding-top: 0px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(74, 64, 90, 0.05);
    margin: 20px;
    text-align: center;
  }

  .mobile-title {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0px;
  }

  .faq-section {
    padding: 0px 20px;
  }

  .faq-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
  }

  .faq-item {
    width: 100%;
  }

  .faq-item h3 {
    margin-bottom: 6px;
  }

  .faq-item p {
    margin: 0;
   } 

   .countdown-timer {
    font-size: 1.7rem;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .countdown-timer div {
    min-width: auto;
  }

  .countdown-timer small {
    font-size: 0.8rem;
  }

  .desktop-only {
    display: none !important;
  }

  .album-content {
    flex-direction: column;
    text-align: center;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .album-title {
    font-size: 1.5rem;
  }

  .album-qr {
    display: none;
  }

  .text-desktop {
    display: none;
  }

  .text-mobile {
    display: block;
  }


  .card h2 {
    display: none;
  }
  
  .hotel-card {
    width: 100%;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
  }

  .map-container iframe {
    height: 300px; /* reduce height for mobile */
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-img-container {
    width: 60%;
    max-width: 300px;
    margin-bottom: 0px;
  }

  .timeline-text h3 {
    font-size: 1.1rem;
    margin-top: 0;
  }

  .timeline-text p {
    font-size: 0.95rem;
  }

  .honeymoon-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    overflow: visible;
    justify-items: center;
  }

  .honeymoon-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .rsvp p {
  margin-bottom: 10px !important;
  padding-left: 25px;
  padding-right: 25px;
  }

  section {
    padding: 12px;
  }

  .overlay h1 {
    font-size: 2em;
  }

  .overlay p {
    font-size: 1.2em;
  }

  .mobile-header {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
   justify-content: center;
  }
  
  .mobile-header-img {
    width: 95%;
    object-fit: cover;
    filter: brightness(0.5);
    display: block;
  }
  
  .mobile-header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cdbbd4;
    font-size: 2rem;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    z-index: 1;
  }

  .mobile-header-p {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    z-index: 1;
  }
  
}

