/* ==========================================================================
   ALKALOID STUDIO | CSS COMPLETO
   ========================================================================== */

:root {
    --alkaloid-teal: #2EE8BD;
    --alkaloid-red: #bc382b;
    --alkaloid-orange: #d9793e;
    --alkaloid-orange-hover: #e95c2f;
    --alkaloid-deep-green: #010a09;
}

html { background-color: #000; scroll-behavior: smooth; }
body { margin: 0; color: white; font-family: 'Inter', sans-serif; background-color: #000; overflow-x: hidden; }

/* Barra e Gradienti */
.alkaloid-bar {
    background-color: var(--alkaloid-deep-green) !important;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(188, 56, 43, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(46, 232, 189, 0.12) 0%, transparent 50%) !important;
}

.main-nav {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    z-index: 99999 !important;
    border-bottom: 2px solid rgba(46, 232, 189, 0.2);
    overflow: hidden;
}

.floating-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(0deg) scale(1);
    opacity: 1;
    z-index: 10 !important;
    height: 130px;
    transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), filter 4s cubic-bezier(0.4, 0, 0.2, 1), opacity 4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-text {
    position: relative;
    z-index: 20 !important;
    color: var(--alkaloid-orange);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.brand-text:hover {
    color: var(--alkaloid-teal);
}

.nav-btn, .lang-selector-container {
    position: relative;
    z-index: 30 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 110px;
    border: 2px solid var(--alkaloid-teal);
    border-radius: 999px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.75);
}

.nav-btn {
    padding: 0 1.2rem;
    font-size: 10px;
    font-weight: 800;
    color: var(--alkaloid-teal);
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--alkaloid-orange-hover) !important;
    border-color: var(--alkaloid-orange-hover) !important;
    color: #000 !important;
}

.lang-selector-container { overflow: hidden; }

.lang-btn {
    flex: 1;
    height: 100%;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}

.lang-btn.active { background-color: var(--alkaloid-teal); color: #000; }

.bento-item {
    background-color: #080808;
    border: 2px solid rgba(46, 232, 189, 0.15) !important;
    transition: all 0.4s ease;
}

.bento-item:hover {
    border-color: var(--alkaloid-orange-hover) !important;
    box-shadow: 0 0 30px rgba(217, 121, 62, 0.2);
}

/* Transizione colore testo card al rollover */
.bento-item h3 {
    transition: color 0.3s ease;
}

.bento-item:hover h3 {
    color: var(--alkaloid-orange-hover) !important;
}

#contacts-viz { scroll-margin-top: 160px; }

.social-bento-link {
    position: relative;
    aspect-ratio: 1 / 1;
    transition: all 0.4s ease;
    padding: 2px;
}

.social-bento-link:hover { transform: scale(1.05); }

.social-bento-link .base-img,
.social-bento-link .hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-bento-link .hover-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-bento-link:hover .hover-img { opacity: 1; }

.page-content {
    position: relative;
    z-index: 1;
    padding-top: 240px; 
}

footer { 
    background-color: var(--alkaloid-deep-green) !important;
    border-top: 1px solid rgba(46, 232, 189, 0.3) !important; 
    padding: 2rem 0;
}

.copyright-text { 
    font-size: 10px; 
    letter-spacing: 0.2em !important;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.line-nowrap { white-space: nowrap !important; }

#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 1000000;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox-overlay.open {
    display: flex;
    opacity: 1;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 255, 191, 0.2);
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#lightbox-overlay.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
    font-family: Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close:hover {
    color: var(--alkaloid-teal);
}

/* Lightbox Navigation Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--alkaloid-teal);
    font-size: 50px;
    cursor: pointer;
    z-index: 1001;
    padding: 20px;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-arrow:hover {
    color: var(--alkaloid-orange-hover);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Mobile Swipe Hint (nascosto di default su desktop) */
.mobile-swipe-hint {
    display: none;
}

.orange-text { color: var(--alkaloid-orange) !important; }
.teal-text { color: var(--alkaloid-teal) !important; }
.alkaloid-title { color: var(--alkaloid-teal) !important; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3em; font-size: 13px; }
.alchemy-gradient {
    background: linear-gradient(to right, #bc382b, #d9793e, #2EE8BD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .main-nav { position: absolute !important; height: auto; padding: 1.5rem 0; }
    .brand-text { font-size: 1.1rem !important; }
    .nav-btn, .lang-selector-container { min-width: 105px; height: 38px; font-size: 9px; }
    .copyright-text { font-size: 7.5px !important; }
    .page-content { padding-top: 180px; }

    /* Nasconde le frecce su mobile */
    .lightbox-arrow {
        display: none !important;
    }

    /* Mostra il testo guida per lo swipe su mobile */
    .mobile-swipe-hint {
        display: block !important;
        margin-top: 12px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        font-style: italic;
        text-align: center;
    }
}

#reel-slide-1, #reel-slide-2 {
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat !important;
    animation: reelMotion 35s ease-in-out infinite alternate;
}

#vfx-slide-1, #vfx-slide-2,
#worlds-slide-1, #worlds-slide-2 {
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat !important;
}

@keyframes reelMotion {
    0% { background-position: 30% 40%; }
    50% { background-position: 70% 60%; }
    100% { background-position: 50% 50%; }
}

/* Blocco Filosofia: Base background-size impostata per permettere l'animazione */
#body-slide-1, #body-slide-2 {
    background-repeat: no-repeat !important;
    background-position: center center;
    background-size: 110%;
}

#body-slide-1.zoom-in, #body-slide-2.zoom-in {
    animation: zoomInEffect 5s ease-in-out forwards;
}

#body-slide-1.zoom-out, #body-slide-2.zoom-out {
    animation: zoomOutEffect 5s ease-in-out forwards;
}

@keyframes zoomInEffect {
    0% {
        background-size: 110%;
        background-position: 45% 45%;
    }
    100% {
        background-size: 130%;
        background-position: 55% 55%;
    }
}

@keyframes zoomOutEffect {
    0% {
        background-size: 130%;
        background-position: 55% 55%;
    }
    100% {
        background-size: 110%;
        background-position: 45% 45%;
    }
}