/* ============================================
   SOLUTECH S.r.l.s. - Stile Principale
   ============================================ */

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

:root {
    --primary: #0a1628;
    --primary-light: #1a2d4d;
    --secondary: #2563eb;
    --accent: #38bdf8;
    --accent-2: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #0f172a;
    --text-light: #475569;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0a1628;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    --gradient-light: linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

ul {
    list-style: none;
}

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

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

/* ============================================
   HEADER / NAVBAR
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    font-family: var(--font-heading);
    color: var(--primary);
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.logo-text {
    letter-spacing: -0.5px;
}

.logo-badge {
    font-size: 10px;
    background: var(--gradient-light);
    color: var(--secondary);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-light);
    position: relative;
    transition: color 0.2s ease;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 22px !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    color: white !important;
}

.nav-cta::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn-full {
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    top: -120px;
    right: -100px;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    bottom: -150px;
    left: -80px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-light);
    color: var(--secondary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number,
.stat-suffix {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-lighter);
    font-weight: 500;
    margin-top: 8px;
}

.hero-visual {
    position: relative;
    height: 480px;
}

.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.card-main {
    position: absolute;
    inset: 40px 0 0 40px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #fafbff;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08); }
}

.card-title {
    flex: 1;
    margin-left: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 220px;
    margin-bottom: 14px;
}

.bar {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.bar span {
    display: block;
    width: 100%;
    height: var(--bar-h);
    background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);
    border-radius: 8px 8px 4px 4px;
    transition: all 0.6s ease;
}

.bar.active span {
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.bar:hover span {
    transform: scaleY(1.03);
    transform-origin: bottom;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-lighter);
    text-align: center;
}

.chart-labels span {
    flex: 1;
}

.card-float {
    position: absolute;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
    animation: floatY 4s ease-in-out infinite;
}

.card-left {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-right {
    bottom: 0;
    right: 0;
    animation-delay: 2s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mini-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.mini-card-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.mini-card-icon.blue {
    background: rgba(37, 99, 235, 0.12);
    color: var(--secondary);
}

.mini-card-text {
    display: flex;
    flex-direction: column;
}

.mini-card-label {
    font-size: 12px;
    color: var(--text-lighter);
    font-weight: 500;
}

.mini-card-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 100px 0;
    position: relative;
}

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

.section-header {
    max-width: 720px;
    margin-bottom: 64px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--gradient-light);
    color: var(--secondary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-description {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   LOGOS
   ============================================ */

.section-logos {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-logos .section-header {
    margin-bottom: 40px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    color: var(--text-lighter);
}

.logo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    color: var(--primary);
}

.logo-item i {
    font-size: 32px;
}

.logo-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   CHI SIAMO
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-main {
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gradient-dark);
    box-shadow: var(--shadow-xl);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.image-placeholder i {
    font-size: 80px;
    opacity: 0.25;
}

.image-placeholder span {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.about-image-badge {
    position: absolute;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-light);
}

.about-image-badge i {
    font-size: 26px;
    color: var(--warning);
}

.badge-1 i {
    color: var(--warning);
}

.badge-2 i {
    color: var(--secondary);
}

.badge-1 {
    top: 60px;
    right: -10px;
}

.badge-2 {
    bottom: 80px;
    left: -10px;
}

.about-image-badge strong {
    display: block;
    font-size: 14px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.about-image-badge span {
    display: block;
    font-size: 12px;
    color: var(--text-lighter);
    font-weight: 500;
}

.about-description {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 16px;
}

.about-values {
    display: grid;
    gap: 18px;
    margin: 36px 0;
}

.value-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.value-item:hover {
    transform: translateX(6px);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.value-item h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   SERVIZI
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: white;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gradient-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }
.gradient-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.gradient-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.gradient-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.gradient-teal { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-list {
    display: grid;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.service-list i {
    color: var(--success);
    font-size: 12px;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   FEATURES / VANTAGGI
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-box {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-box:hover::after {
    opacity: 1;
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 900;
    color: var(--border-light);
    line-height: 1;
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

.feature-box:hover .feature-number {
    color: rgba(37, 99, 235, 0.12);
}

.feature-icon {
    position: relative;
    z-index: 1;
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 22px;
}

.feature-box h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-box p {
    position: relative;
    z-index: 1;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.35s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-cover {
    aspect-ratio: 16/10;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.cover-1 {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
}

.cover-2 {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #10b981 100%);
}

.cover-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #8b5cf6 100%);
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.portfolio-content {
    padding: 28px;
}

.portfolio-content h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.portfolio-content > p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 22px;
}

.portfolio-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-lighter);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */

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

.cta-box {
    position: relative;
    padding: 80px 60px;
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.25) 0%, transparent 45%);
}

.cta-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 18px;
}

.cta-content p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 36px;
}

/* ============================================
   CONTATTI
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 40px;
}

.contact-details {
    display: grid;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-lighter);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

a.contact-value:hover {
    color: var(--secondary);
}

.contact-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.25s ease;
    font-size: 16px;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* FORM */

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: var(--secondary);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.form-feedback {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 56px;
    padding-bottom: 60px;
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo .logo-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.footer-logo .logo-icon {
    background: var(--gradient-primary);
}

.footer-description {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.footer-contact-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.footer-contact-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.footer-contact-mini a:hover {
    color: #7dd3fc;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    display: grid;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid transparent;
    transition: all 0.2s ease;
    margin-right: 0;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-links a:hover::before {
    border-left-color: var(--accent);
    margin-right: 8px;
}

.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

.footer-info li i {
    color: var(--accent);
    font-size: 15px;
    padding-top: 3px;
    flex-shrink: 0;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-right a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.footer-bottom-right a:hover {
    color: var(--accent);
}

.footer-divider {
    opacity: 0.4;
}

/* ============================================
   SCROLL TOP
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
}

/* ============================================
   ANIMAZIONI SCROLL
   ============================================ */

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

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .hero-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        height: 440px;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .card-main {
        inset: 30px 0 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .services-grid,
    .features-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 12px;
    }

    .nav-link {
        display: block;
        padding: 16px 4px;
        font-size: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: inline-flex !important;
        width: auto;
        padding: 14px 24px !important;
        margin-top: 6px;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .section {
        padding: 72px 0;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 32px;
    }

    .services-grid,
    .features-grid,
    .portfolio-grid,
    .logos-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .cta-box {
        padding: 56px 28px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        height: 380px;
    }

    .card-float {
        min-width: 180px;
        padding: 12px 16px;
    }

    .mini-card-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .mini-card-value {
        font-size: 17px;
    }

    .about-image-main {
        aspect-ratio: 1;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

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

    .hero {
        padding: 130px 0 60px;
    }

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

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 30px;
    }

    .feature-box,
    .service-card {
        padding: 28px 22px;
    }
}
