/* ==========================
   HERO
========================== */
.hero {
    position: relative;
    height: 90vh;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: var(--bege-claro-4);
    padding: 120px 20px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--preto-50); /* intensidade do filtro */
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-playfair-display);
    font-size: 80px;
}

.hero h1::after {
    content: "";
    width: 200px;
    height: 2px;
    background-color: var(--bege-claro-4);
    display: block;
    margin: 15px auto 28px;
}

.hero p {
    letter-spacing: 1px;
    word-spacing: 2px;
    font-size: 30px;
    font-family: var(--font-emilys-candy);
}

.hero span {
    font-family: var(--font-playfair-display);
    font-size: 18px;
    margin-bottom: 25px;
    display: block;
}

.hero label {
    font-family: var(--font-playfair-display);
    font-size: 19px;
}

/* ==========================
   SEÇÕES
========================== */
.section {
    box-sizing: border-box;
    text-align: center;
    min-height: 700px;
}

/* ==========================
   IMAGEM LATERAL (CONCHA)
========================== */
.side-text {
    background-color: transparent;
    /* width: 27%; */

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.side-text img {
    width: 350px;
    display: block;
}

.side-text .button {
    font-family: var(--font-open-sans);
    font-weight: 400;
    font-size: 17px;

    height: auto;
    width: auto;
    transition: none;
}

.side-text .button:hover {
    font-family: var(--font-twinkle-star);
    text-transform: lowercase;
    font-size: 20px;

    border-width: 2px;
    box-shadow: none;
    filter: none;
}

/* ==========================
   GALERIA
========================== */
.gallery {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.gallery img.foto {
    /*300x380*/
    width: 30%;
    /* height: 443px; */
    object-fit: cover;

    background: var(--branco);
    padding: 15px 15px 60px 15px; /* borda maior embaixo */
    
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    transition: 0.4s ease;
    
    transform: rotate(-2deg); /* leve inclinação */
    position: relative;
}

.gallery .fotos-container .foto:nth-child(odd) {
    z-index: 10;
}
.gallery .fotos-container .foto:nth-child(even) {
    transform: rotate(2deg);
    z-index: 8;
}

.gallery img.foto:hover {
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 25px 50px var(--preto-25);
}

/* ==========================
   ADICIONAIS
========================== */
.adicionais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.adicionais .item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;

    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--bege-claro-4);
}

.adicionais .item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--preto-50);
}

/* CSS para o primeiro item*/
.adicionais .item:nth-child(1) {
    background-image: url('../img/teste2.jpg');
}

/* CSS para o segundo item*/
.adicionais .item:nth-child(2) {
    background-image: url('../img/teste1.jpg');
    color: var(--marrom-mais-escuro);
}

.adicionais .item:nth-child(2)::before {
    background: var(--branco-30);
}

/* CSS para o terceiro item*/
.adicionais :nth-child(3) {
    background-image: url('../img/teste3.jpg');
}

.adicionais .item h2 {
    position: relative;
    z-index: 1;
    background: transparent;
    font-size: 27px;
    letter-spacing: 3px;
    width: fit-content;
    font-family: var(--font-playfair-display);
}

.adicionais .button {
    position: relative;
    z-index: 1;

    border-color: var(--bege-claro-4);
    color: var(--bege-claro-4);

    font-family: var(--font-twinkle-star);
    font-weight: 400;
}

.adicionais .button:hover {
    box-shadow: 0 0 20px var(--branco-30);
}

.adicionais div:nth-child(2) .button {
    color: var(--marrom-mais-escuro);
    border-color: var(--marrom-mais-escuro);
}

.adicionais div:nth-child(2) .button:hover {
    box-shadow: 0 0 20px var(--preto-25);
}

/* ==========================
   NOSSA HISTÓRIA
========================== */
.history {
    text-align: left;

    padding: 50px 150px;
    padding-bottom: 0;
}

.history h2 {
    font-weight: 100;
    font-family: var(--font-playfair-display);
    display: block;
    letter-spacing: 4px;
}

.first-line {
    font-size: 100px;
    color: var(--bege-medio-2);
    transform: translateX(10px);
}

.second-line {
    font-size: 150px;
    color: var(--marrom-mais-escuro);
    transform: translateY(-60px);
}

.history .row {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.history .button {
    margin: 10px;
    margin-bottom: 20px;
    border-color: var(--marrom-mais-escuro);
    color: var(--marrom-mais-escuro);
}

.history p {
    text-align: right;
    width: 350px;
    color: var(--marrom-mais-escuro);
}

/* ==========================
   SECTION FOOTER
========================== */
.footer {
    min-height: 150px;
    height: 150px;
    align-content: center;
    border-top: 2px solid var(--marrom-mais-escuro);
}

.footer img {
    height: 80px;
}

/* ==========================
   RESPONSIVIDADE INDEX
========================== */
/* ===== TABLET ===== */
@media (max-width: 1024px) {

    /* HERO */
    .hero h1 {
        font-size: 55px;
    }

    .hero p {
        font-size: 22px;
    }

    /* GALERIA SIMPLES NO TABLET */
    .gallery {
        margin: 50px 0;
        display: flex;
        flex-direction: column-reverse; /* galeria completa em coluna */
        align-items: center;
        gap: 20px;
    }

    /* Container só das fotos */
    .gallery .fotos-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .gallery img.foto {
        width: 27%; /* 3 fotos lado a lado */
        height: auto;
        transform: rotate(0deg); /* remove inclinação */
    }

    /* Side-text abaixo das fotos */
    .side-text {
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .side-text img {
        width: 350px; /* menor que no desktop */
        margin-bottom: 15px;
    }

    .side-text .button {
        margin-top: 10px;
        font-size: 25px;
    }

    /* ADICIONAIS */
    .adicionais {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .adicionais .item {
        min-height: 350px;
        padding: 60px 20px;
    }

    /* HISTÓRIA */
        .history {
        position: relative;
        min-height: 400px; /* garante espaço suficiente */
        padding: 50px 60px; /* mantém o padding do tablet */
    }

    .first-line {
        font-size: 70px;
    }

    .second-line {
        font-size: 100px;
        transform: translateY(-40px);
    }

    /* Container para botão e textos */
    .history-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding: 0 10px; /* pequena folga das bordas */
    }

    .history-bottom .button {
        margin: 0; /* remove margem do desktop */
    }

    .history-bottom div {
        max-width: 45%; /* largura do texto */
        text-align: right;
    }
}

@media (max-width: 768px) {
    .gallery .fotos-container {
        flex-wrap: wrap;
        gap: 25px;
    }

    .gallery img.foto {
        width: 40%;
    }

    .side-text img {
        width: 250px; /* menor que no desktop */
        margin-bottom: 15px;
    }

    .side-text .button {
        margin-top: 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 42.5px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero label {
        font-size: 14px;
    }

    /*GALERIA*/

    .gallery .fotos-container {
        gap: 11px;
    }

    .gallery img.foto {
        width: 38%; /* 3 fotos lado a lado */
        height: auto;
    }

    .gallery .fotos-container .foto:nth-child(1) {
        transform: rotate(1deg);
    }

    .gallery .fotos-container .foto:nth-child(3) {
        z-index: 12;
        transform: translateY(-60px) rotate(-1deg);
    }

    .gallery {
        gap:0;
    }

    .side-text {
        margin-top: 0;
        transform: translateY(-30px);
    }

    .side-text img {
        width: 180px; /* menor que no desktop */
        margin-bottom: 10px;
    }

    .side-text .button {
        font-size: 16px;
    }

    /*\  HISTÓRIA */
    .history {
        padding: 35px 15px 50px;
    }

    .section.history {
        min-height: 300px;
    }

    .first-line {
        font-size: 25px;
        transform: translateX(2.5px);
    }

    .second-line {
        font-size: 37.5px;
        transform: translateY(-15px);
    }

    .history .row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 10px;
    }

    .history .button {
        margin: 0;
        font-size: 10px;
        padding: 10px 12px;
        width: auto;
    }

    .history .group-p {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 70%;
    }

    .history p {
        font-size: 12px;
        width: 100%;
        text-align: right;
    }
}