/* Reset leggero */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Raleway", system-ui, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
}

/* Layout generale */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Header + Nav */
.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;

}

.brand {
    font-family: "Alice", serif;
    order: 2;                 /* posiziona il logo al centro */
    margin: 0 auto;
}

.brand a {
  font-size: 4rem;
  text-decoration: none;
  color: #333333;
  letter-spacing: 0.04em;
}

.site-nav,
.other-item {            /* eventuali altri blocchi */
    flex-shrink: 0;

}

.nav-bar a {
    font-size: 1rem;
    text-decoration: none;
    color: #333333;
    letter-spacing: 0.04em;
}

.site-nav {
  max-width: 60%;
  margin: 0 auto;        /* centra il blocco .site‑nav nel suo contenitore */
  text-align: center;    /* centra il testo dei link */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: #444444;
  position: relative;
  padding-bottom: 0.25rem;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #333333;
}


.raleway-<uniquifier> {
              font-family: "Raleway", sans-serif;
              font-optical-sizing: auto;
              font-weight: <weight>;
              font-style: normal;
}


/* Hero split */
.hero {
  display: flex;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  /* gap: 3rem; */
  align-items: center;
  /* padding: 3rem 0 4rem; */
  border-bottom: 1px solid #f0f0f0;
  justify-content: center;
  margin: 0 auto;
}

.hero-text {
  justify-content: center;
  /*padding-right: 2rem; */
  text-align: center;
}

.hero-date {
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #777777;
}

.hero h1 {
    font-family: "Alice", serif;
    font-size: 3.3rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}

.hero-location {
  font-size: 1.5rem;
  color: #555555;
  margin-bottom: 0.25rem;
}

.hero-location2 {
    font-size: 1.25rem;
    color: #555555;
    margin-bottom: 1.75rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #374936;
  text-decoration: none;
  color: #374936;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Immagine fiore */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.hero-image img {
  max-width: 35%;
  height: auto;
}

/* Sezioni interne */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid #f3f3f3;
  text-align: center;
}

.section h2 {
  font-family: "Alice", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.section p {
  max-width: 80%;
  font-size: 1rem;
  text-align: center;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid #f3f3f3;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777777;
}

/* Mobile */
@media (max-width: 800px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding-right: 0;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}



/* Stato normale (prima dello scroll) */
#navbar {
    width: 100%;
    background: transparent;          /* o il colore che vuoi prima dello scroll */
    transition: all .3s ease;
}

.section-std {
    max-width: 80%;
    margin:0 auto;
    padding:2rem 1rem;
    line-height:1.6;
    font-family:sans-serif;
    border-bottom: 1px solid #f0f0f0;

}

.default-title h2
{
    font-family: Alice, sans-serif;
    text-align:center;
    margin-bottom:2rem;
    font-weight: 400;
    font-size: 200%;
}

/* Stato “fissato” – verrà aggiunta la classe .fixed via JS */
#navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;                 /* colore di sfondo quando è sticky */
    padding: 0.6rem 1.5rem;           /* riduci l’altezza se vuoi */
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    z-index: 1000;
}

.step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.step-title {
    font-family: "Alice", serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.phone-row {
    display: flex;
    gap: 10px;
}

.next-btn, .back-btn, .submit-btn {
    margin-top: 20px;
}

#thankyou-animation {
    margin-top: 20px;
    min-height: 30px;
}


/* ========================= */
/* RSVP FORM — MULTISTEP     */
/* ========================= */

.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: #fff;
    padding: 35px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
    font-family: "Alice", serif;
}

.step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
}

.step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-title {
    font-family: "Alice", serif;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Floating labels */
.floating-label {
    position: relative;
    margin-bottom: 22px;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
    width: 100%;
    border: 1px solid #ddd;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 1rem;
    background: #fcfcfc;
}

.floating-label input:focus,
.floating-label textarea:focus,
.floating-label select:focus {
    border-color: #bca98c;
    box-shadow: 0 0 0 3px rgba(188,169,140,0.25);
    outline: none;
}

.floating-label label {
    position: absolute;
    top: 14px;
    left: 12px;
    color: #888;
    pointer-events: none;
    transition: all .22s ease;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
    top: -8px;
    left: 8px;
    font-size: 0.8rem;
    background: #fff;
    padding: 0 4px;
    color: #b79a78;
}

/* Buttons */
.next-btn,
.back-btn,
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    margin-top: 20px;
    cursor: pointer;
    transition: transform .15s, background .2s;
}

.next-btn:hover,
.back-btn:hover,
.submit-btn:hover {
    transform: scale(1.02);
    background: #333;
}

.phone-row {
    display: flex;
    gap: 12px;
}

#char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
}

.floating-label select,
.floating-label input {
    height: 52px !important;
    line-height: 52px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 480px) {
    .floating-label select,
    .floating-label input {
        height: 56px !important;
        line-height: 56px !important;
    }
}

.commit a {
    text-decoration: none;
    font-family: Menlo, Consolas, Monaco, "Courier New", Courier, monospace
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.5em;
    display: inline-block;

}

.default-text {
    font-family:Raleway, serif;
    margin-bottom: 1rem;
}

.defualt-text ul {
    margin:1.5rem 0;
    padding-left:1.2rem;
}

.list {
    padding-left: 2.5rem;  /* aumenta/ diminuisci il valore a piacere */
    margin-left: 0.5rem;   /* opzionale */
}

.stay-card:hover img {
    transform: scale(1.05);
}


#leaflet-map .leaflet-popup-content {
    margin: 0 !important;
}

#leaflet-map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

#leaflet-map .leaflet-popup-tip {
    background: white;
}

.swiper-container {
    overflow: hidden; /* Mostra solo le 3 card centrali */
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.language-switcher a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.language-switcher a:hover {
    color: #000;
}

.language-switcher .current {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}
