:root {
    --primary-color: #2b5fe8; /* Un blu d'accento che si abbina sia al chiaro che allo scuro */
    --hover-width: 60%;
    --other-width: 40%;
    --anim-speed: 0.6s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden;
    color: #fff;
}

/* Central Logo Styling */
.central-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-decoration: none;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.central-logo:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(0, 0, 0, 0.5);
}

.logo-placeholder h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
}

.logo-placeholder h1 span {
    font-weight: 300;
}

.logo-placeholder p {
    font-size: 0.9rem;
    letter-spacing: 5px;
    margin-top: 5px;
    color: #dfdfdf;
}

/* Split Container */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Individual Sections */
.split {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: width var(--anim-speed) ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.left {
    color: #fff;
}

.right {
    color: #222;
}

/* Background Layers */
.bg-layer {
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%; /* slightly larger to allow subtle parallax or avoid edges during animation */
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform var(--anim-speed) ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: all var(--anim-speed) ease-in-out;
}

.dark-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(15, 15, 25, 0.7));
}

.light-overlay {
    background: linear-gradient(to left, rgba(230, 235, 240, 0.9), rgba(255, 255, 255, 0.85));
}

/* Content */
.content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    opacity: 0.85;
    transform: translateY(20px);
    transition: all var(--anim-speed) ease-in-out;
}

.split h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-logo {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px; /* Solo per stondare un po' eventuale sfondo non trasparente */
}

.split p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    display: inline-block;
}

.features li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.features-dark li {
    color: #444;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    background: #1d4cd1;
}

.btn-secondary {
    background: transparent;
    color: #222;
    border: 2px solid #222;
}

.btn-secondary:hover {
    background: #222;
    color: #fff;
}

/* Contact Info */
.contact-info {
    position: absolute;
    bottom: 30px;
    z-index: 3;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
}

.contact-info a {
    text-decoration: none;
    font-weight: 600;
}

.dark-contact p { color: rgba(255,255,255,0.6); }
.dark-contact a { color: #fff; }
.dark-contact a:hover { color: var(--primary-color); }

.light-contact p { color: rgba(0,0,0,0.5); }
.light-contact a { color: #222; }
.light-contact a:hover { color: var(--primary-color); }

/* Hover Effects */
.hover-left .left {
    width: var(--hover-width);
}
.hover-left .right {
    width: var(--other-width);
}
.hover-left .left .content {
    opacity: 1;
    transform: translateY(0);
}
.hover-left .left .bg-layer {
    transform: scale(1.05); /* subtle zoom */
}
.hover-left .left .dark-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(15, 15, 25, 0.5));
}

.hover-right .right {
    width: var(--hover-width);
}
.hover-right .left {
    width: var(--other-width);
}
.hover-right .right .content {
    opacity: 1;
    transform: translateY(0);
}
.hover-right .right .bg-layer {
    transform: scale(1.05); /* subtle zoom */
}
.hover-right .right .light-overlay {
    background: linear-gradient(to left, rgba(230, 235, 240, 0.8), rgba(255, 255, 255, 0.7));
}

/* Responsive */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
        height: auto;
    }
    
    body {
        overflow: auto; /* allow scrolling on mobile */
    }

    .split {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 4rem 1rem;
        justify-content: center;
    }

    .left {
        padding-top: 12rem; /* Spazio per il logo in cima */
    }

    .central-logo {
        top: 2rem;
        transform: translateX(-50%); /* Rimuove il translateY(-50%) */
    }

    .central-logo:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .hover-left .left, .hover-left .right,
    .hover-right .left, .hover-right .right {
        width: 100%; /* disable split width transition on mobile */
    }

    .split h2 {
        font-size: 2.5rem;
    }
    
    .split p {
        font-size: 1rem;
    }

    .content {
        transform: none; /* remove hover transform on mobile */
    }

    .btn {
        padding: 1rem 2rem;
    }
    
    .contact-info {
        position: relative;
        bottom: auto;
        margin-top: 3rem;
    }
}
