/* ============================================
   CRISTIAN DE CESARE — V2 DESIGN SYSTEM
   Ispirazione: Layout asimmetrico, card arrotondate,
   accento arancione acceso, foto hero grande
   ============================================ */

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

:root {
    --bg: #0A0A0A;
    --bg-card: #161616;
    --bg-card-hover: #1C1C1C;
    --bg-dark-section: #111111;
    --text: #F5F0EB;
    --text-secondary: #9A9A9A;
    --text-muted: #555;
    --accent: #FF5C00;
    --accent-hover: #FF7A2E;
    --accent-soft: rgba(255, 92, 0, 0.12);
    --accent-glow: rgba(255, 92, 0, 0.25);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection {
    background: var(--accent);
    color: #fff;
}

/* --- CURSOR --- */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    opacity: 0.2;
}

/* --- CONTAINER --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 48px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text);
}

.nav-logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    padding: 10px 24px;
    border-radius: 100px;
    transition: all 0.3s;
}

.nav-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 140px 48px 0;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    flex: 1;
}

.hero-label {
    display: inline-block;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(105%);
}

.text-accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 460px;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 580px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    filter: grayscale(20%) contrast(1.05);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 92, 0, 0.35) 0%,
        rgba(255, 92, 0, 0.1) 40%,
        transparent 70%
    );
    mix-blend-mode: color;
    pointer-events: none;
}

.hero-image-glow {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 92, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

/* Competenze Bar */
.competenze-bar {
    margin-top: 60px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.competenze-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.competenza-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.competenza-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.competenza-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.35s ease;
    border: none;
    cursor: none;
}

.btn svg {
    transition: transform 0.3s;
}

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

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    padding: 14px 32px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 20px 48px;
    font-size: 16px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 120px 0;
}

.section-dark {
    background: var(--bg-dark-section);
}

.label {
    display: block;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    font-weight: 500;
}

.section-title {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 56px;
}

.section-title-large {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

/* ============================================
   PROBLEMI
   ============================================ */
.problemi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.problema-card {
    background: var(--bg-card);
    padding: 40px 36px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.problema-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.problema-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 92, 0, 0.1);
}

.problema-card:hover::after {
    transform: scaleX(1);
}

.problema-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.problema-number {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.problema-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.problema-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.problema-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   METODO
   ============================================ */
.metodo-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 80px;
}

.metodo-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 20px;
}

.metodo-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.metodo-right .btn-outline {
    margin-top: 16px;
}

/* Pilastri */
.pilastri {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pilastro {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.pilastro:hover {
    border-color: rgba(255, 92, 0, 0.15);
}

.pilastro-accent {
    width: 32px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 24px;
}

.pilastro h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pilastro p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   ECOSISTEMA
   ============================================ */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.eco-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s;
    overflow: hidden;
}

.eco-card:hover {
    border-color: rgba(255, 92, 0, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.eco-card-inner {
    padding: 36px 32px;
    position: relative;
}

.eco-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 1px solid var(--accent-soft);
    border-radius: 100px;
    margin-bottom: 20px;
    font-weight: 500;
}

.eco-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
}

.eco-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.eco-arrow {
    position: absolute;
    top: 36px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.35s;
}

.eco-card:hover .eco-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.eco-footer {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
    padding-left: 24px;
    border-left: 3px solid var(--accent);
}

/* ============================================
   SELEZIONE
   ============================================ */
.selezione-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.selezione-col {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.selezione-header {
    padding: 24px 32px;
    font-size: 20px;
    font-weight: 700;
}

.selezione-si-header {
    background: var(--accent-soft);
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 92, 0, 0.1);
}

.selezione-no-header {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.selezione-list {
    padding: 24px 32px;
}

.selezione-list li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.selezione-list li:last-child {
    border-bottom: none;
}

.icon-check {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-cross {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   CTA FINALE
   ============================================ */
.section-cta {
    background: var(--bg);
    text-align: center;
    padding: 160px 0;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.4;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.cta-sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-note {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg);
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.footer-name {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.footer-tagline {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-social:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.footer-bottom span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   ANIMATION INITIAL STATES
   ============================================ */
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate="split"] {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image-wrapper {
        max-height: 400px;
        aspect-ratio: 16 / 9;
    }

    .problemi-grid {
        grid-template-columns: 1fr;
    }

    .metodo-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .eco-grid {
        grid-template-columns: 1fr;
    }

    .pilastri {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .selezione-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
        cursor: auto;
    }

    .cursor, .cursor-follower {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    .hero {
        padding: 120px 20px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(30px, 9vw, 48px);
    }

    .hero-image-wrapper {
        max-height: 350px;
    }

    .competenze-inner {
        flex-wrap: wrap;
        gap: 20px;
    }

    .competenza-item {
        width: calc(50% - 10px);
    }

    .section {
        padding: 80px 0;
    }

    .section-cta {
        padding: 100px 0;
    }

    .btn-large {
        padding: 18px 36px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .problema-card {
        padding: 28px 24px;
    }

    .eco-card-inner {
        padding: 28px 24px;
    }
}
