* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    color: #203654;
    font-family: "Nunito", sans-serif;

    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    background: url("../img/fundo.png") center top / cover no-repeat;

    filter: blur(4px);

    transform: scale(1.05);

    z-index: -1;
}
a {
    color: inherit;
    text-decoration: none;
}


img {
    max-width: 100%;
}




.cabecalho {
    width: min(1100px, calc(100% - 40px));

    min-height: 80px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    position: relative;
    z-index: 10;
}


.logo {
    font-family: "Caveat", cursive;

    font-size: 35px;
    font-weight: 600;

    color: #203654;
}


.logo span {
    color: #5898dc;
}


.menu {
    display: flex;
    align-items: center;

    gap: 38px;
}


.menu a {
    position: relative;

    font-size: 15px;
    font-weight: 600;

    transition: 0.2s;
}


.menu a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #5599df;

    transform: translateX(-50%);

    transition: 0.2s;
}


.menu a:hover {
    color: #4f91d6;
}


.menu a:hover::after {
    width: 100%;
}



.inicio {
    width: min(1100px, calc(100% - 40px));

    min-height: 470px;

    margin: 0 auto;

    display: flex;
    align-items: center;
}


.inicio-conteudo {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


.inicio-texto {
    max-width: 520px;
}


.detalhe {
    color: #5898dc;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}


.inicio h1 {
    margin-top: 12px;

    color: #4f91d6;

    font-family: "Caveat", cursive;

    font-size: clamp(75px, 10vw, 120px);
    font-weight: 500;

    line-height: 0.9;
}


.inicio h2 {
    max-width: 500px;

    margin-top: 20px;

    color: #203654;

    font-size: clamp(25px, 4vw, 39px);
    font-weight: 600;

    line-height: 1.2;
}


.inicio h2 strong {
    color: #4f91d6;
}


.inicio-texto > p {
    max-width: 430px;

    margin-top: 24px;

    color: #405775;

    font-size: 18px;

    line-height: 1.7;
}


.botao-amor {
    width: fit-content;

    margin-top: 28px;

    display: inline-flex;
    align-items: center;

    padding: 12px 22px;

    border: 1px solid rgba(79, 145, 214, 0.55);
    border-radius: 999px;

    color: #397fc8;

    background: rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(8px);

    transition: 0.2s;
}


.botao-amor:hover {
    background: white;

    transform: translateY(-2px);
}


.desenho-coracao {
    min-width: 300px;

    color: rgba(255, 255, 255, 0.9);

    font-family: "Caveat", cursive;

    font-size: 230px;
    font-weight: 300;

    text-align: center;

    text-shadow:
        0 0 10px rgba(73, 145, 216, 0.25),
        0 0 30px rgba(255, 255, 255, 0.75);

    transform: rotate(-8deg);
}



.secao {
    width: min(1100px, calc(100% - 40px));

    margin: 100px auto 0;
}


.titulo-secao {
    margin-bottom: 25px;

    display: flex;
    align-items: center;

    gap: 8px;

    font-family: "Caveat", cursive;
}


.titulo-secao span {
    font-size: 37px;
    font-weight: 600;

    
}

.titulo-secao span {
    display: block;

    text-align: center;

    font-size: 37px;
    font-weight: 600;
}


.titulo-secao small {
    color: #5599df;

    font-size: 26px;
}




.mensagens {
    width: min(1200px, calc(100% - 40px));

    margin: 80px auto 110px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: center;

    gap: 35px;
}




.card-nuvem {
    width: 100%;
    max-width: 370px;

    position: relative;

    margin: 0 auto;

    transition: transform 0.3s ease;
}




.card-nuvem.maior {
    max-width: 420px;

    transform: translateY(18px);
}



.card-nuvem img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    user-select: none;
    pointer-events: none;
}



.conteudo-nuvem {
    position: absolute;

 

    top: 19%;
    left: 14%;
    right: 14%;
    bottom: 27%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    z-index: 2;
}








.conteudo-nuvem p {

    width: 100%;

    margin: 0;

    color: #5d718c;

    font-family: "Caveat", cursive;

    font-size: clamp(15px, 1.2vw, 18px);

    font-weight: 500;

    line-height: 1.45;

    text-align: center;

}




.conteudo-nuvem {

    top: 22%;
    left: 14%;
    right: 14%;
    bottom: 25%;

}


.card-nuvem.maior .conteudo-nuvem p{

    font-size: clamp(19px,1.6vw,23px);

}




.card-nuvem:hover {
    transform: translateY(-8px);
}


.card-nuvem.maior:hover {
    transform: translateY(8px) scale(1.02);
}




@media (max-width: 950px) {

    .mensagens {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 45px 25px;
    }


    .card-nuvem.maior {
        transform: none;
    }


    .card-nuvem:nth-child(3) {
        grid-column: 1 / -1;

        max-width: 390px;
    }


    .card-nuvem.maior:hover {
        transform: translateY(-8px);
    }

}




@media (max-width: 650px) {

    .mensagens {
        width: min(430px, calc(100% - 24px));

        grid-template-columns: 1fr;

        margin-top: 65px;

        gap: 35px;
    }


    .card-nuvem,
    .card-nuvem.maior,
    .card-nuvem:nth-child(3) {
        width: 100%;
        max-width: 390px;

        grid-column: auto;

        transform: none;
    }


    .conteudo-nuvem,
    .card-nuvem.maior .conteudo-nuvem {
        top: 18%;
        left: 14%;
        right: 14%;
        bottom: 27%;
    }


    .conteudo-nuvem p,
    .card-nuvem.maior .conteudo-nuvem p {
        font-size: clamp(22px, 7vw, 28px);
    }

}




.linha-tempo {
    min-height: 170px;

    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.72);

    box-shadow: 0 16px 35px rgba(46, 104, 160, 0.12);

    backdrop-filter: blur(15px);
}


.evento {
    width: 140px;

    text-align: center;
}

.evento-icone {
    margin-bottom: 6px;

    color: #5599df;

    font-size: 20px;
}


.evento strong {
    display: block;

    color: #397fc8;

    font-size: 14px;
}


.evento p {
    margin-top: 7px;

    color: #415571;

    font-size: 13px;

    line-height: 1.35;
}


.traco {
    width: 45px;

    border-top: 2px dashed rgba(79, 145, 214, 0.45);
}


.galeria {
    width: 100%;
    min-height: 420px;

    padding: 60px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 35px;
}

.polaroid {
    width: 220px;

    padding: 12px 12px 22px;

    position: relative;

    background: #fff;

    box-shadow: 0 14px 25px rgba(35, 83, 130, 0.2);

    cursor: zoom-in;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.polaroid:hover {
    z-index: 5;

    transform: rotate(0deg) translateY(-8px) scale(1.03);

    box-shadow: 0 18px 32px rgba(35, 83, 130, 0.22);
}

.polaroid.zoomed {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(1.55) !important;

    z-index: 1001;

    cursor: zoom-out;

    border-radius: 8px;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.zoom-overlay {
    position: fixed;
    inset: 0;

    background: rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition: opacity .2s ease;

    z-index: 1000;
}

.zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.polaroid img {
    width: 100%;
    height: 250px;

    display: block;

    object-fit: cover;
}

.polaroid figcaption {
    margin-top: 14px;

    color: #405775;

    font-family: "Dancing Script", cursive;

    font-size: 14px;

    text-align: center;
}

.fita {
    width: 82px;
    height: 24px;

    position: absolute;

    top: -12px;
    left: 50%;

    background: rgba(111, 178, 235, 0.55);

    transform: translateX(-50%);
}

.polaroid-1 {
    transform: rotate(-7deg);
}

.polaroid-2 {
    transform: rotate(3deg);
}

.polaroid-3 {
    transform: rotate(-4deg);
}



.cartinha {
    width: min(100%, 1000px);
    max-width: 1000px;

    margin-bottom: 80px;
    padding: 55px;

    display: flex;
    flex-direction: column;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 35px;

    text-align: center;

    background: rgba(255, 255, 255, 0.72);

    box-shadow: 0 18px 40px rgba(46, 104, 160, 0.13);

    backdrop-filter: blur(14px);
}

.cartinha[hidden] {
    display: none;
}


.cartinha-icone {
    color: #5599df;

    font-size: 45px;
}


.cartinha h2 {
    margin-top: 10px;

    font-family: "Caveat", cursive;

    font-size: 42px;
}


.cartinha p {
    max-width: 600px;

    margin-top: 20px;

    color: #405775;

    font-size: 17px;

    line-height: 1.8;
}


.cartinha strong {
    margin-top: 22px;

    color: #397fc8;
}



.logo {
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.logo img {
    width: 66px;     
    height: 60px;

    object-fit: contain;
    display: block;

    transition: transform .25s ease;
}

.logo:hover img {
    transform: scale(1.08);
}


.assinatura {
    margin-top: 32px;

    font-family: "Caveat", cursive;

    font-size: 28px;
}




footer {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #527091;

    background: rgba(255, 255, 255, 0.35);
}


footer span {
    color: #5599df;
}




@media (max-width: 850px) {

    .cabecalho {
        padding-top: 20px;

        flex-direction: column;
    }


    .menu {
        gap: 18px;

        flex-wrap: wrap;
        justify-content: center;
    }


    .inicio {
        padding-top: 50px;
    }


    .inicio-conteudo {
        flex-direction: column;

        text-align: center;
    }


    .inicio-texto > p {
        margin-left: auto;
        margin-right: auto;
    }


    .botao-amor {
        margin-left: auto;
        margin-right: auto;
    }


    .desenho-coracao {
        display: none;
    }


    .mensagens {
        grid-template-columns: 1fr;
    }


    .nuvem {
        max-width: 400px;

        margin: auto;
    }


    .linha-tempo {
        flex-direction: column;

        gap: 25px;
    }


    .traco {
        width: 2px;
        height: 35px;

        border-top: none;
        border-left: 2px dashed rgba(79, 145, 214, 0.45);
    }

}


@media (max-width: 550px) {

    body {
        background-attachment: scroll;
    }


    .menu a {
        font-size: 13px;
    }


    .inicio {
        min-height: 500px;
    }


    .inicio h1 {
        font-size: 80px;
    }


    .inicio h2 {
        font-size: 27px;
    }


    .inicio-texto > p {
        font-size: 16px;
    }


 .titulo-secao span {
    display: block;

    text-align: center;

    font-size: 37px;
    font-weight: 600;
}


    .polaroid {
        width: 150px;
    }


    .polaroid img {
        height: 150px;
    }


    .cartinha {
        padding: 35px 25px;
    }

}