/* ═══════════════════════════════════════════════════════════
   DEGOOSTA SRL — Landing Page Styles (Revisione 2)
   Palette: #0A0A0A, #111111, #0D0D0D, #F5C518, #E87A00, #FFF
   Font: Space Grotesk
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Tokens ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0A0A0A;
    --card-dark: #0D0D0D;
    --card-light: #111111;
    --gold: #F5C518;
    --gold-dim: rgba(245, 197, 24, 0.15);
    --gold-glow: rgba(245, 197, 24, 0.4);
    --orange: #E87A00;
    --white: #FFFFFF;
    --white-dim: rgba(255, 255, 255, 0.6);
    --text-body: #E0E0E0;
    --font: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.gold { color: var(--gold); }

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    transition: background 0.4s ease;
}

.navbar--scrolled {
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 197, 24, 0.08);
}

.navbar__logo-img {
    height: 32px;
    width: auto;
}

/* ═══════════════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
    padding: 0;
}

.hero__bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #1A150A 0%, #0A0A0A 60%);
    z-index: 0;
}

.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 800px;
}

.hero__logo-container {
    margin-bottom: 2.5rem;
}

.hero__logo-img {
    width: min(400px, 80vw);
    height: auto;
    filter: drop-shadow(0 0 80px rgba(245, 197, 24, 0.15));
}

.hero__tagline {
    font-size: clamp(2rem, 4.5vw, 2.5rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.hero__subtitle p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
}

.hero__scroll-arrow {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════════
   2. VISION
   ═══════════════════════════════════════════════ */
.vision {
    background: var(--black);
    padding: 120px 0 80px;
}

.vision__container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 0 2rem;
}

.vision__title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.vision__body {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.vision__body em {
    color: var(--gold);
    font-style: normal;
    font-weight: 400;
}

/* Vision Image */
.vision__image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 0;
    overflow: visible;
}

.vision__image {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.35) brightness(0.7) sepia(0.2);
    transition: filter 0.6s ease;
    mask-image: radial-gradient(ellipse 85% 80% at center, black 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, black 50%, transparent 100%);
}

.vision__image-wrapper:hover .vision__image {
    filter: saturate(0.5) brightness(0.8) sepia(0.15);
}

.vision__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 197, 24, 0.06) 0%,
        transparent 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   3 & 6. SECTION TRANSITIONS (Micro-titoli)
   ═══════════════════════════════════════════════ */
.section-transition {
    text-align: center;
    padding: 3rem 2rem;
}

.section-transition span {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   4. BENTO GRID MANIFESTO
   ═══════════════════════════════════════════════ */
.bento {
    background: var(--black);
    padding: 0 0 80px;
}

.bento__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bento__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.bento__cell {
    padding: 3.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(245, 197, 24, 0.12);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.bento__cell:hover {
    border-color: rgba(245, 197, 24, 0.25);
}

.bento__cell--dark {
    background: var(--card-dark);
}

.bento__cell--light {
    background: var(--card-light);
}

.bento__quote {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.6;
}

.bento__mark {
    color: var(--gold);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   5. VINEYARD BANNER (PARALLAX)
   ═══════════════════════════════════════════════ */
.vineyard-banner {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.vineyard-banner__image {
    position: absolute;
    inset: -40px 0;
    background-image: url('assets/images/vineyard-banner.png');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    filter: brightness(0.3) saturate(0.4) sepia(0.15);
}

/* Fallback for mobile where background-attachment:fixed doesn't work well */
@supports (-webkit-touch-callout: none) {
    .vineyard-banner__image {
        background-attachment: scroll;
    }
}

/* ═══════════════════════════════════════════════
   7. ENOVERSO (FULL-WIDTH SECTION)
   ═══════════════════════════════════════════════ */
.enoverso {
    background: var(--black);
    padding: 40px 0 120px;
}

.enoverso__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.enoverso__header {
    margin-bottom: 2rem;
}

.enoverso__logo {
    height: 55px;
    width: auto;
    margin-bottom: 2rem;
}

.enoverso__headline {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: var(--white);
    letter-spacing: 0.02em;
}

.enoverso__sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

.enoverso__sub--highlight {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
}

.enoverso__body {
    margin-bottom: 3rem;
}

.enoverso__desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.enoverso__desc--emphasis {
    margin-top: 1rem;
}

.enoverso__desc--emphasis .gold {
    font-weight: 600;
}

/* Real Screenshot */
.enoverso__screenshot {
    position: relative;
    margin: 0 auto 3rem;
    max-width: 100%;
}

.enoverso__screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow:
        0 30px 80px -15px rgba(0, 0, 0, 0.9),
        0 15px 35px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.enoverso__screenshot:hover .enoverso__screenshot-img {
    transform: translateY(-6px);
}

.enoverso__screenshot-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at center, rgba(245, 197, 24, 0.1) 0%, transparent 60%);
    z-index: 1;
    filter: blur(25px);
}

/* EnoVerso Stats (inside section) */
.enoverso__stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.enoverso__stat {
    text-align: center;
}

.enoverso__stat-number {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.enoverso__stat-plus {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
}

.enoverso__stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white-dim);
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* CTA Button */
.enoverso__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--black);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.2);
}

.enoverso__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 197, 24, 0.35);
}

/* ═══════════════════════════════════════════════
   8. FUTURE VISION
   ═══════════════════════════════════════════════ */
.future-vision {
    background: var(--black);
    padding: 120px 0;
}

.future-vision__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.future-vision__text {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.7;
}

.future-vision__text .gold {
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   9. STATS (CORPORATE DEGOOSTA)
   ═══════════════════════════════════════════════ */
.stats {
    background: var(--black);
    padding: 80px 0 120px;
}

.stats__container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    padding: 0 2rem;
}

.stats__item {
    text-align: center;
    flex: 1;
}

.stats__number {
    display: inline-block;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(245, 197, 24, 0.15);
}

.stats__number--text {
    font-variant-numeric: normal;
}

.stats__plus {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--gold);
}

.stats__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white-dim);
    margin-top: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    padding: 80px 2rem 3rem;
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer__brand {
    margin-bottom: 2rem;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    opacity: 0.7;
}

.footer__info {
    margin-bottom: 1.5rem;
}

.footer__info p {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--gold);
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(245, 197, 24, 0.08);
}

.footer__social-link svg {
    width: 20px;
    height: 20px;
}

.footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
}

.footer__legal p {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up { transform: translateY(40px); }

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero__logo-img {
        width: 300px;
    }

    .vision {
        padding: 80px 0 60px;
    }

    .vision__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .vision__image-container {
        order: -1;
    }

    .vision__image-wrapper {
        max-width: 360px;
        margin: 0 auto;
    }

    .bento__grid {
        grid-template-columns: 1fr;
    }

    .bento__cell {
        padding: 2.5rem 2rem;
    }

    .bento__quote {
        font-size: 1.2rem;
    }

    .vineyard-banner {
        height: 160px;
    }

    .vineyard-banner__image {
        background-attachment: scroll;
    }

    .enoverso {
        padding: 40px 0 80px;
    }

    .enoverso__stats {
        gap: 1.5rem;
    }

    .enoverso__stat {
        flex-basis: 40%;
    }

    .future-vision {
        padding: 80px 0;
    }

    .stats__container {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stats__item {
        flex-basis: calc(50% - 1rem);
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero__logo-img {
        width: 260px;
    }

    .enoverso__stat {
        flex-basis: 100%;
    }

    .stats__item {
        flex-basis: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════
   PREFERS REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__particles {
        display: none;
    }

    .reveal-left,
    .reveal-right,
    .reveal-up {
        opacity: 1;
        transform: none;
    }

    .enoverso__screenshot:hover .enoverso__screenshot-img {
        transform: none;
    }
}
