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

:root {
    /* Cores Principais do Casamento */
    --peach-soft: #FFEEF3;        /* Pêssego Suave - destaques leves */
    --olive-muted: #DADE91;       /* Verde Oliva Mudo - equilíbrio natural */
    --cream-neutral: #FAF8E9;     /* Creme Neutro - base/fundo (60%) */
    
    /* Cores de Suporte */
    --terracotta: #BD7F91;        /* Terracota Médio - botões, CTAs (10%) */
    --moss-deep: #6B705C;         /* Verde Musgo Profundo - peso, textos importantes (10%) */
    --brown-anthracite: #4A4238;  /* Marrom Antracite - texto principal */
    
    /* Cores do Sistema (mapeadas para a nova paleta) */
    --primary-color: var(--terracotta);      /* Botões principais, links */
    --secondary-color: var(--moss-deep);     /* Elementos secundários */
    --accent-color: var(--peach-soft);        /* Destaques, backgrounds alternados */
    --text-dark: var(--brown-anthracite);    /* Texto principal */
    --text-light: var(--moss-deep);           /* Texto secundário */
    --white: var(--cream-neutral);            /* Fundo principal (60%) */
    --gold: var(--olive-muted);               /* Acentos dourados/verde */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: none;
}

.navbar.scrolled {
    background: #F9F9F9;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--peach-soft);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta);
    padding-left: 5rem;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.navbar.scrolled .logo-img {
    filter: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding-right: 5rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-link:hover {
    color: var(--terracotta);
}

.navbar:not(.scrolled) .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .hamburger span {
    background: var(--text-dark);
    box-shadow: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    margin-top: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 120px 2rem 2rem 2rem;
}

.hero-title {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5));
    display: block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #F9F9F9;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    font-weight: 300;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 100px;
    border: 1px solid transparent;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F9F9F9;
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    font-size: 0.9rem;
    color: #F9F9F9;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--peach-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--moss-deep);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--olive-muted);
}

.story-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Story Section */
.story-section {
    padding: 80px 0 80px 0;
    background: #F9F9F9;
    position: relative;
    min-height: 100vh;
}

.story-title-wrapper {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    margin-bottom: 3rem;
    transition: opacity 0.3s ease, padding 0.4s ease, height 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
    padding: 2rem 0 1rem 0;
    transform: translateZ(0);
    will-change: padding, height, background, opacity;
    backface-visibility: hidden;
}

.story-title-wrapper.is-sticky {
    opacity: 1;
}

.story-title-wrapper.is-compact {
    padding: 1.2rem 0 0.6rem 0;
    margin-bottom: 1.8rem;
    background: var(--peach-soft);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    opacity: 0.85;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .story-title-wrapper.is-compact {
        padding: 1rem 0 1rem 0 !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

.story-title-wrapper.is-compact .container {
    text-align: left;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 5rem !important;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .story-title-wrapper.is-compact .container {
        text-align: right !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.story-title-wrapper.is-compact .section-title,
.story-section .story-title-wrapper.is-compact .section-title {
    font-size: 2.1rem;
    padding-bottom: 0;
    padding-top: 0;
    padding-left: 0 !important;
    margin: 0;
    text-align: left !important;
    transition: font-size 0.4s ease, padding-bottom 0.4s ease, text-align 0.4s ease, padding-left 0.4s ease;
}

@media (max-width: 768px) {
    .story-title-wrapper.is-compact .section-title,
    .story-section .story-title-wrapper.is-compact .section-title {
        text-align: right !important;
        font-size: 1.3rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

.story-title-wrapper .container {
    padding-top: 0;
    padding-bottom: 0;
    transition: text-align 0.4s ease, padding-left 0.4s ease;
}

.story-section .container {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.story-section .section-title {
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.story-section .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: transparent;
    z-index: -1;
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.story-title-wrapper.is-compact .story-section .section-title::before,
.story-section .story-title-wrapper.is-compact .section-title::before {
    background: var(--peach-soft);
    backdrop-filter: blur(10px);
}

.story-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #BD7F91;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.story-title-wrapper.is-compact .story-section .section-title::after,
.story-section .story-title-wrapper.is-compact .section-title::after {
    opacity: 0;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--terracotta);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
    transition: font-size 0.4s ease, padding-bottom 0.4s ease, text-align 0.4s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--olive-muted);
}

/* Layout vertical contínuo: cabeçalho -> texto -> carrossel */
.story-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.story-text-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 5rem 1.5rem 5rem;
    overflow: visible;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.story-text p {
    margin-bottom: 1.2rem;
}

.story-columns {
    column-count: 1;
    column-gap: 2.5rem;
    margin-bottom: 2rem;
    column-fill: balance;
}

.story-columns p {
    margin-bottom: 1.2rem;
    text-align: justify;
    break-inside: auto;
    orphans: 3;
    widows: 3;
}

.story-full-width {
    width: 100%;
    text-align: center;
}

.bible-verse {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.7;
    color: #BD7F91;
    text-align: center;
    margin: 2rem 5rem;
    padding: 0;
    max-width: none;
    width: calc(100% - 10rem);
}

/* Carrossel de Fotos - abaixo do texto */
.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: 50vh;
    margin: 0;
    padding: 1rem 0 0.5rem 0;
    display: block;
    visibility: visible;
    opacity: 1;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 300px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    height: 100%;
    min-height: 300px;
    will-change: transform;
    align-items: center;
    visibility: visible;
    transition: transform 0.1s ease-out;
}

.carousel-slide {
    flex-shrink: 0;
    position: relative;
    width: auto;
    height: 100%;
    min-height: 300px;
    aspect-ratio: 9 / 16;
    display: block;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--peach-soft);
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    min-width: 200px;
    min-height: 300px;
}

.carousel-image:hover {
    transform: scale(1.05);
}

/* Ceremony Section */
.ceremony-section {
    padding: 0 0 20px 0;
    margin-top: -1rem;
    position: relative;
    min-height: 600px;
    background: #F9F9F9;
}

.ceremony-title-wrapper {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    margin-bottom: 3rem;
    transition: opacity 0.3s ease, padding 0.4s ease, height 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
    padding: 2rem 0 1rem 0;
    width: 100%;
    display: block;
    clear: both;
    transform: translateZ(0);
    will-change: padding, height, background, opacity;
    backface-visibility: hidden;
}

.ceremony-title-wrapper.is-compact {
    padding: 1.2rem 0 0.6rem 0;
    margin-bottom: 1.8rem;
    background: #E7E6B1;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    opacity: 0.85;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .ceremony-title-wrapper.is-compact {
        padding: 1rem 0 1rem 0 !important;
    }
}

.ceremony-title-wrapper.is-compact .container {
    text-align: left !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 5rem !important;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .ceremony-title-wrapper.is-compact .container {
        text-align: right !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.ceremony-title-wrapper.is-compact .section-title,
.ceremony-section .ceremony-title-wrapper.is-compact .section-title {
    font-size: 2.1rem !important;
    padding-bottom: 0;
    padding-top: 0;
    padding-left: 0 !important;
    margin: 0;
    text-align: left !important;
    transition: font-size 0.4s ease, padding-bottom 0.4s ease, text-align 0.4s ease, padding-left 0.4s ease;
}

@media (max-width: 768px) {
    .ceremony-title-wrapper.is-compact .section-title,
    .ceremony-section .ceremony-title-wrapper.is-compact .section-title {
        text-align: right !important;
        font-size: 1.3rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

.ceremony-title-wrapper .section-title {
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    transition: font-size 0.4s ease, padding-bottom 0.4s ease, text-align 0.4s ease, padding-left 0.4s ease;
}

.ceremony-title-wrapper.is-sticky {
    opacity: 1;
}

.ceremony-background {
    display: none;
}

.ceremony-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    clear: both;
}

.ceremony-title-wrapper .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #71951A;
    transition: opacity 0.4s ease;
}

.ceremony-title-wrapper.is-compact .section-title::after,
.ceremony-section .ceremony-title-wrapper.is-compact .section-title::after {
    opacity: 0;
}

.ceremony-title-wrapper .container,
.confirmation-title-wrapper .container,
.gifts-title-wrapper .container {
    padding-top: 0;
    padding-bottom: 0;
    transition: text-align 0.4s ease, padding-left 0.4s ease;
}

.ceremony-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

.ceremony-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: transparent;
    padding: 2rem;
    text-align: center;
    border: 1px solid #E7E6B1;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    color: rgb(74, 66, 56);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-card h3 i {
    font-size: 1.2rem;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--olive-muted);
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: center;
}

.info-card .local-link {
    color: var(--text-light);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.info-card .local-link:hover {
    opacity: 0.7;
}

.info-time, .info-location {
    font-weight: 600;
    color: var(--moss-deep);
    font-size: 1rem;
}

.ceremony-note {
    grid-column: 1 / -1;
    background: transparent;
    padding: 1.5rem 0;
    margin-top: 0.5rem;
}

.ceremony-note p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    border: 1px solid #E7E6B1;
    padding: 0.5rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
    display: block;
}

.ceremony-photo {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    border: 1px solid #E7E6B1;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.capela-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.map-placeholder {
    background: var(--cream-neutral);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--olive-muted);
}

.map-placeholder p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.map-note {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Confirmation Section */
.confirmation-section {
    padding: 80px 20px;
    background: #F9F9F9;
}

.confirmation-title-wrapper {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    margin-bottom: 3rem;
    transition: opacity 0.3s ease, padding 0.4s ease, height 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
    padding: 2rem 0 1rem 0;
    transform: translateZ(0);
    will-change: padding, height, background, opacity;
    backface-visibility: hidden;
}

.confirmation-title-wrapper.is-compact {
    padding: 1.2rem 0 0.6rem 0 !important;
    margin-bottom: 1.8rem;
    background: var(--peach-soft);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    opacity: 0.85;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .confirmation-title-wrapper.is-compact {
        padding: 1rem 0 1rem 0 !important;
    }
}

.confirmation-title-wrapper.is-compact .container {
    text-align: left !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 5rem !important;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .confirmation-title-wrapper.is-compact .container {
        text-align: right !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.confirmation-title-wrapper.is-compact .section-title,
.confirmation-section .confirmation-title-wrapper.is-compact .section-title,
.confirmation-section .confirmation-title-wrapper.is-compact .container .section-title {
    font-size: 2.1rem !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    transition: font-size 0.4s ease, padding-bottom 0.4s ease, text-align 0.4s ease, padding-left 0.4s ease !important;
}

@media (max-width: 768px) {
    .confirmation-title-wrapper.is-compact .section-title,
    .confirmation-section .confirmation-title-wrapper.is-compact .section-title,
    .confirmation-section .confirmation-title-wrapper.is-compact .container .section-title {
        text-align: right !important;
        font-size: 1.3rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

.confirmation-title-wrapper .section-title {
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    padding-left: 0;
    transition: font-size 0.4s ease, padding-bottom 0.4s ease, text-align 0.4s ease, padding-left 0.4s ease;
}

.confirmation-title-wrapper .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #BD7F91;
    transition: opacity 0.4s ease;
}

.confirmation-title-wrapper.is-compact .section-title::after,
.confirmation-section .confirmation-title-wrapper.is-compact .section-title::after {
    opacity: 0;
}

.confirmation-title-wrapper.is-sticky {
    opacity: 1;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.confirmation-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--peach-soft);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.confirmation-screen .confirmation-form {
    background: transparent;
    max-width: 100%;
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(217, 139, 114, 0.2);
}

.shoe-size-group {
    margin-bottom: 1.5rem;
}

.shoe-size-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--olive-muted);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #F9F9F9;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shoe-size-select:hover {
    border-color: var(--terracotta);
}

.shoe-size-select:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(217, 139, 114, 0.1);
}

.shoe-size-select-inline {
    min-width: 120px;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--olive-muted);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #F9F9F9;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shoe-size-select-inline:hover {
    border-color: var(--terracotta);
}

.shoe-size-select-inline:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(217, 139, 114, 0.1);
}

.shoe-size-select-inline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .guest-checkbox-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shoe-size-select-inline {
        width: 100%;
        min-width: unset;
    }
}

/* Modal de Erro (Trava-tela) */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.error-modal-content {
    position: relative;
    background: #F9F9F9;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

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

.error-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--olive-muted);
}

.error-modal-header h3 {
    margin: 0;
    color: var(--terracotta);
    font-size: 1.5rem;
    text-align: center;
}

.error-modal-body {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.error-modal-body p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.error-modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    justify-content: center;
}

.error-modal-btn {
    background: var(--terracotta);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.error-modal-btn:hover {
    background: var(--moss-deep);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.error-modal-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .error-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .error-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .error-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .error-modal-body {
        padding: 1.5rem;
    }
    
    .error-modal-body p {
        font-size: 1rem;
    }
    
    .error-modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .error-modal-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--terracotta);
    color: #F9F9F9;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 3px 10px rgba(217, 139, 114, 0.3);
}

.submit-btn:hover {
    background: var(--moss-deep);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 112, 92, 0.3);
}

.confirmation-message {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.confirmation-message.success {
    display: block;
    background: var(--olive-muted);
    color: var(--brown-anthracite);
    border: 2px solid var(--terracotta);
}

.confirmation-message.error {
    display: block;
    background: var(--peach-soft);
    color: var(--brown-anthracite);
    border: 2px solid var(--moss-deep);
}

/* Nova interface de confirmação */
.confirmation-screen {
    max-width: 700px;
    margin: 0 auto;
}

.guest-info-card {
    background: transparent;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--peach-soft);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guest-info-card.has-photo {
    flex-direction: row;
    align-items: center;
    text-align: left;
}

.guest-info-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.guest-info-card.has-photo h3,
.guest-info-card.has-photo .guest-code-display {
    text-align: left;
}

.guest-photo-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
}

.guest-info-card.has-photo .guest-photo-container {
    margin-bottom: 0;
    margin-right: 1.5rem;
    align-self: center;
}

.guest-photo-polaroid {
    width: 200px;
    background: var(--cream-neutral);
    padding: 12px 12px 55px 12px;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    position: relative;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
}

.guest-photo-polaroid-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
    display: block;
    background: var(--peach-soft);
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

.guest-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--peach-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--terracotta);
    color: var(--moss-deep);
}

.photo-placeholder span {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.photo-placeholder p {
    font-size: 0.85rem;
    margin: 0;
}

.guest-info-card h3 {
    color: rgb(74, 66, 56);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.guest-code-display {
    color: var(--text-light);
    font-size: 0.9rem;
}

.guest-code-display span {
    font-weight: 600;
    color: var(--moss-deep);
    letter-spacing: 2px;
}

.guest-confirmation-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(218, 222, 145, 0.3);
}

.guest-confirmation-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.guest-confirmation-date strong {
    color: var(--terracotta);
    font-weight: 600;
}

.guest-confirmation-info {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

.guests-list {
    background: transparent;
    padding: 0;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: none;
    border: none;
}

.confirmation-form .guests-list {
    margin-bottom: 2rem;
}

.guests-list h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.edit-confirmation-toggle-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--terracotta);
    color: white;
    border: 2px solid var(--terracotta);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.edit-confirmation-toggle-btn:hover {
    background: var(--moss-deep);
    border-color: var(--moss-deep);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guests-list.hidden-by-default {
    display: none;
}

.guest-checkbox-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--peach-soft);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guest-checkbox-item:hover {
    background: var(--olive-muted);
}

.guest-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.guest-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
}

.guest-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--terracotta);
}

.guest-checkbox-label input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.guest-name {
    color: var(--text-dark);
    font-weight: 500;
}

.no-companions {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.back-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1rem;
}

.back-btn:hover {
    background: var(--terracotta);
    color: #F9F9F9;
}

/* Informações de confirmação */
.confirmed-info {
    background: #FAF8E9;
    border: 2px solid var(--terracotta);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.confirmed-badge {
    display: inline-block;
    background: var(--terracotta);
    color: #F9F9F9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(217, 139, 114, 0.3);
}

.confirmed-date,
.confirmed-phone {
    color: var(--brown-anthracite);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.undo-note {
    color: var(--brown-anthracite);
    background: var(--peach-soft);
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--terracotta);
}

/* Lista de pessoas confirmadas */
.confirmed-people-list {
    margin: 1rem 0;
    padding: 1rem;
    background: transparent;
    border-radius: 8px;
    border: none;
}

.confirmed-people-list strong {
    color: var(--moss-deep);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.confirmed-people-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmed-people-ul li {
    padding: 0.5rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--brown-anthracite);
    font-size: 0.95rem;
}

.confirmed-people-ul li::before {
    content: "✓";
    position: absolute;
    left: 0.2rem;
    color: var(--terracotta);
    font-weight: bold;
    font-size: 1.1rem;
}

.undo-btn {
    width: 100%;
    padding: 0.8rem;
    background: #dc3545;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1rem;
}

.undo-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Modal de Agradecimento */
.thank-you-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.thank-you-modal-content {
    background: var(--cream-neutral);
    padding: 2rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    border: 3px solid var(--terracotta);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-thank-you-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-thank-you-modal:hover {
    color: var(--text-dark);
}

.thank-you-photo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px 20px 45px 20px;
}

.thank-you-photo {
    width: 200px;
    background: var(--cream-neutral);
    padding: 10px 10px 50px 10px;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    position: relative;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
}

.thank-you-photo::before {
    content: '❤️';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 10;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(5px);
    }
}

.thank-you-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
    display: block;
    background: var(--peach-soft);
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

.thank-you-message h2 {
    color: rgb(107, 112, 92);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.thank-you-names {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.thank-you-signature {
    color: var(--brown-anthracite);
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #BD7F91;
}

.thank-you-signature strong {
    color: var(--terracotta);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: normal;
    display: block;
    margin-top: 0.5rem;
}

/* Mensagem de já confirmado */
.already-confirmed-message {
    background: var(--peach-soft);
    border: 2px solid var(--terracotta);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.already-confirmed-message p {
    color: var(--brown-anthracite);
    margin: 0.5rem 0;
    font-size: 1rem;
}

.already-confirmed-message p strong {
    color: var(--terracotta);
    font-weight: 600;
}

.edit-note {
    color: var(--brown-anthracite);
    background: var(--peach-soft);
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--terracotta);
}

.edit-note-disabled {
    color: var(--brown-anthracite);
    background: var(--olive-muted);
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--moss-deep);
}

/* Responsivo para modal */
@media (max-width: 768px) {
    .thank-you-modal-content {
        padding: 1.5rem 1rem;
        max-width: 90%;
    }
    
    .thank-you-photo-container {
        padding: 15px 15px 45px 15px;
    }
    
    .thank-you-photo {
        width: 160px;
        max-width: calc(100% - 30px);
        padding: 8px 8px 40px 8px;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
    }
    
    .thank-you-photo img {
        width: 100%;
        max-width: 100%;
        height: 180px;
        max-height: 180px;
        object-fit: cover;
        object-position: center;
        box-sizing: border-box;
        display: block;
        border-radius: 2px;
    }
    
    .thank-you-message h2 {
        font-size: 1.3rem;
    }
    
    .thank-you-names {
        font-size: 1rem;
    }
}

/* Gifts Section */
.gifts-section {
    padding: 80px 10px;
    background: #F9F9F9;
    position: relative;
}

.gifts-title-wrapper {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    margin-bottom: 3rem;
    transition: opacity 0.2s ease, padding 0.2s ease, margin-bottom 0.2s ease, background 0.2s ease, backdrop-filter 0.2s ease, box-shadow 0.2s ease;
    padding: 2rem 0 1rem 0;
    will-change: padding, margin-bottom, background, opacity;
    min-height: auto;
    width: 100%;
    display: block;
    clear: both;
    align-self: flex-start;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .gifts-section {
        position: relative;
        overflow: visible !important;
        padding: 2rem 10px 80px 10px !important;
    }
    
    .gifts-title-wrapper {
        position: sticky !important;
        top: 70px !important;
        z-index: 100 !important;
        width: calc(100% + 20px) !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        background: #E7E6B1 !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    .gifts-title-wrapper.is-sticky {
        background: #E7E6B1 !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    .gifts-title-wrapper .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .gifts-title-wrapper .section-title {
        margin-bottom: 0 !important;
        font-size: 1.3rem !important;
    }
    
    .gifts-filters-compact {
        display: none !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        opacity: 0 !important;
        width: 100% !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
    }
    
    .gifts-title-wrapper.is-sticky .gifts-filters-compact,
    .gifts-title-wrapper.is-compact .gifts-filters-compact {
        display: flex !important;
        opacity: 1 !important;
    }
    
    .gifts-title-wrapper.is-sticky ~ .container .gifts-filters,
    .gifts-title-wrapper.is-compact ~ .container .gifts-filters {
        display: none !important;
    }
    
    .filter-group-compact {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.3rem !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    
    .filter-label-compact {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        margin-bottom: 0 !important;
    }
    
    .filter-tabs-compact {
        display: none !important;
    }
    
    .filter-tab-compact {
        display: none !important;
    }
    
    .filter-select-categoria-mobile {
        display: block !important;
    }
    
    .filter-select-compact {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.75rem !important;
        padding: 0.35rem 0.5rem !important;
    }
    
    .gifts-section .container {
        overflow: visible !important;
    }
    
    .gifts-grid {
        overflow: visible !important;
    }
    
    /* Garantir que filtros normais apareçam quando cabeçalho não está sticky */
    .gifts-filters {
        display: inline-flex !important;
    }
    
    /* Ocultar filtros normais quando cabeçalho está sticky */
    .gifts-title-wrapper.is-sticky ~ .container .gifts-filters,
    .gifts-title-wrapper.is-compact ~ .container .gifts-filters {
        display: none !important;
    }
}

.gifts-title-wrapper.is-compact {
    padding: 1rem 0 1rem 0 !important;
    margin-bottom: 1.8rem !important;
    background: #E7E6B1;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    opacity: 0.95;
    min-height: auto;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    align-items: center;
}

.gifts-title-wrapper .container {
    transition: padding-left 0.2s ease, padding-right 0.2s ease, max-width 0.2s ease, margin 0.2s ease, text-align 0.2s ease, display 0s ease, flex-direction 0.2s ease;
    min-height: auto;
}

.gifts-title-wrapper.is-compact .container {
    text-align: left !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 5rem !important;
    padding-right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gifts-title-wrapper.is-compact .container {
        text-align: right !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.gifts-title-wrapper.is-compact .section-title,
.gifts-section .gifts-title-wrapper.is-compact .section-title,
.gifts-section .gifts-title-wrapper.is-compact .container .section-title {
    font-size: 2.1rem !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    transition: font-size 0.2s ease, padding-bottom 0.2s ease, text-align 0.2s ease, padding-left 0.2s ease, margin-bottom 0.2s ease !important;
}

@media (max-width: 768px) {
    .gifts-title-wrapper.is-compact .section-title,
    .gifts-section .gifts-title-wrapper.is-compact .section-title,
    .gifts-section .gifts-title-wrapper.is-compact .container .section-title {
        text-align: right !important;
        font-size: 1.3rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

.gifts-title-wrapper .section-title {
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    padding-left: 0;
    transition: font-size 0.2s ease, padding-bottom 0.2s ease, text-align 0.2s ease, padding-left 0.2s ease;
    min-height: auto;
}

.gifts-title-wrapper .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #71951A;
    transition: opacity 0.4s ease;
}

.gifts-title-wrapper.is-compact .section-title::after,
.gifts-section .gifts-title-wrapper.is-compact .section-title::after {
    opacity: 0;
}

.gifts-title-wrapper.is-sticky {
    opacity: 1;
}

@media (max-width: 768px) {
    .gifts-title-wrapper.is-sticky {
        background: #E7E6B1 !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .gifts-title-wrapper.is-compact.is-sticky {
        background: #E7E6B1 !important;
    }
}

/* Filtros compactos no cabeçalho */
.gifts-filters-compact {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.2s ease, display 0s ease 0.2s;
    min-height: 0;
}

.gifts-title-wrapper.is-compact .gifts-filters-compact {
    display: flex;
    opacity: 1;
    transition: opacity 0.2s ease, display 0s ease;
}

.gifts-title-wrapper.is-compact .section-title {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}

.gifts-title-wrapper.is-compact .section-title {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}

.filter-group-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label-compact {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.filter-tabs-compact {
    display: flex;
    gap: 0.5rem;
}

.filter-tab-compact {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--moss-deep);
    color: var(--moss-deep);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab-compact:hover {
    background: var(--moss-deep);
    color: #F9F9F9;
}

.filter-tab-compact.active {
    background: var(--moss-deep);
    color: #F9F9F9;
}

.filter-select-compact {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border: 1px solid var(--moss-deep);
    border-radius: 5px;
    background: transparent;
    color: var(--moss-deep);
    cursor: pointer;
    min-width: 120px;
}

.filter-select-compact:focus {
    outline: none;
    border-color: var(--terracotta);
}

/* Esconder filtros normais quando cabeçalho está compacto */
.gifts-title-wrapper.is-compact ~ .container .gifts-filters {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease, padding 0.2s ease;
    pointer-events: none;
}

/* Filtros */
.gifts-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0 2rem auto;
    padding: 1.5rem 2rem;
    background: transparent;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: fit-content;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--olive-muted);
    background: var(--cream-neutral);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-tab:hover {
    background: var(--olive-muted);
    color: white;
}

.filter-tab.active {
    background: var(--terracotta);
    color: white;
    border-color: var(--terracotta);
}

.filter-select {
    padding: 0.6rem 1rem;
    border: 2px solid var(--olive-muted);
    border-radius: 8px;
    background: var(--cream-neutral);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(217, 139, 114, 0.1);
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .story-columns {
        column-count: 2;
        column-fill: balance;
    }
    
    .gifts-section .container {
        max-width: 98%;
        padding: 0 15px;
    }
}

.gift-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--olive-muted);
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card de presente surpresa */
.gift-card-surprise {
    border: 2px solid var(--terracotta);
    background: linear-gradient(135deg, rgba(255, 238, 243, 0.3) 0%, rgba(218, 222, 145, 0.3) 100%);
}

.gift-card-surprise:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(189, 127, 145, 0.3);
    border-color: var(--moss-deep);
}

/* Presente confirmado - opaco */
.gift-card-confirmed {
    opacity: 0.5;
    position: relative;
    cursor: default;
}

.gift-card-confirmed:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

/* Tooltip para presente confirmado */
.gift-card-confirmed {
    position: relative;
}

.gift-card-confirmed::after {
    content: 'Davi e Yas já ganharam 🎉';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.2rem;
    background: var(--moss-deep);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gift-card-confirmed::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--moss-deep);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.gift-card-confirmed:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.gift-card-confirmed:hover::before {
    opacity: 1;
}

/* Badge de confirmado */
.gift-card-confirmed-badge {
    margin-top: auto;
    padding: 0.8rem;
    background: var(--moss-deep);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

.gift-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--peach-soft);
}

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

.gift-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gift-card-name {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gift-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gift-card-tema,
.gift-card-faixa {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.gift-card-tema {
    background: var(--olive-muted);
    color: #71951A;
}

.gift-card-faixa {
    background: var(--peach-soft);
    color: #BD7F91;
}

.gift-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.gift-card-btn {
    margin-top: auto;
    padding: 0.8rem;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

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

.loading-message,
.no-gifts-message,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.error-message {
    color: var(--terracotta);
}

/* Modal de Presente */
.gift-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gift-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.gift-modal-content {
    position: relative;
    background: #F9F9F9;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.gift-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.gift-modal-close:hover {
    background: var(--peach-soft);
    color: var(--terracotta);
}

.gift-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--olive-muted);
}

.gift-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    text-align: center;
}

.gift-modal-body {
    padding: 2rem;
}

.gift-modal-image {
    width: 100%;
    height: 300px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--peach-soft);
}

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

.gift-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gift-modal-price {
    font-size: 1.3rem;
    color: var(--terracotta);
    text-align: center;
    padding: 1rem;
    background: var(--peach-soft);
    border-radius: 10px;
}

.gift-modal-pix {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gift-modal-pix label {
    font-weight: 600;
    color: var(--text-dark);
}

.pix-key-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--cream-neutral);
    border: 2px solid var(--olive-muted);
    border-radius: 8px;
    word-break: break-all;
}

.pix-key-display span {
    flex: 1;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.copy-pix-btn {
    padding: 0.5rem 1rem;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-pix-btn:hover {
    background: var(--moss-deep);
}

.gift-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1rem;
}

.gift-submit-btn:hover {
    background: var(--moss-deep);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gift-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .gifts-filters {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .gifts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Simplificar cards no mobile para evitar tremor */
    .gift-card {
        transition: none;
    }
    
    .gift-card:hover {
        transform: none;
    }
    
    .gift-card-image img {
        image-rendering: auto;
    }
    
    .gift-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .gift-modal-image {
        height: 200px;
    }
    
    .pix-key-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-pix-btn {
        width: 100%;
    }
    
    /* Otimizar grid de presentes no mobile */
    .gifts-grid {
        transform: translateZ(0);
        will-change: contents;
        contain: layout style paint;
    }
}

/* PIX Modal */
.pix-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.pix-modal-content {
    background-color: var(--cream-neutral);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--terracotta);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.pix-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pix-key-container {
    text-align: center;
}

.pix-key {
    background: var(--peach-soft);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    word-break: break-all;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    border: 1px solid var(--olive-muted);
}

.copy-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--terracotta);
    color: #F9F9F9;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.copy-btn:hover {
    background: var(--moss-deep);
}

.pix-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--moss-deep);
    color: #F9F9F9;
    padding: 2rem 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    color: white;
}

.footer-date {
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 2rem;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .nav-logo {
        padding-left: 0;
        flex: 0 0 auto;
        margin-right: auto;
    }
    
    .navbar.scrolled .nav-logo {
        margin-left: 0;
        margin-right: auto;
    }
    
    .hamburger {
        display: flex;
        padding-right: 0;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        flex-direction: column;
        background-color: #F9F9F9;
        width: 100%;
        text-align: center;
        transition: top 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 2px solid var(--peach-soft);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }
    
    /* Reduzir fonte dos títulos de seção no modo compacto (mobile) */
    .story-title-wrapper.is-compact .section-title,
    /* Ajustar padding igual superior e inferior nos cabeçalhos compactos (mobile) - MAIOR ESPECIFICIDADE */
    .story-section .story-title-wrapper.is-compact,
    .ceremony-section .ceremony-title-wrapper.is-compact,
    .confirmation-section .confirmation-title-wrapper.is-compact,
    .gifts-section .gifts-title-wrapper.is-compact {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ajustar padding do container no modo compacto (mobile) - MAIOR ESPECIFICIDADE */
    .story-section .story-title-wrapper.is-compact .container,
    .ceremony-section .ceremony-title-wrapper.is-compact .container,
    .confirmation-section .confirmation-title-wrapper.is-compact .container,
    .gifts-section .gifts-title-wrapper.is-compact .container {
        text-align: right !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Ajustar títulos no modo compacto (mobile) - MAIOR ESPECIFICIDADE */
    .story-section .story-title-wrapper.is-compact .section-title,
    .story-section .story-title-wrapper.is-compact .container .section-title,
    .ceremony-section .ceremony-title-wrapper.is-compact .section-title,
    .ceremony-section .ceremony-title-wrapper.is-compact .container .section-title,
    .confirmation-section .confirmation-title-wrapper.is-compact .section-title,
    .confirmation-section .confirmation-title-wrapper.is-compact .container .section-title,
    .gifts-section .gifts-title-wrapper.is-compact .section-title,
    .gifts-section .gifts-title-wrapper.is-compact .container .section-title {
        text-align: right !important;
        font-size: 1.3rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }
    

    .nav-menu.active {
        top: 70px;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        color: rgb(74, 66, 56);
        text-shadow: none;
    }

    .hero {
        padding: 120px 20px 50px;
    }

    .hero-title {
        max-width: 400px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 1rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .story-layout {
        height: auto;
        min-height: auto;
        gap: 3rem;
    }
    
    .story-text-container {
        padding: 2rem 0;
    }
    
    .carousel-container {
        min-height: 400px;
    }
    
    .carousel-slide {
        width: 250px;
    }
    
    @media (max-width: 768px) {
        .carousel-slide {
            width: 200px;
        }
    }

    .ceremony-section {
        padding: 80px 20px;
    }
    
    .ceremony-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .ceremony-note {
        padding: 1.2rem 1.5rem;
    }
    
    .ceremony-section .section-title {
        padding: 0 1rem;
    }
    
    .ceremony-info {
        flex-direction: column;
    }

    .confirmation-form {
        padding: 2rem 1.5rem;
    }

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

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .story-text-container {
        padding: 3rem 2rem;
    }
    
    .story-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .bible-verse {
        font-size: 1.2rem;
        padding: 0;
        margin: 2rem auto;
    }
    
    .carousel-slide {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        max-width: 300px;
    }
    
    .hero-content {
        padding-top: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .countdown-item {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        padding: 0.75rem;
    }
    
    .story-text-container {
        padding: 2rem 1.5rem;
    }
    
    .story-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .bible-verse {
        font-size: 1rem;
        padding: 0;
        margin: 1.5rem auto;
    }
}

