@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Libre Baskerville', serif;
}

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

html,
body {
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

:root {
  --primary-color-white: white;
  --secondary-color-black: black;
  --terti-color: #8698aa;
  --quate-color: #a3b7da;
  --header-height: 207px;

  /* carousel size variables – adjust the scale here */
  --carousel-width: 90%; /* % of viewport width */
  --carousel-max-width: 950px;
  --carousel-height: 460px; /* height of active slide container */

  --slide-active-w: 360px;
  --slide-active-h: 430px;
  --slide-med-w: 170px;
  --slide-med-h: 210px;
  --slide-small-w: 80px;
  --slide-small-h: 110px;

  --carousel-gap: 210px; /* horizontal offset between slots */
}

body {
  min-height: 100vh;
  font-family: 'Tinos', serif;
  background: var(--primary-color-white);
}

.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout das imagens */
.logo-LA {
  min-height: 207px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 0 18px;
  z-index: 2;
  position: relative;
}

.logo-LA img {
  width: 135px;
  height: auto;
  max-height: 100%;
}

/*  Inicio do Carrosel  */
.home-page {
  min-height: calc(100dvh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary-color-white);
  overflow: hidden;
}

.galery {
  position: relative;
  width: min(90%, var(--carousel-max-width));
  max-width: var(--carousel-max-width);
  height: var(--carousel-height);
  margin: 60px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 860px) {
  .galery {
    height: 430px;
  }

  .slide.active {
    width: 95vw;
    height: 320px;
  }

  .slide.prev,
  .slide.next {
    width: 150px;
    height: 200px;
  }

  .slide.prev1,
  .slide.next1 {
    width: 90px;
    height: 120px;
  }
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid var(--quate-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* images inside slides should fill the available space */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}

/* CENTRAL */
.slide.active {
  width: var(--slide-active-w);
  height: var(--slide-active-h);
  opacity: 1;
  z-index: 5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
}

/* LATERAIS MÉDIAS */
.slide.prev {
  width: var(--slide-med-w);
  height: var(--slide-med-h);
  opacity: 0.8;
  z-index: 3;
  transform: translate(calc(-50% - var(--carousel-gap)), -50%);
}

.slide.next {
  width: var(--slide-med-w);
  height: var(--slide-med-h);
  opacity: 0.8;
  z-index: 3;
  transform: translate(calc(-50% + var(--carousel-gap)), -50%);
}

/* EXTREMIDADES */
.slide.prev1 {
  width: var(--slide-small-w);
  height: var(--slide-small-h);
  opacity: 0.5;
  z-index: 2;
  transform: translate(calc(-50% - (var(--carousel-gap) * 2)), -50%);
}

.slide.next1 {
  width: var(--slide-small-w);
  height: var(--slide-small-h);
  opacity: 0.5;
  z-index: 2;
  transform: translate(calc(-50% + (var(--carousel-gap) * 2)), -50%);
}

.carousel-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 30px;
  pointer-events: none; /* container ignores clicks so buttons pass through */
  z-index: 10; /* sit above any slide */
}

.carousel-controls button {
  pointer-events: all; /* buttons themselves are clickable */
}

.carousel-controls button {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 28px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.carousel-controls button:hover {
  background: rgba(0, 0, 0, 0.7);
}
/* Data */
.date-wedding {
  margin-top: clamp(1.8rem, 3vh, 4rem);
  font-family: 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: 0.3em;
  color: #333;
  width: 100%;
  text-align: center;
}

@media (max-width: 860px) {
  .date-wedding {
    margin-top: 2rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }
}

/*Countdown */
.timer-for-wdg {
  background-color: var(--secondary-color-black);
  padding: 80px 0px 80px 0px;
  text-align: center;
  color: var(--primary-color-white);
  position: relative;
  overflow: hidden;
}

.timer-for-wdg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/CASA NOVA - L&A.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30%;
  transform: rotate(180deg);
  z-index: 1;
  pointer-events: none;
}

.timer-content {
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.subtitle {
  font-size: clamp(1.1rem, 5vw, 2rem);
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
  opacity: 0.9;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 10px;
}

.countdown::-webkit-scrollbar {
  height: 5px;
}

.countdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
}

.time-box {
  min-width: 72px;
}

.time-box span {
  display: block;
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 600;
}

.time-box small {
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  letter-spacing: 1px;
  opacity: 0.9;
}

.dot {
  font-size: clamp(1.2rem, 6vw, 2rem);
  margin: 0 4px;
}

.title {
  font-size: clamp(1.5rem, 4vw, 30px);
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 10px;
}

/* Responsividade Countdown */
@media (max-width: 860px) {
  .timer-for-wdg {
    padding: 60px 20px;
  }

  .subtitle {
    font-size: clamp(0.95rem, 4vw, 1.5rem);
  }

  .time-box {
    min-width: 60px;
  }

  .time-box span {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .time-box small {
    font-size: clamp(0.65rem, 2vw, 0.9rem);
  }

  .dot {
    font-size: clamp(0.9rem, 4vw, 1.5rem);
  }

  .title {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }
}

@media (max-width: 600px) {
  .timer-for-wdg {
    padding: 40px 15px;
  }

  .subtitle {
    font-size: clamp(0.85rem, 3vw, 1.2rem);
    margin-bottom: 12px;
  }

  .time-box {
    min-width: 50px;
  }

  .time-box span {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
  }

  .time-box small {
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  }

  .dot {
    font-size: clamp(0.8rem, 3vw, 1.2rem);
    margin: 0 2px;
  }

  .countdown {
    gap: 8px;
  }

  .title {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }
}

@media (max-width: 480px) {
  .timer-for-wdg {
    padding: 30px 10px;
  }

  .subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    margin-bottom: 10px;
  }

  .time-box {
    min-width: 45px;
  }

  .time-box span {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }

  .time-box small {
    font-size: clamp(0.55rem, 1.2vw, 0.7rem);
  }

  .dot {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    margin: 0 1px;
  }

  .countdown {
    gap: 5px;
  }

  .title {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    margin-top: 8px;
  }
}

/* LOCAL */
.location-section {
  background: #f6f6f6;
  padding: 120px 8%;
  text-align: center;
  border-bottom: 1px solid #e3e3e3;
}

.location-content {
  max-width: 700px;
  margin: 0 auto;
}

.location-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.location-section p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.map-container {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--quate-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

/* Confirm Presence */

.confirm-presence {
  background: var(--primary-color-white);
  padding: clamp(2.2rem, 8vw, 6rem) 6%;
  font-size: 100%;
}

.confirm-container {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 4rem);
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.text-center h2,
.text-left h2 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.text-center p,
.text-left p {
  font-size: clamp(0.95rem, 2.3vw, 1.15rem);
  line-height: 1.6;
}

/* ---------- PRIMEIRA LINHA ---------- */

.row-top {
  display: grid;
  grid-template-columns: 455px 1fr 140px;
  align-items: center;
  gap: 60px;
}

/* imagem esquerda 362x574 */
.img-left {
  width: 362px;
  height: 474px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--quate-color);
}

.img-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* texto centro */
.text-center {
  max-width: 450px;
}

.text-center h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.text-center p {
  line-height: 1.5;
  margin-bottom: 25px;
}

/* imagem pequena direita 120x225 */
.img-right-small {
  width: 140px;
  height: 225px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--quate-color);

  position: relative;
  top: 150px;
  z-index: 2;
}

.img-right-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- SEGUNDA LINHA ---------- */

.row-bottom {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: center;
  gap: 80px;
}

/* texto esquerda */
.text-left {
  max-width: 400px;
}

.text-left h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.text-left p {
  line-height: 1.5;
  margin-bottom: 25px;
}

/* imagem grande direita 705x705 */
.img-right-large {
  width: 505px;
  height: 505px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--quate-color);
}

.img-right-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BOTÃO */
.btn-primary {
  background: var(--terti-color);
  color: var(--secondary-color-black);
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-secondary {
  background: #e9e9e9;
  color: #3d5065;
  border: 1px solid #b6c2d1;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  width: min(500px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: #666;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content label,
.modal-content p {
  font-size: 14px;
  margin: 8px 0 4px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #c3cfdc;
  margin-bottom: 12px;
  font-size: 15px;
}

.pix-block {
  background: #f9faff;
  border: 1px solid #d7e2ef;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.payment-feedback {
  margin-top: 12px;
  color: #1f7d35;
  font-weight: 600;
}

.btn-primary:hover {
  background: #6f8396;
}

/* TIME-LINE */
.time-line-section {
  width: 100%;
  background: #000;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.time-line-content {
  max-width: 1500px;
  color: var(--primary-color-white);
}

.time-line-image {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: none;
  background: transparent;
}

.time-line-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1500px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .time-line-image img {
    width: 128%;
    max-width: none;
    margin-left: -20%;
  }
}

/* BOTÃO BRANCO 
.btn-white {
  background: #fff;
  color: #000;
  padding: 14px 40px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-white:hover {
  background: #e5e5e5;
}*/

/* SESSAO DOS PRESENTES */
.wedding-gifts {
  background: #f2f2f2;
  padding: 3rem 4%;
}

.wedding-gifts .gifts-header {
  max-width: 1080px;
  margin: 0 auto 1rem;
  text-align: center;
}

.wedding-gifts .gifts-header h2 {
  font-size: clamp(1.4rem, 6vw, 2.4rem);
  margin-bottom: 0.6rem;
  color: #003041;
}

/* Filtros */
.filters {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
}

.filters label {
  font-size: 0.9rem;
  color: #003041;
  font-weight: 500;
  margin: 0;
}

.filters select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 0.9rem;
}

/* Paleta de cores */
.color-palette {
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: transparent;
  border-radius: 12px;
}

.palette-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.palette-colors {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.color-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.color-circle:hover {
  transform: scale(1.1);
}

.color-label {
  font-size: 0.85rem;
  color: #4a5f73;
  font-weight: 500;
  text-align: center;
  min-width: 80px;
}

.wedding-gifts .gifts-header p {
  color: #4f5f6f;
  font-size: clamp(0.93rem, 3vw, 1.1rem);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}

.gifts-intro {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.gifts-intro p {
  margin: 0;
  flex: 1;
}

.wedding-gifts .gifts-controls {
  max-width: 1000px;
  margin: 1rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.wedding-gifts .control-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 150px;
  flex: 1 1 140px;
}

.wedding-gifts .control-item label {
  font-size: 0.81rem;
  color: #2e3f52;
}

.wedding-gifts .control-item select {
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid #c3cfdc;
  background: #fff;
  color: #203145;
  font-size: 0.9rem;
}

.gifts-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.wedding-gifts .gifts-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.wedding-gifts .gift-card {
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  border: 1px solid var(--quate-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  min-height: 100%;
  height: 100%;
}

.wedding-gifts .gift-card img {
  width: 100%;
  height: 180px;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(163, 183, 218, 0.4);
}

@media (max-width: 900px) {
  .wedding-gifts .gifts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .wedding-gifts .gifts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gifts-container {
    flex-direction: column;
    align-items: center;
  }
  .filters {
    align-self: flex-end;
    margin-top: 1rem;
  }
  .gifts-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .filters {
    align-self: flex-end;
  }
}

.wedding-gifts .gift-card h3 {
  font-size: clamp(0.88rem, 3vw, 1rem);
  color: #283a4f;
  margin: 0;
}

.wedding-gifts .gift-card p,
.wedding-gifts .gift-card .price {
  font-size: clamp(0.72rem, 2.5vw, 0.96rem);
  margin: 0;
}

.wedding-gifts .gift-card .btn-primary {
  width: auto;
  min-width: 180px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  border-radius: 0.55rem;
  min-height: 38px;
}

.pagination-controls {
  max-width: 1000px;
  margin: 1rem auto 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pagination-controls button {
  background: var(--terti-color);
  color: var(--secondary-color-black);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.pagination-controls button.active,
.pagination-controls button:hover {
  background: #556777;
  color: white;
}

/* 2 colunas por padrão para manter iPhone 13 (390px) em two-column o máximo possível */
@media (min-width: 1024px) {
  .wedding-gifts .gifts-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 1.1rem;
  }

  .wedding-gifts .gift-card img {
    max-width: 150px;
  }
}

@media (min-width: 1400px) {
  .wedding-gifts .gifts-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 700px) {
  .wedding-gifts {
    padding: 2.4rem 4%;
  }

  .wedding-gifts .control-item {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .modal-content {
    width: 96vw;
    max-width: 96vw;
    max-height: 90vh;
  }

  .modal-content input,
  .modal-content textarea,
  .wedding-gifts .control-item select,
  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
    min-height: 48px;
  }
}

@media (max-width: 500px) {
  .wedding-gifts .gift-card {
    padding: 0.65rem;
  }

  .modal-content {
    width: 98vw;
    max-width: 98vw;
    border-radius: 0.8rem;
    padding: 0.9rem;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 390px) {
  .wedding-gifts .gifts-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 0.7rem;
  }

  .wedding-gifts .gift-card {
    max-width: 180px;
    padding: 0.6rem;
  }

  .wedding-gifts .gift-card .btn-primary {
    min-width: 140px;
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
  }
}

@media (max-width: 300px) {
  .wedding-gifts .gifts-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .wedding-gifts .gift-card {
    max-width: 100%;
  }
}

/* Responsividade para confirm-presence e imagens de apoio */
@media (max-width: 900px) {
  .confirm-presence {
    padding: 50px 5%;
  }

  .confirm-container {
    gap: 40px;
  }

  .row-top,
  .row-bottom {
    display: block;
    gap: 20px;
  }

  .img-left {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--quate-color);
    display: block;
  }

  .img-right-large,
  .img-right-small {
    display: none;
  }

  .img-left img,
  .img-right-large img,
  .img-right-small img {
    width: 100%;
    height: auto;
  }

  .row-top .text-center,
  .row-bottom .text-left {
    max-width: 100%;
  }

  .text-center h2,
  .text-left h2 {
    font-size: 1.5rem;
  }

  .text-center p,
  .text-left p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .btn-primary {
    width: auto;
    max-width: 220px;
    padding: 10px 16px;
    font-size: 0.95rem;
    margin: 0 auto;
    display: block;
  }

  .confirm-presence .btn-primary {
    width: 100%;
    max-width: none;
  }

  .wedding-gifts .gift-card {
    padding: 6px;
    gap: 0.4rem;
  }

  .wedding-gifts .gifts-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 650px) {
  .wedding-gifts .gifts-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
  }

  .wedding-gifts .gift-card img {
    max-width: 120px;
  }

  .wedding-gifts .gift-card h3 {
    font-size: 1rem;
  }

  .wedding-gifts .gift-card p,
  .wedding-gifts .gift-card .price {
    font-size: 0.88rem;
  }
}

/* LINHAS */
.gift-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.gift-row.reverse {
  flex-direction: row-reverse;
}

/* IMAGENS */
.gift-image {
  width: 460px;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid #a3b7da;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXTO */
.gift-text {
  max-width: 520px;
}

.gift-text h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 25px;
}

.gift-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #444;
}

/* MANUAL DO CONVIDADO */

.manual-section {
  padding: 140px 8%;
  text-align: center;
}

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

/* TÍTULO */
.manual-title {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 80px;
  position: relative;
}

.manual-title strong {
  display: block;
  font-family: 'Playfair Display', serif; /* opcional */
  font-style: italic;
  font-size: 42px;
  margin-top: 10px;
  padding-top: 10px;
  color: var(--quate-color);
}

/* IMAGEM GRANDE */
.manual-image {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: none;
  background: transparent;
  text-align: center;
  margin: 0 auto;
}

.manual-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

/* TEXTO CENTRAL ABAIXO DA IMAGEM */
.manual-divider {
  margin-top: 100px;
  margin-bottom: 60px;
  text-align: center;
}

.manual-subtext {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #333;
  letter-spacing: 1px;
}

/* LINHA DIVISÓRIA AZUL */
.divider-line {
  width: 120px;
  height: 2px;
  background: #a3b7da;
  margin: 0 auto;
  border-radius: 2px;
}

/* IMAGEM DO CRONOGRAMA */
.timeline-image {
  max-width: 600px;
  margin: 80px auto 0;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #a3b7da;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}

/* ========== SEÇÃO RSVP ========== */
.rsvp-section {
  background: var(--primary-color-white);
  padding: clamp(3rem, 8vw, 7rem) 5%;
  text-align: center;
  font-family: inherit;
}

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

.rsvp-title {
  font-style: italic;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--secondary-color-black);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.rsvp-description {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  color: #4a5f73;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-important {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #2c3e50;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* Search Card */
.rsvp-search-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 2.5rem);
  margin: 2rem auto;
  max-width: 550px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rsvp-search-card label {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 500;
}

.rsvp-hint {
  display: inline-block;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  color: #7a8fa0;
  font-weight: 400;
}

.rsvp-helper {
  font-size: 0.85rem;
  color: #6b7d8f;
  margin-top: 1rem;
  text-align: center;
}

.rsvp-code {
  display: inline-block;
  background: #e8ecf2;
  color: #2c3e50;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.rsvp-search-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rsvp-input {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1.2rem;
  border: 1px solid #c3cfdc;
  border-radius: 8px;
  font-size: 1rem;
  background: var(--primary-color-white);
  transition: border-color 0.3s;
}

.rsvp-input:focus {
  outline: none;
  border-color: var(--quate-color);
  box-shadow: 0 0 0 3px rgba(163, 183, 218, 0.1);
}

.rsvp-search-btn {
  padding: 0.9rem 2.2rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  background: var(--terti-color);
  color: var(--primary-color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.rsvp-search-btn:hover {
  background: #6f8396;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(134, 152, 170, 0.3);
}

/* Mensagens de Feedback */
.rsvp-mensagem {
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  max-width: 500px;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rsvp-sucesso {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.rsvp-erro {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.rsvp-aviso {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Contêiner da família */
.rsvp-familia-container {
  margin-top: 2rem;
  animation: slideIn 0.4s ease;
}

.rsvp-familia-found {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 2.5rem);
  max-width: 550px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rsvp-familia-found h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  color: var(--secondary-color-black);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.rsvp-instruction {
  font-size: 0.95rem;
  color: #4a5f73;
  margin-bottom: 1.5rem;
}

.rsvp-members-list {
  background: var(--primary-color-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.rsvp-member-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.rsvp-member-item:last-child {
  border-bottom: none;
}

.rsvp-member-name {
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
  grid-column: 1;
}

.rsvp-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4a5f73;
  white-space: nowrap;
  justify-self: start;
  line-height: 1;
  height: 16px;
}

.rsvp-option:nth-of-type(2) {
  grid-column: 2;
}

.rsvp-option:nth-of-type(3) {
  grid-column: 3;
}

.rsvp-option input[type='radio'] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--terti-color);
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0;
}

/* Responsivo para mobile */
@media (max-width: 600px) {
  .rsvp-member-item {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .rsvp-member-name {
    grid-column: 1;
    margin-bottom: 0.5rem;
  }

  .rsvp-option {
    grid-column: 1;
  }

  .rsvp-option:nth-of-type(2) {
    grid-column: 1;
  }

  .rsvp-option:nth-of-type(3) {
    grid-column: 1;
  }
}

.rsvp-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rsvp-actions .btn-primary,
.rsvp-actions .btn-secondary {
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.rsvp-actions .btn-primary {
  background: var(--terti-color);
  color: var(--primary-color-white);
}

.rsvp-actions .btn-primary:hover {
  background: #6f8396;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(134, 152, 170, 0.3);
}

.rsvp-actions .btn-secondary {
  background: #e9ecf1;
  color: #2c3e50;
  border: 1px solid #c3cfdc;
}

.rsvp-actions .btn-secondary:hover {
  background: #dce3eb;
}

/* ========== RESPONSIVIDADE RSVP ========== */

@media (max-width: 768px) {
  .rsvp-section {
    padding: 2.5rem 4%;
  }

  .rsvp-search-card {
    padding: 1.5rem;
  }

  .rsvp-search-group {
    flex-direction: column;
  }

  .rsvp-input,
  .rsvp-search-btn {
    width: 100%;
  }

  .rsvp-familia-found {
    padding: 1.5rem;
  }

  .rsvp-member-item {
    gap: 1rem;
  }

  .rsvp-actions {
    flex-direction: column;
  }

  .rsvp-actions button {
    width: 100%;
  }

  .palette-colors {
    gap: 1rem;
  }

  .color-circle {
    width: 50px;
    height: 50px;
  }

  .color-label {
    font-size: 0.8rem;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .rsvp-title {
    font-size: 1.5rem;
  }

  .rsvp-description,
  .rsvp-important {
    font-size: 0.9rem;
  }

  .rsvp-search-card {
    padding: 1.2rem;
  }

  .rsvp-search-btn {
    padding: 0.8rem 1.5rem;
  }

  .rsvp-checkbox {
    width: 18px;
    height: 18px;
  }

  .rsvp-member-name {
    font-size: 0.95rem;
  }
}

/* ========== CHRIST SECTION ========== */
.christ-section {
  width: 100%;
  background: #000;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.christ-content {
  width: 100%;
  max-width: 900px;
  color: var(--primary-color-white);
}

.christ-content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.christ-content img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.christ-title {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 30px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--primary-color-white);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

/* RSVP Modal Specific */
.rsvp-modal-content h3 {
  font-size: 1.5rem;
  color: var(--secondary-color-black);
  margin-bottom: 0.5rem;
  text-align: center;
}

.rsvp-modal-instruction {
  font-size: 1rem;
  color: #4a5f73;
  margin-bottom: 1.5rem;
  text-align: center;
}

.rsvp-members-list {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.rsvp-member-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.rsvp-member-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rsvp-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--terti-color);
  flex-shrink: 0;
}

.rsvp-member-name {
  font-size: 1rem;
  color: #2c3e50;
  cursor: pointer;
  user-select: none;
  flex-grow: 1;
  text-align: left;
}

.rsvp-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.rsvp-modal-actions .btn-primary {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  background: var(--terti-color);
  color: var(--primary-color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-modal-actions .btn-primary:hover {
  background: #6f8396;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(134, 152, 170, 0.3);
}

.rsvp-modal-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}

.rsvp-modal-message.sucesso {
  color: #155724;
}

.rsvp-modal-message.erro {
  color: #721c24;
}

/* Responsividade Modal */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    max-height: 90vh;
  }

  .rsvp-modal-content h3 {
    font-size: 1.3rem;
  }

  .rsvp-members-list {
    padding: 1rem;
    max-height: 250px;
  }

  .rsvp-member-item {
    gap: 0.6rem;
  }

  .rsvp-checkbox {
    width: 18px;
    height: 18px;
  }

  .rsvp-member-name {
    font-size: 0.95rem;
  }

  .rsvp-modal-actions .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}
