/* ═══════════════════════════════════════════════════════
   collaborazioni.datadeep.it — Landing Page Styles
   ═══════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--dd-white);
    background: var(--dd-navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-smooth);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

/* ─── Layout ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 40px;
}

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

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

/* ─── Section Label ─── */
.section-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--dd-purple-light);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--font-size-4xl);
    color: var(--dd-white);
    margin-bottom: var(--space-5);
}

.section-subtitle {
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.6);
    max-width: 780px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: var(--dd-navy);
    border-bottom: 1px solid rgba(187, 49, 199, 0.35);
    transition: all 0.4s var(--ease-smooth);
}

.header.scrolled {
    border-bottom-color: rgba(187, 49, 199, 0.45);
    box-shadow: 0 4px 20px rgba(187, 49, 199, 0.15);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.25s var(--ease-smooth);
}

.nav-link:hover {
    color: var(--dd-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(187, 49, 199, 0.45);
    box-shadow: 0 0 12px rgba(187, 49, 199, 0.2);
}

/* ═══════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--dd-gradient-cta);
    color: var(--dd-white);
    box-shadow: 0 4px 20px rgba(187, 49, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(187, 49, 199, 0.4);
    color: var(--dd-white);
}

.btn-outline {
    background: transparent;
    color: var(--dd-white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--dd-purple);
    color: var(--dd-purple-light);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════ */
.card-dark {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: var(--space-8) var(--space-6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dd-gradient-icon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-smooth);
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(187, 49, 199, 0.3);
    transform: translateY(-4px);
}

.card-dark:hover::before {
    transform: scaleX(1);
}

.card-dark h3 {
    color: var(--dd-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
}

.card-dark p {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* ─── Icon Box ─── */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--dd-gradient-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    flex-shrink: 0;
}

.icon-box svg {
    width: 26px;
    height: 26px;
    stroke: var(--dd-white);
    stroke-width: 2;
    fill: none;
}

/* ═══════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dd-gradient-hero);
    padding-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(187, 49, 199, 0.12) 0%, transparent 70%);
    animation: pulseGlow 6s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 47, 217, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(187, 49, 199, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 40px 60px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(187, 49, 199, 0.12);
    border: 1px solid rgba(187, 49, 199, 0.25);
    color: var(--dd-purple-light);
    margin-bottom: var(--space-6);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dd-purple-light);
    animation: blink 2s ease-in-out infinite;
}

.hero h1 {
    font-size: var(--font-size-hero);
    color: var(--dd-white);
    margin-bottom: var(--space-5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .gradient-text {
    background: var(--dd-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.7);
    max-width: 620px;
    margin: 0 auto var(--space-8);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Hero animations ─── */
.hero-anim {
    opacity: 0;
    animation: heroFadeUp 0.8s var(--ease-smooth) forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.25s; }
.hero-anim-3 { animation-delay: 0.4s; }
.hero-anim-4 { animation-delay: 0.55s; }

/* ═══════════════════════════════════════════════════════
   Manifesto
   ═══════════════════════════════════════════════════════ */
.section-manifesto {
    background: var(--dd-white);
}

.section-manifesto .section-label {
    color: var(--dd-purple);
}

.section-manifesto .section-title {
    color: var(--dd-navy);
}

.section-manifesto .section-subtitle {
    color: var(--dd-muted);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.manifesto-card .card-dark {
    height: 100%;
    background: var(--dd-off-white);
    border-color: rgba(10, 10, 40, 0.06);
    backdrop-filter: none;
}

.manifesto-card .card-dark:hover {
    background: var(--dd-white);
    border-color: rgba(187, 49, 199, 0.2);
    box-shadow: var(--shadow-lg);
}

.manifesto-card .card-dark h3 {
    color: var(--dd-navy);
}

.manifesto-card .card-dark p {
    color: var(--dd-body);
}

/* ─── Section Light (shared white background) ─── */
.section-light {
    background: var(--dd-white);
}

.section-light .section-label {
    color: var(--dd-purple);
}

.section-light .section-title {
    color: var(--dd-navy);
}

.section-light .section-subtitle {
    color: var(--dd-muted);
}

.section-light .card-dark,
.section-light .profile-card,
.section-light .perche-card-big {
    background: var(--dd-off-white);
    border-color: rgba(10, 10, 40, 0.06);
    backdrop-filter: none;
}

.section-light .card-dark:hover,
.section-light .profile-card:hover,
.section-light .perche-card-big:hover {
    background: var(--dd-white);
    border-color: rgba(187, 49, 199, 0.2);
    box-shadow: var(--shadow-lg);
}

.section-light .card-dark h3,
.section-light .profile-card h3,
.section-light .perche-card-big h3,
.section-light .perche-point-text h4 {
    color: var(--dd-navy);
}

.section-light .card-dark p,
.section-light .profile-card p,
.section-light .perche-card-big p,
.section-light .perche-point-text p {
    color: var(--dd-body);
}

.section-light .profile-tag {
    background: rgba(187, 49, 199, 0.08);
    border-color: rgba(187, 49, 199, 0.15);
    color: var(--dd-purple);
}

/* ═══════════════════════════════════════════════════════
   Perché il Questionario
   ═══════════════════════════════════════════════════════ */
.perche-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
    margin-top: var(--space-8);
}

.perche-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.perche-point {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.perche-point .icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    margin-bottom: 0;
}

.perche-point .icon-box svg {
    width: 22px;
    height: 22px;
}

.perche-point-text h4 {
    color: var(--dd-white);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-1);
}

.perche-point-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.perche-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.perche-card-big {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.perche-card-big .icon-box {
    margin: 0 auto var(--space-5);
    width: 64px;
    height: 64px;
}

.perche-card-big .icon-box svg {
    width: 30px;
    height: 30px;
}

.perche-card-big h3 {
    color: var(--dd-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
}

.perche-card-big p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

/* ═══════════════════════════════════════════════════════
   Esperienza — Two profile cards
   ═══════════════════════════════════════════════════════ */
.esperienza-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.profile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: var(--space-8) var(--space-6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dd-gradient-icon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-smooth);
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(187, 49, 199, 0.3);
    transform: translateY(-4px);
}

.profile-card:hover::before {
    transform: scaleX(1);
}

.profile-card h3 {
    color: var(--dd-white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
}

.profile-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(187, 49, 199, 0.1);
    border: 1px solid rgba(187, 49, 199, 0.2);
    color: var(--dd-purple-light);
}

/* ═══════════════════════════════════════════════════════
   Nota sul Tempo — Prominent card
   ═══════════════════════════════════════════════════════ */
.nota-tempo {
    position: relative;
}

.nota-tempo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(187, 49, 199, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.nota-tempo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--dd-gradient-icon);
}

.nota-tempo-card .icon-box {
    margin: 0 auto var(--space-5);
    width: 64px;
    height: 64px;
}

.nota-tempo-card .icon-box svg {
    width: 30px;
    height: 30px;
}

.nota-tempo-card h2 {
    font-size: var(--font-size-2xl);
    color: var(--dd-white);
    margin-bottom: var(--space-4);
}

.nota-tempo-card p {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.65);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

.nota-tempo-card .highlight {
    color: var(--dd-purple-light);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   CTA Band
   ═══════════════════════════════════════════════════════ */
.cta-band {
    padding: var(--space-12) 0;
    background: linear-gradient(135deg, rgba(187, 49, 199, 0.15) 0%, rgba(123, 47, 217, 0.15) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #bb31c7 0%, #7b2fd9 50%, #e44cef 100%);
    opacity: 0.08;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.cta-band h2 {
    font-size: var(--font-size-3xl);
    color: var(--dd-white);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.cta-band p {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.cta-band .btn {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════ */
.footer {
    background: var(--dd-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 32px;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    margin: 0 auto 16px;
    opacity: 0.6;
}

.footer-text {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
}

.footer-link {
    color: var(--dd-purple-light);
    font-size: var(--font-size-xs);
}

.footer-link:hover {
    color: var(--dd-white);
}

/* ═══════════════════════════════════════════════════════
   Animations — Keyframes
   ═══════════════════════════════════════════════════════ */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════════════════
   Scroll Reveal
   ═══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-smooth),
                transform var(--duration-slow) var(--ease-smooth);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .perche-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .perche-visual {
        order: -1;
    }

    .esperienza-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 0 24px;
    }

    .header-inner {
        padding: 16px 24px;
    }

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

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

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .hero-inner {
        padding: 60px 24px;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .nota-tempo-card {
        padding: var(--space-8) var(--space-5);
    }

    .nota-tempo-card h2 {
        font-size: var(--font-size-xl);
    }

    .cta-band h2 {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 16px;
    }

    .header-inner {
        padding: 14px 16px;
    }

    .logo img {
        height: 28px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .hero-desc {
        font-size: var(--font-size-sm);
    }

    .btn {
        padding: 14px 24px;
        font-size: var(--font-size-xs);
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .card-dark {
        padding: var(--space-6) var(--space-5);
    }

    .profile-card {
        padding: var(--space-6) var(--space-5);
    }

    .nota-tempo-card {
        padding: var(--space-6) var(--space-4);
    }

    .footer-inner {
        padding: 0 16px;
    }
}
