@font-face {
    font-family: 'Montserrat';
    src: url('../Fonts/Montserrat-Regular.ttf') format('TTF');

}

@font-face {
    font-family: 'Bodoni-bold';
    src: url('../Fonts/BodoniModa_18pt-Bold.ttf') format('TTF');

}

@font-face {
    font-family: 'Bodoni-black';
    src: url('../Fonts/BodoniModa_18pt-Black.ttf') format('TTF');

}

/* Estilo geral da página */
body {
    width: 100vw;
    font-family: 'Montserrat', sans-serif !important;
    background: #f4f4f4 !important;
    line-height: 1 !important;
    margin: 0;
    overflow-x: hidden;
}

html {
    width: 100vw;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #333 !important;
    font-weight: bold !important;
}

#dietary,
#countdown,
#contact,
#agenda {
    font-size: 4rem;
}

.title-color {
    color: #ae9463;
}

/* Container da timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 20px 0;
    opacity: 0;
    /* Timeline começa invisível */
    transition: opacity 1s ease-in-out;
    /* Animação de fade-in */
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 0;
    background: #ae9463;
    transform: translateX(-50%);
    z-index: 0;
    transition: height 4s ease;
    /* Agora com 4 segundos */
}


/* Cada item da timeline */
.timeline-item {
    position: relative;
    width: 50%;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 40px;
    box-sizing: border-box;
    opacity: 0;
    /* Inicia invisível */
    transform: translateY(30px);
    /* Inicia com movimento de deslizamento */
    transition: all 0.6s ease;
    /* Transição para a animação */
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item .content {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
}





/* Bolinhas da timeline */
.dot {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #ae9463;

    border-radius: 50%;
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
    z-index: 2;
    box-shadow: 0 0 4px 2px #776545;

    transition: transform 0.4s ease, opacity 0.4s ease;
}

.dot.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.content p {
    font-size: 1.25rem;
}

/* Responsivo para telas pequenas */
@media screen and (max-width: 768px) {

    #email {
        font-size: 1rem;
    }

    #dietary,
    #countdown,
    #contact,
    #agenda,
    #registry-gifts,
    #detalhes {
        font-size: 2rem !important;
    }

    .timeline-item {
        width: 100%;
        text-align: left;
        padding-left: 60px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .content,
    .timeline-item.right .content {
        margin: 0 0 20px 40px;
    }

    .timeline-line {
        position: absolute;
        top: 0;
        left: 50px;
        width: 1px;
        height: 0;
        background: #ae9463;
        transform: translateX(-50%);
        z-index: 0;
        transition: height 4s ease;
        /* Agora com 4 segundos */
    }


    .dot.show {
        left: 50px;
    }

    .content {
        text-align: left;
    }

    #title {
        font-size: 2rem !important;
    }

}


/* Countdown */
.countdown-wrapper {
    text-align: center;
    padding: 60px 20px;
}

.countdown-wrapper h3 {
    font-size: 3rem;
}

.bold {
    font-weight: 700;
}

.thin {
    font-weight: 300;
}

.countdown-wrapper h4 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #c7ae84;
    border-radius: 30px;
    padding: 30px 40px;
}

.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 3rem;
    min-width: 80px;
}

.time small {
    font-size: 1rem;
    margin-top: 5px;
}

.colon {
    font-size: 2.5rem;
    color: white;
    align-self: center;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #f5f1ee;
    position: relative;
    z-index: 10;
}

.logo img {
    height: 80px;
}

.language-switch a {
    text-decoration: none;
    color: #333;

    margin: 0 0.25rem;
}

.language-switch a.active {
    font-weight: bold;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    background: url('img/header.png') center center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2rem;
    animation: fadeIn 3s ease-out forwards;
    opacity: 0;

}

.pr-80 {
    padding-right: 80px !important;
}

.pl-80 {
    padding-left: 80px !important;
}



.hero-text {
    background-color: #eeeae7;
    padding: 1.5rem 2rem;
    max-width: 560px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-text h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    font-weight: bold;
}

.hero-text .date {
    font-size: 1rem;
    color: #555;
}

/* Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 30vh;
    }

    .pr-80 {
        padding-right: 0 !important;
    }

    .pl-80 {
        padding-right: 0 !important;
    }

    #registry {
        padding-left: 0 !important;
    }

    .hero-text {
        max-width: 90%;
        margin-top: 300px;
    }

    .navbar {
        flex-direction: column;
    }
}

/* Initial state for animation */
.hero {
    animation: fadeInHero 4.5s ease-out forwards;
    opacity: 0;
}

.hero-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-text.show {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes for hero fade-in */
@keyframes fadeInHero {
    to {
        opacity: 1;
    }
}

#historia {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

#historia.show {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    #historia {
        margin-top: 200px !important;
    }
}

.custom-paragraph {
    text-align: justify;
    position: relative;
}

.custom-paragraph .right-align {
    display: block;
    text-align: right;
    margin-top: 1em;
}