/* ===================================
   FINTEX - CSS STYLESHEET
   Modern Fintech Professional Design
   Brand Colors: Red, Black, White
   =================================== */

/* ============= RESET & VARIABLES ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-red: #DC2626;
    --primary-dark-red: #B91C1C;
    --primary-black: #0F172A;
    --secondary-black: #1E293B;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-light: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-lighter: #F1F5F9;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-red: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 100px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-red: 0 8px 32px rgba(220, 38, 38, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
}

p {
    font-family: 'Poppins', sans-serif;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ============= PRELOADER ============= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95); opacity: 0.8; }
}

/* ============= HEADER & NAVIGATION ============= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    z-index: 1000;
    transition: var(--transition-base);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

#header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 0;
}

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

.logo img {
    height: 80px;  
    width: auto;
    transition: var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    transition: var(--transition-base);
}

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

.nav-link:hover {
    color: var(--primary-red);
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition-base);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-red);
    padding-left: 28px;
}

/* Contact Button */
.btn-contact {
    background: var(--gradient-red);
    color: var(--bg-white) !important;
    padding: 10px 24px !important;
    border-radius: 8px;
    font-weight: 600;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-red);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-red);
}

/* fadeInUp */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitchText {
    0% {
        opacity: 0;
        transform: translateX(-10px);
        text-shadow: -2px 0 red, 2px 0 blue;
    }
    20% {
        opacity: 0.8;
        transform: translateX(5px);
    }
    40% {
        opacity: 1;
        transform: translateX(-2px);
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
    60% {
        transform: translateX(1px);
    }
    80% {
        transform: translateX(-1px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        text-shadow: 0 0 40px rgba(220, 38, 38, 0.4),
                     0 0 20px rgba(220, 38, 38, 0.2),
                     0 4px 20px rgba(0, 0, 0, 0.8);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    0%, 100% { border-right-color: var(--primary-red); }
    50% { border-right-color: transparent; }
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes pixelate {
    0% {
        filter: blur(10px);
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        filter: blur(5px);
        opacity: 0.5;
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dataStream {
    0% {
        background-position: 0% 0%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: 100% 100%;
        opacity: 1;
    }
}

/* ============= HERO SECTION ============= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000000;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.hero-text {
    color: var(--bg-white);
    max-width: 900px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-white);
    background: rgba(220, 38, 38, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 1;
    border: 2px solid var(--primary-red);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    opacity: 0;
    animation: glitchText 1.2s ease 0.3s forwards;
    color: #FFFFFF;
    text-shadow: 0 0 40px rgba(220, 38, 38, 0.4),
                 0 0 20px rgba(220, 38, 38, 0.2),
                 0 4px 20px rgba(0, 0, 0, 0.8),
                 0 2px 10px rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: scanLine 2.5s ease-in-out 0.8s;
}

/* Effetto per ogni linea del titolo */
.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateX(-50px) rotateX(-90deg);
    transform-origin: 0 50%;
    animation: titleReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-shadow: 0 0 40px rgba(220, 38, 38, 0.4),
                 0 0 20px rgba(220, 38, 38, 0.2),
                 0 4px 20px rgba(0, 0, 0, 0.8),
                 0 2px 10px rgba(255, 255, 255, 0.1);
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotateX(-90deg);
        filter: blur(10px);
    }
    50% {
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateX(0);
        filter: blur(0);
    }
}


.hero-tagline {
    margin-bottom: 40px;
    opacity: 0;
    animation: dataStream 1.5s ease 1s forwards;
    position: relative;
    overflow: hidden;
}

.tagline-text {
    font-size: 26px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-red) 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.3));
    display: inline-block;
    position: relative;
}


.tagline-text {
    font-size: 26px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-red) 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.3));
    display: inline-block;
    position: relative;
}

/* RIMUOVI COMPLETAMENTE il ::before */

.hero-btn {
    opacity: 0;
    animation: pixelate 0.8s ease 1.8s forwards;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
	background: #000000;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: none;
}

.gradient-overlay {
    display: none;
}

.grid-pattern {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ============= BUTTONS ============= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-base);
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark-red);
}

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

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============= ABOUT SECTION ============= */
.about-section {
    padding: var(--section-padding) 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.about-wrapper {
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 56px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-red);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: #CCCCCC;
    margin-bottom: 24px;
}

.about-text-large {
    font-size: 22px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.6;
}

.about-text strong {
    color: var(--primary-red);
    font-weight: 700;
    position: relative;
}

/* About Features */
.about-features {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 80px;
    flex-wrap: nowrap;
}

@media (min-width: 769px) {
    .about-features {
        display: flex !important;
        flex-direction: row !important;
    }
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    flex: 1 1 300px;
    max-width: 350px;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.feature-svg {
    width: 120px;
    height: 120px;
    transition: transform 0.4s ease;
}

.feature-item:hover .feature-svg {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Icon 1: Puzzle (Tailor Made) */
.icon-customize {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    padding: 20px;
}

.puzzle-piece {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark-red) 100%);
    border-radius: 8px;
    position: relative;
    animation: puzzleFloat 3s ease-in-out infinite;
}

.puzzle-piece::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: white;
    border-radius: 6px;
}

.puzzle-piece::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
}

.piece-1 { animation-delay: 0s; }
.piece-2 { animation-delay: 0.2s; }
.piece-3 { animation-delay: 0.4s; }
.piece-4 { animation-delay: 0.6s; }

@keyframes puzzleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(2deg); }
    75% { transform: translateY(5px) rotate(-2deg); }
}

/* Icon 2: Target (Focus PMI) */
.icon-target {
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--primary-red);
    animation: targetPulse 2s ease-in-out infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.ring-2 {
    width: 70px;
    height: 70px;
    animation-delay: 0.3s;
}

.ring-3 {
    width: 40px;
    height: 40px;
    animation-delay: 0.6s;
}

.target-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-red);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    animation: targetDot 2s ease-in-out infinite;
}

@keyframes targetPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.6;
    }
}

@keyframes targetDot {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

/* Icon 3: Business + IT Hybrid */
.icon-hybrid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hybrid-left,
.hybrid-right {
    width: 45px;
    height: 50px;
    position: relative;
}

/* Briefcase (Business) */
.briefcase-body {
    width: 100%;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark-red) 100%);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
}

.briefcase-body::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: white;
    border-radius: 2px;
}

.briefcase-body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.briefcase-handle {
    width: 25px;
    height: 12px;
    border: 3px solid var(--primary-red);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Chip (IT) */
.chip-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark-red) 100%);
    border-radius: 6px;
    position: relative;
}

.chip-body::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: white;
    border-radius: 3px;
}

.chip-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 1px;
}

.line-1 { top: 15px; }
.line-2 { top: 24px; }
.line-3 { top: 33px; }

.hybrid-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary-red) 20%, 
        var(--primary-red) 80%, 
        transparent 100%);
    animation: dividerPulse 2s ease-in-out infinite;
}

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

.feature-item:hover .hybrid-left {
    animation: tiltLeft 0.6s ease;
}

.feature-item:hover .hybrid-right {
    animation: tiltRight 0.6s ease;
}

@keyframes tiltLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}

@keyframes tiltRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Titolo "I nostri servizi" */
.services-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 80px;
    display: block;
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, #DC2626 50%, #FFFFFF 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    padding: 0;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(220, 38, 38, 0.5);
    position: relative;
    transition: all 0.5s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(50px);
}

.services-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-title.scroll-effect {
    background: linear-gradient(135deg, #DC2626 0%, #FFFFFF 50%, #DC2626 100%);
    transform: translateY(0) scale(1.05);
    text-shadow: 0 0 100px rgba(220, 38, 38, 0.8),
                 0 0 50px rgba(255, 255, 255, 0.5);
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    transition: width 0.6s ease;
}

.services-title.visible::after {
    width: 60%;
}


.services-label {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-label span {
    display: inline-block;
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, #DC2626 50%, #FFFFFF 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 8px;
    padding: 0;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(220, 38, 38, 0.5);
    position: relative;
    transition: all 0.5s ease;
    cursor: default;
}

/* Effetto scroll per cambio colore */
.services-label span.scroll-effect {
    background: linear-gradient(135deg, #DC2626 0%, #FFFFFF 50%, #DC2626 100%);
    transform: scale(1.05);
    text-shadow: 0 0 100px rgba(220, 38, 38, 0.8),
                 0 0 50px rgba(255, 255, 255, 0.5);
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    50% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}

.services-label span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    transition: width 0.6s ease;
}

.services-label.visible span::after {
    width: 100%;
}

.services-label svg {
    color: var(--primary-red);
    animation: bounce 2s infinite;
}

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

/* ============= SERVICES SECTION ============= */
.services-section {
    padding: 80px 0 var(--section-padding);
    background: #000000;
}

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

.service-card {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 48px;
    transition: var(--transition-base);
    border: 1px solid rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-red);
    border-color: rgba(220, 38, 38, 0.1);
}

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

.service-icon {
    margin-bottom: 32px;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.service-title a {
    color: inherit;
}

.service-title a:hover {
    color: var(--primary-red);
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: #CCCCCC;
    margin-bottom: 32px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-red);
    transition: var(--transition-base);
}

.service-link:hover {
    gap: 12px;
}

.service-link svg {
    transition: var(--transition-base);
}

/* ============= CTA SECTION ============= */
.cta-section {
    padding: calc(var(--section-padding) * 1.2) 0;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Linee verticali principali - come nel tuo logo */
        linear-gradient(90deg, transparent 0%, transparent calc(10% - 1px), rgba(255, 255, 255, 0.15) calc(10% - 1px), rgba(255, 255, 255, 0.15) 10%, transparent 10%),
        linear-gradient(90deg, transparent 0%, transparent calc(25% - 1px), rgba(255, 255, 255, 0.12) calc(25% - 1px), rgba(255, 255, 255, 0.12) 25%, transparent 25%),
        linear-gradient(90deg, transparent 0%, transparent calc(40% - 1px), rgba(255, 255, 255, 0.1) calc(40% - 1px), rgba(255, 255, 255, 0.1) 40%, transparent 40%),
        linear-gradient(90deg, transparent 0%, transparent calc(60% - 1px), rgba(255, 255, 255, 0.12) calc(60% - 1px), rgba(255, 255, 255, 0.12) 60%, transparent 60%),
        linear-gradient(90deg, transparent 0%, transparent calc(75% - 1px), rgba(255, 255, 255, 0.15) calc(75% - 1px), rgba(255, 255, 255, 0.15) 75%, transparent 75%),
        linear-gradient(90deg, transparent 0%, transparent calc(90% - 1px), rgba(255, 255, 255, 0.1) calc(90% - 1px), rgba(255, 255, 255, 0.1) 90%, transparent 90%),
        /* Linee orizzontali di connessione */
        linear-gradient(0deg, transparent 0%, transparent calc(30% - 1px), rgba(255, 255, 255, 0.08) calc(30% - 1px), rgba(255, 255, 255, 0.08) 30%, transparent 30%),
        linear-gradient(0deg, transparent 0%, transparent calc(70% - 1px), rgba(255, 255, 255, 0.08) calc(70% - 1px), rgba(255, 255, 255, 0.08) 70%, transparent 70%),
        /* Nodi di connessione */
        radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        /* Sfumature di profondità */
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
    opacity: 0.85;
    animation: circuitFlow 10s ease-in-out infinite;
}

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

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

.cta-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.cta-text h2 {
    font-size: 64px;
    font-weight: 900;
    color: var(--bg-white);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button .btn-white {
    position: relative;
    background: white;
    color: #DC2626;
    font-weight: 700;
    font-size: 18px;
    padding: 18px 40px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button .btn-white::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button .btn-white:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button .btn-white:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.cta-button .btn-white:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============= FOOTER ============= */
.footer {
    background: #000000;
    color: var(--bg-white);
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.5) 50%, transparent);
}

.footer-top {
    margin-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    margin-bottom: 32px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: none;
}


.footer-contact h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.footer-contact p {
    font-size: 16px;
    color: var(--primary-red);
    font-weight: 500;
}

.footer-contact p a {
    color: var(--primary-red);
    transition: var(--transition-base);
}

.footer-contact p a:hover {
    color: #FF4444;
    text-decoration: underline;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-base);
    line-height: 1.6;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.65);
    position: relative;
    display: inline-block;
}

.footer-list a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.footer-list a:hover {
    color: #FFFFFF;
    padding-left: 8px;
}

.footer-list a:hover::before {
    width: calc(100% - 8px);
}

.footer-bottom {
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    padding-top: 40px;
    margin-top: 20px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.copyright a {
    color: var(--primary-red);
    font-weight: 500;
    transition: var(--transition-base);
}

.copyright a:hover {
    color: #FF4444;
    text-decoration: underline;
}

/* ============= SCROLL TO TOP ============= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 999;
    cursor: pointer;
}

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

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4);
}

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

/* Tablet */
@media (max-width: 1024px) {

	/* Dentro @media (max-width: 1024px) */
	.about-features {
		flex-direction: column !important;
		align-items: center;
		gap: 30px;
	}

	.feature-item {
		max-width: 500px;
		width: 100%;
	}

	/* Dentro @media (max-width: 768px) - cerca questa sezione e aggiorna */
	.feature-svg {
		width: 100px;
		height: 100px;
	}

	.feature-title {
		font-size: 20px;
	}

	.feature-desc {
		font-size: 14px;
	}

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

	.about-text-large {
		font-size: 20px;
	}

	/* Dentro @media (max-width: 768px) */
	.section-title {
		font-size: 36px;
	}

	.about-text-large {
		font-size: 18px;
	}

	.about-text {
		font-size: 16px;
	}

	.feature-icon {
		width: 100px;
		height: 100px;
	}

	.services-label span {
		font-size: 56px;
		letter-spacing: 6px;
	}

	/* Aggiungi dentro @media (max-width: 1024px) */
	.about-stats {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 40px 0;
	}

	.stat-item {
		padding: 30px 24px;
	}

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

	.about-text-large {
		font-size: 20px;
	}

	/* Aggiungi dentro @media (max-width: 768px) */
	.section-title {
		font-size: 36px;
	}

	.about-text-large {
		font-size: 18px;
	}

	.about-text {
		font-size: 16px;
	}

	.stat-icon {
		width: 60px;
		height: 60px;
	}

	.stat-icon svg {
		width: 30px;
		height: 30px;
	}

	.stat-number {
		font-size: 28px;
	}

	.services-label span {
		font-size: 28px;
		letter-spacing: 2px;
	}

    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 20px 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
	.hero-text {
		max-width: 100%;
	}
    
    .hero-title {
        font-size: 56px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 42px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .services-title {
        font-size: 50px !important;
        letter-spacing: 2px !important;
        line-height: 1.2;
        padding: 0 10px;
        word-wrap: break-word;
    }
	
    .about-features {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px;
    }

    .feature-item {
        max-width: 100% !important;
        width: 100% !important;
    }
	
	.services-label span {
		font-size: 42px;
		letter-spacing: 4px;
	}

    .hero {
        height: 100vh;
        min-height: 600px;
    }
	
	.hero-image-background img {
        object-position: center;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, 
            rgba(15, 23, 42, 0.75) 0%, 
            rgba(15, 23, 42, 0.85) 100%);
    }

    
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 42px;
        text-shadow: 0 0 30px rgba(220, 38, 38, 0.5),
                     0 0 15px rgba(220, 38, 38, 0.3),
                     0 4px 15px rgba(0, 0, 0, 0.8);
    }
    
    .tagline-text {
        font-size: 20px;
    }
	
    .hero-subtitle {
        font-size: 14px;
        padding: 8px 20px;
        letter-spacing: 2px;
    }	
    
    .hero-text {
        max-width: 100%;
    }
	
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 15px 20px;
    }
    
	.logo img {
		height: 55px;
	}
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin-top: 10px;
    }
    
    .btn-contact {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
	.hero-text {
		max-width: 100%;
	}
    
    .section-title {
        font-size: 36px;
    }
    
    .about-text {
        font-size: 18px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-title {
        font-size: 24px;
    }
    
    .cta-text h2 {
        font-size: 32px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .tagline-text {
        font-size: 18px;
    }
    
    .cta-text h2 {
        font-size: 28px;
    }
}



/* Mantieni solo gli SVG dei pulsanti visibili */
.btn svg {
    display: inline-block !important;
}

.btn svg * {
    display: block !important;
}

.hero-tagline::after,
.hero-tagline::before,
.tagline-text::after {
    display: none !important;
}