/* RESET & FONTS */
:root {
    --font-display: 'Orbitron', sans-serif;
    --font-ui: 'Roboto', sans-serif;
    --rift-text: #E0E0E0;
    --rift-black: #050508;
    --rift-cyan: #00F5FF;
    --rift-red: #FF204E;
    --rift-rust: #F57D1F;
    --rift-smog: #0F1926;
    --rift-concrete: #2B2F33;
    --rift-beige: #D7BFA2;

    /* Cabin Colors */
    --cabin-cyan: #00F5FF;
    --cabin-magenta: #FF204E;
    --cabin-yellow: #F5E653;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  font-size: clamp(9px, 1vw, 18px);
}

body,
html {
    width: 100%;
    height: 100%;
    background-color: var(--rift-black);
    font-family: var(--font-ui);
    overflow: hidden;
}

/* =========================================
   1. INTRO OVERLAY
   ========================================= */
.service-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.0s ease-out, visibility 1.0s;
}

.service-intro-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.service-intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-intro-skip {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-family: var(--font-display);
    font-size: 12px;
    color: #B0B0B0;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.service-intro-skip:hover {
    color: #FFF;
}

/* =========================================
   2. BACKGROUND IMAGE
   ========================================= */
.service-layout-bg {
    position: fixed;
    inset: 0;
    background-image: url('./img/img-service-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in;
    z-index: 0;
}

@media (max-width: 1100px) {
    .service-layout-bg {
        background-image: url('./img/img-service-agenzia-digital-social-media-the-rift-studio-comunicazione-mobile.webp');
        background-size: 100% 100%;
        /* Force fit both dimensions */
        background-position: center;
    }
}

.service-layout-bg.is-active {
    opacity: 1;
}

/* =========================================
   3. CONTENT ROOT
   ========================================= */
.service-root {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

/* =========================================
   4. SERVICE CABINS (Restored)
   ========================================= */
/* =========================================
   3b. LANDING VIEW (Buttons)
   ========================================= */
.service-landing {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.service-landing[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-btn {
    background: transparent;
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

/* Btn 1: SCOPRI I SERVIZI (Neon Pink) - Centered Absolute */
.landing-btn-discover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF00CC;
    border: 2px solid #FF00CC;
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.landing-btn-discover:hover,
.landing-btn-discover:focus-visible {
    background: #FF00CC;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 0, 204, 0.8);
    /* Glitch Effect on Hover can be added here if needed, keeping it simple for now as requested "glitch hover" */
    animation: btn-glitch-hover 0.3s infinite;
    outline: 2px solid #FF00CC;
    outline-offset: 8px;
}

/* Btn 2: ESPLORA L'AMBIENTE (Cyan Neon) - Below Image */
.landing-btn-explore {
    margin-top: 4rem;
    /* This assumes flow layout. But Discover is absolute. So Explore needs positioning too or different flow. */
    /* User said: "Posizione: sotto immagine (margin-top)" which implies relative flow or specific offset */
    /* If Discover is absolute center, Explore can be absolute further down OR use flex layout if container is flex. */
    /* Let's use absolute positioning relative to bottom or center to ensure stability */
    position: absolute;
    top: 60%;
    /* Push it down */
    left: 50%;
    transform: translateX(-50%);
    color: #00F5FF;
    border: 1px solid #00F5FF;
    font-size: 1.2rem;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.6);
}

.landing-btn-explore:hover,
.landing-btn-explore:focus-visible {
    background: #00F5FF;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
    outline: 2px solid #00F5FF;
    outline-offset: 8px;
}

@keyframes btn-glitch-hover {
    0% {
        transform: translate(-50%, -50%) skew(0deg);
    }

    20% {
        transform: translate(-52%, -50%) skew(-10deg);
    }

    40% {
        transform: translate(-48%, -50%) skew(10deg);
    }

    60% {
        transform: translate(-50%, -50%) skew(0deg);
    }

    80% {
        transform: translate(-51%, -51%) skew(5deg);
    }

    100% {
        transform: translate(-50%, -50%) skew(0deg);
    }
}

/* =========================================
   3c. FLOATING ACTION BUTTON (FAB)
   ========================================= */
.service-fab {
    position: fixed;
    bottom: 30%;
    right: 3%;
    /* Aligned with contact */
    z-index: 3000;
    /* Raised above explore-layer (z-2000) to ensure clickability */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-fab[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.service-fab:hover,
.service-fab:focus-visible {
    transform: scale(1.1);
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.fab-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
}

/* FAB STATE: EXPLORE (Cyan) */
.service-fab.fab-explore {
    color: #00F5FF;
    border-color: #00F5FF;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.service-fab.fab-explore:hover {
    background: #00F5FF;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
}

/* FAB STATE: BACK TO SERVICES (Neon Pink) */
.service-fab.fab-back {
    color: #FF00CC;
    border-color: #FF00CC;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.2);
}

.service-fab.fab-back:hover {
    background: #FF00CC;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.6);
}



/* =========================================
   3d. SERVICES MODAL
   ========================================= */
.services-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    /* Above landing */
    background: rgba(0, 0, 0, 0.6);
    /* Darken slightly */
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.services-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 10%;
    right: 40px;
    font-size: 3rem;
    color: #FFF;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 61;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: #FF6B00;
    outline: none;
    /* Already handles focus ring or uses custom color */
}

/* =========================================
   4. SERVICE CABINS (Restored)
   ========================================= */
.service-cabins-container {
    display: flex;
    width: 100%;
    height: 100vh;
    padding-top: 70px;
    /* Space for navbar */
    background: transparent;
}

/* Cabin Base */
.service-cabin {
    position: relative;
    flex: 1;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    transition: flex 0.4s ease, filter 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.service-cabin:last-child {
    border-right: none;
}

/* Industrial Backgrounds (Simulated) */
.cabin-bg {
    position: absolute;
    inset: 0;
    background: url('./img/img-service-agenzia-digital-social-media-the-rift-studio-comunicazione.webp') center/cover no-repeat;
    filter: grayscale(1) brightness(0.4);
    transition: all 0.5s ease;
    z-index: 0;
}

/* Color Overlays */
.cabin-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    transition: opacity 0.3s;
    z-index: 1;
    mix-blend-mode: overlay;
}

.cabin-cyan .cabin-overlay {
    background: var(--cabin-cyan);
}

.cabin-magenta .cabin-overlay {
    background: var(--cabin-magenta);
}

.cabin-yellow .cabin-overlay {
    background: var(--cabin-yellow);
}

/* Content Wrapper */
.cabin-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Titles */
.cabin-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transform: translateY(0);
    transition: transform 0.4s ease, text-shadow 0.3s;
}

.cabin-status {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    box-shadow: 0 0 5px #555;
    transition: all 0.3s;
}

.status-text {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--rift-text);
    text-transform: uppercase;
}

/* HOVER EFFECTS */
.service-cabin:hover {
    flex: 1.2;
}

.service-cabin:hover .cabin-bg {
    filter: grayscale(0.5) brightness(0.6);
    transform: scale(1.05);
}

.service-cabin:hover .cabin-overlay {
    opacity: 0.3;
}

.service-cabin:hover .cabin-title {
    transform: translateY(-10px);
}

/* Specific Glows on Hover */
.cabin-cyan:hover .cabin-title {
    text-shadow: 0 0 20px var(--cabin-cyan), 0 0 40px var(--cabin-cyan);
}

.cabin-magenta:hover .cabin-title {
    text-shadow: 0 0 20px var(--cabin-magenta), 0 0 40px var(--cabin-magenta);
}

.cabin-yellow:hover .cabin-title {
    text-shadow: 0 0 20px var(--cabin-yellow), 0 0 40px var(--cabin-yellow);
}

.cabin-cyan:hover .status-dot {
    background: var(--cabin-cyan);
    box-shadow: 0 0 10px var(--cabin-cyan);
}

.cabin-magenta:hover .status-dot {
    background: var(--cabin-magenta);
    box-shadow: 0 0 10px var(--cabin-magenta);
}

.cabin-yellow:hover .status-dot {
    background: var(--cabin-yellow);
    box-shadow: 0 0 10px var(--cabin-yellow);
}

.service-cabin:hover .status-text {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* =========================================
   5. POPUPS (Container)
   ========================================= */
.service-popups-layer {
    position: fixed;
    inset: 0;
    z-index: 20000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-popup {
    position: absolute;
    width: 95%;
    max-width: 1400px;
    height: 85vh;
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid #555;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    overflow: hidden;
    border-radius: 0;
    /* Or whatever it was, actually mostly likely default or inherited. Step 9 didn't show it, so removing explicit 0 is fine or keeping it if needed. Let's assume standard box. Step 10 had it? No. */
}

@media (min-width: 769px) {
    .service-popup {
        width: 95%;
        height: 80vh;
        max-width: 1400px;
        margin-top: 5vh;
        /* Lowers it slightly */
    }
}

/* Active State */
.service-popup.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Border Colors */
.popup-cyan {
    border-color: var(--cabin-cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
}

.popup-magenta {
    border-color: var(--cabin-magenta);
    box-shadow: 0 0 30px rgba(255, 32, 78, 0.15);
}

.popup-yellow {
    border-color: var(--cabin-yellow);
    box-shadow: 0 0 30px rgba(245, 230, 83, 0.15);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #FFF;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    line-height: 1;
    transition: color 0.3s;
}

.popup-close:hover,
.popup-close:focus-visible {
    color: var(--rift-red);
}

/* Popup Body (Scrollable Container) */
.popup-body {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 50px;
}

/* =========================================
   6. POPUP GRID (Internal Layout)
   ========================================= */
.popup-grid {
    display: grid;
    grid-template-columns: 30% 65%;
    gap: 5%;
    width: 100%;
    min-height: 100%;
}

/* --- LEFT: STICKY TERMINAL --- */
.popup-terminal-left {
    position: sticky;
    top: 0;
    height: fit-content;
    font-family: 'IBM Plex Mono', monospace;
    color: #00FF41;
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid #00FF41;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.terminal-header {
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.blink-green {
    animation: blink-anim 1s infinite steps(2, start);
    font-weight: bold;
}

.terminal-content {
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 100px;
}

.typewriter-text {
    white-space: pre-line;
}

.cursor-blink {
    color: #FF6B00;
    font-weight: bold;
    animation: blink-anim 0.8s infinite;
}

@keyframes blink-anim {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- RIGHT: CONTENT DETAILS --- */
.popup-content-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #FFF;
}

.popup-content-right .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.popup-content-right .card-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #FFF;
}

/* Matching Colors for Titles inside popup */
.popup-cyan .card-title {
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.popup-magenta .card-title {
    text-shadow: 0 0 15px rgba(255, 32, 78, 0.5);
}

.popup-yellow .card-title {
    text-shadow: 0 0 15px rgba(245, 230, 83, 0.5);
}

.card-creators p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--rift-text);
    margin: 4px 0;
}

.card-creators strong {
    color: #FFF;
}

/* Content Columns (Loadout/Spec Ops) */
.card-body {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.card-col {
    flex: 1;
}

.card-col h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.popup-cyan .card-col h4 {
    color: var(--cabin-cyan);
}

.popup-magenta .card-col h4 {
    color: var(--cabin-magenta);
}

.popup-yellow .card-col h4 {
    color: var(--cabin-yellow);
}

.card-col ul {
    list-style: none;
    padding: 0;
}

.card-col ul li {
    font-size: 1rem;
    color: #CCC;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.card-col ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #555;
    font-family: monospace;
}

/* Footer & CTA */
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-quotes {
    font-style: italic;
    color: #888;
    max-width: 60%;
}

.card-cta {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--rift-red);
    color: var(--rift-red);
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255, 32, 78, 0.2);
}

.card-cta:hover {
    background: var(--rift-red);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 32, 78, 0.6);
}

/* =========================================
   7. RESPONSIVE BREAKPOINTS (UPDATED)
   ========================================= */
@media (max-width: 1024px) {
    .popup-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .popup-terminal-left {
        position: relative;
        top: 0;
    }
}

@media (max-width: 1100px) and (orientation: portrait) {
    .services-modal {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: block !important;
        /* Change from flex to allow normal flow scrolling */
    }

    .service-cabins-container {
        display: flex;
        flex-direction: column;
        padding: 50px 0 120px 0;
        /* Space for header and footer */
        height: auto !important;
        min-height: min-content;
    }

    .service-cabin {
        height: 30vh !important;
        /* Fixed height for each cabin to enable stacking */
        min-height: 250px !important;
        flex: none !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }


    .service-popups-layer {
        align-items: center;
        /* Center content */
        padding-top: 0;
        /* Full screen */
    }

    .service-popup {
        width: 90%;
        height: 85%;
        /* Reduced to leave 5% bottom margin (10% top + 85% = 95%) */
        top: 10%;
        left: 5%;
        border-radius: 0;
    }

    .popup-body {
        padding: 40px 40px 80px 20px;
        /* Increased right padding to prevent text overflow */
    }

    /* SPECIFIC FIX for Ritratti (Visual) */
    .popup-cyan .popup-body {
        padding-right: 60px !important;
    }

    /* Enhanced Close Button for Mobile */
    .popup-close {
        top: 10px !important;
        right: 20px;
        background: rgba(255, 32, 78, 0.2);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        border: 1px solid var(--rift-red);
        z-index: 200;
    }

    .card-body {
        flex-direction: column;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .popup-content-right .card-title {
        font-size: 1.4rem;
        /* Smaller title for mobile to fit "STORYTELLING" */
        word-wrap: break-word;
    }

    .popup-grid {
        gap: 20px;
        /* Reduce gap */
    }

    .popup-content-right {
        padding-right: 20px;
        width: 100%;
        max-width: 100%;
        /* Prevent overflow */
        box-sizing: border-box;
        overflow-x: hidden;
        /* Cut off anything sticking out */
    }

    .popup-content-right * {
        box-sizing: border-box;
        /* Force all children to respect padding */
        max-width: 100%;
        /* Prevent children from pushing width */
    }

    .popup-quotes {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .service-fab {
        right: 20px;
        bottom: 20%;
        /* Mobile adjust */
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .fab-icon {
        width: 24px;
        height: 24px;
    }

    /* Fix CTA Button on Mobile */
    .card-cta {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        /* Removing side padding as requested to fit text */
        white-space: nowrap;
        box-sizing: border-box;
    }

    /* Fix Hitboxes Overlaying FAB */
    .char-hitbox {
        bottom: 20%;
        /* Raise bottom to clear FAB (was 30%) */
        height: 50%;
        /* Reduce height slightly */
    }
}


/* =========================================
   8. NAVBAR & FLOATING UI (Unchanged)
   ========================================= */
/* HEADER */
.feed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 10001;
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rift-concrete);
}

.feed-logo-text {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    height: 30px;
    /* Base height to anchor the image */
}

.feed-logo-text img {
    height: 50px;
    /* Fits comfortably in the navbar */
    width: auto;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.feed-logo-text:hover img {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

.feed-desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    color: var(--rift-text);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    outline: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--rift-cyan);
    text-shadow: 0 0 5px var(--rift-cyan);
}

.nav-link.highlight {
    color: var(--rift-red);
    border: 1px solid var(--rift-red);
    padding: 6px 16px;
    transition: all 0.3s;
}

.nav-link.highlight:hover {
    background: var(--rift-red);
    color: #000;
    box-shadow: 0 0 10px var(--rift-red);
}

.feed-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 10002;
}

.feed-hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--rift-red);
    transition: all 0.3s ease;
}

@media (max-width: 1100px) {
    .feed-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .feed-desktop-nav {
        display: none;
    }

    .feed-logo-text {
        height: 25px;
    }

    .feed-logo-text img {
        height: 40px;
    }

    .feed-hamburger {
        display: flex;
        margin-right: 0;
    }
}

/* MENU OVERLAY */
.feed-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-menu-backdrop {
    position: absolute;
    inset: 0;
    background-image: url('../img/img-hamburguer-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
}

.feed-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    align-items: flex-start;
}

.feed-menu-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

@media (max-width: 1100px) {
    .feed-menu-logo {
        top: 5vh !important;
    }
}


.feed-menu-logo img {
    height: 100px;
    max-width: 80%;
    filter: drop-shadow(0 0 15px var(--rift-rust));
    object-fit: contain;
}

.feed-menu-item {
    background: var(--rift-smog);
    color: var(--rift-beige);
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 1px solid var(--rift-rust);
    border-left: 4px solid var(--rift-rust);
    width: 100%;
    text-align: left;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.feed-menu-item:hover,
.feed-menu-item.is-active,
.feed-menu-item:focus {
    background: var(--rift-rust);
    color: var(--rift-black);
    padding-left: 50px;
    box-shadow: 0 0 15px var(--rift-rust);
}

.feed-menu-start {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--rift-cyan);
    color: var(--rift-cyan);
    clip-path: none;
}

.feed-menu-start:hover {
    background: var(--rift-cyan);
    color: var(--rift-black);
}

/* AUDIO TOGGLE */
.service-audio-toggle {
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 10005;
    background: rgba(15, 25, 38, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--rift-concrete);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--rift-text);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.service-audio-toggle:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

.service-audio-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.icon-speaker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    fill: var(--rift-cyan);
}

.icon-x {
    position: absolute;
    inset: 0;
    display: block;
    transition: opacity 0.3s;
}

.icon-x::before,
.icon-x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: var(--rift-red);
    transform-origin: center;
}

.icon-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.icon-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.service-audio-hint {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--rift-text);
    transition: all 0.3s;
}

.service-audio-toggle.is-on {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--rift-cyan);
}

.service-audio-toggle.is-on .icon-x {
    opacity: 0;
    transform: scale(0.5);
}

.service-audio-toggle.is-on .service-audio-hint {
    color: var(--rift-cyan);
}

/* FLOATING CONTACT */
.rift-floating-contact {
    position: fixed;
    bottom: 130px;
    right: 3%;
    z-index: 3000;
    /* Raised to match FAB */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(5, 5, 8, 0.95);
    border: 2px solid var(--rift-red);
    color: var(--rift-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 32, 78, 0.4), inset 0 0 10px rgba(255, 32, 78, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    text-decoration: none;
}

.rift-floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 32, 78, 0.8);
    background: var(--rift-red);
    color: var(--rift-black);
}

.rift-floating-contact--mobile {
    display: none;
}

.rift-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rift-floating-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.rift-floating-icon--mobile {
    display: none;
}


/* GLITCH ANIMATION */
@keyframes cabin-glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.service-cabin:hover .cabin-title {
    animation: cabin-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #fff;
}

/* =========================================
   8. EXPLORE MODE INTERACTIONS
   ========================================= */
.explore-layer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    /* High z-index to ensure visibility above backgrounds */
    pointer-events: none;
    /* Let clicks pass if not hitting hitboxes */
    display: block;
}

.explore-layer[aria-hidden="true"] {
    display: none;
}

/* Hitboxes */
.char-hitbox {
    position: absolute;
    bottom: 20%;
    /* Leaves bottom 30% free */
    width: 20%;
    /* Wide enough to catch clicks */
    height: 50%;
    /* Top portion */
    cursor: pointer;
    pointer-events: auto;
    /* border: 1px solid rgba(0, 255, 0, 0.3); Debugging */
    z-index: 45;
}

.hitbox-sam {
    left: 1%;
}

.hitbox-dave {
    right: 18%;
}

/* Hover hint (Optional) */
/* Hover hint (Optional) */
.char-hitbox:hover {
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="13" stroke="%2300F5FF" stroke-width="2" fill="none"/><path d="M16 3L14 10L19 16L13 22L16 29" stroke="%2300F5FF" stroke-width="2" stroke-linecap="round"/></svg>') 16 16, pointer;
}

/* Pixel Speech Bubble */
.pixel-bubble {
    position: absolute;
    /* Position will be set via JS based on character */
    top: 20%;
    /* Transparent background as requested (semi-transparent for readability) */
    /* Transparent background as requested (semi-transparent for readability) */
    /* Transparent background as requested (semi-transparent for readability) */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #FFF;
    font-family: 'Silkscreen', monospace;
    font-size: clamp(10px, 1vw, 18px);
    /* Crisp, small pixel font */
    padding: 15px;
    /* More compact */
    width: auto;
    min-width: 50px;
    max-width: 0;
    /* Starts collapsed */
    min-height: 40px;
    /* Reduced height min */
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    /* Starts hidden */
    transition: opacity 0.3s, max-width 2s ease-out;
    /* Smooth expansion as text types */
    z-index: 100;

    /* PIXEL BORDER EFFECT (White) - THINNER (2px) */
    box-shadow:
        2px 0 0 #FFF,
        -2px 0 0 #FFF,
        0 -2px 0 #FFF,
        0 2px 0 #FFF;
}

.pixel-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    /* Adjusted for smaller arrow (+ border offset) */
    left: 40px;
    width: 0;
    height: 0;
    /* Smaller arrow */
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #FFF;
}

.pixel-bubble.bubble-right::after {
    left: auto;
    right: 40px;
}

.pixel-bubble.is-active {
    opacity: 1 !important;
    max-width: 500px !important;
    /* Expand limit */
    white-space: normal;
    /* Wrap allowed after open */
}

.pixel-bubble-content {
    line-height: 1.4;
    font-weight: bold;
}

/* --- NEW CARD TEXT STYLES --- */
.card-col h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--rift-cyan);
    margin-bottom: 8px;
    font-size: 1.1em;
    border-bottom: 1px solid var(--rift-cyan-dim);
    padding-bottom: 4px;
}

.card-sub-header {
    font-family: 'Orbitron', sans-serif;
    color: #FFF;
    font-size: 0.95em;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.card-text-body {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    color: #EEE;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-desc-mini {
    font-size: 0.85em;
    color: #AAA;
    font-style: italic;
    margin-bottom: 10px;
}

/* =========================================
   8. MINI FOOTER
   ========================================= */
.service-mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(5, 5, 8, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    backdrop-filter: blur(10px);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: #666;
}

.mini-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-footer-left span {
    letter-spacing: 1px;
}

.divider {
    color: #333;
}

.mini-footer-center {
    display: flex;
    gap: 20px;
}

.mini-footer-center a {
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mini-footer-center a:hover {
    color: var(--rift-cyan);
}

.mini-footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mini-social-icon {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.3s;
}

.mini-footer-right a:hover .mini-social-icon {
    fill: var(--rift-cyan);
}

@media (max-width: 1100px) {
    .service-mini-footer {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
        text-align: center;
        bottom: 0;
    }

    .footer-address,
    .address-divider {
        display: none;
    }

    .mini-footer-center {
        gap: 15px;
    }

    .modal-close {
        top: 10%;
        right: 20px;
    }

    .popup-close {
        top: 10%;
        right: 20px;
    }
}

/* Audio Toggle Visibility Helper */
.service-audio-toggle.menu-active-hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hamburger Animation Fix */
@media (max-width: 1100px) {
    .feed-hamburger.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .feed-hamburger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .feed-hamburger.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }
}

/* =========================================
   SERVICE EASTER EGG: Yellow Dots & Video Popup
   ========================================= */

/* Yellow Dots - Center of Mirror/Background */
.service-easter-dots {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    /* Hidden by default, shown only in explore mode */
    gap: 8px;
    z-index: 10010;
    cursor: pointer;
    pointer-events: auto;
}

/* Show dots when in explore mode */
.service-easter-dots.is-visible {
    display: flex;
}

.service-easter-dot {
    width: 12px;
    height: 12px;
    background: var(--cabin-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cabin-yellow),
        0 0 20px rgba(245, 230, 83, 0.5);
    animation: serviceEasterPulse 1.5s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.service-easter-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.service-easter-dot:nth-child(3) {
    animation-delay: 0.6s;
}

.service-easter-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--cabin-yellow),
        0 0 30px rgba(245, 230, 83, 0.8);
}

@keyframes serviceEasterPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Video Popup Modal - Small Centered Window */
.service-easter-popup {
    position: fixed;
    inset: 0;
    background: transparent;
    /* Transparent background instead of dark overlay */
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allow clicks to pass through transparent areas */
}

.service-easter-popup.is-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.service-easter-popup-content {
    position: relative;
    width: 48%;
    /* Reduced from 60% by 20% */
    max-width: 640px;
    /* Reduced from 800px by 20% */
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid var(--cabin-yellow);
    box-shadow: 0 0 40px rgba(245, 230, 83, 0.6);
}

/* Close Button */
.service-easter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--cabin-yellow);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.service-easter-popup-close:hover {
    color: #fff;
    transform: rotate(90deg);
    text-shadow: 0 0 10px var(--cabin-yellow);
}

/* Video */
.service-easter-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* CTA Overlays */
.service-easter-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(245, 230, 83, 0.95), rgba(245, 230, 83, 0.85));
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-top: 2px solid var(--cabin-yellow);
    animation: ctaFadeIn 0.5s ease;
}

.service-easter-cta.is-visible {
    display: flex;
}

.service-cta-text {
    font-family: var(--font-display);
    font-size: 18px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

@keyframes ctaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Final Message Overlay */
.service-easter-final {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.service-easter-final.is-visible {
    display: flex;
}

.service-final-text {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--cabin-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 0 20px rgba(245, 230, 83, 0.8);
    animation: serviceFinalGlitch 0.5s infinite;
    padding: 0 20px;
}

@keyframes serviceFinalGlitch {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }

    25% {
        transform: translate(-3px, 3px);
        opacity: 0.8;
    }

    50% {
        transform: translate(3px, -3px);
        opacity: 0.9;
    }

    75% {
        transform: translate(-2px, 2px);
        opacity: 0.85;
    }
}

/* Mobile Adjustments */
@media (max-width: 1100px) {
    .service-easter-dots {
        gap: 6px;
    }

    .service-easter-dot {
        width: 10px;
        height: 10px;
    }

    .service-easter-popup-content {
        width: 72%;
        /* Reduced from 90% by 20% */
    }

   .service-final-text {
        font-size: 18px;
        /* Reduced from 24px */
    }

    .service-cta-text {
        font-size: 11px;
        /* Reduced from 14px */
        letter-spacing: 1px;
        padding: 0 10px;
    }

    .service-easter-cta {
        padding: 8px 10px;
        /* Reduced from 15x 10px */
    }
}






/* =========================================
   SERVICE – FORCE DESKTOP IN MOBILE LANDSCAPE
   ========================================= */

@media (max-width: 1100px) and (orientation: landscape) {

    /* 1️⃣ Ripristina container desktop */
    .service-cabins-container {
        display: flex !important;
        flex-direction: row !important;
        height: 100vh !important;
        padding-top: 70px !important;
    }

    /* 2️⃣ Ripristina cabine affiancate */
    .service-cabin {
        flex: 1 !important;
        height: 100% !important;
        min-height: unset !important;
        border-bottom: none !important;
        border-right: 1px solid rgba(255,255,255,0.1) !important;
    }

    .service-cabin:last-child {
        border-right: none !important;
    }

    /* 3️⃣ Ripristina popup grid desktop */
    .popup-grid {
        grid-template-columns: 30% 65% !important;
        gap: 5% !important;
    }

    .card-body {
        flex-direction: row !important;
    }

    /* 4️⃣ Header compatto ma desktop */
    .feed-header {
        padding: 6px 20px !important;
    }

    .feed-logo-text img {
        height: 28px !important;
    }

    .feed-desktop-nav {
        display: flex !important;
    }

    .feed-hamburger {
        display: none !important;
    }

}
/* =========================================
   SERVICE – DESKTOP ASSETS IN LANDSCAPE
   ========================================= */

@media (max-width: 1100px) and (orientation: landscape) {

    /* 🔹 Ripristina immagine desktop */
    .service-layout-bg {
        background-image: url('./img/img-service-agenzia-digital-social-media-the-rift-studio-comunicazione.webp') !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* 🔹 Se usi video background */
    .service-intro-video {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
    }

}


/* =========================================
   SERVICE – DESKTOP COMPACT (-20%)
   ========================================= */

@media (max-width: 1100px) and (orientation: landscape) {

    /* --- CABINS --- */
    .cabin-title {
        font-size: 1.4rem; /* -20% circa */
    }

    .status-text {
        font-size: 0.75rem;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    /* --- LANDING BUTTONS --- */
    .landing-btn-discover {
        font-size: 1.2rem;
        padding: 10px 25px;
    }

    .landing-btn-explore {
        font-size: 1rem;
        padding: 8px 20px;
    }

    /* --- POPUP --- */
    .service-popup {
        height: 75vh;
    }

    .popup-body {
        padding: 35px;
    }

    .popup-content-right .card-title {
        font-size: 2rem;
    }

    .card-col h4 {
        font-size: 0.95rem;
    }

    .card-col ul li {
        font-size: 0.85rem;
    }

    .card-creators p {
        font-size: 0.8rem;
    }

    .card-cta {
        font-size: 0.85rem;
        padding: 10px 24px;
    }

    /* --- TERMINAL --- */
    .popup-terminal-left {
        padding: 20px;
    }

    .terminal-content {
        font-size: 0.8rem;
    }

    /* --- MINI FOOTER --- */
    .service-mini-footer {
        font-size: 0.6rem;
    }

}

@media (max-width:1100px) and (orientation:landscape) {

   .service-cabins-container {
       flex-direction: row !important;
       height: 100vh !important;
       padding-top: 70px !important;
   }

   .service-cabin {
       flex: 1 !important;
       height: 100% !important;
       min-height: unset !important;
       border-bottom: none !important;
   }

   .popup-grid {
       grid-template-columns: 30% 65% !important;
   }

}


/* =========================================
   SERVICE – ULTRA COMPACT LANDSCAPE (≤ 700px)
   ========================================= */

@media (max-width: 700px) and (orientation: landscape) {

    /* HEADER */
    .feed-header {
        padding: 6px 20px;
    }

    .feed-logo-text img {
        height: 26px;
    }

    .nav-link {
        font-size: 11px;
    }

    /* CABINS */
    .cabin-title {
        font-size: 1.2rem;
    }

    .status-text {
        font-size: 0.7rem;
    }

    /* LANDING BUTTONS */
    .landing-btn-discover {
        font-size: 1rem;
        padding: 8px 20px;
        top: 45%;
    }

    .landing-btn-explore {
        font-size: 0.85rem;
        padding: 6px 18px;
        top: 58%;
    }

    /* POPUP */
    .service-popup {
        height: 70vh;
    }

    .popup-content-right .card-title {
        font-size: 1.6rem;
    }

    .card-col ul li {
        font-size: 0.8rem;
    }

    /* FOOTER */
    .service-mini-footer {
        font-size: 0.55rem;
        height: 35px;
    }

}

/* =========================================
   TYPOGRAPHY FIX – 640x360 LANDSCAPE
   ========================================= */

@media (max-width: 700px) and (orientation: landscape) {

    /* Riduzione base coerente */
    html {
        font-size: 75%;
    }

    /* Titoli cabine */
    .cabin-title {
        font-size: 1.2rem;
    }

    /* Landing buttons */
    .landing-btn {
        font-size: 0.9rem !important;
        letter-spacing: 1px;
    }

    /* Popup titolo */
    .popup-content-right .card-title {
        font-size: 1.6rem;
    }

    /* Testi lista */
    .card-col ul li,
    .card-text-body,
    .card-creators p {
        font-size: 0.8rem;
    }

    /* CTA */
    .card-cta {
        font-size: 0.8rem;
    }

    /* Terminal */
    .terminal-content {
        font-size: 0.75rem;
    }

    /* Navbar */
    .nav-link {
        font-size: 10px;
    }

    /* Footer */
    .service-mini-footer {
        font-size: 0.55rem;
    }

}


@media (max-width: 1100px) {

    /* FLOATING CONTACT */
    .rift-floating-contact {
        bottom: 40vh;
        right: clamp(12px, 3vw, 20px);
        width: clamp(40px, 6vw, 50px);
        height: clamp(40px, 6vw, 50px);
    }

    /* AUDIO */
    .service-audio-toggle {
        right: clamp(12px, 3vw, 20px) !important;
        bottom: 16vh !important;
    }

    /* FAB */
    .service-fab {
        right: clamp(12px, 3vw, 20px);
        bottom: 30vh;
        width: clamp(40px, 6vw, 50px);
        height: clamp(40px, 6vw, 50px);
        border-radius: 10px;
    }

}



@media (max-width: 1100px) {

    /* Elemento base ancorato */
    .service-audio-toggle {
        bottom: 100px !important;
        right: clamp(12px, 3vw, 20px) !important;
    }

    /* Sopra l’audio */
    .service-fab {
        bottom: 100px !important;
        right: clamp(12px, 3vw, 20px);
        transform: translateY(-50px);
    }

    /* Sopra il FAB */
    .rift-floating-contact {
        bottom: 100px !important;
        right: clamp(12px, 3vw, 20px);
        transform: translateY(-110px);
    }

}
