/* ================================
   TUPLA - Modern Minimal Style
   ================================ */

/* Variables */
:root {
    --color-primary: #0066ff;
    --color-primary-dark: #0052cc;
    --color-text: #1a1a2e;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-text-light);
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 290px);
    display: flex;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    background: #0a0a12;
}

/* Combined Background: Circuit + Scan Lines + Data Stream */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* ===== VIDEO BACKGROUND LAYER ===== */
.video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    filter: saturate(0.8) brightness(0.7);
}

/* Glitch transition effect */
.video-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.video-glitch.active {
    animation: glitchTransition 0.6s ease-out;
}

@keyframes glitchTransition {
    0% {
        opacity: 1;
        background: linear-gradient(
            0deg,
            transparent 0%,
            rgba(0, 102, 255, 0.3) 2%,
            transparent 4%,
            transparent 10%,
            rgba(255, 0, 102, 0.2) 11%,
            transparent 12%,
            transparent 20%,
            rgba(0, 255, 255, 0.2) 21%,
            transparent 22%
        );
        transform: translateX(0);
    }
    10% {
        transform: translateX(-5px);
        background: linear-gradient(
            0deg,
            transparent 5%,
            rgba(0, 102, 255, 0.4) 6%,
            transparent 8%,
            transparent 30%,
            rgba(255, 0, 102, 0.3) 31%,
            transparent 33%,
            transparent 50%,
            rgba(0, 255, 255, 0.3) 51%,
            transparent 53%
        );
    }
    20% {
        transform: translateX(5px);
    }
    30% {
        transform: translateX(-3px);
        background: linear-gradient(
            0deg,
            transparent 15%,
            rgba(0, 102, 255, 0.5) 16%,
            transparent 18%,
            transparent 40%,
            rgba(255, 0, 102, 0.4) 41%,
            transparent 43%,
            transparent 70%,
            rgba(0, 255, 255, 0.4) 71%,
            transparent 73%
        );
    }
    40% {
        transform: translateX(3px);
    }
    50% {
        transform: translateX(-2px);
    }
    60% {
        transform: translateX(2px);
        opacity: 0.8;
    }
    80% {
        transform: translateX(0);
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

/* Scanline glitch bars */
.video-glitch::before,
.video-glitch::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 102, 255, 0.8);
    opacity: 0;
}

.video-glitch.active::before {
    animation: glitchBar1 0.6s ease-out;
}

.video-glitch.active::after {
    animation: glitchBar2 0.6s ease-out;
}

@keyframes glitchBar1 {
    0% { top: 20%; opacity: 1; }
    25% { top: 45%; opacity: 0.8; }
    50% { top: 70%; opacity: 0.5; }
    100% { top: 95%; opacity: 0; }
}

@keyframes glitchBar2 {
    0% { top: 80%; opacity: 1; background: rgba(255, 0, 102, 0.8); }
    25% { top: 55%; opacity: 0.8; }
    50% { top: 30%; opacity: 0.5; }
    100% { top: 5%; opacity: 0; }
}

/* ===== CIRCUIT BOARD LAYER ===== */
.circuit-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Circuit traces - horizontal */
.circuit-trace {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 10%,
        rgba(255, 255, 255, 0.8) 90%,
        transparent 100%
    );
    opacity: 0.15;
}

.circuit-trace:nth-child(1) { top: 18%; left: 5%; width: 30%; }
.circuit-trace:nth-child(2) { top: 40%; left: 65%; width: 30%; }
.circuit-trace:nth-child(3) { top: 55%; left: 8%; width: 22%; }
.circuit-trace:nth-child(4) { top: 72%; left: 58%; width: 35%; }

/* Circuit traces - vertical */
.circuit-trace-v {
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 10%,
        rgba(255, 255, 255, 0.8) 90%,
        transparent 100%
    );
    opacity: 0.15;
}

.circuit-trace-v:nth-child(5) { left: 12%; top: 15%; height: 25%; }
.circuit-trace-v:nth-child(6) { left: 35%; top: 30%; height: 35%; }
.circuit-trace-v:nth-child(7) { left: 65%; top: 20%; height: 30%; }
.circuit-trace-v:nth-child(8) { left: 88%; top: 45%; height: 35%; }

/* Circuit nodes */
.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0.3;
}

.circuit-node::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: nodePulse 2.5s ease-in-out infinite;
}

.circuit-node:nth-child(9) { top: 18%; left: 12%; }
.circuit-node:nth-child(10) { top: 40%; left: 35%; animation-delay: 0.5s; }
.circuit-node:nth-child(11) { top: 55%; left: 65%; animation-delay: 1s; }
.circuit-node:nth-child(12) { top: 72%; left: 88%; animation-delay: 1.5s; }
.circuit-node:nth-child(13) { top: 30%; left: 80%; animation-delay: 0.3s; }
.circuit-node:nth-child(14) { top: 65%; left: 25%; animation-delay: 0.8s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(2); }
}

/* Data pulse traveling through traces */
.circuit-pulse {
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    opacity: 0.6;
    animation: pulseTravelH 5s linear infinite;
}

.circuit-pulse:nth-child(15) { top: 18%; animation-delay: 0s; }
.circuit-pulse:nth-child(16) { top: 40%; animation-delay: 1.5s; }
.circuit-pulse:nth-child(17) { top: 72%; animation-delay: 3s; }

@keyframes pulseTravelH {
    0% { left: -30px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { left: 100%; opacity: 0; }
}

/* ===== SCAN LINES LAYER ===== */
.scan-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Static horizontal scan lines */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.02) 3px,
        rgba(255, 255, 255, 0.02) 6px
    );
}

/* Moving scan line */
.scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(-80px); }
    100% { transform: translateY(calc(100vh + 80px)); }
}

/* ===== DATA STREAM LAYER ===== */
.data-stream-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    z-index: 1;
    overflow: hidden;
}

.data-column {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    animation: dataFall linear infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.4);
}

.data-column:nth-child(1) { animation-duration: 10s; animation-delay: 0s; opacity: 0.45; }
.data-column:nth-child(2) { animation-duration: 14s; animation-delay: 1s; opacity: 0.35; }
.data-column:nth-child(3) { animation-duration: 8s; animation-delay: 0.5s; opacity: 0.5; }
.data-column:nth-child(4) { animation-duration: 12s; animation-delay: 2s; opacity: 0.38; }
.data-column:nth-child(5) { animation-duration: 9s; animation-delay: 0.3s; opacity: 0.45; }
.data-column:nth-child(6) { animation-duration: 11s; animation-delay: 1.5s; opacity: 0.35; }
.data-column:nth-child(7) { animation-duration: 13s; animation-delay: 0.8s; opacity: 0.32; }
.data-column:nth-child(8) { animation-duration: 10s; animation-delay: 0.2s; opacity: 0.45; }

@keyframes dataFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* ===== GRID & GRADIENT OVERLAY ===== */
.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 5;
}

.hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 6;
}

/* Noise/Grain Texture - disabled */
.hero-noise {
    display: none;
}

/* Vignette Effect */
.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 18, 0.4) 100%);
}

#particles-canvas {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content h1,
.hero-content p {
    color: #ffffff;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
}

.hero .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Typewriter cursor */
.cursor {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

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

.hero-content {
    max-width: 720px;
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
    min-height: 2.4em;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    min-height: 3em;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.125rem;
}

/* Servizi Section */
.servizi {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-alt);
}

.servizi-categoria {
    margin-bottom: var(--spacing-xl);
}

.servizi-categoria:last-child {
    margin-bottom: 0;
}

.categoria-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.categoria-title svg {
    flex-shrink: 0;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.servizio-card {
    background-color: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.servizio-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.servizio-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.servizio-card p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Categoria IT - Blu */
.categoria-it .categoria-title {
    color: var(--color-primary);
}

.categoria-it .categoria-title svg {
    color: var(--color-primary);
}

/* Categoria Video - Viola/Magenta */
.categoria-video .categoria-title {
    color: #8b5cf6;
}

.categoria-video .categoria-title svg {
    color: #8b5cf6;
}

/* Casi di Studio Section - nascosta temporaneamente */
.casi-studio {
    display: none;
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    padding: var(--spacing-lg);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.testimonial-card blockquote {
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.testimonial-card cite {
    font-size: 0.875rem;
    font-style: normal;
    color: var(--color-text-light);
}

/* Prodotti Section */
.prodotti {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-alt);
}

.prodotto-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.prodotto-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
}

.prodotto-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.prodotto-subtitle {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.prodotto-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.prodotto-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.prodotto-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9375rem;
    color: var(--color-text);
}

.prodotto-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Product Mockup */
.prodotto-visual {
    display: flex;
    justify-content: center;
}

.prodotto-mockup {
    width: 100%;
    max-width: 400px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
}

.mockup-header span:first-child { background: #ff5f57; }
.mockup-header span:nth-child(2) { background: #ffbd2e; }
.mockup-header span:nth-child(3) { background: #28ca41; }

.mockup-content {
    display: flex;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    min-height: 250px;
}

.mockup-sidebar {
    width: 60px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mockup-card {
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #4d94ff 100%);
    border-radius: var(--radius-sm);
    opacity: 0.8;
}

.mockup-card.small {
    height: 40px;
    opacity: 0.5;
}

/* Clienti Carousel Section */
.clienti {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.clienti-label {
    text-align: center;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.clienti-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clienti-track {
    display: flex;
    gap: var(--spacing-xl);
    animation: scroll 80s linear infinite;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.clienti-track:hover {
    animation-play-state: paused;
}

.cliente-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 0 var(--spacing-lg);
}

.cliente-logo img {
    max-height: 80px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.cliente-logo img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contatti Section */
.contatti {
    padding: var(--spacing-2xl) 0;
}

.contatti-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot anti-spam - nascosto agli utenti */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Captcha */
.captcha-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

#captcha-question {
    font-weight: 600;
    color: var(--color-primary);
}

.captcha-group input {
    max-width: 150px;
}

/* Form error */
.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Contact Info */
.contatti-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.info-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.info-item p {
    font-size: 0.9375rem;
    margin: 0;
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 0.875rem;
}

.footer-partnership {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.footer-partnership span {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    height: 20px;
    width: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: calc(72px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-content h1 {
        min-height: 3.6em;
    }

    .hero-content p {
        font-size: 1.125rem;
        min-height: 4.5em;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .contatti-wrapper {
        grid-template-columns: 1fr;
    }

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

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

    .prodotto-showcase {
        grid-template-columns: 1fr;
    }

    .prodotto-visual {
        order: -1;
    }

    .prodotto-content h3 {
        font-size: 2rem;
    }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.servizio-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.servizio-card:nth-child(1) { animation-delay: 0.1s; }
.servizio-card:nth-child(2) { animation-delay: 0.2s; }
.servizio-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* Form Success State */
.form-success {
    text-align: center;
    padding: var(--spacing-xl);
}

.form-success h3 {
    color: #10b981;
    margin-bottom: var(--spacing-sm);
}


.prodotto-mockup {
    width: 1100px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header MacOS */
.mockup-header {
    height: 38px;
    background: linear-gradient(#2c2c2e, #1c1c1e);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

/* Content */
.mockup-content {
    background: #0f172a;
}

/* Main UI container */
.mockup-main {
    width: 100%;
    background: #0f172a;
}

/* Screenshot inside */
.mockup-image {
    width: 100%;
    display: block;
}