:root {
    --gis-primary: #000000;
    --gis-accent: #FF6600;
    --gis-bg-light: #f8f9fa;
    --gis-text: #333333;
    --gis-text-light: #6c757d;
}

html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gis-text);
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gis-primary);
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gis-primary) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--gis-primary) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gis-accent) !important;
}

.btn-nav-cta {
    background-color: var(--gis-accent);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white !important;
    color: var(--gis-primary) !important;
    border: 1px solid var(--gis-primary);
}

/* Hero Section */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gis-text-light);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 500px;
}

.btn-primary-pill {
    background-color: var(--gis-accent);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-pill:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
    color: white;
}

.hero-image-container {
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Wave Dividers */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-divider .shape-fill {
    fill: var(--gis-bg-light);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.bg-light-custom {
    background-color: var(--gis-bg-light);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--gis-accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gis-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1.5rem;
}

/* Cards General */
.card-hover-effect {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: none;
    background: white;
    border-radius: 20px;
    height: 100%;
}

.card-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Feature Cards (Chi Siamo) */
.feature-card {
    padding: 2.5rem;
    position: relative;
}

.step-number {
    color: var(--gis-accent);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 102, 0, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gis-accent);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.card-hover-effect:hover .icon-wrapper {
    background-color: var(--gis-accent);
    color: white;
}

/* Product Cards & News Cards (Unified Style) */
.unified-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-placeholder {
    height: 200px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
    /* Flex layout for centering logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    /* Default background image fallback available if needed, usually overridden */
    background-image: url('../assets/hero.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Utility to hide placeholder overlay when we have a logo */
.card-img-placeholder.has-logo::after {
    display: none;
}

.card-img-placeholder.has-logo {
    background-color: #f8f9fa;
    /* Light background for logos */
}

.card-body-custom {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--gis-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
}

.btn-link-custom {
    color: var(--gis-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.btn-link-custom:hover {
    color: #e65c00;
}

.btn-link-custom i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.btn-link-custom:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--gis-primary);
    color: white;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

footer p,
footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--gis-accent);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: white;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--gis-accent);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 8rem;
    }

    .hero-image-container {
        margin-top: 3rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: none;
        background: white;
        border-radius: 20px;
        height: 100%;
    }

    .card-hover-effect:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    /* Feature Cards (Chi Siamo) */
    .feature-card {
        padding: 2.5rem;
        position: relative;
    }

    .step-number {
        color: var(--gis-accent);
        font-weight: 800;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
        background-color: rgba(255, 102, 0, 0.1);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        color: var(--gis-accent);
        font-size: 1.8rem;
        transition: all 0.3s ease;
    }

    .card-hover-effect:hover .icon-wrapper {
        background-color: var(--gis-accent);
        color: white;
    }

    /* Product Cards & News Cards (Unified Style) */
    .unified-card {
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .card-img-placeholder {
        height: 200px;
        background-color: #eee;
        position: relative;
        overflow: hidden;
        /* Flex layout for centering logos */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-img-placeholder::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, #eee 25%, #f5f5f5 50%, #eee 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        /* Default background image fallback available if needed, usually overridden */
        background-image: url('../assets/hero.webp');
        background-size: cover;
        background-position: center;
        z-index: 1;
    }

    @keyframes loading {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    /* Utility to hide placeholder overlay when we have a logo */
    .card-img-placeholder.has-logo::after {
        display: none;
    }

    .card-img-placeholder.has-logo {
        background-color: #f8f9fa;
        /* Light background for logos */
    }

    .card-body-custom {
        padding: 2rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .card-meta {
        font-size: 0.85rem;
        color: var(--gis-accent);
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        font-weight: 700;
    }

    .btn-link-custom {
        color: var(--gis-accent);
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        margin-top: auto;
    }

    .btn-link-custom:hover {
        color: #e65c00;
    }

    .btn-link-custom i {
        margin-left: 5px;
        transition: transform 0.2s;
    }

    .btn-link-custom:hover i {
        transform: translateX(5px);
    }
}

/* Typewriter Effect (JS Based) */
.typewriter-container {
    display: inline;
    /* Allow wrapping */
}

/* Cursor style - appended by JS */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--gis-accent);
    /* Blinking animation */
    animation: blink-caret 0.75s step-end infinite;
    vertical-align: text-bottom;
    height: 1.1em;
    margin-left: 2px;
}

@keyframes blink-caret {

    from,
    to {
        opacity: 0
    }

    50% {
        opacity: 1
    }
}

/* Clients Slider (Horizontal Marquee) */
.clients-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
    border-top: 1px solid #eee;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 80px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 80px;
    animation: scroll 40s linear infinite;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 80px));
    }
}

.client-logo-item {
    height: 60px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.client-logo-item img {
    max-height: 100%;
    max-width: 200px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .marquee-content {
        gap: 40px;
    }

    .client-logo-item {
        height: 40px;
    }
}