/* ============================================================
// Title: ferplay.it experimental code website
// v.21 - 09/03/26 13:02
// created by: Ferruccio Muran
// project: ferplay.it
// ============================================================ */

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Blinker', sans-serif;
    background-color: #000;
    overflow-x: hidden;
    color: #fff;
}

/* --- LOGO FIXED --- */
.logo-fixed {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 250px;
    height: auto;
    z-index: 100;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 120px 20px 80px 20px;
}

/* 1. Video Layer (-2) */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* 2. Dark Overlay Layer (-1) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

/* 3. Face Image Layer (0) */
.face-bg {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100vh;

    z-index: 0;
    pointer-events: none;

    mix-blend-mode: screen;
    transform: translateX(-50%) scale(1.6);

    /* Animation Initial State */
    opacity: 0;
    filter: blur(15px);
    transform: translateX(-50%) scale(0.5);
    transition: opacity 3s ease-out, transform 2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 3s ease-out;

    /* Masking 200px */
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, black 200px, black calc(100% - 200px), transparent 100%);
}

/* --- HERO CONTENT LAYOUT (z-index 1) --- */
.hero-content {
    text-align: center;
    max-width: 1600px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    perspective: 1000px;
}

.line-wrapper {
    overflow: visible;
    display: block;
    line-height: 1.1;
}

/* --- TYPOGRAPHY SIZES --- */

/* Main Title */
.main-title {
    font-size: 5.0vw;
    text-transform: uppercase;
    color: #e0e0e0;
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

/* Skills (Blue) */
.skills-list p {
    font-family: 'PP Neue Machina', 'Space Grotesk', 'Syne', sans-serif !important;
    font-size: 2.0vw;
    color: #3f8efc;
    text-transform: none;
    font-weight: 300;
    /* Light */
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 0;
}

.skills-list .word-span,
.family-section .word-span {
    display: inline-block;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(4px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-list .word-span.visible,
.family-section .word-span.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.skills-list p.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Family (Orange) - MODIFIED v.20 */
.family-section {
    margin-top: 50px;
}

.family-section p {
    font-size: 2.2vw;
    color: #ff9f1c;
    text-transform: uppercase;
    font-weight: 600;

    /* MODIFICA: Interlinea ridotta drasticamente */
    line-height: 0.9;

    letter-spacing: -0.02em;
}

/* --- ANIMATION CLASSES REMOVED --- */
/* The user requested a complete reset of animation logic */

/* --- ANIMATION: BIG TITLE WORDS --- */
/* Target the spans (words) directly */
.main-title .mobile-block {
    display: inline-block;
    /* Required for transform */
    will-change: transform, opacity;

    /* Initial State */
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(4px);
    /* Motion blur effect */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active State */
.main-title .mobile-block.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* CTA Base State */
.cta-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    /* Animation Props */
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(50px);
    /* Push from below */
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.rider-logo {
    width: 14vw;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.2));
}

.disclaimer {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    font-weight: 300;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1024px) {

    .main-title {
        font-size: 10vw;
        /* Slightly smaller to prevent edge touching */
        margin-bottom: 50px;
        /* Increased space below title */
        line-height: 1.0;
        /* Increased line-height to fix overlap */
    }

    .skills-list p {
        font-size: 4.5vw;
        line-height: 1.6;
        padding: 0 10px;
        /* Prevent text touching edges */
    }

    .family-section p {
        font-size: 4.8vw;
    }

    .logo-fixed {
        width: 180px;
    }

    .hero {
        padding-top: 150px;
    }

    .rider-logo {
        width: 40vw;
        /* Larger proportional size on mobile */
    }

    .face-bg {
        top: -40px;
    }
}

/* --- FACE ANIMATION STATE --- */
.face-bg.visible {
    opacity: 0.3;
    filter: blur(0);
    transform: translateX(-50%) scale(1.6);
}

/* --- NEW FOOTER 3-COLUMNS --- */

.main-footer {
    width: 100%;
    background-color: #000;
    color: #888;
    padding: 60px 20px 20px 20px;
    border-top: 1px solid #111;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

/* Common Text Styles */
.footer-heading {
    font-size: 1.1rem;
    color: #ff9f1c;
    /* Orange Accent */
    text-transform: capitalize;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Col 1: Brand */
.brand-col .footer-logo {
    width: 180px;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(1.2);
    transition: filter 0.3s;
}

.brand-col .footer-logo:hover {
    filter: none;
}

.footer-bio {
    line-height: 1.5;
    color: #aaa;
    max-width: 90%;
}

/* Col 2: Social & Contacts */
.links-col {
    display: flex;
    flex-direction: column;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #222;
    margin: 20px 0;
    width: 100%;
}

.social-grid,
.contact-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-grid a,
.contact-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #111;
    border-radius: 6px;
    /* Slightly rounded squares */
    color: #ccc;
    transition: all 0.3s ease;
}

.social-grid a img,
.contact-grid a img {
    width: 30px;
    height: 30px;
}

.social-grid a:hover,
.contact-grid a:hover {
    background: #ff9f1c;
    color: #000;
    transform: translateY(-2px);
}

/* Col 3: Jobs / Client Area */
.restricted-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
}

.client-area-card {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.access-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.access-btn:hover {
    background: #ff9f1c;
    color: #000;
}

.client-email {
    font-size: 0.8rem;
    color: #666;
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #444;
    padding-top: 20px;
    border-top: 1px solid #111;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .brand-col .footer-logo {
        margin: 0 auto 20px auto;
    }

    .footer-bio {
        margin: 0 auto;
    }

    .links-col {
        align-items: center;
    }

    .social-grid,
    .contact-grid {
        justify-content: center;
    }
}

/* --- CUSTOM FONTS --- */

@font-face {
    font-family: 'PP Neue Machina';
    src: url('../fonts/PPNeueMachina-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'PP Neue Machina';
    src: url('../fonts/PPNeueMachina-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PP Neue Machina';
    src: url('../fonts/PPNeueMachina-Ultrabold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

.main-title,
.footer-heading,
.family-section p {
    font-family: 'PP Neue Machina', 'Space Grotesk', 'Syne', sans-serif !important;
}

/* Adjustments for the new font which might be wider */
.main-title {
    letter-spacing: -0.05em;
    font-weight: 700;
}

/* --- MOBILE HEADER BREAKS --- */
.mobile-block {
    display: inline;
}

@media (max-width: 1024px) {
    .mobile-block {
        display: block;
        /* Force new line on mobile */
    }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    padding: 25px;
    border-radius: 12px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    /* Use visibility instead of display:none for transitions */
    transform: translateY(100px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, visibility 0.6s;
    opacity: 0;
}

.cookie-banner.visible {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner h4 {
    color: #ff9f1c;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'PP Neue Machina', sans-serif;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-banner p a {
    color: #FF9F1B;
    text-decoration: none;
}

.cookie-btn-group {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn.accept {
    background: #ff9f1c;
    color: #000;
}

.cookie-btn.accept:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.cookie-btn.reject {
    background: #222;
    color: #fff;
    border: 1px solid #333;
}

.cookie-btn.reject:hover {
    background: #333;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}