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

:root {
    --margin-grid:9rem;
}

@media (max-width: 992px) {
    :root {
        --margin-grid: 4rem;
    }
}

@media (max-width: 576px) {
    :root {
        --margin-grid: 4rem;
    }
}

.container-fluid {
    padding-left: var(--margin-grid);
    padding-right: var(--margin-grid);
}

.row {
    --bs-gutter-x: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

body{
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== HEADER ========== */


.small-header-images{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
}


.small-header-images img{
    width: 300px;
    height: auto;
}

.footer-ornaments {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 2rem;
}

.footer-ornaments img {
    width: 300px;
    height: auto;
}

.header-images {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.header-images img {
    width: 300px;
    height: auto;
}



header nav ul li a {
    display: inline-block;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    transform: translateY(-10px);
    opacity: 0;
}



/* NAV POR CIMA */
header nav {
    position: absolute;
    top: 2rem;
    width: 100%;
}



header ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 1.75rem;
    font-family: "utopia-2", serif;
}

header ul li{
    list-style: none;
}

@media (max-width: 900px) {
    .small-header-images img{
        width: 150px;
        height: auto;
    }
}


@media (max-width: 900px) {
    .footer-ornaments img {
        width: 150px;
    }
}

@media (max-width: 1000px) {
    .header-images img {
        width: 150px;
    }
}

/* ========== LIST ========== */

main.work {
    margin-top: -13rem;
}

@media (max-width: 992px) {

    main.work .list .card{
        padding-bottom: 0.5rem;
        border-top: 1px solid #000;
        width: 100%;
    }
    
    main.work .list .card:last-of-type{
        border-bottom: 1px solid #000;
    }
    main.work .list .card-title{
        font-size: 1.25rem;
    }
    
    main.work .list .card-type{
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        height: 100%;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    
    main.work .list .card-date{
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        height: 100%;
        justify-content: flex-end;
        letter-spacing: 0.02em;
    }
}


@media (max-width: 1000px) {
    main.work {
        margin-top: -10px; 
    }
}


main.work .list .card{
    padding-bottom: 0.5rem;
    padding-top: 0.7rem;
    border-top: 1px solid #000;
    width: 100%;
}

main.work .list .card:last-of-type{
    border-bottom: 1px solid #000;
}

main.work .list .card-title{
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.4rem;
}

main.work .list .card-type{
    font-size: 0.70rem;
    display: flex;
    align-items: center;
    height: 100%;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

main.work .list .card-date{
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    letter-spacing: 0.02em;
}



/* ========== ABOUT ========== */

.carta-about img {
    padding-left: 10rem;
    width: 1200px;
    height: auto;
    filter: brightness(1.2);
}

main.about {
    margin-top: -14rem;
}

@media (max-width: 1000px) {
    main.about {
        margin-top: 1rem;
    }
}

main.about .about-text{
    font-family: "utopia-std-display-italic", serif;
    font-style: italic;
    font-size: 2.5rem;
}

@media (max-width: 992px) {
    main.about .about-text{
        font-size: 1.75rem;
        line-height: 2.2rem;
    }
}

section.logo{
    padding-left: 1rem; 
    padding-right: 2rem;
    padding-bottom: 1.5rem;
}

/* ========== WORK SINGLE ========== */

.graveyard-wrapper {
    max-width: 400px;   /* controla o “tamanho da lápide” */
    margin: 0 auto;     /* centra tudo */
    text-align: center;
    justify-items: center;
}

.graveyard-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

main.graveyard .graveyard-date {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
   padding-bottom: 0.5rem;
    font-size: 1.75rem;
    font-family: "utopia-std-display", serif;
    font-style: italic;
    list-style: none;
}

main.graveyard .graveyard-text {
    justify-content: center;
    font-family: "utopia-std-display", serif;
    font-style: italic;
    text-align: center;
    max-width: 300px;

}

main.graveyard img{
    width: max-content;
    max-width: 100%;
   display: block;
   justify-content: center;
   margin: 0 auto
}

main.single .single-title {
    max-width: 800px;
    margin: 0 auto; /* centra o bloco */
    text-align:left;
}

main.single .row{
    padding-bottom: 3.5rem;
    padding-top: 8rem;
}

.single-list {
    display: block;
    list-style: none;
}
.single-list li {
    display: block;
}

main.single .single-list {
    list-style: none;
    font-family: "DM Sans", sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

main.single .single-images {
    width:max-content;
    max-width: 100%;
    margin: 0 auto 1rem auto;
}

main.single .single-images img {
    width: 100%;
    height: auto;
    display: block;
}

main.single .single-images > div {
    position: relative;
}

main.single .single-images iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

main.single .single-images:last-of-type img{
    margin-bottom:  0;
}

main.videos{
    margin-bottom:  var(--margin-grid);
}


@media (max-width: 575px) {
    main.single .row{
        padding-bottom: 3.5rem;
        padding-top: 7rem;
    }
}

@media (max-width: 992px) {
    main.single .single-list{
        padding-top:1rem ;
    }
    main.single .single-title{
        padding-bottom: 1rem;
    }
}

/* ================= PREVIEW HOVER ================= */

.preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.preview img {
    width: 800px;
    max-width: 80vw;
    height: auto;
}

.card:hover .preview {
    opacity: 1;
}

.preview video {
    width: 800px;
    max-width: 80vw;
    height: auto;
}


/* ========== LOGO & CARTAS ========== */

.hero {
    margin-top: 6rem; /* espaço entre lista e cartas */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carta {
    display: flex;
    justify-content: center;
    position: relative; /* para top/left */
    top: 0;
    left: 0;
}

.carta img {
    width: 100%;
    max-width: 1200px;
    filter: brightness(1.2);
}

.logo {
    position: absolute;
    top: 60%; /* desktop */
    left: 1%;
    transform: translate(-1%, -1%);
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo img {
    width: 100%;
    height: auto;
}

section.logo img{
    height: auto;
    width: 100%;
}

section.logo{
    padding-left: 1rem; 
    padding-right: 2rem;
    padding-bottom: 1.5rem;
    padding-top: 10rem;
}

/* ================= LOGO MOBILE / DESKTOP ================= */

.desktop-logo { display: block; }
.mobile-logo { display: none; }

/* Tablet e Mobile: logo alternativo e cartas responsivas */
@media (max-width: 992px) {
    /* Logo alternativo */
    .desktop-logo { display: none; }
    .mobile-logo { 
        display: block; 
        margin: 0 auto;
        padding-left: 1rem; 
        padding-right: 2rem;
        padding-bottom: 1.5rem;
        position: relative;
    }

    /* Cartas responsivas */
    .carta img {
        width: 85%;
        max-width: 550px;
    }

    /* Posiciona cartas acima do logo */
    .carta {
        top: -100px;
        left: 0;
        margin-top: 3rem;
    }
}

/* Mobile específico (≤ 576px) */
@media (max-width: 576px) {
    .carta img {
        width: 100%;
        max-width: 2000px; /* tamanho máximo mobile */
    }

    .carta {
        top: -50px; /* sobe ainda mais */
        left: 0;
        margin-top: 2rem;
    }
}