/**
 * Eco Canvas 3D — Stili widget Elementor
 */

/* ── Wrapper ──────────────────────────────────────────────── */
.eco-canvas-3d-wrapper {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden; /* evita scrollbar orizzontale */
}

/* ── Header fisso ─────────────────────────────────────────── */
.eco-canvas-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    pointer-events: none;
}
.eco-canvas-header img {
    position: fixed;
    left: 2em;
    top: 2em;
    max-width: 150px;
}
.eco-canvas-header img.logo {
    z-index: 900;
    mix-blend-mode: difference;
    pointer-events: none;
}
.eco-canvas-header img.logoBackground {
    z-index: 10;
    pointer-events: none;
}
.eco-canvas-cta {
    position: fixed;
    right: 2em;
    top: 2em;
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2rem;
    padding: 1rem 2rem;
    background: #604199;
    text-decoration: none;
    z-index: 950;
    pointer-events: all;
}

/* ── Contenitore scroll ───────────────────────────────────── */
.eco-canvas-container {
    width: 100%;
    position: relative;
}

/* ── Canvas WebGL ─────────────────────────────────────────── */
.eco-canvas-container canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100vh !important;
    display: block;
    z-index: 1;
}

/* ── Testo apertura ───────────────────────────────────────── */
.eco-canvas-opening {
    position: fixed;
    z-index: 100;
    width: 80%;
    text-align: center;
    left: 50%;
    top: 40vh;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: #fff;
    pointer-events: none;
}

/* ── Language switcher ────────────────────────────────────── */
.eco-canvas-lang-switcher {
    position: fixed;
    top: 4.5em;
    right: 2em;
    z-index: 950;
}
.eco-canvas-lang-switcher .lang-btn {
    background: none;
    border: none;
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    padding: 0.25em 0.5em;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.eco-canvas-lang-switcher .lang-btn:hover { opacity: 1; }

/* ── Scroll hint ──────────────────────────────────────────── */
.eco-canvas-scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1000;
    animation: eco-bounce 1.5s infinite;
}
.eco-canvas-scroll-hint.visible { opacity: 0.8; }
.eco-canvas-scroll-hint.hidden  { opacity: 0; }

@keyframes eco-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%       { transform: translate(-50%, -10px); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media screen and (min-width: 700px) {
    .eco-canvas-header img { max-width: 200px; }
    .eco-canvas-opening { font-size: 2em; width: 100%; }
}
