:root {
    --noce-green: #233728;
    --noce-black: #231d1b;
    --noce-gray: #6b6b6b;
    --noce-light: #e6e6e6;
    --noce-white: #ffffff;
    --overlay-dark: rgba(35,29,27,0.45);

    /* Tipografia Oficial Noce Mobili — Aktiv Grotesk */
    --font-display: 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Aktiv Grotesk — Tipografia Oficial Noce Mobili */
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('/fonts/AktivGrotesk-Hairline.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('/fonts/AktivGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('/fonts/AktivGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('/fonts/AktivGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('/fonts/AktivGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    background-color: var(--noce-white);
    color: var(--noce-black);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar mais discreta (mantém acessibilidade) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(35,55,40,0.3); border-radius: 3px; }
body { scrollbar-width: thin; scrollbar-color: rgba(35,55,40,0.3) transparent; }

/* Lenis config */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* FIXED UI */
.fixed-ui {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 999;
}
.logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s;
}
.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}
.whatsapp-btn:hover {
    box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}

/* TYPOGRAPHY SHARED */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 100;
    letter-spacing: 0.05em;
    color: inherit;
}

/* SECTIONS */
html {
    background-color: var(--noce-green); /* Cor de fundo base para o scroll bounce e gap do URL bar */
}

.section {
    position: relative;
    width: 100%;
    min-height: calc(var(--real-vh, 1dvh) * 100); /* Altura real do viewport do dispositivo, medida via JS */
    overflow: hidden;
}

/* HERO */
.hero {
    background: var(--noce-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; 
}
.hero-overlay {
    position: absolute; inset: 0;
    background-color: var(--overlay-dark);
}
.hero-content {
    position: relative; z-index: 10;
    color: var(--noce-white);
    text-align: center;
}
.hero-logo {
    font-family: 'Aktiv Grotesk', serif;
    font-size: 20vw;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1;
}
.hero-content .main-logo-img {
    height: var(--hero-logo-size-desktop, 12vw);
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    transition: height 0.3s ease;
}
.hero-tagline {
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 1rem;
    padding: 0 6vw;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
}

/* MANIFESTO */
.manifesto {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: var(--noce-white);
    color: var(--noce-black);
    padding: 6vh 5vw; /* Adds breathable space around */
    min-height: auto;
}
.manifesto-wrap {
    display: flex;
    gap: 0.3vw;
    overflow: hidden;
    margin-bottom: 2.5rem;
    align-items: center;
    justify-content: center;
}
.manifesto-wrap h2 {
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    white-space: nowrap;
    padding: 0 0.5vw;
}
.manifesto-body {
    width: 100%;
    display: flex;
    justify-content: center;
}
.m-body {
    max-width: 800px; 
    font-size: clamp(1rem, 1.5vw, 1.5rem); 
    line-height: 1.6;
    text-align: center;
    padding: 0 5vw;
}

/* AMBIENTES (Horizontal Scroll) */
.ambiente-pin-wrap {
    height: 100vh;
    display: flex;
    background: var(--noce-green);
    color: var(--noce-white);
    position: relative;
    overflow: hidden;
}

/* Entry Título */
.ambiente-entry {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    pointer-events: none;
}
.ambiente-entry h2 {
    font-size: 18vw;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* O Track de rolagem lateral — Desktop: overflow scroll / Mobile: swipe nativo */
.ambiente-track {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
}
.ambiente-track::-webkit-scrollbar { display: none; }

/* Setas de Navegação (apenas desktop) */
.amb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--noce-white);
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s, opacity 0.3s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.amb-arrow:hover { background: rgba(255,255,255,0.3); }
.amb-arrow-prev { left: 2rem; }
.amb-arrow-next { right: 2rem; }

.gallery-item {
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: var(--fit-desk, cover);
    object-position: var(--pos-desk, center center);
}
.gallery-item .overlay-title {
    position: absolute;
    bottom: 3rem; left: 3rem;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.5);
    padding: 1rem;
}
/* Estilo da Microlegenda (Glassmorphism) */
.gallery-item .micro-caption {
    position: absolute;
    bottom: 3rem; right: 3rem;
    font-size: 12px;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--noce-white);
    max-width: 300px;
}
.gallery-sweep-line {
    position: absolute; right: 0; top: 0; width: 1px; height: 100%; background: var(--noce-white);
}

/* ACABAMENTOS (Amostras) */
.acabamentos-sec {
    background: var(--noce-white);
    color: var(--noce-black);
    padding: 10vh 0 14vh;
    overflow: hidden;
}
.section-entry-word {
    text-align: center; font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 100; color: var(--noce-black);
    letter-spacing: 0.05em;
    margin-bottom: 4rem;
}
/* Layout dinâmico — círculos em faixas com escalonamento vertical */
.acabamentos-wrapper {
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8vw;
    padding: 0 3vw 2rem;
    background: transparent;
    overflow: visible;
}
/* Tamanho dos swatches — 15% menor que antes (era clamp(150px,15vw,250px)) */
.swatch {
    position: relative;
    width: clamp(105px, 11.5vw, 185px);
    height: clamp(105px, 11.5vw, 185px);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    z-index: 1;
    flex-shrink: 0;
}
/* Escalonamento orgânico em cascata — cria ritmo visual sem ser um menu */
.swatch:nth-child(6n+1) { margin-top: 0; }
.swatch:nth-child(6n+2) { margin-top: 3.5vw; }
.swatch:nth-child(6n+3) { margin-top: 1.5vw; }
.swatch:nth-child(6n+4) { margin-top: 4.5vw; }
.swatch:nth-child(6n+5) { margin-top: 0.8vw; }
.swatch:nth-child(6n+6) { margin-top: 2.8vw; }

.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch .name {
    position: absolute; bottom: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: var(--noce-white);
    width: 100%; padding: 0.65rem 0.5rem; font-size: 10px; opacity: 1;
    text-align: center; letter-spacing: 0.08em;
    border-radius: 0 0 50% 50%;
}
.swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

/* PROCESSO — Texto Narrativo */
.processo {
    background: var(--noce-green);
    color: var(--noce-white);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative;
    padding: 10vh 5vw; /* Aumentado padding vertical para separar melhor de Parceiros */
}
.processo-content {
    max-width: 640px;
    text-align: center;
}
.proc-narrative {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.85);
    margin-top: 2rem;
}

/* PARCEIROS (Spotlight) */
.parceiros-sec {
    background: var(--noce-green);
    color: var(--noce-white);
    position: relative;
}
.parceiros-title {
    text-align: center;
    padding: 0 5vw;
    margin-bottom: 3rem;
}
.parceiros-spotlight {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    padding-top: 8vh;
    padding-bottom: 8vh;
}
.parc-logo {
    width: clamp(120px, 15vw, 220px); 
    height: clamp(120px, 15vw, 220px);
    border-radius: 50%;
    object-fit: cover;
    margin: 1.5vh 0;
    opacity: 0.2; filter: grayscale(100%);
    transition: all 0.5s;
}
.parc-logo.active {
    opacity: 1; filter: grayscale(0%);
    transform: scale(1.05); /* Escala reduzida também na ativação */
}

/* INSTAGRAM */
.instagram-strip { height: 50vh; background: var(--noce-white); overflow: hidden; display: flex; align-items: center;}
.insta-horizontal { display: flex; gap: 1rem; }
.insta-item { width: 300px; height: 300px; background: #eee; }

/* CONTATO CTA */
.contato {
    background: var(--noce-green); display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--noce-white); text-align: center;
}
.cta-headline { font-size: clamp(2rem, 5vw, 4rem); font-weight: 100; letter-spacing: 0.05em; margin-bottom: 4rem;}
.cta-btns { display: flex; gap: 2rem; }
.btn-outline {
    padding: 1.5rem 3rem; border: 1px solid var(--noce-white);
    color: var(--noce-white); letter-spacing: 0.25em; text-transform: uppercase; font-size: 12px;
}
/* Botão Premium Glassmorphism Pílula */
.btn-cta-final {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 80px;
    color: var(--noce-white);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.35s ease;
    cursor: pointer;
}
.btn-cta-final:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.btn-cta-final svg {
    flex-shrink: 0;
}
.minimal-footer { position: relative; margin-top: 4rem; font-size: 10px; color: rgba(255,255,255,0.4); }

/* === ACCESSIBILITY: Skip Link === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--noce-green);
    color: var(--noce-white);
    z-index: 10000;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === CTA INTERMEDIÁRIO === */
.cta-mid {
    min-height: auto;
    padding: 6rem 2rem;
    background: var(--noce-white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-mid-inner {
    text-align: center;
}
.cta-mid-text {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: var(--noce-gray);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-mid-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--noce-green) !important;
    color: var(--noce-green) !important;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}
.cta-mid-btn:hover {
    background: var(--noce-green);
    color: var(--noce-white) !important;
}

/* === FAQ SECTION === */
.faq-sec {
    min-height: auto;
    padding: 8rem 2rem;
    background: var(--noce-white);
}
.faq-title {
    text-align: center;
    margin-bottom: 4rem;
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--noce-light);
    padding: 1.5rem 0;
}
.faq-item summary {
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.02em;
    color: var(--noce-black);
}
.faq-item summary::after {
    content: '+';
    font-weight: 100;
    font-size: 1.5rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--noce-gray);
    font-weight: 300;
}

/* === SWIPE ICON === */
.swipe-icon-container {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.swipe-icon-container.visible { opacity: 1; }
.swipe-text {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.swipe-hand {
    fill: rgba(255,255,255,0.4);
    width: 24px;
    height: 24px;
    animation: swipe-anim 1.5s ease-in-out infinite;
}
@keyframes swipe-anim {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

/* LIGHTBOX GALLERY */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.97);
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lb-track-wrap {
    position: absolute; inset: 0;
    overflow: hidden;
}
.lb-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lb-slide {
    min-width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 5rem;
    box-sizing: border-box;
}
.lb-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    display: block;
}

/* Botão fechar */
.lb-close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    z-index: 10001;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

/* Setas */
.lb-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10001;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 52px; height: 52px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, opacity 0.25s;
}
.lb-arrow:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-arrow.hidden { opacity: 0; pointer-events: none; }

/* Contador */
.lb-counter {
    position: absolute; bottom: 1.25rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.45);
    font-size: 11px; letter-spacing: 0.2em;
    pointer-events: none;
    font-family: var(--font-body);
}

/* === PROCESSO — TYPOGRAPHY FIX === */

/* 1. LOADING SCREEN (REMOVIDO) */

/* 2. SCROLL PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.8));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* 6. SMART HEADER */
.fixed-ui {
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.fixed-ui.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}
.fixed-ui .logo {
    transition: filter 0.4s ease;
}
.fixed-ui.header-dark .logo {
    filter: brightness(0) saturate(100%); /* Logo preta para seções claras */
}

/* 7. SECTION COLOR TRANSITIONS (REMOVIDO) */

/* 8. SHIMMER NOS BOTÕES CTA */
.btn-cta-final {
    position: relative;
    overflow: hidden;
}
.btn-cta-final::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.04), /* Brilho bem sutil */
        transparent
    );
    animation: shimmer 12s ease-in-out infinite; /* Muito mais lento */
    pointer-events: none;
}
@keyframes shimmer {
    0%, 75%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* 3. SPLIT TEXT — palavras individuais no manifesto */
.word-reveal {
    display: inline-block;
    overflow: hidden;
}
.word-reveal span {
    display: inline-block;
}

/* 4. CLIP-PATH REVEAL para swatches/imagens */
.swatch-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.swatch-reveal.revealed {
    clip-path: inset(0 0 0 0);
}

/* 5. COUNTER ANIMADO */
.counter-num {
    font-variant-numeric: tabular-nums;
}

/* 10. LETTER SPACING ANIMATION */
.ls-animate {
    transition: letter-spacing 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
