/* Custom CSS for VendiamoImprese.it - Modern Design */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    height: 44px;
}

/* Header adjustments for top bar */
header.fixed {
    top: 44px !important;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 102, 0, 0.6);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hero section enhancements */
.hero-title {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern button styles */
.btn-primary-modern {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 102, 0, 0.4);
}

.btn-secondary-modern {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-secondary-modern:hover {
    border-color: #ff6600;
    color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.15);
}

/* Enhanced card styles */
.card-modern {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Statistics counter animation */
.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: #ff6600;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(255, 102, 0, 0.2);
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 5rem;
    }
}

/* Enhanced testimonial styles */
.testimonial-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(255, 102, 0, 0.15);
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Video thumbnail overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.video-card:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 102, 0, 0.6);
}

/* Enhanced form styles */
.form-input-modern {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    font-size: 16px;
    background: white;
}

.form-input-modern:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Header enhancements */
.header-fixed {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Service icon animations */
.service-icon {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15) 0%, rgba(229, 90, 0, 0.1) 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 102, 0, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.service-card:hover .service-icon::before {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Newsletter section */
.newsletter-input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    color: #1f2937;
}

.newsletter-input:focus {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.newsletter-input::placeholder {
    color: #6b7280;
}

/* Scroll indicator */
.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}

/* Background pattern animation */
@keyframes pattern-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.bg-pattern {
    animation: pattern-move 20s linear infinite;
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced hover effects */
.hover-lift-modern {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Loading animation for images */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e55a00 0%, #cc4f00 100%);
}

/* Stats animation */
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced section spacing */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* Utility classes */
.text-primary-custom {
    color: #ff6600;
}

.bg-primary-custom {
    background-color: #ff6600;
}

.border-primary-custom {
    border-color: #ff6600;
}

/* Parallax effect */
.parallax-element {
    will-change: transform;
}

/* Enhanced focus states */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.2);
}

/* Modern checkbox styles */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: #ff6600;
    border-color: #ff6600;
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .card-modern {
        margin-bottom: 2rem;
        border-radius: 20px;
    }
    
    .testimonial-card {
        border-radius: 20px;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-modern {
        border: 2px solid #000;
    }
    
    .btn-primary-modern {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    .card-modern {
        background: #1f2937;
        color: #f9fafb;
        border-color: #374151;
    }
    
    .testimonial-card {
        background: #1f2937;
        color: #f9fafb;
    }
} 