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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    /* Colors */
    --primary: #038F3E;
    --primary-color: #038F3E; /* Alias per compatibilità */
    --primary-dark: #026B2F;
    --primary-light: #04A349;
    --primary-lighter: #5CB578;
    --secondary-light: #5CB578;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-light: #666666;
    --text-dark: #222222;
    --border-light: #e0e0e0;
    --error: #dc3545;
    --success: #28a745;
    /* Accent and compatibility aliases */
    --accent-color: #FF8C00; /* Arancione per accenti e call-to-action */
    --light-bg: var(--bg-light);
    --border-color: var(--border-light);
    --text-color: var(--text-light);
    --dark-color: var(--text-dark);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    
        /* Typography */
    --font-primary: 'Afacad Flux', sans-serif;
    --font-secondary: 'Afacad Flux', sans-serif;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-all: all 0.3s ease;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed navbar */
}

body.nav-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

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

.text-accent {
    color: var(--primary);
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}

.why-choose-us {
    background: var(--white);
    position: relative;
}

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

.section-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.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: var(--transition-slow);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

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

.services .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary) !important;
    box-shadow: 0 2px 8px rgba(3, 143, 62, 0.1);
    transition: all 0.3s ease;
}

.services .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(3, 143, 62, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

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

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #1e3d1c, #2d5a2b);
    /* Background image come fallback mentre carica il video */
    background-image: url('../images/hero-fallback.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: block;
    background: transparent;
    pointer-events: none;
    filter: blur(1px);
    transform: scale(1.02);
    will-change: opacity;
}

/* Video caricato e pronto */
.hero-video video.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Ottimizzazioni mobile per video più veloce */
@media (max-width: 768px) {
    .hero-video video {
        /* Riduce leggermente la qualità per migliorare le performance */
        filter: blur(0.5px);
        transform: scale(1.01);
    }
    
    .hero-video video.loaded {
        filter: blur(0);
    }
    
    .hero-video {
        /* Background più prominente su mobile mentre carica */
        background: linear-gradient(135deg, #1e3d1c, #2d5a2b);
        background-size: cover;
    }
}

.hero-video video::-webkit-media-controls {
    display: none !important;
}

.hero-video video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 43, 0.75), rgba(30, 61, 28, 0.65));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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


.scroll-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.scroll-arrow {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Features Section - Timeline Style */
.features-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.timeline-line {
    display: none;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 300px;
}

.feature-circle {
    width: 150px;
    height: 150px;
    background: var(--white);
    border: 6px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(3, 143, 62, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 10;
    opacity: 1 !important;
}

.feature-circle .feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.feature-circle .feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 1;
}

.feature-content {
    max-width: 250px;
    opacity: 1 !important;
    z-index: 10;
    position: relative;
}

.feature-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* About Intro Section */
.about-intro {
    background: var(--white);
    position: relative;
    padding-bottom: 5rem;
}

.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-text {
    padding-right: 2rem;
}

.about-intro-title {
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-intro-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-intro-description:last-child {
    margin-bottom: 0;
}

.about-intro-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 0;
}

.about-intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.services-grid .service-card {
    width: 100%;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
        justify-content: center;
    }
    .services-grid .service-card {
        max-width: 320px;
    }
}

/* Rimuovo le regole :has() che non funzionano su Safari/iOS */
/* La centratura della terza scheda verrà gestita via JavaScript */

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(3, 143, 62, 0.15);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-content {
    padding: 2rem;
}

.service-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Homepage Services Grid */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.home-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid rgba(3, 143, 62, 0.08);
    box-shadow: 0 18px 40px rgba(3, 143, 62, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    pointer-events: none;
}

.home-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 70px rgba(3, 143, 62, 0.18);
}

.home-service-media {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    margin: 0;
}

.home-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-service-card:hover .home-service-media img {
    transform: scale(1.08);
}

.home-service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.home-service-card:hover .home-service-media::after {
    opacity: 0.75;
}

.home-service-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.7rem 1.8rem 1.15rem;
}

.home-service-title {
    margin: 0;
    font-size: clamp(1.32rem, 2.1vw, 1.65rem);
    color: var(--text-dark);
    line-height: 1.28;
}

.home-service-description {
    margin: 0;
    color: var(--text-light);
    line-height: 1.65;
}

.home-service-footer {
    margin-top: 0.75rem;
}

.home-service-link {
    border-width: 2px;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.home-service-card:hover .home-service-link {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
}

@media (max-width: 992px) {
    .home-service-content {
        padding: 1.55rem 1.55rem 1.1rem;
    }
}

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

    .home-service-content {
        padding: 1.45rem 1.35rem 1rem;
        gap: 1rem;
    }

    .home-service-link {
        width: 100%;
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.about-badge img {
    height: 60px;
    width: auto;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 43, 0.9), rgba(30, 61, 28, 0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: var(--white);
}

.portfolio-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
}

.portfolio-view,
.portfolio-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.portfolio-view:hover,
.portfolio-quote:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-dark));
    color: var(--white);
    text-align: center;
}

.cta-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
}

.footer-main {
    padding: 4rem 0 2rem;
}

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

/* Footer semplificato - solo azienda e contatti */
.footer-simplified {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.footer-company {
    padding-right: 2rem;
}

.footer-contacts {
    padding-left: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.footer-logo .logo-text {
    color: var(--white);
}

.footer-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.contact-item i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    min-width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    transition: bottom 0.3s ease;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25d366;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
    animation: pulse 2s infinite;
}

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

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

.whatsapp-text {
    font-weight: 500;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design per WhatsApp */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        padding: 0.75rem 1rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn i {
        font-size: 1.25rem;
    }
}

/* Quando il banner dei cookies è visibile, sposta WhatsApp più in alto */
body.cookies-visible .whatsapp-widget {
    bottom: 6rem;
}

@media (max-width: 768px) {
    body.cookies-visible .whatsapp-widget {
        bottom: 5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Rimuovo le regole del menu hamburger che confliggono */
    /* Le regole del menu sono ora gestite in navbar.css */
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .features-timeline {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .timeline-line {
        display: none;
    }
    
    .feature-item {
        width: 100%;
    }
    
    .feature-circle {
        width: 120px;
        height: 120px;
        border-width: 4px;
        opacity: 1 !important;
        z-index: 10;
    }
    
    .feature-circle .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-circle .feature-icon img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        opacity: 1;
    }
    
    .feature-content {
        opacity: 1 !important;
        z-index: 10;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-intro-text {
        padding-right: 0;
        text-align: center;
    }
    
    .about-intro-image {
        order: -1;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .footer-content,
    .footer-simplified {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-company,
    .footer-contacts {
        padding: 0;
    }
    
    .footer-col {
        padding: 1.5rem 1rem;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
        margin-bottom: 2rem;
        gap: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        color: var(--white);
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    .footer-links li {
        margin-bottom: 0.8rem;
    }
    
    .footer-contact {
        max-width: 350px;
        margin: 0 auto;
        gap: 1.2rem;
    }
    
    .footer-contact .contact-item {
        justify-content: flex-start;
        text-align: left;
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    .footer-contact .contact-item i {
        color: var(--primary);
        width: 18px;
        text-align: center;
        margin-right: 0;
        min-width: 18px;
    }
    
    .footer-contact .contact-item span {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 80vh;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-timeline {
        gap: 2.5rem;
    }
    
    .feature-circle {
        width: 100px;
        height: 100px;
        border-width: 3px;
        opacity: 1 !important;
        z-index: 10;
    }
    
    .feature-circle .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-circle .feature-icon img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .features-timeline {
        gap: 2rem;
    }
    
    .feature-circle {
        width: 90px;
        height: 90px;
        border-width: 3px;
        margin-bottom: 1.5rem;
        opacity: 1 !important;
        z-index: 10;
    }
    
    .feature-circle .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-circle .feature-icon img {
        width: 45px;
        height: 45px;
        object-fit: contain;
    }
    
    .feature-content h3 {
        font-size: 1.1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }
}

/* Scroll Animations */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 45px), 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

[data-reveal="up"] {
    --reveal-y: 45px;
}

[data-reveal="down"] {
    --reveal-y: -45px;
}

[data-reveal="left"] {
    --reveal-x: 45px;
}

[data-reveal="right"] {
    --reveal-x: -45px;
}

[data-reveal="fade"] {
    --reveal-x: 0;
    --reveal-y: 0;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-medium);
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-medium);
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition-medium);
}

.loading.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Styles for Ristrutturazioni and Pitture Pages */

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Color Consultation */
.color-consultation {
    margin-top: 3rem;
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.consultation-text h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.consultation-text p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.consultation-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.consultation-features .feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.consultation-features .feature-item i {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.consultation-features .feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.consultation-features .feature-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.consultation-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.consultation-image img {
    width: 100%;
    height: auto;
}

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

.material-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-all);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.material-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.material-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.material-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.price-range {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-note {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-note i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Responsive Design Adjustments for New Pages */
@media (max-width: 768px) {
    .consultation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .consultation-image {
        order: -1;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .pricing-info {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Founder Section */
.founder-section {
    background: var(--white);
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.founder-text .section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.founder-info {
    margin-top: 2rem;
}

.founder-name {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.founder-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.founder-description {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.founder-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 2px solid var(--primary-light);
}

.founder-photo-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.founder-photo-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.founder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
}

.founder-quote {
    text-align: center;
}

.founder-quote i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.founder-quote p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.founder-credentials {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.credential-item:last-child {
    border-bottom: none;
}

.credential-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
}

.credential-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Location Section */
.location-section {
    background: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.map-container {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info {
    display: flex;
    align-items: center;
}

.location-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    height: fit-content;
    width: 100%;
}

.location-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-detail div strong {
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-detail div p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.location-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Responsive Design for Location Section */
@media (max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container {
        height: 350px;
    }
    
    .location-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-detail {
        gap: 0.8rem;
    }
    
    .contact-detail i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 300px;
        border-radius: 12px;
    }
    
    .location-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .location-card h3 {
        font-size: 1.3rem;
    }
}

/* Founder Section Responsive */
@media (max-width: 768px) {
    .founder-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .founder-text {
        order: 2;
    }
    
    .founder-image {
        order: 1;
    }
    
    .founder-name {
        font-size: 1.8rem;
    }
    
    .founder-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .founder-photo-container img {
        height: 400px;
    }
    
    .founder-overlay {
        position: relative;
        transform: none;
        background: rgba(0, 0, 0, 0.9);
        margin-top: 1rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .founder-name {
        font-size: 1.6rem;
    }
    
    .founder-photo-container img {
        height: 350px;
    }
    
    .founder-credentials {
        margin-top: 1rem;
        padding: 1rem;
    }
}
