/* --- AUDIOVISUAL PAGE (faixa em loop, texto e carrossel de cartas) --- */

/* Faixa de palavras em loop */
.marquee {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #c59d5f 0%, #3a2b14 100%);
    padding: 16px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 48px;
    padding-left: 48px;
    white-space: nowrap;
    animation: marquee-scroll 28s linear infinite;
}

.marquee-track span {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Introdução (título + texto) */
.av-intro {
    max-width: 820px;
    margin: 0 auto;
    padding: 70px 20px 40px;
    text-align: left;
}

.av-heading {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4.2vw, 2.6rem);
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.av-text {
    color: #e6e0d4;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Carrossel de cartas */
.reel-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 90px;
}

.reel-track {
    position: relative;
    height: clamp(230px, 46vw, 380px);
    touch-action: pan-y;
    cursor: grab;
}

.reel-track:active {
    cursor: grabbing;
}

.reel-card {
    position: absolute;
    left: 50%;
    top:50%;
    width: clamp(160px, 30vw, 260px);
    aspect-ratio: 2896 / 4060;
    transition: transform 0.45s ease, opacity 0.45s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.reel-card.pos-center {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    z-index: 3;
    opacity: 1;
}

.reel-card.pos-left {
    transform: translate(-120%, -50%) scale(0.82) rotate(-8deg);
    z-index: 2;
    opacity: 1;
    cursor: pointer;
}

.reel-card.pos-right {
    transform: translate(20%, -50%) scale(0.82) rotate(8deg);
    z-index: 2;
    opacity: 1;
    cursor: pointer;
}

.reel-card.pos-hidden-left {
    transform: translate(-180%, -50%) scale(0.65) rotate(-14deg);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.reel-card.pos-hidden-right {
    transform: translate(80%, -50%) scale(0.65) rotate(14deg);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.reel-card-face {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.reel-card-video {
    position: absolute;
    left: 22.13%;
    top: 18.5%;
    width: 59%;
    height: 66%;
    overflow: hidden;
    background: #000;
    border-radius: 0;
    pointer-events: none;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox: amplia o vídeo na tela ao clicar */
.reel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(5, 5, 5, 0.92);
}

.reel-lightbox.is-open {
    display: flex;
}

.reel-lightbox-video {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 9 / 16;
    max-height: 85vh;
    background: #000;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.reel-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #f2f0eb;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.reel-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chamada final */
.av-cta {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 20px 120px;
    text-align: center;
}

.av-cta-heading {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #c59d5f 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.av-cta-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    border-radius: 50px;
    text-decoration: none;
    background: linear-gradient(90deg, #c59d5f 0%, #3a2b14 100%);
    color: #f2f0eb;
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.av-cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.9s ease;
}

.av-cta-button:hover {
    transform: scale(1.04);
}

.av-cta-button:hover::before {
    left: 125%;
}

.av-cta-arrow {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
    .av-intro { text-align: center; }
}
