/* * DenkHub Design System
 * Architect: Premium UI/UX
 * Philosophy: Subtraction & Clarity
 */

:root {
    /* Colors - Light Mode Default */
    --bg-color: #ffffff;
    --surface-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --border-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #1d1d1f;
    --gradient-end: #424245;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;   /* ~64px */
    --space-xl: 8rem;   /* ~128px */

    /* Typography - Fluid Scale */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --text-xs: 0.875rem;
    --text-base: 1.0625rem; /* 17px approx */
    --text-lg: clamp(1.25rem, 2vw + 1rem, 1.5rem);
    --text-xl: clamp(2rem, 3vw + 1rem, 3.5rem);
    --text-xxl: clamp(2.5rem, 5vw + 1rem, 5rem);

    /* Layout */
    --container-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --surface-color: #1c1c1e;
        --text-primary: #f5f5f7;
        --text-secondary: #86868b;
        --accent-color: #2997ff;
        --border-color: rgba(255, 255, 255, 0.1);
        --gradient-start: #ffffff;
        --gradient-end: #86868b;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.headline-xl {
    font-size: var(--text-xxl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.headline-lg {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.lead-text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 60ch;
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.text-gradient {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
}

/* MODIFICATO: Ridotto da space-xl a space-lg per compattare le sezioni */
.section-pad {
    padding: var(--space-lg) 0;
}

.mb-large {
    margin-bottom: var(--space-lg);
}
.mb-small {
    margin-bottom: var(--space-sm);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-color), 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-sm) 0;
}

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

.logo img { height: 48px; }
@media (max-width: 900px) { .logo img { height: 32px; } }

.site-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.site-nav a {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    /* MODIFICATO: Ridotto padding top per avvicinare il contenuto all'header */
    padding-top: calc(var(--space-lg) + 60px); 
    padding-bottom: var(--space-lg);
    
    /* MODIFICATO: Ridotta altezza minima per evitare vuoti eccessivi */
    min-height: 80vh; 
    
    display: flex;
    align-items: center;
}

.hero-content { max-width: 800px; }
.hero-content.full-width { max-width: 100%; }

.hero-visual {
    margin-top: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (min-width: 900px) {
    .hero-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        align-items: center;
    }
    .hero-visual { margin-top: 0; }
    .hero-content.full-width { grid-column: span 2; }
}

/* Buttons */
.cta-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: var(--text-base);
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background-color: var(--surface-color); }

/* NUOVO: Stile per il bottone "Presto in arrivo" */
.btn-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: rgba(127, 127, 127, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: not-allowed;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Grids & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background-color: var(--surface-color);
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }

.card-icon {
    color: var(--accent-color);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

/* Card Large (per vecchi utilizzi o sezioni future) */
.card-large {
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}
.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-large:hover .card-image img { transform: scale(1.05); }
.card-large .card-content { padding: var(--space-md); }

/* Split Layout */
.split-layout {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .split-layout { 
        grid-template-columns: 1fr 1.5fr; 
        align-items: center;
    }
}

.split-layout.reverse {
    flex-direction: row-reverse; /* Per flex containers */
}
/* Fix per grid in reverse se serve in futuro */
@media (min-width: 768px) {
    .split-layout.reverse-grid .left-col { order: 2; }
    .split-layout.reverse-grid .right-col { order: 1; }
}

.list-item {
    border-top: 1px solid var(--border-color);
    padding: var(--space-md) 0;
}
.list-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.list-item p { color: var(--text-secondary); }

.bg-surface { background-color: var(--surface-color); }

/* Footer */
.site-footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--text-xs);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
.btn-status {
            display: inline-block;
            padding: 12px 24px;
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--text-secondary, #888);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            font-size: 0.9rem;
            cursor: not-allowed;
            text-decoration: none;
            letter-spacing: 0.5px;
        }