/* ------------------ RESET ADDITIONS ------------------ */
:root {
    scroll-behavior: smooth;
}

img {
    display: block;
    max-width: 100%;
}

/* ------------------ HERO ------------------ */
.hero {
    position: relative;
    height: 70vh;
    min-height: 420px;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.hero__headline {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    color: #fff;
}

.hero__headline h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Animated underline with stars */
.headline-stars {
    position: relative;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.headline-stars i {
    animation: twinkle 3s infinite ease-in-out;
}

.headline-stars i:nth-child(odd) {
    animation-delay: 1.5s;
}

@keyframes twinkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }
}

/* ------------------ GALLERY ------------------ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    padding: 3rem 1rem 4rem;
    max-width: 1400px;
    margin: auto;
}

.gallery__item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery__item:hover {
    transform: translateY(-4px);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery__item:hover img {
    transform: scale(1.1);
}

/* overlay */
.gallery__item::after {
    content: "Clique para ampliar";
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    /* permite que o clique passe para a imagem */
}

.gallery__item:hover::after {
    opacity: 1;
}

/* ------------------ LIGHTBOX ------------------ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 2000;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* ------------------ SCROLL ANIMATION ------------------ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}