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

/* Critical CSS Inlining */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-display: swap;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

/* GPU Acceleration for animations */
.hero-content,
.feature-card,
.servizio-card,
.btn,
.hamburger,
.nav-menu,
.whatsapp-float {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Core Web Vitals Optimizations */

/* Largest Contentful Paint (LCP) */
.hero {
    contain: layout style paint;
}

.hero-background {
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23000' points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Better for mobile performance */
}

/* First Input Delay (FID) */
.btn:active,
.hamburger:active {
    transform: scale(0.98);
}

/* Cumulative Layout Shift (CLS) */
.hero-content {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Critical CSS Inlining Optimization */
.above-fold {
    contain: layout style paint;
}

/* Lazy Loading Optimization */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Lazy loading optimization */
img {
    loading: lazy;
    decoding: async;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Memory Optimization */
.offscreen {
    transform: translateZ(0);
    will-change: auto;
}

/* Touch Action Optimization */
.scrollable {
    touch-action: pan-y;
}

.draggable {
    touch-action: none;
}

/* Touch action optimization */
.btn,
.hamburger,
.nav-menu a {
    touch-action: manipulation;
}

/* Font Loading Optimization */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
}

/* Repaint reduction */
.nav-menu,
.cookie-banner,
.whatsapp-float {
    contain: layout style paint;
}

/* Animation optimizations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.feature-card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.servizio-card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Critical resource hints */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

/* Mobile-first performance */
@media (max-width: 768px) {
    .hero-content {
        min-height: 300px;
    }
    
    .trust-signals {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .trust-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .trust-item span {
        white-space: nowrap;
    }
}

:root {
    --primary-black: #000000;
    --primary-red: #dc2626;
    --light-gray: #f5f5f5;
    --medium-gray: #6b7280;
    --dark-gray: #374151;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--white), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-black));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Chi Siamo Section */
.chi-siamo {
    background-color: var(--light-gray);
}

.chi-siamo-content h3 {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.chi-siamo-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--medium-gray);
    margin: 0;
}

/* Servizi Section */
.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servizio-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-red);
}

.servizio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.servizio-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-black));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.servizio-icon i {
    font-size: 2rem;
    color: var(--white);
}

.servizio-card h3 {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.servizio-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.servizio-card ul {
    list-style: none;
}

.servizio-card li {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.servizio-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-red) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contatti Section */
.contatti {
    background-color: var(--light-gray);
}

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contatti-info h3 {
    font-size: 1.8rem;
    color: var(--primary-black);
    margin-bottom: 2rem;
}

.contatto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contatto-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-top: 0.2rem;
}

.contatto-item h4 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.contatto-item p {
    color: var(--medium-gray);
    margin: 0;
}

.contatti-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

.contatti-form h3 {
    font-size: 1.8rem;
    color: var(--primary-black);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

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

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

/* Contatti WhatsApp Section */
.contatti-whatsapp {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

.contatti-whatsapp h3 {
    font-size: 1.8rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.contatti-whatsapp p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.whatsapp-info {
    margin-bottom: 3rem;
}

.whatsapp-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary-black);
    font-weight: 600;
}

.whatsapp-number i {
    font-size: 2rem;
    color: #25D366;
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: linear-gradient(45deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: var(--white);
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* Marchi Auto Section */
.marchi-auto {
    margin-top: 2rem;
}

.marchi-auto h4 {
    font-size: 1.4rem;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    text-align: center;
}

.marchi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 15px;
}

.marchio-item {
    background: var(--white);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--dark-gray);
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 0.9rem;
}

.marchio-item:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.marchio-item:last-child {
    background: var(--primary-red);
    color: var(--white);
    font-weight: 600;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

.whatsapp-float-btn i {
    font-size: 1.8rem;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive adjustments for WhatsApp elements */
@media (max-width: 768px) {
    .marchi-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.6rem;
        max-height: 250px;
    }
    
    .marchio-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float-btn i {
        font-size: 1.6rem;
    }
    
    .whatsapp-number {
        font-size: 1.1rem;
    }
    
    .btn-whatsapp {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
.footer {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    color: var(--primary-red);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
    color: var(--medium-gray);
}

.footer-section li i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 2rem;
    text-align: center;
}

.footer-legal p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.piva-field {
    color: var(--primary-red);
    font-weight: 600;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text h4 {
    margin: 0 0 10px 0;
    color: #e74c3c;
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-text a {
    color: #e74c3c;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #c0392b;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-accept {
    background: #e74c3c;
    color: white;
}

.btn-accept:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-reject {
    background: #7f8c8d;
    color: white;
}

.btn-reject:hover {
    background: #6c7b7d;
    transform: translateY(-2px);
}

.btn-settings {
    background: transparent;
    color: white;
    border: 2px solid #bdc3c7;
}

.btn-settings:hover {
    background: #bdc3c7;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Cookie Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.cookie-modal.show {
    display: block;
}

.cookie-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.cookie-modal-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.cookie-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: #e74c3c;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cookie-category p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Cookie Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #e74c3c;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

input:disabled + .cookie-slider {
    background-color: #e74c3c;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    text-align: center;
}

.btn-save {
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Privacy Policy Styles */
.privacy-main {
    padding: 100px 0 50px;
    background: #f8f9fa;
    min-height: 100vh;
}

.privacy-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ecf0f1;
}

.privacy-section h3 {
    color: #34495e;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.privacy-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-section ul {
    color: #555;
    line-height: 1.6;
    margin-left: 20px;
}

.privacy-section li {
    margin-bottom: 8px;
}

.owner-info, .contact-info, .authority-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin: 15px 0;
}

.owner-info p, .contact-info p, .authority-info p {
    margin: 5px 0;
    font-weight: 500;
}

.cookie-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Touch-Friendly Button Enhancements */
.btn {
    min-height: 44px; /* Apple's recommended touch target size */
    min-width: 44px;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #c41e3a 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    color: var(--primary-black);
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* Enhanced WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    min-height: 50px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Floating Action Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float .fab {
    color: var(--white);
    font-size: 2rem;
}

/* Touch Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design for Cookie Elements */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-buttons button {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .privacy-content {
        padding: 20px;
        margin: 20px;
    }
    
    .privacy-content h1 {
        font-size: 2rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    /* Mobile Button Optimizations */
    .btn {
        min-height: 48px; /* Larger touch targets for mobile */
        padding: 14px 28px;
        font-size: 1.1rem;
        border-radius: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 32px;
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    /* Enhanced Touch Interactions */
    .btn:active {
        transform: scale(0.98);
    }
    
    .card:active,
    .feature-card:active,
    .servizio-card:active {
        transform: scale(0.98);
    }
    
    /* Improved Form Elements */
    input, textarea, select {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
    }
    
    input:focus, textarea:focus, select:focus {
        border-color: var(--accent-red);
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
        outline: none;
    }
    
    /* Mobile Navigation Touch Improvements */
    .nav-menu a {
        padding: 15px 20px;
        font-size: 1.1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Mobile Image Optimizations */
    .hero-background {
        background-attachment: scroll; /* Better performance on mobile */
        background-size: cover;
        background-position: center;
        min-height: 100vh;
    }
    
    .hero-background::before {
        background: linear-gradient(135deg, 
            rgba(220, 53, 69, 0.85) 0%, 
            rgba(0, 0, 0, 0.7) 100%);
    }
    
    .footer-logo,
    .logo img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        transition: transform 0.3s ease;
    }
    
    .logo img:hover {
        transform: scale(1.05);
    }
    
    /* Car Brand Images */
    .car-brand img {
        width: 100%;
        height: 60px;
        object-fit: contain;
        filter: grayscale(100%) brightness(0.8);
        transition: all 0.3s ease;
    }
    
    .car-brand:hover img {
        filter: grayscale(0%) brightness(1);
        transform: scale(1.05);
    }
    
    /* Service Icons */
    .servizio-card .icon,
    .feature-card .icon,
    .contatto-item .icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }
    
    .servizio-card:hover .icon,
    .feature-card:hover .icon,
    .contatto-item:hover .icon {
        transform: scale(1.1) rotate(5deg);
        color: var(--accent-red);
    }
    
    /* Lazy Loading Placeholder */
    .image-placeholder {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 8px;
    }
    
    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    
    /* Responsive Images */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    .hamburger {
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        display: flex;
    }
    
    .hamburger.active {
        transform: rotate(90deg);
    }
    
    /* Mobile Navigation Enhancements */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-black) 0%, #1a1a1a 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        animation: slideInRight 0.3s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    
    /* Trust Signals Styles */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trust-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Local SEO Styles */
.local-seo-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.local-seo-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.zone-servizio {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.zone-servizio li {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.zone-servizio li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Contact Items */
.contatto-item {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contatto-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contatto-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contatto-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contatto-item small {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Mobile Local SEO */
@media (max-width: 768px) {
    .local-seo-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .zone-servizio {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .zone-servizio li {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
@media (max-width: 768px) {
    .trust-signals {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .trust-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .trust-item span {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .trust-signals {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .trust-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
    .container {
        padding: 0 20px;
        contain: layout style;
    }
    
    /* Optimize Animations for Mobile */
    .hero-content {
        animation: fadeInUp 0.8s ease-out;
        animation-fill-mode: both;
    }
    
    .feature-card,
    .servizio-card {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    
    .servizio-card:nth-child(1) { animation-delay: 0.1s; }
    .servizio-card:nth-child(2) { animation-delay: 0.2s; }
    .servizio-card:nth-child(3) { animation-delay: 0.3s; }
    .servizio-card:nth-child(4) { animation-delay: 0.4s; }
    
    /* Smooth Scrolling Optimization */
    html {
        scroll-padding-top: 80px;
    }
    
    /* Reduce Repaints */
    .nav-menu,
    .cookie-banner,
    .whatsapp-float {
        contain: layout style paint;
    }
    
    /* Touch Feedback */
    .btn:active,
    .hamburger:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 30px 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
        transform: translateY(20px);
        opacity: 0;
        animation: slideInUp 0.6s ease forwards;
    }
    
    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    
    .nav-menu a {
        font-size: 1.3rem;
        color: var(--white);
        padding: 15px 30px;
        display: block;
        border-radius: 25px;
        margin: 0 20px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s;
    }
    
    .nav-menu a:hover::before {
        left: 100%;
    }
    
    .nav-menu a:hover {
        background: linear-gradient(135deg, var(--accent-red) 0%, #ff4757 100%);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    }
    
    /* Hero Section Mobile Optimization */
    .hero {
        padding: 100px 0 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 20px;
        background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: fadeInUp 1s ease;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--accent-red);
        font-weight: 600;
        animation: fadeInUp 1s ease 0.2s both;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 30px;
        color: rgba(255, 255, 255, 0.9);
        animation: fadeInUp 1s ease 0.4s both;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        animation: fadeInUp 1s ease 0.6s both;
    }
    
    .hero-buttons .btn {
        width: 280px;
        padding: 15px 30px;
        font-size: 1.1rem;
        border-radius: 30px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .hero-buttons .btn::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.6s;
    }
    
    .hero-buttons .btn:hover::before {
        left: 100%;
    }
    
    .hero-buttons .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    }
    
    .hero-buttons .btn-secondary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    }
    
    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    /* Content Sections Mobile Optimization */
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 30px 25px;
        border-radius: 20px;
        transition: all 0.3s ease;
        background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    .feature-card .icon {
        font-size: 3rem;
        margin-bottom: 20px;
        color: var(--accent-red);
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--primary-black);
    }
    
    .feature-card p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--dark-gray);
    }
    
    .servizi-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .servizio-card {
        padding: 25px 20px;
        border-radius: 15px;
        transition: all 0.3s ease;
    }
    
    .servizio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(220, 53, 69, 0.2);
    }
    
    .servizio-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .servizio-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Car Brands Grid Mobile */
    .car-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }
    
    .car-brand {
        padding: 15px 10px;
        font-size: 0.9rem;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .car-brand:hover {
         transform: translateY(-3px);
         box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
     }
     
     .contatti-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .contatto-item {
        background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
        padding: 30px 25px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .contatto-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    .contatto-item .icon {
        font-size: 2.5rem;
        color: var(--accent-red);
        margin-bottom: 20px;
    }
    
    .contatto-item h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        color: var(--primary-black);
    }
    
    .contatto-item p {
        font-size: 1rem;
        line-height: 1.5;
        color: var(--dark-gray);
        margin-bottom: 10px;
    }
    
    /* WhatsApp Section Mobile */
    .whatsapp-section {
        padding: 40px 25px;
        border-radius: 20px;
        margin: 30px 0;
    }
    
    .whatsapp-section h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .whatsapp-section p {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .whatsapp-btn {
        width: 100%;
        max-width: 300px;
        padding: 15px 25px;
        font-size: 1.1rem;
        border-radius: 25px;
        transition: all 0.3s ease;
    }
    
    .whatsapp-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-section {
        padding: 25px 20px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        color: var(--white);
    }
    
    .footer-section ul li {
        margin-bottom: 12px;
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .footer-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-legal p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    /* Floating WhatsApp Button Mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-float .fab {
        font-size: 1.8rem;
    }
    
    /* Cookie Banner Mobile */
    .cookie-banner {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .cookie-banner h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .cookie-banner p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-buttons button {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

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

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

.feature-item,
.servizio-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.servizio-card:hover .servizio-icon {
    transform: scale(1.1);
}

.feature-item:hover i {
    transform: scale(1.2);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-menu a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}