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

    html {
        scroll-behavior: smooth;
    }

    :root {
        --header-h: 56px;
    }

    @media (min-width: 768px) {
        :root {
            --header-h: 72px;
        }
    }

    body {
        font-family: 'Inter', sans-serif;
        color: #3c3c3b;
        overflow-x: hidden;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Sora', sans-serif;
    }

    /* Custom Animations */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(40px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .animate-fade-in-up {
        animation: fadeInUp 1s ease-out forwards;
    }

    .animate-delay-1 { animation-delay: 0.2s; opacity: 0; }
    .animate-delay-2 { animation-delay: 0.4s; opacity: 0; }
    .animate-delay-3 { animation-delay: 0.6s; opacity: 0; }

    /* Navigation Dots */
    .nav-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #3c3c3b;
        opacity: 0.3;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .nav-dot:hover,
    .nav-dot.active {
        opacity: 1;
        background: #d0d700;
        transform: scale(1.3);
    }

    /* Card Hover Effects */
    .spice-card {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .spice-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px -12px rgba(60, 60, 59, 0.25);
    }

    /* Button Styles */
    .btn-spice {
        background: #d0d700;
        color: #3c3c3b;
        padding: 16px 40px;
        font-weight: 600;
        font-size: 1.1rem;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: inline-block;
        text-decoration: none;
    }

    .btn-spice1 {
        background: #d0d700;
        color: #3c3c3b;
        padding: 10px 40px;
        font-weight: 600;
        font-size: 1.1rem;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: inline-block;
        text-decoration: none;
    }

    .btn-spice::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.5s ease;
    }

    .btn-spice:hover {
        background: #3c3c3b;
        color: #d0d700;
        transform: scale(1.05);
    }

    .btn-spice:hover::before {
        left: 100%;
    }

    .btn-outline {
        border: 2px solid #3c3c3b;
        background: transparent;
        color: #3c3c3b;
        padding: 14px 38px;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-block;
        text-decoration: none;
    }

    .btn-outline:hover {
        background: #3c3c3b;
        color: white;
    }

    /* Section Reveal */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Hero Carousel Indicator */
    .hero-indicator.active {
        background: #d0d700;
        width: 3rem;
    }

    /* Make hero respect header height */
    #hero {
        min-height: calc(100vh - var(--header-h));
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ensure hero text containers are tall enough for large headings */
    .hero-text-container { min-height: 200px; }
    .hero-subtitle-container { min-height: 100px; }

    @media (min-width: 768px) {
        .hero-text-container { min-height: 260px; }
        .hero-subtitle-container { min-height: 120px; }
    }

    @media (min-width: 1024px) {
        .hero-text-container { min-height: 320px; }
        .hero-subtitle-container { min-height: 140px; }
    }

    /* Expandable Cards */
    .expand-card {
        cursor: pointer;
    }

    .expand-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, padding 0.5s ease;
    }

    .expand-card.active .expand-content {
        max-height: 500px;
    }

    .expand-card .expand-icon {
        transition: transform 0.3s ease;
    }

    .expand-card.active .expand-icon {
        transform: rotate(45deg);
    }

    /* Accordion */
    .accordion-item {
        border-bottom: 1px solid rgba(60, 60, 59, 0.1);
    }

    .accordion-header {
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .accordion-header:hover {
        color: #d0d700;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .accordion-item.active .accordion-content {
        max-height: 1000px;
    }

    .accordion-item .accordion-icon {
        transition: transform 0.3s ease;
    }

    .accordion-item.active .accordion-icon {
        transform: rotate(180deg);
    }

    /* Rule Numbers */
    .rule-number {
        font-size: 4rem;
        font-weight: 800;
        line-height: 1;
        color: rgba(208, 215, 0, 0.3);
        font-family: 'Sora', sans-serif;
    }

    /* Form Styles */
    .form-input {
        width: 100%;
        padding: 16px;
        border: 2px solid rgba(60, 60, 59, 0.2);
        background: white;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .form-input:focus {
        outline: none;
        border-color: #d0d700;
    }

    .form-input::placeholder {
        color: rgba(60, 60, 59, 0.5);
    }
    .form-language {
        width: 10%;
        padding: 3px;
        border: 1px solid rgba(60, 60, 59, 0.2);
        background: white;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    /* Methodology Grid Item */
    .method-item {
        position: relative;
        padding: 2rem;
        background: white;
        border: 1px solid rgba(60, 60, 59, 0.1);
        transition: all 0.3s ease;
    }

    .method-item:hover {
        border-color: #d0d700;
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(60, 60, 59, 0.1);
    }

    .method-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: #d0d700;
        transition: height 0.3s ease;
    }

    .method-item:hover::before {
        height: 100%;
    }

    /* Dimesions Grid Item */
    .dimension-item {
        position: relative;
        padding: 1rem;
        background: white;
        border: 1px solid rgba(60, 60, 59, 0.1);
        transition: all 0.3s ease;
    }

    .dimension-item:hover {
        border-color: #d0d700;
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(60, 60, 59, 0.1);
    }

    .dimension-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 0;
        background: #d0d700;
        transition: height 0.3s ease;
    }

    .dimension-item:hover::before {
        height: 100%;
    }

    /* Spice styled lists */
    .spice-list {
        list-style: none;
        padding-left: 0;
        margin: 1.5rem 0;
    }

    .spice-list li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .spice-list li::before {
        content: '→';
        position: absolute;
        left: 0;
        color: #d0d700;
        font-weight: bold;
        font-size: 1.2em;
    }

    /* Variante con bullet classico */
    .spice-list-bullet {
        list-style: none;
        padding-left: 0;
        margin: 1.5rem 0;
    }

    .spice-list-bullet li {
        position: relative;
        padding-left: 1.75rem;
        margin-bottom: 0.875rem;
        line-height: 1.6;
    }

    .spice-list-bullet li::before {
        content: '';
        position: absolute;
        left: 0.25rem;
        top: 0.6em;
        width: 8px;
        height: 8px;
        background: #d0d700;
        border-radius: 50%;
    }

    /* Variante con check */
    .spice-list-check {
        list-style: none;
        padding-left: 0;
        margin: 1.5rem 0;
    }

    .spice-list-check li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .spice-list-check li::before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #d0d700;
        font-weight: bold;
        font-size: 1.3em;
    }

    /* Clients Ribbon */
    .clients-ribbon {
        overflow: hidden;
        overflow-x: hidden;
        padding: 0.75rem 0;
        background: transparent;
        width: 100%;
        position: relative;
    }

    @media (min-width: 768px) {
        .clients-ribbon {
            padding: 1.25rem 0;
        }
    }


    .clients-track {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 1.5rem; /* mobile spacing */
        white-space: nowrap;
        --client-duration: 24s;
        animation: scroll-left var(--client-duration) linear infinite;
        will-change: transform;
        width: max-content;
    }

    @media (min-width: 768px) {
        .clients-track {
            gap: 2.5rem; /* increased spacing for better breathing room */
        }
    }

    .clients-track.paused {
        animation-play-state: paused;
        transform: none;
    }

    .client-logo {
        height: 32px; /* smaller for mobile */
        width: auto;
        filter: grayscale(100%);
        opacity: 0.85;
        transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
        image-rendering: -webkit-optimize-contrast; /* improves sharpness on some displays */
        flex-shrink: 0;
        display: block;
    }

    .client-logo:hover,
    .client-logo:focus {
        filter: none;
        opacity: 1;
        transform: scale(1.02);
    }

    @media (min-width: 640px) {
        .client-logo { height: 44px; }
    }

    @media (min-width: 768px) {
        .client-logo { height: 56px; }
    }

    /* Associazioni Ribbon Styling */
    .associazioni-ribbon {
        overflow: hidden;
        overflow-x: hidden;
        background: white;
        border-radius: 0.75rem;
        padding: 1.5rem 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 100%;
        position: relative;
    }

    @media (min-width: 640px) {
        .associazioni-ribbon {
            border-radius: 1rem;
            padding: 2.5rem 1rem;
        }
    }

    .associazioni-track {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2rem;
        animation: scroll-right var(--associazioni-duration) linear infinite;
        width: max-content;
    }

    @media (min-width: 768px) {
        .associazioni-track {
            gap: 3.5rem;
        }
    }

    .associazioni-track.paused {
        animation-play-state: paused;
    }
    display: block;
    
    .associazione-logo {
        height: 48px;
        opacity: 0.8;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    @media (min-width: 640px) {
        .associazione-logo {
            height: 56px;
        }
    }

    .associazione-logo:hover,
    .associazione-logo:focus {
        opacity: 1;
        transform: scale(1.05);
    }

    @media (min-width: 768px) {
        .associazioni-ribbon {
            padding: 4rem 1.5rem;
        }
        .associazione-logo { height: 64px; }
    }

    @media (min-width: 1024px) {
        .associazione-logo { height: 72px; }
    }

    /* Respect users' reduced motion preferences */
    @media (prefers-reduced-motion: reduce) {
        .clients-track,
        .associazioni-track { animation: none !important; transform: none !important; }
    }

    @keyframes scroll-left {
        from { transform: translateX(0); }
        to { transform: translateX(-50%); }
    }

    @keyframes scroll-right {
        from { transform: translateX(-50%); }
        to { transform: translateX(0); }
    }

    /* Team Image Hover Effect */
    .team-image {
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .team-image:hover {
        transform: scale(1.02);
    }
