/* BASE */
body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url('../img/sfondo-matrimonio.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #343a40;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* HEADER & FOOTER */
header,
footer {
  background-color: transparent;
  box-shadow: none;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* CONTENITORI */
.container,
.contenitore-rsvp,
.overlay {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  color: #343a40;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* TESTI */
.container h1,
.container h2,
.container h3 {
  font-weight: 600;
  color: #6c4f3d;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.container p,
.container label,
.container small {
  font-weight: 500;
  font-size: 1.05rem;
  color: #343a40;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.alert-info {
  font-size: 1.1rem;
}

/* TABELLE */
.table td,
.table th {
  vertical-align: middle;
}

.table-responsive {
  overflow-x: auto;
}

/* IFRAME */
iframe {
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 100%;
}

/* SEZIONI RSVP */
#dettagliPartecipazione,
#dettagliStanza,
#partecipanti {
  margin-bottom: 2rem;
}

.col-lg-4 {
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: 1rem;
}

/* COUNTDOWN */
#countdownDecorativo {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#countdownDecorativo .tile {
  font-size: 2.5rem;
  font-weight: bold;
  background-color: #f8f1e7;
  color: #6c4f3d;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 60px;
  text-align: center;
}

/* LOGHI */
.logo,
.logo-header,
.logo-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #6c4f3d;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.logo {
  font-size: 2rem;
  color: #6c757d;
}

.logo-header,
.logo-footer {
  font-size: 2.2rem;
}

.logo-icon,
.logo-header-icon,
.logo-footer-icon {
  height: auto;
  max-height: 60px;
  max-width: 60px;
}

/* ERRORE */
body.errore-body {
  background: url('../img/sfondo-matrimonio.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', sans-serif;
}

.errore {
  font-size: 1.2rem;
}

/* BUTTON */
.btn-home {
  margin-top: 20px;
}

/* HEADER SHADOW FIX */
header.shadow-sm {
  box-shadow: none !important;
}

/* RESPONSIVE FIX */
@media (max-width: 768px) {
  .col-lg-4 iframe {
    height: 200px;
  }

  .logo-header,
  .logo-footer {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-header-icon,
  .logo-footer-icon {
    max-height: 40px;
  }

  .container {
    padding: 1.5rem;
  }

  #countdownDecorativo .tile {
    font-size: 2rem;
    padding: 0.75rem 1rem;
  }
  
  
  @media (max-width: 576px) {
  .logo-header,
  .logo-footer {
    flex-direction: column;
    align-items: center;
    font-size: 1.6rem;
    gap: 0.5rem;
    text-align: center;
  }

  .logo-header-icon,
  .logo-footer-icon {
    max-height: 40px;
    width: auto;
  }

  header .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  footer .container {
    padding: 1rem;
  }

  footer small {
    font-size: 0.9rem;
  }
}

}
