body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #2a2a2a, #000000);
    overflow: hidden; /* Prevent scrollbars if animations go slightly out */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align top */
    padding: 30px;
    z-index: 100;
    box-sizing: border-box;
    pointer-events: none; /* Let clicks pass through header area except for interactive elements */
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px; /* Hidden initially */
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid #00f3ff;
    padding: 15px 20px;
    z-index: 50; /* Higher than footer (10), lower than menu (99) */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    z-index: 9999999999;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.cookie-content p {
    color: #fff;
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    flex: 1; /* Text takes available space */
}

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

.cookie-btn {
    background: transparent;
    border: 1px solid #00f3ff;
    color: #00f3ff;
    padding: 5px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cookie-btn.outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.cookie-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.cookie-btn:hover {
    background: #00f3ff;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Cookie Settings Floating Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #00f3ff;
    color: #00f3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 40; /* Above footer, below banner */
    transition: all 0.3s ease;
    opacity: 0; /* Hidden by default */
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.cookie-settings-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-settings-btn:hover {
    background: #00f3ff;
    color: #000;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
}

/* Footer Styles */
.main-footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    z-index: 10; /* Lower than menu overlay (99) */
    pointer-events: none;
    letter-spacing: 1px;
}

.brand {
    color: #fff;
    pointer-events: auto;
}

.brand h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); /* Neon glow hint */
}

.brand .subtitle {
    display: block;
    font-size: 0.9rem;
    color: #00f3ff; /* Neon blue */
    letter-spacing: 4px;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Hamburger Menu */
.hamburger-menu {
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    pointer-events: auto;
    z-index: 101; /* Above overlay */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #00f3ff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.8);
}

/* Hamburger Animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(13.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-13.5px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0; /* Start width 0 for slide effect */
    height: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 99;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    width: 100%; /* Full width but content is constrained */
}

.menu-container {
    display: flex;
    flex-direction: row-reverse; /* Swap sidebar and content */
    width: 100%;
    height: 100%;
    /* Removed max-width and margin to use full available space */
}

/* Sidebar Navigation */
.menu-nav {
    width: 300px; /* Fixed width sidebar */
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(0, 243, 255, 0.1); /* Changed border to left */
    border-right: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    position: relative; /* Needed for absolute positioning of social links */
}

.menu-overlay.active .menu-nav {
    transform: translateX(0);
    opacity: 1;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    text-align: left; /* Align text left */
}

.menu-nav ul li {
    margin: 25px 0;
    opacity: 1; /* Reset previous opacity animation */
    transform: none; /* Reset previous transform */
}

.menu-nav ul li a {
    text-decoration: none;
    color: #aaa;
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    position: relative;
    padding-left: 20px; /* Padding left instead of right */
    padding-right: 0;
    display: block;
}

.menu-nav ul li a:hover,
.menu-nav ul li a.active {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    padding-left: 30px; /* Slide effect on hover/active */
    padding-right: 0;
}

.menu-nav ul li a.active::after {
    content: '';
    position: absolute;
    left: 0; /* Dot on left */
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #00f3ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f3ff;
}

/* Social Sidebar Links */
.social-sidebar {
    position: absolute;
    bottom: 40px;
    left: 20px;
    display: flex;
    gap: 20px;
}

.social-sidebar a {
    color: #aaa;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-sidebar a:hover {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    transform: scale(1.1);
}

/* Mobile Social Contacts (Hidden on Desktop) */
.mobile-social-contacts {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: #00f3ff;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #00d2dd;
}

/* Content Area */
.menu-content {
    flex: 1; /* Take remaining space */
    padding: 100px 50px 100px 50px; /* Added significant bottom padding (100px) */
    color: #fff;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to allow scrolling from top */
    position: relative;
    /* Mask Image for fade-out effect at the top */
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
}

.menu-overlay.active .menu-content {
    opacity: 1;
    transform: translateY(0);
}

.content-section {
    display: none;
    animation: fadeInContent 0.5s ease forwards;
    width: 100%;
    height: 100%;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0;
    border-bottom: none;
    display: inline-block;
    padding-bottom: 0;
}

/* Section Header with Tabs */
.section-header-row {
    display: flex;
    align-items: baseline;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #00f3ff;
    padding-bottom: 10px;
}

.sub-menu {
    display: flex;
    gap: 20px;
}

.sub-link {
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sub-link:hover,
.sub-link.active {
    color: #00f3ff;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* Profile Layout */
.profile-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.profile-slider {
    position: relative;
    width: 400px; /* Adjust size as needed */
    height: 520px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.profile-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.profile-slider img.active {
    opacity: 1;
}

.profile-text {
    flex: 1;
    position: relative;
    min-height: 300px; /* Ensure space for content */
}

.text-block {
    display: none;
    animation: fadeInText 0.5s ease forwards;
}

.text-block.active {
    display: block;
}

.text-block h3 {
    margin-top: 0; /* Remove top margin for first element */
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section h3 {
    font-size: 1.5rem;
    color: #00f3ff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
    max-width: 800px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    max-width: 800px;
}

.content-section ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.6;
}

.content-section ul li strong {
    color: #fff;
}

.content-section strong {
    color: #fff;
    font-weight: 600;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Activity Cards */
.activity-group {
    margin-bottom: 50px;
}

.activity-group h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    border-left: 3px solid #00f3ff;
    padding-left: 15px;
}

.activity-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline for links */
}

.activity-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateX(5px);
    cursor: pointer;
}

.activity-logo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.activity-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.activity-info {
    flex: 1;
}

.activity-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #00f3ff;
}

.activity-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

/* Responsive adjustments for menu */
@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
    }
    
    .menu-nav {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 243, 255, 0.1);
        padding-top: 80px; /* Space for header */
        padding-bottom: 10px;
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        border-left: none; /* Reset border left */
        /* Nascondi la scrollbar per un look più pulito su mobile */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
    }
    
    .menu-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    .menu-nav ul {
        display: flex;
        text-align: center;
        width: max-content;
        justify-content: flex-start;
        gap: 20px;
        padding: 0 20px;
    }
    
    .social-sidebar {
        display: none; /* Hide sidebar social on mobile */
    }
    
    .mobile-social-contacts {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-bottom: 30px;
    }

    .mobile-social-contacts a {
        color: #fff;
        font-size: 2rem;
        transition: all 0.3s;
    }

    .mobile-social-contacts a:hover {
        color: #00f3ff;
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    }
    
    .menu-nav ul li {
        margin: 0;
        white-space: nowrap;
    }
    
    .menu-nav ul li a {
        font-size: 1rem;
        padding-right: 0;
        padding-left: 0; /* Reset padding */
    }
    
    .menu-nav ul li a:hover,
    .menu-nav ul li a.active {
        padding-right: 0;
        padding-left: 0; /* Reset padding */
    }
    
    .menu-nav ul li a.active::after {
        bottom: -10px;
        top: auto;
        right: 50%;
        left: auto; /* Reset left */
        transform: translateX(50%);
    }

    .menu-content {
        padding: 30px 20px 80px 20px;
        justify-content: flex-start;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        border-bottom: none;
    }

    .section-header-row h2 {
        border-bottom: 2px solid #00f3ff;
        padding-bottom: 10px;
        margin-bottom: 0;
        width: 100%;
    }

    .sub-menu {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        border-bottom: 1px solid rgba(0, 243, 255, 0.2);
        padding-bottom: 10px;
    }

    .sub-link {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .profile-layout {
        flex-direction: column;
        gap: 30px;
    }

    .profile-slider {
        width: 100%;
        height: 300px;
        max-width: 100%;
    }

    .activity-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .activity-logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 90px;
        height: 90px;
    }

    .activity-card:hover {
        transform: translateY(-5px); /* Vertical move on mobile */
    }
    
    .portfolio-link-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .portfolio-logo {
        margin-right: 0;
        margin-bottom: 20px;
        width: 80px;
        height: 80px;
    }

    .glitch-text {
        font-size: 2.5rem;
    }
    
    .contacts-intro h3 {
        font-size: 1.5rem;
    }
}

/* Portfolio Styles */
.portfolio-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    height: 100%;
}

.portfolio-link-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 243, 255, 0.05));
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.portfolio-link-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 243, 255, 0.1));
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}

.portfolio-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.portfolio-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.portfolio-info {
    flex: 1;
}

.portfolio-info h4 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.portfolio-info p {
    color: #ccc;
    margin-bottom: 15px;
}

.visit-btn {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #00f3ff;
    color: #00f3ff;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.portfolio-link-card:hover .visit-btn {
    background: #00f3ff;
    color: #000;
    box-shadow: 0 0 10px #00f3ff;
}

.coming-soon {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(80px, 9999px, 5px, 0); }
    10% { clip: rect(10px, 9999px, 90px, 0); }
    15% { clip: rect(60px, 9999px, 40px, 0); }
    20% { clip: rect(20px, 9999px, 70px, 0); }
    25% { clip: rect(90px, 9999px, 20px, 0); }
    30% { clip: rect(10px, 9999px, 50px, 0); }
    35% { clip: rect(50px, 9999px, 80px, 0); }
    40% { clip: rect(20px, 9999px, 30px, 0); }
    45% { clip: rect(70px, 9999px, 60px, 0); }
    50% { clip: rect(40px, 9999px, 10px, 0); }
    55% { clip: rect(80px, 9999px, 90px, 0); }
    60% { clip: rect(30px, 9999px, 50px, 0); }
    65% { clip: rect(60px, 9999px, 20px, 0); }
    70% { clip: rect(10px, 9999px, 70px, 0); }
    75% { clip: rect(50px, 9999px, 40px, 0); }
    80% { clip: rect(90px, 9999px, 10px, 0); }
    85% { clip: rect(20px, 9999px, 60px, 0); }
    90% { clip: rect(70px, 9999px, 30px, 0); }
    95% { clip: rect(40px, 9999px, 80px, 0); }
    100% { clip: rect(10px, 9999px, 50px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(60px, 9999px, 20px, 0); }
    5% { clip: rect(10px, 9999px, 80px, 0); }
    10% { clip: rect(90px, 9999px, 40px, 0); }
    15% { clip: rect(30px, 9999px, 70px, 0); }
    20% { clip: rect(80px, 9999px, 10px, 0); }
    25% { clip: rect(20px, 9999px, 60px, 0); }
    30% { clip: rect(70px, 9999px, 30px, 0); }
    35% { clip: rect(40px, 9999px, 90px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    45% { clip: rect(50px, 9999px, 20px, 0); }
    50% { clip: rect(90px, 9999px, 70px, 0); }
    55% { clip: rect(30px, 9999px, 40px, 0); }
    60% { clip: rect(80px, 9999px, 10px, 0); }
    65% { clip: rect(20px, 9999px, 60px, 0); }
    70% { clip: rect(60px, 9999px, 90px, 0); }
    75% { clip: rect(10px, 9999px, 30px, 0); }
    80% { clip: rect(50px, 9999px, 80px, 0); }
    85% { clip: rect(90px, 9999px, 50px, 0); }
    90% { clip: rect(40px, 9999px, 20px, 0); }
    95% { clip: rect(70px, 9999px, 10px, 0); }
    100% { clip: rect(30px, 9999px, 60px, 0); }
}

/* Contacts Layout */
.contacts-layout {
    display: flex;
    gap: 50px;
    height: 100%;
}

.contacts-intro {
    flex: 1;
    overflow-y: auto;
    padding-right: 20px;
}

.contacts-intro h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 0;
}

.contacts-intro h4 {
    font-size: 1.2rem;
    color: #00f3ff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.contacts-intro ul {
    list-style: none;
    padding: 0;
}

.contacts-intro ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #ddd;
}

.contacts-intro ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00f3ff;
    font-weight: bold;
}

.quote-box {
    margin-top: 30px;
    padding: 20px;
    border-left: 3px solid #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 0 10px 10px 0;
}

.quote-box h4 {
    margin-top: 0;
}

.contacts-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tally-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}

.contacts-form-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
    background: transparent;
}

/* Responsive Contacts */
@media (max-width: 900px) {
    .contacts-layout {
        flex-direction: column;
        height: auto; /* Permette al contenitore di espandersi in altezza */
        overflow-y: visible; /* Rimuove lo scroll interno */
    }
    
    .contacts-intro {
        overflow-y: visible; /* Rimuove lo scroll interno del testo */
        padding-right: 0;
    }

    .contacts-form-container {
        min-height: 600px; /* Spazio sufficiente per il form Tally su mobile */
        margin-top: 30px;
    }
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
}

.logo-container {
    display: grid;
    place-items: center;
    position: relative;
    width: 100%; /* Adjust based on image size, or use max-content */
    height: 100%;
    /* z-index rimosso per permettere il mix-blend-mode con lo sfondo */
}

.lion-logo {
    z-index: 2; /* Lion on top */
    opacity: 0; /* Start hidden */
    animation: fadeIn 2s ease-out forwards;
    grid-area: 1 / 1;
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    mix-blend-mode: lighten;
}

.rotating-circle {
    z-index: 1; /* Circle behind (or around) */
    animation: rotate 10s linear infinite;
    grid-area: 1 / 1;
    max-width: 1900px;
    max-height: 700px;
    object-fit: contain;
    mix-blend-mode: color-dodge;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8); /* Optional: slight zoom in effect */
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .main-header {
        padding: 20px;
    }

    .brand h1 {
        font-size: 1.2rem;
    }

    .brand .subtitle {
        font-size: 0.8rem;
    }

    /* 
     * Assicuriamo che il cerchio sia abbastanza grande anche su mobile.
     * Dato che l'immagine è molto larga (1900px), su schermi stretti (mobile portrait)
     * diventerebbe troppo bassa se limitata in larghezza.
     * Rimuoviamo max-width e impostiamo un'altezza minima per mantenere l'effetto.
     */
    .rotating-circle {
        max-width: none;
        width: 100vw;
        height: 40vh; /* Occupa il 60% dell'altezza dello schermo */
    }

    /* 
     * Il leone deve rimanere al centro e visibile.
     * Riduciamo leggermente se necessario, ma 300px di solito va bene.
     * Usiamo una percentuale viewport per sicurezza.
     */
    .lion-logo {
        max-width: 40vw;
        max-height: 40vh;
    }
}

html {
    overflow-x: hidden;
}

.last {
    margin-bottom:12px;
}

.rl-trigger-button {
    border-color: transparent!important;
}