:root {
    /* Italian flag inspired colors */
    --primary-color: #008C45; /* Italian green */
    --secondary-color: #CD212A; /* Italian red */
    --accent-color: #1e3799; /* Dark blue accent */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff; /* White */
    --bg-alt: #f9f9f9;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease, opacity 0.3s ease;
    opacity: 0.7;
    mix-blend-mode: difference;
}

.cursor-follower.clicked {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--secondary-color);
    opacity: 0.2;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
    transition: all 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(205, 33, 42, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(205, 33, 42, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 140, 69, 0.1);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 140, 69, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo-svg {
    height: 40px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    position: relative;
    font-weight: 600;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.menu-icon {
    position: relative;
    width: 30px;
    height: 20px;
}

.menu-icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-icon span:first-child {
    top: 0;
}

.menu-icon span:last-child {
    bottom: 0;
}

.menu-btn.active .menu-icon span:first-child {
    transform: rotate(45deg) translate(7px, 7px);
}

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

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.blob-decoration {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    animation: blob-float 8s ease-in-out infinite;
}

@keyframes blob-float {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-55%) scale(1.05);
    }
}

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.image-transformation {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f5f7fa, #c3cfe2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.transform-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    animation: slider-move 6s ease-in-out infinite;
}

@keyframes slider-move {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: absolute;
    width: 100%;
    height: 100px;
}

/* Features Section */
.features {
    background-color: var(--bg-color);
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scale(2);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--text-color);
}

/* How It Works */
.how-it-works {
    background-color: var(--bg-alt);
}

.process-container {
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}

.process-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 35px;
    width: 2px;
    height: calc(100% - 30px);
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.process-icon {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.process-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-content {
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    flex: 1;
}

.cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Technology Section */
.technology {
    background-color: var(--bg-color);
    position: relative;
}

.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tech-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tech-item {
    position: relative;
    padding-left: 25px;
}

.tech-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.diagonal-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--bg-color) 49%, var(--bg-alt) 51%);
}

/* FAQ Section */
.faq {
    background-color: var(--bg-alt);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: white;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-plus, .icon-minus {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.icon-minus {
    opacity: 0;
}

.faq-item.active .icon-plus {
    opacity: 0;
}

.faq-item.active .icon-minus {
    opacity: 1;
}

.faq-answer {
    padding: 0 25px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    height: auto;
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    padding: 80px 0 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-svg {
    width: auto;
    height: 40px;
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.keywords {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 10px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-container, .tech-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .process-item {
        flex-direction: column;
    }
    
    .process-item:not(:last-child)::after {
        left: 35px;
        top: 70px;
        width: 2px;
        height: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cursor-follower {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
