/* Envitech S.r.l. - Stylesheet Istituzionale Completo */
:root {
    --envitech-blue: #0076a4;
    --envitech-blue-dark: #005a7e;
    --envitech-blue-light: #e6f3f8;
    --envitech-text: #4a5568;
    --envitech-heading: #1a202c;
    --envitech-border: #e2e8f0;
    --envitech-light-bg: #f8fafc;
    --envitech-dark: #111827;
    --envitech-dark-footer: #0f172a;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--envitech-text);
    background: #ffffff;
}

body {
    line-height: 1.7;
    font-size: 15px;
    color: var(--envitech-text);
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP BAR */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #1e293b;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-info {
    display: flex;
    gap: 15px;
}

.top-bar-contacts {
    display: flex;
    gap: 20px;
}

.top-bar-contacts a:hover {
    color: #ffffff;
}

/* HEADER & NAVBAR */
#header {
    background: #ffffff;
    border-bottom: 1px solid var(--envitech-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

#logo img {
    height: 48px;
    width: auto;
}

.primary-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 26px;
}

.primary-menu a {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    padding: 10px 0;
    display: block;
    position: relative;
}

.primary-menu a:hover,
.primary-menu li.active > a {
    color: var(--envitech-blue);
}

/* Dropdown */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--envitech-border);
    border-top: 3px solid var(--envitech-blue);
    padding: 6px 0;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.menu-item-has-children:hover .sub-menu {
    display: flex;
}

.menu-item-has-children.menu-dismissed:hover .sub-menu {
    display: none;
}

.sub-menu li a {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.sub-menu li a:hover {
    background: var(--envitech-light-bg);
    color: var(--envitech-blue);
    padding-left: 24px;
}

.primary-menu-trigger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #1e293b;
}

/* HERO SLIDER */
#slider {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 460px;
    max-height: 680px;
    overflow: hidden;
    background: #000;
}

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

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
}

.slider-caption-box {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 10;
    color: #ffffff;
}

.slider-caption-content {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: inline-block;
    padding: 18px 28px;
    border-left: 4px solid var(--envitech-blue);
    border-radius: 0 4px 4px 0;
    max-width: 650px;
}

.slider-caption-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.slider-caption-content p {
    font-size: 14px;
    color: #e2e8f0;
    margin: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
    font-size: 18px;
}

.slider-arrow:hover {
    background: var(--envitech-blue);
}

.slider-arrow-left { left: 24px; }
.slider-arrow-right { right: 24px; }

.slider-scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    z-index: 20;
    font-size: 22px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -8px); }
    60% { transform: translate(-50%, -4px); }
}

/* SECTIONS COMMON */
.section-padding {
    padding: 75px 0;
}

.section-light {
    background: var(--envitech-light-bg);
    border-top: 1px solid var(--envitech-border);
    border-bottom: 1px solid var(--envitech-border);
}

.section-title-wrap {
    margin-bottom: 35px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--envitech-blue);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--envitech-heading);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.lead-text {
    font-size: 16.5px;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
}

/* PILLARS / SERVIZI */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.pillar-col {
    background: #ffffff;
    padding: 30px 24px;
    border: 1px solid var(--envitech-border);
    border-radius: 4px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pillar-col:hover {
    border-color: var(--envitech-blue);
    box-shadow: 0 8px 20px rgba(0, 118, 164, 0.08);
    transform: translateY(-3px);
}

.pillar-icon {
    font-size: 32px;
    color: var(--envitech-blue);
    margin-bottom: 16px;
    display: inline-block;
}

.pillar-col h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--envitech-heading);
    margin-bottom: 12px;
}

.pillar-col p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
    text-align: justify;
    margin-bottom: 16px;
}

.pillar-tags {
    list-style: none;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 12px;
    color: #475569;
}

.pillar-tags li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 14px;
}

.pillar-tags li::before {
    content: "•";
    color: var(--envitech-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* SEZIONE LAVORI SVOLTI NEGLI ANNI (CASE STUDIES) */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid var(--envitech-border);
    color: #475569;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--envitech-blue);
    color: var(--envitech-blue);
}

.filter-btn.active {
    background: var(--envitech-blue);
    color: #ffffff;
    border-color: var(--envitech-blue);
}

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

.project-card {
    background: #ffffff;
    border: 1px solid var(--envitech-border);
    border-radius: 4px;
    padding: 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    border-color: var(--envitech-blue);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--envitech-blue);
    background: var(--envitech-blue-light);
    padding: 3px 8px;
    border-radius: 3px;
}

.project-year {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.project-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--envitech-heading);
    margin-bottom: 10px;
    line-height: 1.35;
}

.project-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 15px;
    text-align: justify;
}

.project-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-footer i {
    color: var(--envitech-blue);
}

/* HOW WE WORK */
.work-process {
    scroll-margin-top: 95px;
}

.process-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.process-heading .section-title {
    margin-bottom: 0;
}

.process-heading > p {
    max-width: 460px;
    padding-bottom: 4px;
    color: #64748b;
    font-size: 15px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-step {
    min-width: 0;
    position: relative;
    padding: 20px 30px 0 0;
    border-top: 1px solid var(--envitech-border);
}

.process-step::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--envitech-blue);
}

.process-step + .process-step {
    padding-left: 30px;
    border-left: 1px solid var(--envitech-border);
}

.process-step-top {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--envitech-border);
}

.process-step-top span {
    color: var(--envitech-blue-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.process-step h3 {
    margin-bottom: 8px;
    color: var(--envitech-heading);
    font-size: 19px;
    line-height: 1.4;
}

.process-step p {
    max-width: 360px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/* PROCESS FEATURE */
.work-process {
    scroll-margin-top: 95px;
    background: #f8fafc;
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.process-heading {
    display: block;
    margin-bottom: 20px;
}

.process-heading .section-title {
    margin-bottom: 10px;
}

.process-heading p {
    max-width: 470px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.process-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin: 0;
    background: #dbe4e8;
}

.process-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.process-photo-label {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 15px;
    border-left: 3px solid var(--envitech-blue);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.84);
}

.process-photo-label span {
    color: #b9dce8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.process-photo-label strong {
    font-size: 14px;
    font-weight: 600;
}

.process-steps {
    display: flex;
    flex-direction: column;
}

.process-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--envitech-border);
    border-bottom: 0;
}

.process-step::before {
    display: none;
}

.process-step + .process-step {
    margin: 0;
    padding-left: 0;
    border-left: 0;
}

.process-step-number {
    padding-top: 1px;
    color: var(--envitech-blue);
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
}

.process-step-label {
    display: block;
    margin-bottom: 5px;
    color: var(--envitech-blue-dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.process-step h3 {
    margin-bottom: 6px;
    color: var(--envitech-heading);
    font-size: 18px;
    line-height: 1.4;
}

.process-step p {
    max-width: 440px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

@media (min-width: 1025px) {
    .process-layout {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: center;
        gap: 64px;
    }

    .process-heading {
        margin-bottom: 30px;
    }

    .process-visual {
        aspect-ratio: 4 / 3;
    }

    .process-step {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 19px;
        padding: 24px 0;
    }

    .process-step-number {
        font-size: 34px;
    }
}

/* EXPERIENCES PAGE */
.process-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 30px;
}

.process-heading .section-title {
    margin-bottom: 0;
}

.process-heading > p {
    max-width: 480px;
    padding-bottom: 4px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-step {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 22px 24px 0 0;
    border-top: 1px solid var(--envitech-border);
    border-bottom: 0;
}

.process-step::before {
    display: none;
}

.process-step + .process-step {
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid var(--envitech-border);
}

.process-step-number {
    padding-top: 1px;
    color: var(--envitech-blue);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.process-step-label {
    display: block;
    margin-bottom: 5px;
    color: var(--envitech-blue-dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.process-step h3 {
    margin-bottom: 7px;
    color: var(--envitech-heading);
    font-size: 18px;
    line-height: 1.4;
}

.process-step p {
    max-width: 360px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .process-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding: 20px 0;
    }

    .process-step + .process-step {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--envitech-border);
    }
}

/* EXPERIENCES PAGE */
.experience-teaser .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.experience-teaser .section-title {
    margin-bottom: 6px;
}

.experience-teaser p {
    color: #64748b;
    max-width: 650px;
}

.experience-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 14px 18px;
    color: #ffffff;
    background: var(--envitech-blue);
    font-size: 14px;
    font-weight: 700;
}

.experience-link:hover {
    background: var(--envitech-blue-dark);
    color: #ffffff;
}

.experience-intro {
    position: relative;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
    border-bottom: 5px solid var(--envitech-blue);
}

.experience-intro::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 34%;
    height: 100%;
    background: repeating-linear-gradient(135deg, transparent 0 17px, rgba(255, 255, 255, 0.045) 17px 18px);
    pointer-events: none;
}

.experience-intro-inner {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 42px;
    padding-bottom: 42px;
}

.experience-backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.experience-backlink:hover {
    color: #ffffff;
}

.experience-intro h1 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 40px;
    line-height: 1.2;
}

.experience-intro p {
    max-width: 620px;
    color: #cbd5e1;
    font-size: 16px;
}

.experience-intro-mark {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.experience-intro-mark i {
    color: #58b8d5;
    font-size: 70px;
}

.experience-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.experience-heading .section-title-wrap {
    margin-bottom: 0;
}

.experience-heading .section-title {
    font-size: 28px;
    letter-spacing: 0;
}

.experience-heading > p {
    max-width: 300px;
    padding-bottom: 12px;
    color: #64748b;
    font-size: 14px;
}

.experience-list {
    border-top: 1px solid var(--envitech-border);
}

.experience-item {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) 190px;
    align-items: start;
    gap: 28px;
    padding: 28px 12px;
    border-bottom: 1px solid var(--envitech-border);
    transition: background-color 0.2s ease, padding 0.2s ease;
}

.experience-item:hover {
    padding-right: 18px;
    padding-left: 18px;
    background: #f7fafb;
}

.experience-period {
    padding-top: 3px;
    color: var(--envitech-blue-dark);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.experience-period span {
    color: #94a3b8;
}

.experience-description h3 {
    margin-bottom: 8px;
    color: var(--envitech-heading);
    font-size: 18px;
    line-height: 1.4;
}

.experience-description p {
    max-width: 720px;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.7;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 2px;
}

.experience-meta span {
    color: var(--envitech-blue-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.experience-meta small {
    color: #94a3b8;
    font-size: 12px;
}

/* SETTORI DI INTERVENTO */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sector-card {
    background: #ffffff;
    border: 1px solid var(--envitech-border);
    border-radius: 4px;
    padding: 24px;
    transition: border-color 0.2s;
}

.sector-card:hover {
    border-color: var(--envitech-blue);
}

.sector-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--envitech-heading);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sector-card h4 i {
    color: var(--envitech-blue);
}

.sector-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* GALLERIA INTERATTIVA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #0f172a;
    cursor: pointer;
    border: 1px solid var(--envitech-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 118, 164, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

.gallery-overlay i {
    font-size: 26px;
    margin-bottom: 6px;
}

.gallery-overlay span {
    font-size: 13px;
    font-weight: 600;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
}

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: #ffffff;
    border: 1px solid var(--envitech-border);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.team-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--envitech-blue);
}

.team-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.04);
}

.team-desc {
    padding: 18px 14px;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}

.team-desc h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--envitech-heading);
    margin-bottom: 3px;
}

.team-desc span {
    font-size: 12px;
    color: var(--envitech-blue);
    font-weight: 600;
    display: block;
}

.team-linkedin {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border-radius: 50%;
    color: #0a66c2;
    background: #e8f1f8;
    font-size: 16px;
}

.team-linkedin:hover {
    color: #ffffff;
    background: #0a66c2;
}

.team-linkedin:focus-visible {
    outline: 2px solid var(--envitech-blue-dark);
    outline-offset: 3px;
}

/* CTA STRIP */
.footer-stick-cta {
    display: block;
    background: var(--envitech-blue);
    color: #ffffff;
    padding: 24px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.footer-stick-cta:hover {
    background: var(--envitech-blue-dark);
    color: #ffffff;
}

.footer-stick-cta strong {
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
}

/* CONTACTS & FORM */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.contact-info-block {
    background: #ffffff;
    padding: 30px;
    border: 1px solid var(--envitech-border);
    border-radius: 4px;
}

.contact-info-block h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--envitech-heading);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--envitech-blue);
}

.contact-form-group {
    margin-bottom: 18px;
}

.contact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--envitech-blue);
    box-shadow: 0 0 0 1px var(--envitech-blue);
}

.button-submit {
    display: inline-block;
    padding: 13px 28px;
    background: var(--envitech-blue);
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.button-submit:hover {
    background: var(--envitech-blue-dark);
}

.contact-action-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
}

.contact-action-block h3 {
    margin-bottom: 10px;
    color: var(--envitech-heading);
    font-size: 26px;
    line-height: 1.3;
}

.contact-action-block > p:not(.contact-privacy-note) {
    max-width: 520px;
    margin-bottom: 22px;
    color: #64748b;
}

.contact-mail-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-call-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--envitech-blue-dark);
    font-size: 14px;
    font-weight: 600;
}

.contact-privacy-note {
    max-width: 480px;
    margin-top: 28px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.contact-privacy-note a,
.privacy-section a {
    color: var(--envitech-blue-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-intro {
    padding: 48px 0 58px;
    color: #ffffff;
    background: #111827;
    border-bottom: 5px solid var(--envitech-blue);
}

.privacy-intro .experience-backlink {
    display: flex;
    width: fit-content;
}

.privacy-intro h1 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.2;
}

.privacy-intro p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 16px;
}

.privacy-document .container {
    max-width: 960px;
}

.privacy-contents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    padding: 22px 24px;
    background: var(--envitech-light-bg);
    border: 1px solid var(--envitech-border);
}

.privacy-contents a {
    color: var(--envitech-blue-dark);
    font-size: 14px;
    font-weight: 600;
}

.privacy-contents a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--envitech-border);
    scroll-margin-top: 105px;
}

.privacy-section h2 {
    margin-bottom: 12px;
    color: var(--envitech-heading);
    font-size: 21px;
}

.privacy-section p,
.privacy-section li {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

.privacy-section p + p {
    margin-top: 12px;
}

.privacy-section ul {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding-left: 22px;
}

.privacy-updated {
    padding-top: 24px;
    color: #64748b;
    font-size: 13px;
}

.privacy-footer-link {
    margin-top: 15px;
}

/* FOOTER */
#footer {
    background: var(--envitech-dark-footer);
    color: #94a3b8;
    font-size: 13px;
    padding: 60px 0 30px;
    border-top: 4px solid var(--envitech-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

#footer address {
    font-style: normal;
    line-height: 1.8;
}

#footer strong {
    color: #ffffff;
    font-size: 14px;
}

#footer a {
    color: #cbd5e1;
}

#footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 15px;
}

/* BACK TO TOP BUTTON */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--envitech-blue);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#backToTop.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--envitech-blue-dark);
}

/* COOKIE BANNER GDPR */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #cbd5e1;
    padding: 16px 0;
    font-size: 13px;
    border-top: 1px solid #334155;
    z-index: 1500;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    display: none;
}

#cookieBanner.active {
    display: block;
}

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

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 280px;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--envitech-blue-light);
    text-decoration: underline;
}

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

.btn-cookie-accept {
    background: var(--envitech-blue);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cookie-accept:hover {
    background: var(--envitech-blue-dark);
}

.btn-cookie-close {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
    .motion-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.65, 0.3, 1);
        transition-delay: var(--reveal-delay, 0ms);
    }

    .motion-enabled .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .primary-menu { display: none; }
    .primary-menu-trigger { display: block; }
    .primary-menu.active {
        display: block;
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid var(--envitech-blue);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .primary-menu.active ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .pillars-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .sectors-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    #slider { height: 50vh; min-height: 340px; }
    .experience-teaser .container,
    .experience-heading { align-items: flex-start; flex-direction: column; }
    .process-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .process-steps { grid-template-columns: 1fr; }
    .process-step { padding-right: 0; }
    .process-step + .process-step { margin-top: 22px; padding: 22px 0 0; border: 0; border-top: 1px solid var(--envitech-border); }
    .process-step + .process-step::before { top: -1px; }
    .experience-intro-inner { min-height: 270px; }
    .experience-intro-mark { display: none; }
    .experience-item { grid-template-columns: 125px minmax(0, 1fr); gap: 16px; }
    .experience-meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
    .privacy-intro { padding: 36px 0 42px; }
    .privacy-intro h1 { font-size: 32px; }
    .privacy-contents { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .experience-intro h1 { font-size: 32px; }
    .experience-heading .section-title { font-size: 24px; }
    .experience-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 4px; }
    .experience-meta { grid-column: auto; }
    .experience-item:hover { padding-right: 10px; padding-left: 10px; }
}
