/* =================================================================
   LIVEALL v36.0 - MAIN.CSS - FULLY REFACTORED
   All styles in one file - All spacing issues FIXED
   Clean production-ready stylesheet
   Mobile-first, BEM methodology, Performance optimized
   
   CHANGELOG v36.0:
   - FIX: Header vertical centering (added height:100% to .header .container)
   - FIX: Removed min-height:100vh from hero (was causing huge gap)
   - FIX: Word rotator spacing reduced to 0.15em
   - FIX: Hero padding optimized for natural content flow
   ================================================================= */

/* -----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ----------------------------------------------------------------- */

   :root {
    /* Core Colors */
    --color-ink: #ffffff;
    --color-paper: #0a0a0a;
    --color-muted: #999999;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.05);
    
    /* Service Colors */
    --color-content: #6b3850;
    --color-branded: #2a4b8d;
    --color-writing: #2d5a2d;
    --color-video: #8b2c2c;
    --color-luxury: #7d6333;
    --color-livestreaming: #5a3a7d;
    --color-hivesmash: #621AFF;
    
    /* Social Colors */
    --color-instagram: #4a2847;
    --color-facebook: #1a3665;
    --color-youtube: #4a2020;
    --color-vimeo: #1a4757;
    --color-whatsapp: #1a4a2e;
    --color-linkedin: #0a3d62;
    --color-mail: #3a3a3a;
    
    /* Typography Scale */
    --font-xs: 0.875rem;
    --font-sm: 1rem;
    --font-base: 1.125rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --font-4xl: 3rem;
    --font-5xl: 4rem;
    
    /* Spacing System (8px grid) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 70px;
    
    /* Z-index Scale */
    --z-background: 1;
    --z-default: 10;
    --z-header: 1000;
    --z-overlay: 2000;
    --z-modal: 3000;
    
    /* Animation */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
    --duration: 300ms;
    --duration-slow: 600ms;

    /* HivesMash Brand Colors */
    --color-hivesmash-purple: #621AFF;
    --color-hivesmash-pink: #FF8AC5;
}

/* -----------------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------------- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--font-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

img,
svg:not(.tech-logo svg):not(.header__logo-svg):not(.footer__logo) {
    display: block;
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------------------------------
   3. UTILITIES
   ----------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-ink);
    color: var(--color-paper);
    padding: var(--space-xs) var(--space-sm);
    z-index: var(--z-modal);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: top var(--duration) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* -----------------------------------------------------------------
   4. HEADER - ALWAYS VISIBLE & PERFECTLY CENTERED
   ================================================================
   FIX v36.0: Added height:100% to .header .container
   This ensures the grid centering works correctly
   ----------------------------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: var(--z-header);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background var(--duration) var(--ease-out);
}

/* FIX v36.0: Container inside header MUST have full height */
.header .container {
    height: 100%;
}

/* Grid layout for centered navigation - 3 columns */
.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    padding: 0;
}

.header__logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    justify-self: start;
}

.header__logo svg {
    height: 28px;
    width: auto;
}

.header__logo-svg {
    height: 28px;
    width: auto;
    color: var(--color-ink);
}

/* Header states */
.header--scrolled {
    background: rgba(10, 10, 10, 0.98);
}

/* -----------------------------------------------------------------
   5. NAVIGATION - PERFECTLY CENTERED
   ----------------------------------------------------------------- */

.nav {
    display: none;
    gap: var(--space-lg);
    align-items: center;
    height: 100%;
}

/* Center navigation in grid */
.nav--desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    height: 100%;
    gap: 24px;
}

.nav__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    font-size: 1.0625rem; /* 17px */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--duration) var(--ease-out);
    line-height: 1;
}

.nav__link:hover {
    color: #aaaaaa;
}

/* -----------------------------------------------------------------
   MOBILE/TABLET NAVIGATION - Slide-In Panel from Right
   ----------------------------------------------------------------- */

/* Overlay behind mobile menu - clickable to close */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease-out),
                visibility var(--duration) var(--ease-out);
    z-index: calc(var(--z-header) - 2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-mobile-overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* Slide-in Panel - Compact, content-height */
.nav-mobile {
    position: fixed;
    top: var(--header-height);
    right: var(--space-md);
    width: auto;
    min-width: 200px;
    max-width: 280px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    transform: translateX(120%);
    opacity: 0;
    transition: transform var(--duration-slow) var(--ease-out),
                opacity var(--duration) var(--ease-out);
    z-index: calc(var(--z-header) + 1);
    display: flex;
    flex-direction: column;
}

.nav-mobile--open {
    transform: translateX(0);
    opacity: 1;
}

/* Panel Header - Hidden in compact mode */
.nav-mobile__header {
    display: none;
}

.nav-mobile__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--color-ink);
    cursor: pointer;
    transition: opacity var(--duration) var(--ease-out);
}

.nav-mobile__close:hover {
    opacity: 0.7;
}

.nav-mobile__close-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.nav-mobile__close-icon::before,
.nav-mobile__close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.nav-mobile__close-icon::before {
    transform: rotate(45deg);
}

.nav-mobile__close-icon::after {
    transform: rotate(-45deg);
}

/* Navigation Links Container - Centered */
.nav-mobile__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    gap: 0;
}

/* Individual Link */
.nav-mobile__link {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15em;
    padding: 0.5rem var(--space-md);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-ink);
    text-decoration: none;
    transition: opacity var(--duration) var(--ease-out);
    width: 100%;
}

.nav-mobile__link:hover {
    opacity: 0.7;
}

/* Swiss-style number in superscript */
.nav-mobile__number {
    font-size: 0.625rem;
    font-weight: 600;
    opacity: 0.4;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Panel Footer - Language switcher */
.nav-mobile__footer {
    padding: var(--space-sm) var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
}

.nav-mobile__lang-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-ink);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
}

.nav-mobile__lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-mobile__lang-btn--active {
    background: var(--color-ink);
    color: var(--color-paper);
    border-color: var(--color-ink);
}

/* Right side container - Lang + Burger */
.header__right {
    display: flex;
    align-items: center;
    height: 100%;
    justify-self: end;
}

/* Language Switcher */
.header__lang {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 100%;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all var(--duration) var(--ease-out);
    border-radius: 4px;
    line-height: 1;
    background: transparent;
    color: #ffffff;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

a.lang-btn--active,
a.lang-btn--active:hover {
    background: #ffffff;
    color: #0a0a0a;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 24px;
    height: 24px;
}

.menu-toggle__line {
    width: 100%;
    height: 2px;
    background: var(--color-ink);
    transition: all var(--duration) var(--ease-out);
}

.menu-toggle--active .menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle--active .menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.menu-toggle--active .menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* -----------------------------------------------------------------
   6. HERO SECTION - NATURAL CONTENT FLOW
   ================================================================
   FIX v36.0: Removed min-height:100vh
   The hero now flows naturally with its content
   No more huge gap between hero and next section
   ----------------------------------------------------------------- */

.hero {
    /* NO min-height - let content determine height */
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: var(--space-xl);
    position: relative;
}

.hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start; /* Align to top, not center */
}

.hero__column {
    width: 100%;
}

.hero__brand {
    max-width: 450px;
}

/* Logo styles */
.hero__logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin-bottom: var(--space-lg);
}

/* Payoff text */
.hero__payoff {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.hero__payoff-line {
    display: block;
}

/* -----------------------------------------------------------------
   WORD ROTATOR - TIGHT SPACING
   ================================================================
   FIX v36.0: Reduced margin-right from 0.25em to 0.15em
   Much tighter, more natural spacing between verb and object
   ----------------------------------------------------------------- */

.hero__rotator {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    min-height: 3rem;
    /* FIX: Allow JS to set width for no-shift animation */
    display: inline-block;
    text-align: left;
}

.hero__verb {
    /* FIX v37.1: Natural word spacing */
    margin-right: 0;
    font-weight: 300;
    display: inline-block;
    transition: opacity 350ms var(--ease-out);
}

.hero__object {
    font-weight: 300;
    display: inline-block;
    transition: opacity 350ms var(--ease-out);
}

/* Content column */
.hero__content {
    max-width: 500px;
}

.hero__text {
    font-size: clamp(1.375rem, 2.2vw, 1.625rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    white-space: pre-line;
}

.hero__text--3 {
    margin-bottom: 0;
}

/* Animation states for word rotator */
.hero__verb.fade-out,
.hero__object.fade-out {
    opacity: 0;
}

.hero__verb.fade-in,
.hero__object.fade-in {
    opacity: 1;
}

/* Loading state */
.hero__rotator[data-loading="true"] {
    opacity: 0;
    transition: opacity 600ms ease-out;
}

.hero__rotator[data-loading="false"] {
    opacity: 1;
}

/* Hero Responsive Styles */
@media (max-width: 1024px) {
    .hero {
        padding-top: calc(var(--header-height) + 4rem);
        padding-bottom: var(--space-xl);
    }
    
    .hero__layout {
        gap: var(--space-2xl);
    }
    
    .hero__logo {
        max-width: 360px;
    }
    
    .hero__payoff {
        font-size: clamp(2.25rem, 4vw, 3rem);
    }
    
    .hero__rotator {
        font-size: clamp(1.625rem, 3vw, 2.5rem);
    }

    .hero__text {
        font-size: clamp(1.25rem, 2vw, 1.5rem);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--header-height) + 3rem);
        padding-bottom: var(--space-lg);
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero__brand {
        margin: 0 auto;
    }

    .hero__logo {
        max-width: 320px !important;
        width: 320px !important;
        margin: 0 auto var(--space-md);
    }

    .hero__payoff {
        font-size: 2rem;
        margin-bottom: var(--space-lg);
    }

    .hero__rotator {
        font-size: 1.5rem;
        min-height: 2rem;
    }

    .hero__content {
        margin: 0 auto;
    }

    .hero__text {
        font-size: 1.25rem;
        margin-bottom: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: var(--space-md);
    }

    .section {
        padding: var(--space-md) 0;
    }

    .hero__logo {
        max-width: 240px !important;
        width: 240px !important;
    }

    .hero__payoff {
        font-size: 1.75rem;
        margin-bottom: var(--space-md);
    }

    .hero__payoff-line:first-child {
        margin-bottom: 0.2em;
    }

    .hero__rotator {
        font-size: 1.25rem;
    }

    .hero__text {
        font-size: 1.125rem;
    }
}

/* -----------------------------------------------------------------
   7. SECTIONS BASE - HARMONIOUS SPACING
   ----------------------------------------------------------------- */

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* First section after hero - same spacing for symmetry */
.hero + .section {
    padding-top: var(--space-xl);
}

/* Last section before footer - same spacing for symmetry */
.section:last-of-type {
    padding-bottom: var(--space-xl);
}

/* Section divider lines */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.section:first-of-type::before {
    display: none;
}

.section__header {
    margin-bottom: var(--space-xl);
}

.section__title {
    font-size: 3.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: left;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* Numero sezione - Stile Swiss Apice */
.section__number {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.5;
    line-height: 1;
    letter-spacing: 0.05em;
    vertical-align: super;
    margin-right: 0.4em;
    position: relative;
    top: 0.15em;
}

/* Legacy - asterisco (deprecato) */
.section__asterisk {
    display: inline-block;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.5;
    line-height: 1;
}

/* -----------------------------------------------------------------
   8. CARDS BASE
   ----------------------------------------------------------------- */

.card {
    position: relative;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s var(--ease-out),
                border-color 0.3s var(--ease-out);
}

/* Link cards - reset anchor styles */
a.card {
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card__divider {
    display: none;
}

/* -----------------------------------------------------------------
   9. SERVICES/COMPETENZE CARDS - SWISS DESIGN
   ================================================================
   Layout Structure:
   â”Œâ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
   â”‚ 01 (absolute)                   â”‚
   â”‚                                 â”‚
   â”‚         â†• auto                  â”‚
   â”‚                                 â”‚
   â”‚ TITLE                           â”‚ â”
   â”‚         â†• 1rem                  â”‚ â”‚ CENTERED
   â”‚ Description text...             â”‚ â”˜ BLOCK
   â”‚                                 â”‚
   â”‚         â†• auto                  â”‚
   â”‚                                 â”‚
   â”œâ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”¤
   â”‚ CTA                          â†’  â”‚
   â””â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”˜
   ----------------------------------------------------------------- */

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

/* === CARD CONTAINER === */
.card--service {
    position: relative;
    min-height: 340px;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease;
}

/* === CARD COLORS === */
.card--service[data-service="content"] { background: var(--color-content); }
.card--service[data-service="branded"] { background: var(--color-branded); }
.card--service[data-service="writing"] { background: var(--color-writing); }
.card--service[data-service="video"] { background: var(--color-video); }
.card--service[data-service="luxury"] { background: var(--color-luxury); }
.card--service[data-service="livestreaming"] { background: var(--color-livestreaming); }

/* === NUMBER - Absolute positioned, outside content flow === */
.card--service .card__number {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-ink);
    opacity: 0.3;
    line-height: 1;
    z-index: 1;
    transition: opacity 0.3s var(--ease-out);
}

.card--service:hover .card__number {
    opacity: 0.5;
}

/* === CONTENT WRAPPER - Flex container that centers the block === */
.card--service .card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Centers the title+text block */
    flex: 1 1 auto;           /* Grows to fill space between number zone and CTA */
    padding: 28px 18px 8px 18px;
    min-height: 0;            /* Prevents flex overflow issues */
}

/* === TITLE - Fixed size, part of centered block === */
.card--service .card__title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.0;
    margin: 0 0 0.75rem 0;
    flex: 0 0 auto;  /* Don't grow, don't shrink */
}

/* === TEXT - Fixed size, part of centered block === */
.card--service .card__text {
    font-size: 1.0625rem;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    flex: 0 0 auto;  /* Don't grow, don't shrink */
}

/* === CTA BAR - Anchored to bottom === */
.card--service .card__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    margin-top: auto;  /* Pushes to bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;    /* Don't grow, don't shrink */
    transition: background 0.3s var(--ease-out);
}

.card--service:hover .card__cta {
    background: rgba(0, 0, 0, 0.2);
}

.card--service .card__cta-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card--service .card__cta-arrow {
    font-size: 1.375rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card--service:hover .card__cta-arrow {
    transform: translateX(8px);
}

/* === HOVER - Glow effect (aligned with HivesMash) === */
/* Using brighter/saturated versions of card colors for visible glow */
.card--service:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card--service[data-service="content"]:hover {
    box-shadow: 0 20px 60px rgba(219, 112, 147, 0.35);  /* Bright pink */
}
.card--service[data-service="branded"]:hover {
    box-shadow: 0 20px 60px rgba(70, 130, 230, 0.35);   /* Bright blue */
}
.card--service[data-service="writing"]:hover {
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.35);    /* Bright green */
}
.card--service[data-service="video"]:hover {
    box-shadow: 0 20px 60px rgba(229, 75, 75, 0.35);    /* Bright red */
}
.card--service[data-service="luxury"]:hover {
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.35);    /* Bright gold */
}
.card--service[data-service="livestreaming"]:hover {
    box-shadow: 0 20px 60px rgba(156, 89, 209, 0.35);   /* Bright purple */
}

/* === RESPONSIVE TABLET (1024px) === */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        /* Limita larghezza totale per evitare card troppo larghe */
        max-width: 800px;
        margin: 0 auto;
    }

    .card--service {
        min-height: 300px;
        /* Aspect ratio controllato per evitare rettangoli troppo larghi */
        max-width: 380px;
        justify-self: center;
        width: 100%;
    }

    .card--service .card__content {
        padding: 26px 16px 8px 16px;
    }

    .card--service .card__title {
        font-size: 1.625rem;
        margin-bottom: 0.75rem;
    }

    .card--service .card__text {
        font-size: 1rem;
    }
}

/* === RESPONSIVE MOBILE (768px) === */
@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        max-width: 100%;
        overflow: hidden;
    }

    .card--service {
        height: auto;
        min-height: 260px;
        max-width: 100%;
        min-width: 0; /* Prevent grid blowout */
        overflow: hidden;
    }

    .card--service .card__number {
        top: 14px;
        left: 14px;
        font-size: 0.875rem;
    }

    .card--service .card__content {
        padding: 36px 14px 8px 14px;
    }

    .card--service .card__title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .card--service .card__text {
        font-size: 0.9375rem;
        line-height: 1.45;
    }

    .card--service .card__cta {
        padding: 14px 18px;
    }

    .card--service .card__cta-text {
        font-size: 1rem;
    }
}

/* === RESPONSIVE SMALL MOBILE (480px) - iPhone === */
/* Card proporzionate come desktop - altezza 260px */
@media (max-width: 480px) {
    .services__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 300px;
        margin: 0 auto;
    }

    .card--service {
        height: 260px;
        min-height: unset;
        max-width: 300px;
        width: 100%;
    }

    .card--service .card__content {
        padding: 20px 16px 10px 16px;
        text-align: center;
        justify-content: center;
        flex: 1 1 auto;
    }

    .card--service .card__number {
        top: 12px;
        left: 14px;
        font-size: 0.875rem;
    }

    .card--service .card__title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .card--service .card__text {
        font-size: 1rem;
        line-height: 1.45;
    }

    .card--service .card__cta {
        padding: 12px 16px;
    }

    .card--service .card__cta-text {
        font-size: 0.875rem;
    }
}

/* -----------------------------------------------------------------
   10. LAB SECTION - HIVESMASH v10
   ================================================================
   Redesigned with animated nebula card and new copy structure
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   TECHNOLOGIES SECTION - MARQUEE LOGOS
   ----------------------------------------------------------------- */
.technologies {
    padding: var(--space-xl) 0 var(--space-xl) 0; /* 48px top e bottom */
    overflow: hidden;
}

.technologies .section__header {
    text-align: center;
    margin-bottom: var(--space-md); /* 24px - respiro tra EQUIPMENT e loghi */
}

.section__subtitle {
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
    margin-top: var(--space-sm);
}

.section__subtitle--tech {
    font-size: 1.575rem; /* 25px - ridotto del 30% */
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* Marquee Container */
.tech-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Fade edges - REMOVED: no more black gradient on sides */

/* Marquee Track - Contains both content sets side by side */
.tech-marquee__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee 40s linear infinite;
}

/* Hover pausa rimosso - scorrimento continuo */

/* Marquee Content (duplicated for seamless loop) */
.tech-marquee__content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    gap: 70px;
    padding: 0 35px;
}

/* Individual Logo Container */
.tech-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover rimosso - loghi statici */

/* Logo SVGs - inline SVG styling */
.tech-logo svg {
    display: block;
    width: auto;
    color: var(--color-ink);
}

/* Fine-tuning allineamento verticale loghi specifici */
.tech-logo[aria-label="SmallRig"] svg {
    transform: translateY(2px);
    overflow: visible;
}
.tech-logo[aria-label="SmallRig"] {
    overflow: visible;
}
.tech-logo[aria-label="Avid"] svg {
    transform: translateY(-3px);
}

/* Gap tra loghi gestito da flexbox gap: 70px in .tech-marquee__content */

/* Keyframes Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive marquee */
@media (max-width: 768px) {
    .tech-marquee__content {
        gap: 50px;
    }

    .tech-marquee__track {
        animation-duration: 30s;
    }
}

/* LAB GRID - Content left, Card right */
.lab {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* LAB CONTENT (Left Column) */
.lab__content {
    max-width: 500px;
    order: 1;
}

.lab__tagline {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-hivesmash-pink);
    margin-bottom: var(--space-md);
}

.lab__heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.lab__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    opacity: 0.85;
}

.lab__description p {
    margin-bottom: var(--space-md);
}

.lab__description p:last-child {
    margin-bottom: 0;
}

.lab__cta-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: var(--space-md);
}

/* -----------------------------------------------------------------
   CARD HIVESMASH - Animated Nebula Background
   ----------------------------------------------------------------- */

.card--lab {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    cursor: pointer;
    order: 2;
    background: linear-gradient(180deg,
        #0f0018 0%,
        #0a0012 50%,
        #06060a 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease;
}

.card--lab:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(98, 26, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

/* NEBULA BACKGROUND - 12s animation cycle */
.nebula-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    filter: blur(80px);
}

.nebula-blob {
    position: absolute;
    border-radius: 50%;
    animation: nebula-drift 12s ease-in-out infinite;
}

.nebula-blob--purple-main {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(139, 92, 246, 0.9) 0%,
        rgba(98, 26, 255, 0.4) 50%,
        transparent 70%
    );
    top: -120px;
    right: -80px;
    animation-delay: 0s;
}

.nebula-blob--pink {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle,
        rgba(255, 138, 197, 0.9) 0%,
        rgba(236, 72, 153, 0.5) 50%,
        transparent 70%
    );
    top: 15%;
    right: 0%;
    animation-delay: -4s;
}

.nebula-blob--purple-secondary {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle,
        rgba(98, 26, 255, 0.6) 0%,
        rgba(139, 92, 246, 0.3) 50%,
        transparent 70%
    );
    bottom: -80px;
    left: -60px;
    animation-delay: -8s;
}

.nebula-blob--pink-bottom {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(255, 138, 197, 0.6) 0%,
        rgba(168, 85, 247, 0.3) 50%,
        transparent 70%
    );
    bottom: 15%;
    left: 25%;
    animation-delay: -6s;
}

@keyframes nebula-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -15px) scale(1.05); }
    50% { transform: translate(-15px, 20px) scale(0.95); }
    75% { transform: translate(10px, 10px) scale(1.02); }
}

.card--lab:hover .nebula-blob {
    animation-duration: 8s;
}

/* CARD NUMBER - Same style as Competenze */
.card--lab .card__number {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-ink);
    opacity: 0.3;
    line-height: 1;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.card--lab:hover .card__number {
    opacity: 0.5;
}

/* CARD CONTENT - Centered */
.card--lab .card__content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px 18px 8px 18px;
}

/* Logo SVG HivesMash - 360px desktop */
.card__logo-svg {
    width: 360px;
    max-width: 360px;
    height: auto;
    margin-bottom: var(--space-md);
}

/* Claim - Gradient text */
.card__claim {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 0;
    background: linear-gradient(135deg, #FFB0D4 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.card--lab .card__subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: var(--space-lg);
}

/* CARD CTA */
.card--lab .card__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.15);
    z-index: 10;
    position: relative;
    width: 100%;
}

.card--lab .card__cta-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card--lab .card__cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card--lab:hover .card__cta-arrow {
    transform: translateX(8px);
}

/* LAB RESPONSIVE TABLET (1024px) */
@media (max-width: 1024px) {
    .lab {
        gap: var(--space-xl);
        max-width: 900px;
        margin: 0 auto;
    }

    .lab__content {
        max-width: 420px;
    }

    .lab__heading {
        font-size: 2.25rem;
    }

    .card--lab {
        min-height: 400px;
        max-width: 420px;
        justify-self: center;
    }

    /* Logo HivesMash tablet - width esplicito */
    .card__logo-svg {
        width: 280px;
        max-width: 280px;
    }

    .card__claim {
        font-size: 1.6rem;
    }

    .card--lab .card__subtitle {
        font-size: 0.9375rem;
    }
}

/* LAB RESPONSIVE MOBILE (768px) */
@media (max-width: 768px) {
    .lab {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        max-width: 100%;
    }

    .lab__content {
        order: 2;
        max-width: 100%;
        text-align: center;
    }

    .lab__tagline {
        text-align: center;
    }

    .lab__heading {
        text-align: center;
    }

    .lab__description {
        text-align: center;
    }

    .lab__cta {
        justify-content: center;
    }

    .card--lab {
        order: 1;
        min-height: 380px;
        max-width: 100%;
    }

    .lab__heading {
        font-size: 2rem;
    }

    .card--lab .card__number {
        top: 14px;
        left: 18px;
        font-size: 1rem;
    }

    /* Logo HivesMash mobile - width esplicito */
    .card__logo-svg {
        width: 220px;
        max-width: 220px;
    }

    .card__claim {
        font-size: 1.5rem;
    }

    .card--lab .card__subtitle {
        font-size: 0.875rem;
        margin-top: var(--space-md);
    }
}

@media (max-width: 480px) {
    /* LAB grid - allineato a COMPETENZE (max-width: 300px, centered) */
    .lab {
        max-width: 300px;
        margin: 0 auto;
        gap: 24px;
    }

    .lab__heading {
        font-size: 1.75rem;
    }

    .lab__tagline {
        font-size: 1rem;
    }

    .lab__description {
        font-size: 1.0625rem;
    }

    .lab__cta-text {
        font-size: 0.875rem;
        letter-spacing: 0.05em;
    }

    .card--lab {
        min-height: 300px;
        max-width: 300px;
        width: 100%;
        padding: 20px;
    }

    .card--lab .card__content {
        padding: 24px 14px 8px 14px;
    }

    /* Logo HivesMash small mobile - width esplicito */
    .card__logo-svg {
        width: 200px;
        max-width: 200px;
    }

    .card__claim {
        font-size: 1.375rem;
    }

    .card--lab .card__subtitle {
        font-size: 0.875rem;
        margin-top: var(--space-sm);
    }

    .card--lab .card__cta-text {
        font-size: 0.875rem;
    }

    /* Ridimensiona nebula per performance su small mobile */
    .nebula-blob--purple-main {
        width: 280px;
        height: 280px;
    }

    .nebula-blob--pink,
    .nebula-blob--purple-secondary {
        width: 240px;
        height: 240px;
    }

    .nebula-blob--pink-bottom {
        width: 200px;
        height: 200px;
    }
}

/* -----------------------------------------------------------------
   11. SOCIAL & CONTACT SECTIONS
   ----------------------------------------------------------------- */

/* Grid SOCIAL - 4 colonne allineato a COMPETENZE */
.social__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* Grid CONTACT - 3 colonne allineato a COMPETENZE */
.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.card--social,
.card--contact {
    position: relative;
    min-height: 180px;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease;
}

/* Social card colors */
.card--social[data-service="instagram"] {
    background: var(--color-instagram);
}

.card--social[data-service="facebook"] {
    background: var(--color-facebook);
}

.card--social[data-service="youtube"] {
    background: var(--color-youtube);
}

.card--social[data-service="vimeo"] {
    background: var(--color-vimeo);
}

/* Contact card colors */
.card--contact[data-service="whatsapp"] {
    background: var(--color-whatsapp);
}

.card--contact[data-service="linkedin"] {
    background: var(--color-linkedin);
}

.card--contact[data-service="mail"] {
    background: var(--color-mail);
}

/* Social/Contact number - aligned with COMPETENZE */
.card--social .card__number,
.card--contact .card__number {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-ink);
    opacity: 0.3;
    line-height: 1;
    z-index: 1;
    transition: opacity 0.3s var(--ease-out);
}

/* Social/Contact title - aligned with COMPETENZE */
.card--social .card__title,
.card--contact .card__title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.0;
    padding: var(--space-lg);
    margin-top: 24px;
}

/* Social/Contact CTA - aligned with COMPETENZE */
.card--social .card__cta,
.card--contact .card__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
    transition: background 0.3s var(--ease-out);
}

.card--social:hover .card__cta,
.card--contact:hover .card__cta {
    background: rgba(0, 0, 0, 0.2);
}

.card--social .card__cta-text,
.card--contact .card__cta-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card--social .card__cta-arrow,
.card--contact .card__cta-arrow {
    font-size: 1.375rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card--social:hover .card__cta-arrow,
.card--contact:hover .card__cta-arrow {
    transform: translateX(8px);
}

/* Hover effects (aligned with COMPETENZE/HivesMash standard) */
.card--social:hover .card__number,
.card--contact:hover .card__number {
    opacity: 0.5;
}

.card--social:hover,
.card--contact:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card--social[data-service="instagram"]:hover {
    box-shadow: 0 20px 60px rgba(225, 48, 108, 0.35);
}

.card--social[data-service="facebook"]:hover {
    box-shadow: 0 20px 60px rgba(24, 119, 242, 0.35);
}

.card--social[data-service="youtube"]:hover {
    box-shadow: 0 20px 60px rgba(255, 70, 70, 0.35);
}

.card--social[data-service="vimeo"]:hover {
    box-shadow: 0 20px 60px rgba(26, 183, 234, 0.35);
}

.card--contact[data-service="whatsapp"]:hover {
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.35);
}

.card--contact[data-service="linkedin"]:hover {
    box-shadow: 0 20px 60px rgba(0, 119, 181, 0.35);
}

.card--contact[data-service="mail"]:hover {
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.20);
}

/* === RESPONSIVE SOCIAL/CONTACT TABLET (1024px) - aligned with COMPETENZE === */
@media (max-width: 1024px) {
    .social__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        max-width: 800px;
        margin: 0 auto;
    }

    .contact__grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }

    .card--social,
    .card--contact {
        max-width: 380px;
        justify-self: center;
        width: 100%;
    }

    .card--social .card__title,
    .card--contact .card__title {
        font-size: 1.625rem;
    }
}

/* === RESPONSIVE SOCIAL/CONTACT MOBILE (768px) === */
@media (max-width: 768px) {
    .social__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        max-width: 100%;
    }

    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        max-width: 100%;
    }

    .card--social,
    .card--contact {
        min-height: 140px;
        max-width: 100%;
    }

    .card--social .card__number,
    .card--contact .card__number {
        top: 14px;
        left: 18px;
        font-size: 1rem;
    }

    .card--social .card__title,
    .card--contact .card__title {
        font-size: 1.375rem;
        padding: var(--space-md);
        margin-top: 20px;
    }

    .card--social .card__cta,
    .card--contact .card__cta {
        padding: 14px 18px;
    }

    .card--social .card__cta-text,
    .card--contact .card__cta-text {
        font-size: 1rem;
    }
}

/* === RESPONSIVE SOCIAL/CONTACT SMALL MOBILE (480px) - iPhone === */
/* Allineato a COMPETENZE: max-width 300px, centered, proporzioni migliorate */
@media (max-width: 480px) {
    .social__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Terza card DIALOGO centrata sotto le prime 2 */
    .contact__grid .card--contact:nth-child(3) {
        grid-column: 1 / -1;
        width: calc((100% - 12px) / 2);
        max-width: none;
        justify-self: center;
    }

    .card--social,
    .card--contact {
        /* Rimosso aspect-ratio forzato - height naturale */
        height: auto;
        min-height: 120px;
        max-width: none;
        width: 100%;
    }

    .card--social .card__number,
    .card--contact .card__number {
        top: 10px;
        left: 12px;
        font-size: 0.75rem;
    }

    .card--social .card__title,
    .card--contact .card__title {
        font-size: 0.9375rem;
        padding: 10px 12px;
        margin-top: 14px;
    }

    .card--social .card__cta,
    .card--contact .card__cta {
        padding: 10px 12px;
    }

    .card--social .card__cta-text,
    .card--contact .card__cta-text {
        font-size: 0.6875rem;
    }

    .card--social .card__cta-arrow,
    .card--contact .card__cta-arrow {
        font-size: 0.875rem;
    }
}

/* -----------------------------------------------------------------
   12. FOOTER - Three Column Layout (B + Maiuscolo A)
   ----------------------------------------------------------------- */

.footer {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) 0 var(--space-md);
    background: #0a0a0a;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

/* LOGO COLUMN */
.footer__logo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
}

.footer__logo {
    width: 120px;
    height: auto;
    opacity: 0.9;
    color: var(--color-ink);
}

.footer__tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    opacity: 0.5;
    text-transform: uppercase;
}

/* INFO COLUMN */
.footer__info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__col-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: var(--space-xs);
}

.footer__info {
    font-style: normal;
}

.footer__text {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.6;
    opacity: 0.8;
}

.footer__text span {
    display: block;
}

.footer__text--legal {
    margin-top: var(--space-xs);
}

/* LINKS COLUMN */
.footer__links-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-ink);
    opacity: 0.7;
    transition: opacity var(--duration) var(--ease-out);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__link:hover {
    opacity: 1;
}

.footer__link-arrow {
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--duration) var(--ease-out);
}

.footer__link:hover .footer__link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* BOTTOM */
.footer__bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.footer__copyright {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* FOOTER RESPONSIVE - Tablet */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer__logo-col {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .footer__info-col,
    .footer__links-col {
        align-items: center;
        text-align: center;
    }

    .footer__links-list {
        align-items: center;
    }
}

/* FOOTER RESPONSIVE - Mobile (Opzione B - Centrato Compatto) */
@media (max-width: 768px) {
    .footer {
        padding: 20px 16px 12px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
    }

    .footer__logo-col {
        align-items: center;
        gap: 0;
    }

    .footer__logo {
        width: 70px;
        margin-bottom: 6px;
    }

    .footer__tagline {
        font-size: 0.5625rem;
        letter-spacing: 0.1em;
        margin-top: 0;
        margin-bottom: 12px;
    }

    /* Nascondi titolo colonna su mobile */
    .footer__col-title {
        display: none;
    }

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

    .footer__text {
        font-size: 0.625rem;
        line-height: 1.6;
        letter-spacing: 0.04em;
    }

    .footer__text--legal {
        margin-top: 0;
    }

    .footer__links-col {
        align-items: center;
        margin-top: 4px;
    }

    .footer__links-list {
        flex-direction: row;
        gap: 0;
        justify-content: center;
    }

    /* Link singolo con bordo - stile bottone */
    .footer__link {
        font-size: 0.6875rem;
        font-weight: 500;
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .footer__link:hover {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .footer__link-arrow {
        display: none;
    }

    .footer__bottom {
        margin-top: 10px;
        padding-top: 10px;
    }

    .footer__copyright {
        font-size: 0.5625rem;
    }
}

/* FOOTER RESPONSIVE - Small Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 16px 16px 10px;
    }

    .footer__logo {
        width: 70px;
    }

    .footer__tagline {
        font-size: 0.5625rem;
    }

    .footer__text {
        font-size: 0.625rem;
    }

    .footer__link {
        font-size: 0.6875rem;
        padding: 5px 10px;
    }

    .footer__copyright {
        font-size: 0.5625rem;
    }
}

/* -----------------------------------------------------------------
   13. COOKIE BANNER - Posizionato in basso a destra
   ----------------------------------------------------------------- */

/* Nota: Gli stili principali del cookie banner sono definiti più avanti
   nella sezione 16. COOKIE BANNER REDESIGN (linea ~2127) */

/* -----------------------------------------------------------------
   14. RESPONSIVE DESIGN
   ----------------------------------------------------------------- */

/* Tablet (≤1024px) - Burger menu active */
@media (max-width: 1024px) {
    /* Hide desktop nav, show burger */
    .nav--desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    /* Language switcher visible, next to burger */
    .header__lang {
        display: flex;
        gap: 2px;
        margin-right: var(--space-sm);
    }

    .lang-btn {
        min-width: 28px;
        min-height: 26px;
        padding: 0 4px;
        font-size: 0.8125rem;
    }

    .header__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Right side: lang + burger grouped */
    .header__right {
        display: flex;
        align-items: center;
    }

    /* Section title tablet - proportional sizing */
    .section__title {
        font-size: 2.75rem;
    }

    .section__number {
        font-size: 0.9375rem;
        top: 0.1em;
    }

    /* Hide footer in mobile nav panel */
    .nav-mobile__footer {
        display: none;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    /* Sections responsive - symmetric spacing */
    .hero + .section {
        padding-top: var(--space-lg);
    }

    .section__title {
        font-size: var(--font-2xl);
        padding-left: 0;
    }

    .section__number {
        font-size: 0.875rem;
    }

    /* Cookie banner responsive */
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    /* NOTA: .card--service è definito nella sezione Services (riga ~1087) */

    .footer__logo {
        max-width: 120px;
    }

    /* Spazio uniforme titolo → contenuto (24px come TECNOLOGIE) */
    .section__header {
        margin-bottom: var(--space-md);
    }
}

/* -----------------------------------------------------------------
   15. ACCESSIBILITY IMPROVEMENTS
   ----------------------------------------------------------------- */

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--color-ink);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero__verb,
    .hero__object {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .hero__text {
        font-weight: 500;
    }
}

/* -----------------------------------------------------------------
   16. COOKIE BANNER - GDPR Compliant with Google Consent Mode V2
   ----------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 360px;
    max-width: calc(100vw - var(--space-lg) * 2);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--duration) var(--ease-out),
                visibility var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out);
}

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

.cookie-banner__header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.cookie-banner__icon {
    font-size: 1rem;
    opacity: 0.9;
}

.cookie-banner__title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.cookie-banner__text {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: var(--space-md);
}

.cookie-banner__link {
    display: block;
    margin-top: var(--space-sm);
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 500;
    opacity: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
    transition: border-color var(--duration) var(--ease-out);
}

.cookie-banner__link:hover {
    border-color: var(--color-ink);
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-xs);
}

.cookie-banner__btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
}

.cookie-banner__btn:hover {
    transform: translateY(-2px);
    background: var(--color-ink);
    color: var(--color-paper);
}

.cookie-banner__btn--accept {
    background: transparent;
    color: var(--color-ink);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cookie Banner Responsive - Tablet & Mobile */
/* Opzione B: Box centrato con margini - elegante e non invasivo */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: 400px;
        margin: 0 auto;
        padding: var(--space-md);
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .cookie-banner__header {
        justify-content: center;
        margin-bottom: var(--space-sm);
    }

    .cookie-banner__title {
        font-size: 0.8125rem;
    }

    .cookie-banner__text {
        text-align: center;
        font-size: 0.75rem;
        line-height: 1.6;
        margin-bottom: var(--space-sm);
    }

    .cookie-banner__link {
        margin: var(--space-xs) auto 0;
        font-size: 0.75rem;
    }

    .cookie-banner__actions {
        flex-direction: row;
        gap: var(--space-xs);
    }

    .cookie-banner__btn {
        padding: 12px 16px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
}

/* -----------------------------------------------------------------
   17. PRINT STYLES
   ----------------------------------------------------------------- */

@media print {
    .header,
    .nav-mobile,
    .cookie-banner,
    .skip-link {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero,
    .section {
        page-break-inside: avoid;
    }
}

/* =================================================================
   AURORA FLAT - Dynamic Background Effect (Homepage Only)
   Subtle animated color transitions - elegant and minimal
   ================================================================= */

/* Aurora container - fixed position, behind all content */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
}

/* Color layers - solid colors with opacity animation */
.bg-aurora__color {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: opacity;
}

/* 6 Colori Competenze - Ciclo 42 secondi (7s per colore) */
/* Ordine CALDO/FREDDO alternato per varietà visiva */

/* 1. Content Direction - Rosa #6b3850 (CALDO) */
.bg-aurora__color--1 {
    background: rgba(107, 56, 80, 0.18);
    animation: auroraFade1 42s ease-in-out infinite;
}

/* 2. Writing & Authorship - Blu #2a4b8d (FREDDO) */
.bg-aurora__color--2 {
    background: rgba(42, 75, 141, 0.18);
    animation: auroraFade2 42s ease-in-out infinite;
}

/* 3. Video Production - Rosso #8b2c2c (CALDO) */
.bg-aurora__color--3 {
    background: rgba(139, 44, 44, 0.18);
    animation: auroraFade3 42s ease-in-out infinite;
}

/* 4. Branded Entertainment - Verde #2d5a3d (FREDDO) */
.bg-aurora__color--4 {
    background: rgba(45, 90, 61, 0.18);
    animation: auroraFade4 42s ease-in-out infinite;
}

/* 5. Luxury Events - Oro #7d6333 (CALDO) */
.bg-aurora__color--5 {
    background: rgba(125, 99, 51, 0.16);
    animation: auroraFade5 42s ease-in-out infinite;
}

/* 6. Livestreaming - Viola #5a3a7d (FREDDO) */
.bg-aurora__color--6 {
    background: rgba(90, 58, 125, 0.18);
    animation: auroraFade6 42s ease-in-out infinite;
}

/* Smooth animations - 6 colori con overlap per transizioni fluide */
/* Ogni colore: ~16.67% del ciclo (7s), con fade in/out graduali */

@keyframes auroraFade1 {
    0%, 3% { opacity: 1; }
    14%, 86% { opacity: 0; }
    97%, 100% { opacity: 1; }
}

@keyframes auroraFade2 {
    0%, 8% { opacity: 0; }
    17%, 22% { opacity: 1; }
    31%, 100% { opacity: 0; }
}

@keyframes auroraFade3 {
    0%, 25% { opacity: 0; }
    33%, 38% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

@keyframes auroraFade4 {
    0%, 42% { opacity: 0; }
    50%, 55% { opacity: 1; }
    64%, 100% { opacity: 0; }
}

@keyframes auroraFade5 {
    0%, 58% { opacity: 0; }
    67%, 72% { opacity: 1; }
    81%, 100% { opacity: 0; }
}

@keyframes auroraFade6 {
    0%, 75% { opacity: 0; }
    83%, 88% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .bg-aurora__color {
        animation: none;
        opacity: 0.5;
    }
    .bg-aurora__color--1 { opacity: 0.15; }
    .bg-aurora__color--2 { opacity: 0; }
    .bg-aurora__color--3 { opacity: 0; }
    .bg-aurora__color--4 { opacity: 0; }
    .bg-aurora__color--5 { opacity: 0; }
    .bg-aurora__color--6 { opacity: 0; }
}

/* -----------------------------------------------------------------
   END OF MAIN.CSS v37.0 - AURORA FLAT ADDED
   ----------------------------------------------------------------- */