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

.main-nav a.active {
    color: var(--primary-color);
}

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

.gallery-hero {
    padding: 80px 0 30px;
    background: var(--white);
    color: var(--text-color);
    border-bottom: 1px solid #e9e9e9;
}

.page-intro {
    max-width: 760px;
    margin: 0 auto 18px;
    text-align: left;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    color: var(--primary-color);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-intro h1 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text-color);
}

.page-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
}

.gallery-note {
    max-width: 760px;
    margin: 0 auto;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.comparison-section,
.archive-section,
.gallery-cta {
    padding: 70px 0;
}

.comparison-grid {
    display: grid;
    gap: 22px;
}

.comparison-card {
    background: var(--white);
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.comparison-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e9e9e9;
}

.comparison-panel {
    position: relative;
    margin: 0;
    min-height: 300px;
    background: #f8f8f8;
}

.comparison-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
}

.comparison-badge.is-before {
    background: rgba(0,0,0,0.55);
}

.comparison-badge.is-after {
    background: var(--primary-color);
}

.comparison-content {
    padding: 24px 26px 26px;
}

.comparison-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.comparison-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.comparison-content ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.comparison-content li {
    position: relative;
    padding-left: 18px;
    color: var(--text-color);
}

.comparison-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

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

.archive-card {
    margin: 0;
    background: var(--white);
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.archive-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.archive-card figcaption {
    padding: 16px;
}

.archive-card figcaption span {
    display: inline-block;
    margin-bottom: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.archive-card figcaption strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.archive-card figcaption p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.gallery-cta-box {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9e9e9;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gallery-cta-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.gallery-cta-box p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

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

@media (max-width: 991px) {
    .page-intro h1 {
        font-size: 32px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .comparison-media {
        grid-template-columns: 1fr;
    }

    .comparison-panel {
        min-height: 240px;
    }

    .gallery-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        padding: 60px 0 20px;
    }

    .page-intro h1 {
        font-size: 26px;
    }

    .page-intro p {
        font-size: 15px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .comparison-section,
    .archive-section,
    .gallery-cta {
        padding: 50px 0;
    }

    .comparison-content,
    .gallery-cta-box {
        padding: 18px;
    }

    .comparison-content h2,
    .gallery-cta-box h2 {
        font-size: 20px;
    }
}

:root {
    --primary-color: #de1e19;
    --primary-dark: #b31b16;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-dark: #2c3e50;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

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

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for multiple elements */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* Header Top */
.header-top {
    background: var(--secondary-color);
    padding: 10px 0;
    font-size: 13px;
}

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

.header-top-left {
    display: flex;
    gap: 25px;
}

.header-top-left span,
.header-top-left a {
    color: #aaa;
}

.header-top-left a:hover {
    color: var(--primary-color);
}

.header-top-left i {
    margin-right: 8px;
    color: var(--primary-color);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-right a {
    color: #aaa;
    transition: var(--transition);
}

.header-top-right a:hover {
    color: var(--primary-color);
}

.btn-quote {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    transition: var(--transition);
}

.btn-quote:hover {
    background: var(--primary-dark);
}

/* Main Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

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

.logo img {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 30px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

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

.main-nav li.dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    background: var(--white);
    min-width: 220px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 0 20px;
}

.slide-content h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content .slide-heading {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-main {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    background: transparent;
    color: var(--white);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: var(--primary-color);
}

/* Services Icons Section */
.services-icons {
    background: var(--bg-light);
    padding: 80px 0;
    position: relative;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    transition: var(--transition);
}

.service-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 30px;
    color: var(--white);
}

.service-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-details h3 a {
    color: var(--text-color);
    transition: var(--transition);
}

.service-details h3 a:hover {
    color: var(--primary-color);
}

.service-details p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.worker-image {
    position: absolute;
    bottom: 0;
    right: 5%;
    max-width: 300px;
}

.worker-image img {
    display: block;
}

/* Main Services Section */
.main-services {
    background: var(--white);
}

.services-container {
    display: flex;
}

.services-sidebar {
    width: 40%;
}

.services-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-content {
    width: 60%;
    padding: 80px 50px;
    background: var(--bg-light);
}

.section-header-left {
    margin-bottom: 50px;
}

.section-header-left h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.section-header-left p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

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

.service-card {
    background: var(--white);
}

.service-img {
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(211, 69, 57, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-overlay a {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid var(--white);
    padding: 10px 20px;
}

.service-img:hover .service-overlay {
    opacity: 1;
}

.service-img:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 20px;
    font-size: 14px;
    text-align: center;
}

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

.service-card h3 a:hover {
    color: var(--primary-color);
}

/* Enhanced Card Hover Effects */
.service-box {
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 69, 57, 0.1), transparent);
    transition: left 0.5s ease;
}

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

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

.service-box:hover .service-icon {
    transform: rotateY(360deg);
    transition: transform 0.6s ease;
}

.about-card {
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

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

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-item {
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    z-index: 1;
}

.project-item:hover::before {
    opacity: 0.3;
    transform: scale(1);
}

.project-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

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

.section-header h2 {
    font-size: 32px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.section-header h2 span {
    display: inline;
    margin-top: 0;
}

.about-logo {
    margin: 20px 0;
    max-height: 80px;
    width: auto;
}

.section-header p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    position: relative;
    background: var(--bg-light);
    padding: 40px 30px;
    transition: var(--transition);
}

.about-card:hover,
.about-card.active {
    background: var(--primary-color);
}

.about-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.about-card:hover h3 a,
.about-card.active h3 a {
    color: var(--white);
}

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

.about-card:hover p,
.about-card.active p {
    color: rgba(255,255,255,0.9);
}

.read-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

.about-card:hover .read-more,
.about-card.active .read-more {
    color: var(--white);
}

.about-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    font-size: 24px;
    color: var(--white);
}

/* Manutenzione Section */
.manutenzione-section {
    padding: 100px 0;
    background: var(--white);
}

.manutenzione-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.manutenzione-text ul {
    list-style: none;
}

.manutenzione-text li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.manutenzione-text li i {
    color: var(--primary-color);
    font-size: 18px;
}

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

/* Projects Section */
.projects-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.projects-grid {
    display: flex;
    gap: 20px;
}

.project-large {
    width: 40%;
}

.projects-small {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
}

.project-large .project-item {
    height: 100%;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.project-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%);
    transition: var(--transition);
}

.project-item:hover .project-hover {
    transform: translateY(0);
}

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

.project-hover h3 {
    font-size: 16px;
}

.project-hover h3 a {
    color: var(--white);
}

/* Lead Funnel Section */
.lead-funnel {
    padding: 90px 0;
    background: var(--white);
}

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

.lead-card {
    background: var(--bg-light);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: left;
}

.lead-card i {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(211, 69, 57, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.lead-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.lead-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 14px;
}

.lead-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* CTA Section */
.cta-section {
    background: var(--white);
}

.cta-container {
    display: flex;
}

.cta-image {
    width: 40%;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    width: 60%;
    padding: 80px 60px;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://www.transparenttextures.com/patterns/cubes.png');
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.cta-content p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #aaa;
}

.cta-content .btn-main {
    align-self: flex-start;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info-box h3 {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.info-item a {
    color: var(--text-light);
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    width: auto;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    width: auto;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.btn-call:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Contact Form Box */
.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-box h3 {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.form-status {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.form-status.success {
    background: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.25);
    color: #1e7e45;
}

.form-status.error {
    background: rgba(211, 69, 57, 0.08);
    border-color: rgba(211, 69, 57, 0.25);
    color: var(--primary-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 69, 57, 0.1);
}

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

.checkbox-group {
    margin: 25px 0;
}

.checkbox-group .checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    margin-bottom: 0;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--white);
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label span:not(.checkmark) {
    flex: 1;
    white-space: nowrap;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 69, 57, 0.3);
}

/* Footer */
.main-footer {
    background: #1a1a1a;
}

.footer-top {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-widget p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.footer-gallery img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.footer-bottom {
    background: var(--primary-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--white);
    font-size: 13px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    max-width: 980px;
    width: auto;
    box-sizing: border-box;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.98);
    color: var(--white);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.cookie-banner-text p {
    margin: 0;
    color: #d9d9d9;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-link {
    color: #fff;
    text-decoration: underline;
    font-size: 14px;
    white-space: nowrap;
}

.cookie-banner-reject {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-banner-reject:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-banner-accept {
    border: none;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-banner-accept:hover {
    background: var(--primary-dark);
}

/* Legal Pages */
.page-hero {
    padding: 80px 0 50px;
    background: var(--bg-light);
}

.content-section {
    padding: 20px 0 90px;
}

.legal-content {
    display: grid;
    gap: 20px;
}

.legal-card {
    background: var(--white);
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 28px;
    box-shadow: none;
}

.legal-card h2 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--text-color);
}

.legal-card p,
.legal-card li {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.legal-card ul {
    margin: 0;
    padding-left: 20px;
}

.legal-card a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Privacy and Cookie Policy Pages */
.privacy-policy-page,
.cookie-policy-page {
    padding: 80px 0 50px;
    background: var(--bg-light);
}

.privacy-policy-content,
.cookie-policy-content {
    padding: 20px 0 90px;
}

.privacy-policy-card,
.cookie-policy-card {
    background: var(--white);
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 28px;
    box-shadow: none;
}

.privacy-policy-card h2,
.cookie-policy-card h2 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--text-color);
}

.privacy-policy-card p,
.cookie-policy-card p,
.privacy-policy-card li,
.cookie-policy-card li {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.privacy-policy-card ul,
.cookie-policy-card ul {
    margin: 0;
    padding-left: 20px;
}

.privacy-policy-card a,
.cookie-policy-card a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary-dark);
}

/* Responsive Mobile First */
@media (max-width: 991px) {
    /* Header */
    .header-top {
        display: none;
    }

    .main-header .container {
        height: 65px;
    }

    .logo img {
        max-height: 42px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: min(320px, 100vw);
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.2);
        transition: var(--transition);
        z-index: 1002;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px 20px 30px;
        gap: 0;
    }

    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }

    .dropdown-menu {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding-left: 0;
        background: #f9f9f9;
        margin-top: 0;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu a {
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1003;
    }

    /* Hero */
    .hero-slider {
        height: 100vh;
        min-height: 450px;
        max-height: 600px;
    }

    .slide-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .slide-content h1 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .slide-content .slide-heading {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .slide-content h4 {
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .btn-main {
        padding: 14px 28px;
        font-size: 13px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 22px;
        white-space: normal;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 14px;
        padding: 0 5px;
        margin-top: 10px;
    }

    /* Services Icons */
    .services-icons {
        padding: 50px 0;
    }

    .services-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-box {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .service-icon i {
        font-size: 22px;
    }

    .service-details h3 {
        font-size: 16px;
    }

    .service-details p {
        font-size: 13px;
    }

    /* Main Services */
    .services-sidebar {
        display: none;
    }

    .services-content {
        width: 100%;
        padding: 40px 15px;
    }

    .section-header-left h2 {
        font-size: 22px;
    }

    .section-header-left p {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-img img {
        height: 200px;
    }

    /* About */
    .about-section {
        padding: 50px 0;
    }

    .lead-funnel {
        padding: 60px 0;
    }

    .lead-grid {
        grid-template-columns: 1fr;
    }

    .lead-card {
        padding: 22px 18px;
    }

    .lead-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lead-actions .btn-main,
    .lead-actions .btn-call {
        width: 100%;
    }

    .about-logo {
        max-height: 55px;
        margin: 15px 0;
    }

    .about-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-card {
        padding: 25px 20px;
    }

    .about-inner h3 {
        font-size: 16px;
    }

    .about-inner p {
        font-size: 13px;
    }

    /* Projects */
    .projects-section {
        padding: 50px 0;
    }

    .projects-grid {
        flex-direction: column;
        gap: 12px;
    }

    .project-large,
    .projects-small {
        width: 100%;
    }

    .project-large .project-item {
        height: 220px;
    }

    .projects-small {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .projects-small .project-item {
        height: 160px;
    }

    .project-hover {
        padding: 12px;
        transform: translateY(0) !important;
        background: linear-gradient(transparent, rgba(211, 69, 57, 0.95));
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
    }

    .project-hover h3 {
        font-size: 11px;
        font-weight: 600;
    }

    .project-hover h3 a {
        color: var(--white);
    }

    .project-item:hover img {
        transform: none;
    }

    /* Manutenzione */
    .manutenzione-section {
        padding: 50px 0;
    }

    .manutenzione-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .manutenzione-image {
        order: -1;
    }

    .manutenzione-image img {
        height: 200px;
        border-radius: 8px;
    }

    .manutenzione-text p {
        font-size: 14px;
    }

    .manutenzione-text li {
        font-size: 13px;
        padding: 10px 0;
    }

    /* CTA */
    .cta-section {
        padding: 0;
    }

    .cta-container {
        flex-direction: column;
    }

    .cta-image {
        width: 100%;
        height: 180px;
    }

    .cta-content {
        width: 100%;
        padding: 35px 20px;
    }

    .cta-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Contact */
    .contact-section {
        padding: 50px 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 25px 18px;
        border-radius: 8px;
    }

    .contact-info-box h3,
    .contact-form-box h3 {
        font-size: 16px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .info-item {
        margin-bottom: 15px;
        gap: 12px;
    }

    .info-item i {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .info-item strong {
        font-size: 13px;
    }

    .info-item p {
        font-size: 13px;
    }

    .contact-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-whatsapp,
    .btn-call {
        flex: 1;
        min-width: 120px;
        padding: 12px 10px;
        font-size: 12px;
    }

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

    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
        border-radius: 6px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .btn-submit {
        padding: 14px;
        font-size: 14px;
    }

    /* Footer */
    .footer-top {
        padding: 40px 0;
    }

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

    .footer-widget h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-widget p {
        font-size: 13px;
    }

    .footer-links {
        columns: 2;
        font-size: 13px;
    }

    .footer-gallery {
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-bottom p {
        font-size: 11px;
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .projects-small {
        grid-template-columns: 1fr;
    }

    .projects-small .project-item {
        height: 200px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-whatsapp,
    .btn-call {
        width: 100%;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 16px;
        border-radius: 14px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .cookie-banner-accept,
    .cookie-banner-link {
        font-size: 13px;
    }
}
