@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600&display=swap');

:root {
  /* ====================== */
  /* VARIABILI COLORI       */
  /* ====================== */

  /* Colori Sfondo */
  --bg-pink: #F2E1E3;
  --bg-pink: rgba(242, 225, 227, 0.92);
  --bg-pink-light: #FAF2F3;
  /* Rosa Cipria / Rosa (Index 1) */
  --bg-brown: #BD9C8C;
  /* Marrone / Cappuccino (Index 1) */
  --bg-light: #faf8f5;
  /* Panna chiaro per contrasti interni */

  /* Sfumatura Hero / Save the date (Index 5) */
  --gradient-celeste: #e0f2fe;
  /* light blue */
  --gradient-lilla: #f3e8ff;
  /* lilac */

  /* Pulsanti e Testi */
  --btn-brown: #9E7B6B;
  /* Marrone scuro (Index 1) */
  --btn-hover: #A3826E;

  --btn-navbar-hover: #806254;
  /* Blu Cartazzucchero (Hover Navbar Index 1) */
  --text-main: #9E7B6B;
  /* Marrone scuro simile a bg-brown (#9E7B6B) ma molto più intenso */
  --text-light: #6b5e5e;
  --border-color: rgba(158, 123, 107, 0.2);

  --gradient-bg: linear-gradient(90deg,rgba(250, 242, 243, 1) 4%, rgba(242, 225, 227, 1) 43%, rgba(239, 231, 244, 1) 86%);

  /* Font */
  --font-main: 'Cormorant Garamond', Georgia, serif;
  --font-title: 'Playfair Display', serif;

  /* Utilities */
  --radius: 12px;
  --transition: all 0.3s ease;

  --cipria: #F2E1E3;
  --lilla: rgb(239, 231, 244);
}

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

html {
  scroll-behavior: auto;
  touch-action: pan-x pan-y;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--bg-pink);
  line-height: 1.6;
  font-size: 21px;
  overflow-x: hidden;
}

/* ====================== */
/* NAVBAR (Rosa, C&N a sx, hover blu) */
/* ====================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-pink);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  justify-content: center;
  /* Centra i link */
  align-items: center;
  position: relative;
  /* Permette il posizionamento assoluto del logo */
  max-width: none;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar .container > *{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  right: 2rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  display: inline-flex;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -.2rem;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--btn-navbar-hover);
  transition: all .3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--btn-navbar-hover);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* Nav backdrop (mobile) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* Language Switch Navbar */
.lang-nav-container {
  z-index: 1002;
}

.lang-nav-mobile {
  display: none !important;
}

#currentFlag {
  filter: brightness(0) saturate(100%) invert(52%) sepia(15%) saturate(623%) hue-rotate(338deg) brightness(70%) contrast(87%);
}

.lang-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-main);
}

.lang-btn:hover {
  transform: scale(1.05);
}

/* Modal Lingua */
.lang-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: none;
  /* JS toggles display: flex */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lang-modal.show {
  display: flex;
  opacity: 1;
}

.lang-modal-content {
  max-width: 500px;
  width: 90%;
  text-align: center;
  padding: 3rem 2rem;
  animation: modalIn 0.5s ease;
}

@keyframes modalIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lang-options {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.lang-option {
  background: white;
  border: 1px solid #eee;
  padding: 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  width: 140px;
}

.lang-option:hover {
  transform: translateY(-5px);
  border-color: var(--bg-brown);
}

.lang-option .flag-icon {
  font-size: 3rem;
}

.lang-option .lang-name {
  font-weight: 600;
  color: var(--text-main);
}

#home h1{
  font-family: var(--font-title);
}

/* ====================== */
/* HERO / SAVE THE DATE (Sfumato Celeste Lilla - Index 5) */
/* ====================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-bg);
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-style: italic;
  color: var(--text-main);
}

.hero-date {
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-transform: uppercase;
  color: var(--text-main);
}

.hero-date,
.hero h1 {
  margin-bottom: 30px;
}

/* Countdown (Da Index 5) */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 3rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.countdown-value {
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-family: inherit;
  line-height: 1;
  color: var(--text-main);
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-top: 0.5rem;
  color: var(--text-main);
}

/* ====================== */
/* STRUTTURA SEZIONI (Alternanza Rosa/Marrone) */
/* ====================== */
section {
  padding: 6rem 2rem;
}

section:nth-child(odd) {
  background: var(--bg-pink);
  color: var(--text-main);
}

section:nth-child(even) {
  background: var(--bg-brown);
  color: var(--cipria);
  /* Testo chiaro su sfondo marrone */
}
/* 
section:last-of-type {
  background: var(--lilla);
} */

/* Titoli di sezione */
.section-title {
  text-align: center;
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* Divisore con cuoricino */
.heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  font-size: 1.5rem;
}

.heart-divider svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  fill: currentColor;
}

.heart-divider::before,
.heart-divider::after {
  content: '';
  width: 50px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ====================== */
/* PULSANTI (Marroni con hover Blu) */
/* ====================== */
.btn {
  display: inline-block;
  background: var(--btn-brown);
  color: white;
  padding: 1rem 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--btn-brown);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  color: #fff;
}

/* ====================== */
/* FOTO FULL-WIDTH dopo Hero */
/* ====================== */
.hero-photo-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(30px);
  -webkit-filter: blur(30px);
  transform: scale(1.1);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mobile-photo {
  display: none;
}

.desktop-photo {
  display: block;
}

@media (max-width: 768px) {
  .mobile-photo {
    display: block;
  }

  .desktop-photo {
    display: none;
  }
}

/* ====================== */
/* LA NOSTRA STORIA (Testo descrittivo) */
/* ====================== */

.story-text{
  text-align: center;
}

/* ====================== */
/* PROGRAMMA DELLA GIORNATA (Timeline, a tutta larghezza) */
/* ====================== */
.program-fullwidth {
  max-width: 100%;
  padding: 6rem 5%;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--btn-brown);
  margin-bottom: .3em;
  display: flex;
  align-items: center;
  gap: .4em;
}

.timeline-time svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

section:nth-child(even) .timeline-time {
  color: var(--bg-pink);
}

.timeline-card {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .03);
}

section:nth-child(even) .timeline-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--bg-light);
}

.timeline-card h5 {
  font-size: 1.15em;
  margin-bottom: .5em;
}

.timeline-card p {
  margin: 0;
}

section:nth-child(even) .timeline-card p {
  color: rgba(255, 255, 255, 0.9);
}

/* ====================== */
/* GALLERY E UPLOAD SIMULATO */
/* ====================== */
#gallery {
  background: var(--lilla);
  color: var(--bg-brown);
  color: var(--text-main);
}

#gallery .glass-card{
  background-color: rgba(255, 255, 255, 0.8);
  max-height: 100%;
  overflow: auto;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.upload-area {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  margin-top: 2rem;
}

section:nth-child(odd) .upload-area {
  background: transparent;
  border-color: var(--border-color);
}

/* Gallery masonry grid */
.gallery-masonry-wrapper {
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--text-main);
}
.gallery-masonry-fade-top,
.gallery-masonry-fade-bottom {
  position: sticky;
  left: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-masonry-fade-top {
  top: 0;
  background: linear-gradient(to bottom, #8F8B92 0%, transparent 100%);
}
.gallery-masonry-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, #8F8B92 0%, transparent 100%);
}
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 8px;
  gap: 12px;
  margin: -60px 0;
  min-height: 400px;
  padding: 15px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-item.landscape {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.landscape { grid-column: span 2; }
  .hero-photo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 90vh;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: 0% 80%;
  }

}

@media (max-width: 640px) {
  .hero-photo {
    object-position: 0% 50%;
  }
  #rsvpForm [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}
@media (max-width: 480px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.landscape { grid-column: span 2; }
  .hero-photo {
    object-position: 32% 50%;
    max-height: 80vh;
  }
}

/* Mobile landscape */
@media (max-width: 932px) and (orientation: landscape) {
  .hero-photo {
    object-position: 0px -90px;
  }
}

/* ====================== */
/* RSVP e FORMS (Da index5) */
/* ====================== */
.rsvp-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.glass-card {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.5);
  /* background: var(--bg-pink); */
  /* backdrop-filter: blur(10px); */
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
}

/* section:nth-child(even) .glass-card{
  background: var(--cipria);
} */

.pastel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pastel-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#location .pastel-grid {
  align-items: stretch;
}

#location .pastel-grid > div{
  min-height: 300px;
}

/* ── Carosello Location (Slick) ── */
.convento-slider {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  width: 100%;
  position: relative;
}

.convento-slider .slick-list {
  position: absolute;
  inset: 0;
  height: 100% !important;
  overflow: hidden;
}

.convento-slider .slick-track {
  height: 100%;
}

.convento-slider .slick-slide,
.convento-slider .slick-slide > div {
  height: 100%;
}

.convento-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.convento-slider .slick-prev { z-index: 2; left: 0.75rem; }
.convento-slider .slick-next { z-index: 2; right: 0.75rem; }

.convento-slider .slick-dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.convento-slider .slick-dots li button:before {
  color: #fff;
  opacity: 0.6;
  font-size: 10px;
}

.convento-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fff;
}

/* ── Frecce Lightbox ── */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  padding: 0;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.lightbox-arrow.prev { left: 1rem; }
.lightbox-arrow.next { right: 1rem; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.4);
}

/* ── Modale Foto Viaggio ── */
.travel-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.travel-modal.active {
  display: flex;
}

.travel-modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.travel-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: var(--transition);
}

.travel-modal-close:hover {
  color: var(--text-main);
}

.travel-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.travel-photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.travel-photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.travel-photo-item img:hover {
  transform: scale(1.03);
}

#location .glass-card{
  background: rgba(255, 255, 255, 0.7);
}

#nozze{
  background: var(--bg-pink-light);
  color: var(--text-main);
}

#nozze .pastel-grid > .pastel-card:first-child {
  background: rgb(248, 225, 231);
}

#nozze .pastel-grid > .pastel-card:last-child {
  background: var(--lilla);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.9em;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fbfbfb;
  font-family: inherit;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--btn-navbar-hover);
}

.form-control:focus {
  outline: none;
  border-color: rgba(158, 123, 107, 0.4);
  background: white;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

#rsvpForm .form-control,
#rsvpForm label{
  font-size: 0.9em;
}

/* ====================== */
/* FAQ / DOMANDE */
/* ====================== */
#faq{
  background: var(--bg-brown);
  color: var(--cipria);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item summary {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1.3rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 20px 1.3rem 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

section:nth-child(even) .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

section:nth-child(even) .faq-item summary::after {
  color: var(--bg-light);
}

section:nth-child(even) .faq-item p {
  color: rgba(255, 255, 255, 0.9);
}

[data-i18n-html] a {
  color: inherit;
  text-decoration: underline;
}

/* ====================== */
/* FOOTER (Rosa - Index 1) */
/* ====================== */
footer {
  background: var(--bg-pink);
  color: var(--text-main);
  text-align: center;
  padding: 4rem 2rem;
}

footer h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.footer-heart {
  color: #F4B6AA;
  /* Uguale al var(--peachpearl) usato sul file style.css originale */
  display: inline-flex;
  align-items: center;
  font-style: normal;
  animation: heartbeat 1.8s infinite;
}

.footer-heart svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.15);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.15);
  }

  56% {
    transform: scale(1);
  }
}

/* ====================== */
/* SCROLL TO TOP BTN */
/* ====================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--btn-brown);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top-btn:hover {
  background: var(--btn-hover);
  transform: translateY(-5px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1300px) and (min-width: 1025px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

@media (max-width: 1200px) {

  .mobile-menu-btn {
    display: flex;
  }

  .lang-nav-container {
    display: none !important;
  }

  .lang-nav-mobile {
    display: list-item !important;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 46px;
    /* Sotto la navbar */
    left: 0;
    width: 100%;
    max-height: calc(100vh - 63px);
    overflow-y: auto;
    background: var(--bg-pink);
    padding: 2rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: -1;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    text-align: center;
    margin-bottom: 1rem;
  }

  .navbar .container > *{
    justify-content: flex-start;
  }

  /* Animazione a X per l'hamburger */
  .mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }


  #location .pastel-grid > div{
    min-height: 350px;
  }

  .carousel {
    min-height: 300px;
  }

}