/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1d1d1f;
    --secondary-color: #86868b;
    --accent-color: #0071e3;
    --bg-light: #f5f5f7;
    --text-dark: #1d1d1f;
    --text-light: #86868b;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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;
    cursor: default;
}

/* Smooth cursor for interactive elements */
a, button, input, textarea, .cta-button, .slider-btn, .dot {
    cursor: pointer;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

@media (max-width: 640px) {
    .nav-link {
        font-size: 16px;
        padding: 10px 0;
    }
}

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section with Slider */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 60px;
    z-index: 1;
    background: transparent;
    display: block;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 640px) {
    .slider-controls {
        bottom: 20px;
        gap: 10px;
    }
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    background: white;
    clear: both;
    display: block;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 40px 0;
    }
}

#chi-siamo {
    background: white;
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding-top: 100px;
}

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

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 640px) {
    .section-header {
        margin-bottom: 30px;
    }
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 21px;
    color: var(--text-light);
    font-weight: 400;
}

/* Chi Siamo */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .content-grid {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .content-grid {
        gap: 30px;
    }
}

.content-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .content-text p {
        font-size: 15px;
        margin-bottom: 15px;
    }
}

.content-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .stat-label {
        font-size: 13px;
    }
}

/* Services */
.services-section {
    background: var(--bg-light);
}

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

@media (max-width: 768px) {
    .services-grid {
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        gap: 20px;
    }
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .service-card {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .service-card {
        padding: 20px;
        border-radius: 15px;
    }
}

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

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

@media (max-width: 640px) {
    .service-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

.service-card > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .service-card > p {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

.service-list li:last-child {
    border-bottom: none;
}

/* Normativa e Medico del Lavoro - Unificato */
.normativa-medico-section {
    padding: 0;
    overflow: hidden;
}

.normativa-block {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    scroll-margin-top: 70px;
    scroll-padding-top: 70px;
}

@media (max-width: 968px) {
    .normativa-block {
        min-height: auto;
        padding: 80px 0;
    }
}

@media (max-width: 640px) {
    .normativa-block {
        padding: 50px 0;
        min-height: auto;
    }
}

.block-left {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.block-right {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.block-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 968px) {
    .block-content {
        padding: 0 30px;
        gap: 50px;
    }
}

@media (max-width: 640px) {
    .block-content {
        padding: 0 20px;
        gap: 30px;
    }
}

.block-left .block-content {
    grid-template-columns: 1fr 1fr;
}

.block-right .block-content {
    grid-template-columns: 1fr 1fr;
}

.block-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

@media (max-width: 968px) {
    .block-visual {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .block-visual {
        height: 250px;
    }
}

.visual-icon {
    font-size: 300px;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

@media (max-width: 968px) {
    .visual-icon {
        font-size: 200px;
    }
}

@media (max-width: 640px) {
    .visual-icon {
        font-size: 120px;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    }
}

.block-left .visual-icon {
    color: var(--accent-color);
    opacity: 0.8;
}

.block-right .visual-icon {
    color: white;
    opacity: 0.3;
}

.visual-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.1) 0%, transparent 70%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.block-right .visual-background {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.block-text {
    position: relative;
    z-index: 2;
}

.block-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.block-right .block-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.block-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--primary-color);
}

@media (max-width: 968px) {
    .block-title {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    .block-title {
        font-size: 32px;
        letter-spacing: -1px;
        margin-bottom: 10px;
    }
}

.block-right .block-title {
    color: white;
}

.block-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .block-subtitle {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

.block-right .block-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.block-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .block-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

.block-right .block-description {
    color: rgba(255, 255, 255, 0.9);
}

.block-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.block-highlights li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .block-highlights li {
        padding: 12px 0;
        font-size: 14px;
    }
}

.block-right .block-highlights li {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.block-highlights li:last-child {
    border-bottom: none;
}

.highlight-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .highlight-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 12px;
    }
}

.block-right .highlight-icon {
    background: white;
    color: var(--accent-color);
}

.block-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.block-right .block-cta {
    background: white;
    color: var(--accent-color);
}

.block-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 113, 227, 0.4);
}

.block-right .block-cta:hover {
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
}

/* Apple-style Scroll Animations */
.normativa-block {
    opacity: 0;
}

.normativa-block.revealed {
    opacity: 1;
}

.block-visual {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.normativa-block.revealed .block-visual {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.visual-icon {
    transition: transform 0.3s ease-out;
}

.normativa-block.revealed .visual-icon {
    transform: translateY(0) scale(1) !important;
}

.block-text {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-right .block-text {
    transform: translateX(50px);
}

.normativa-block.revealed .block-text {
    transform: translateX(0);
    opacity: 1;
}

/* Static visual when revealed */
.normativa-block.revealed .visual-icon {
    transform: translateY(0) scale(1);
}

.normativa-block.revealed .visual-background {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
}

/* Apple-style Reveal Animations */
.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade.revealed {
    opacity: 1;
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-slide-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-slide-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-slide-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-light);
}

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

@media (max-width: 968px) {
    .testimonials-grid {
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        gap: 20px;
    }
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .testimonial-card {
        padding: 20px;
        border-radius: 15px;
    }
}

.testimonial-quote {
    font-size: 64px;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-role {
    font-size: 14px;
    color: var(--text-light);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 968px) {
    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .contact-grid {
        gap: 30px;
    }
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 15px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .contact-icon {
        font-size: 24px;
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
}

.contact-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

@media (max-width: 640px) {
    .contact-details h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
}

.contact-details p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .contact-details p {
        font-size: 14px;
    }
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .contact-form {
        padding: 20px;
        border-radius: 15px;
    }
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

@media (max-width: 640px) {
    .submit-button {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
}

.submit-button:hover {
    background: #0051a2;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

@media (max-width: 640px) {
    .footer-content {
        gap: 40px;
        margin-bottom: 30px;
    }
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 640px) {
    .footer-links {
        gap: 30px;
    }
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

@media (max-width: 640px) {
    .footer-column ul li a {
        font-size: 13px;
    }
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #00a8ff);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

/* Enhanced Button Hover Effects */
.cta-button {
    position: relative;
    overflow: hidden;
}

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

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

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

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

.service-card:hover::before {
    left: 100%;
}

/* Enhanced Form Inputs */
.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.15);
}

.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading State for Form */
.submit-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Slider Dots */
.dot {
    position: relative;
}

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

.dot:hover::after {
    width: 20px;
    height: 20px;
}

/* Parallax Effect for Hero */
.hero {
    will-change: transform;
}

.slide-content {
    will-change: transform, opacity;
}

/* Enhanced Stat Numbers */
.stat-number {
    background: linear-gradient(135deg, var(--accent-color), #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease-out;
}

.testimonial-card:hover::after {
    width: 100%;
}

/* Stagger delay for legge cards */
.legge-card[data-delay] {
    transition-delay: calc(var(--delay, 0) * 1ms);
}

/* Smooth Scroll Enhancement */
html {
    scroll-padding-top: 70px;
}

/* Enhanced Navbar Link Active State */
.nav-link.active {
    color: var(--accent-color);
}

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

/* Micro-interaction for Contact Items */
.contact-item {
    transition: transform 0.2s ease-out;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    transition: transform 0.3s ease-out;
}

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

/* Enhanced Footer Links */
.footer-column ul li a {
    position: relative;
    transition: padding-left 0.3s ease-out;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: opacity 0.3s ease-out, left 0.3s ease-out;
}

.footer-column ul li a:hover {
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Section base styles - no auto fade */
.section {
    position: relative;
}

/* Enhanced Slider Buttons */
.slider-btn {
    position: relative;
    overflow: hidden;
}

.slider-btn::before {
    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.4s, height 0.4s;
}

.slider-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Text Selection Styling */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 40px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 20px;
    }

    .content-grid,
    .services-grid,
    .testimonials-grid,
    .contact-grid,
    .block-content {
        grid-template-columns: 1fr;
    }

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

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    .section-subtitle {
        font-size: 16px;
    }

    .content-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .stat-label {
        font-size: 14px;
    }

    .block-visual {
        order: -1;
        height: 200px;
    }

    .visual-icon {
        font-size: 100px;
    }

    .block-title {
        font-size: 28px;
    }

    .normativa-block {
        min-height: auto;
        padding: 40px 0;
    }

    .block-highlights li {
        font-size: 14px;
        padding: 12px 0;
    }

    .service-icon {
        font-size: 36px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card > p {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .contact-item {
        margin-bottom: 30px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        gap: 40px;
    }
}

