/* ==================================
   FONTS
================================== */
@font-face {
    font-family: 'Bergen Mono';
    src: url('../assets/BergenMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display Pro';
    src: url('../assets/neue-haas-display-pro/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display Pro';
    src: url('../assets/neue-haas-display-pro/NeueHaasDisplayRomanItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display Pro';
    src: url('../assets/neue-haas-display-pro/NeueHaasDisplayMediu.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display Pro';
    src: url('../assets/neue-haas-display-pro/NeueHaasDisplayMediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

/* ==================================
   RESET & BASE
================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img,
video {
    user-select: none;
    -webkit-user-drag: none;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: #342152;
    color: #fff;
}

/* Custom Cursor */
body {
    cursor: none;
    /* Hide default cursor */
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #342152;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    /* mix-blend-mode: exclusion; REMOVED to avoid green color */
}

.custom-cursor.on-dark {
    background-color: #fff !important;
}

.custom-cursor.hovered {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.5;
}

/* Hide custom cursor on mobile/touch devices */
@media (max-width: 768px),
(hover: none) {
    body {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }
}

.mono {
    font-family: 'Bergen Mono', monospace;
}

/* ==================================
   UTILITIES
================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-block {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    .text-block {
        max-width: 100%;
        width: 100%;
    }
}

/* ==================================
   HEADER
================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 40px;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

.logo {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: -1px;
    pointer-events: auto;
}

.nav-toggle {
    font-family: 'Bergen Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .site-header {
        padding: 30px 40px;
    }
}

.full-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ==================================
   HERO VIDEO SECTION
================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    mix-blend-mode: difference;
}

.hero-logo-img {
    width: 60%;
    max-width: 800px;
    height: auto;
    filter: invert(1);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.hero-title {
    font-size: clamp(40px, 12vw, 120px);
    line-height: 0.8;
    font-weight: 400;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    display: none;
    /* Hide original title if kept in markup, but better to remove */
}

.hero-subtitle {
    font-family: 'Bergen Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================
   MANIFESTO / INTRO
================================== */
.manifesto {
    padding: 180px 40px;
    background: #fff;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.manifesto-text {
    font-size: clamp(24px, 4vw, 56px);
    line-height: 1.1;
    max-width: 1400px;
    margin: 0 auto;
    font-weight: 400;
}

.manifesto-text p {
    margin-bottom: 60px;
    opacity: 0.2;
    transition: opacity 0.8s ease;
}

.manifesto-text p.active {
    opacity: 1;
}

.highlight {
    font-weight: 500;
}

/* ==================================
   FLOW SECTIONS (Dynamic Scroll)
================================== */
.flow-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px;
    border-top: 1px solid #000;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}


.flow-header {
    margin: 0 auto 60px;
    padding: 0 40px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

@media (max-width: 768px) {
    .flow-header {
        padding: 0;
        /* Header titles rely on section padding (40px) */
    }
}


.flow-step {
    font-family: 'Bergen Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.6;
}

.flow-title {
    font-size: 6vw;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Layout Variations */
.flow-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
    box-sizing: border-box;
    /* Added for safety */
    padding: 0 40px;
    /* Match header inner padding */
}

.flow-text {
    position: sticky;
    top: 150px;
}

.flow-media {
    position: relative;
    /* Ensure captions inside flow-media don't overflow */
    max-width: 100%;
}

.flow-media img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Full Width Image Section */
.flow-section.full-media {
    padding: 0;
    height: auto;
    min-height: auto;
}

.full-image-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    /* 80px matches the visual alignment of Logo/Flow-Titles (40px + 40px) */
    padding: 0 80px !important;
    transform: translateY(-50%);
    color: #fff;
    text-align: left;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .overlay-text {
        padding: 0 40px !important;
        /* Match header mobile alignment */
    }
}

.overlay-text h3,
.overlay-text p {
    max-width: 500px;
    /* Keeps text block narrow but aligned to left of grid */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
    padding: 0 80px;
    /* Match header inner padding */
    box-sizing: border-box;
}

/* Trace Grid (Sguardo) */
.trace-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 1400px;
    /* Constrain to grid */
    margin: 0 auto;
    /* Center the grid */
    box-sizing: border-box;
    padding: 0 40px;
}

.trace-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.trace-item:hover img {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .flow-content {
        grid-template-columns: 1fr;
        padding: 0;
        /* Section already has 40px padding */
    }

    .flow-text {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .trace-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        /* Section already has 40px padding */
    }
}


/* ==================================
   MENU OVERLAY
================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    align-items: flex-start;
}

.menu-link {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-size: 48px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    align-items: flex-start;
}

@media (min-width: 769px) {
    .menu-footer {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 60px;
        align-items: baseline;
    }
}

.menu-link:hover {
    color: #999;
}

/* ==================================
   DATA GRIDS (Pillars, Tone, Team)
================================== */
.data-grid-section {
    padding: 100px 40px;
    border-top: 1px solid #000;
}

.section-header-small {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
}

.section-title-small {
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #000;
    /* Border effect */
    border: 2px solid #000;
}

.grid-card {
    background: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.grid-card:hover {
    background: #000;
    color: #fff;
}

.team-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-title {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-desc {
    font-family: 'Bergen Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.7;
}

/* ==================================
   RISK TIERS TABLE
================================== */
.risk-table {
    width: 100%;
    border: 2px solid #000;
    border-collapse: collapse;
    font-family: 'Bergen Mono', monospace;
    font-size: 12px;
    margin-top: 20px;
}

.risk-row {
    border-bottom: 1px solid #000;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
}

.risk-row:last-child {
    border-bottom: none;
}

.risk-cell {
    padding: 20px;
    border-right: 1px solid #000;
    display: flex;
    align-items: center;
}

.risk-cell:first-child {
    padding-left: 0;
}

.risk-cell:last-child {
    border-right: none;
    padding-right: 0;
}

.risk-level {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 14px;
}

.risk-desc {
    line-height: 1.4;
}

/* ==================================
   CINEMA SECTION
================================== */
.cinema-section {
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cinema-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cinema-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cinema-video:hover+.cinema-overlay {
    opacity: 0;
}

.play-button {
    font-size: 80px;
    color: #fff;
    mix-blend-mode: difference;
}

/* ==================================
   APP & ECOSYSTEM
================================== */
.app-section {
    background: #000;
    color: #fff;
    padding: 100px 40px;
    text-align: center;
}

.app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.app-mockup {
    width: 300px;
    /* Placeholder for phone width */
    height: 600px;
    border: 2px solid #fff;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Bergen Mono', monospace;
    opacity: 0.5;
}

.btn-download {
    display: inline-block;
    padding: 20px 40px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-family: 'Bergen Mono', monospace;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-download:hover {
    background: #fff;
    color: #000;
}

/* ==================================
   DOCUMENTATION
================================== */
.doc-section {
    padding: 100px 40px;
    background: #f4f4f4;
    border-top: 1px solid #000;
}

.doc-download-card {
    border: 2px solid #000;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: #000;
}

.doc-download-card:hover {
    background: #000;
    color: #fff;
}

.doc-info h4 {
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

.doc-icon {
    font-size: 40px;
}

/* ==================================
   HERO BLUR FIX
================================== */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    /* Strong blur for aesthetic */
    filter: blur(40px);
}

.site-footer {
    background: #000;
    color: #fff;
    padding: 100px 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Old rule removed */

.footer-big-text {
    font-size: clamp(32px, 8vw, 100px);
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -2px;
    color: #fff;
    max-width: 100%;
    word-wrap: break-word;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Bergen Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.5;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* ==================================
   LANGUAGE SWITCHER
================================== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bergen Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
}

.language-switcher span {
    opacity: 0.5;
}

.lang-option {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Bergen Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    padding: 0;
    margin: 0 5px;
}

.lang-option:hover {
    opacity: 0.8;
}

.lang-option.active {
    opacity: 1;
    font-weight: bold;
    text-decoration: underline;
}

.lang-separator {
    opacity: 0.3;
}


/* ==================================
   MOBILE OPTIMIZATION
================================== */
@media (max-width: 768px) {

    /* Layout & Spacing */
    .container {
        padding: 0;
        /* Remove padding - parent sections already have 40px */
    }

    .manifesto {
        padding: 100px 40px;
    }

    .flow-section,
    .data-grid-section,
    .app-section,
    .doc-section {
        padding: 60px 40px;
        /* Match header horizontal padding */
    }

    /* Grids: Stack vertically */
    .grid-3-col {
        grid-template-columns: 1fr;
    }

    .grid-card {
        min-height: auto;
        padding: 30px;
    }

    /* Typography */
    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .manifesto-text {
        font-size: 24px;
    }

    .flow-title {
        font-size: 40px !important;
    }

    .hero-video-wrapper video {
        /* Ensure video covers even on mobile vertical */
        height: 100vh;
        object-fit: cover;
    }

    .app-text .flow-title {
        font-size: 32px !important;
    }

    .site-header {
        padding: 30px 40px;
        /* Match all other sections */
    }

    .text-block {
        font-size: 16px;
    }

    /* Risk Table: Cards instead of Table */
    .risk-row {
        display: flex;
        flex-direction: column;
        border-bottom: 2px solid #000;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .risk-cell {
        border-right: none;
        padding: 10px 0;
    }

    .risk-price {
        justify-content: flex-start;
        color: #666;
    }

    /* Documentation Cards: Stack */
    .doc-download-card {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }

    /* Menu: Smaller Text */
    .menu-link {
        font-size: 32px;
    }

    /* Footer: Fit text */
    .footer-big-text {
        font-size: 40px;
    }

    .footer-content {
        gap: 40px;
        padding: 0;
        /* Footer section already has padding */
    }
}

/* ==================================
   VIBE COLLAGE
================================== */
.vibe-collage {
    margin-top: 60px;
    width: 100%;
}

.vibe-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

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

.v-main {
    grid-row: 1 / span 2;
    height: 500px;
    /* Force height */
}

.v-small {
    height: 240px;
}

/* ==================================
   STICKY GALLERY
================================== */
.sticky-gallery-section {
    position: relative;
    height: 400vh;
    /* Scrollytelling height */
    background: #000;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.sticky-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sticky-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    opacity: 0;
    /* transition removed for sharp switch */
}

.sticky-img.active {
    opacity: 1;
}

.sticky-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

/* ==================================
   MACHINE TABS
================================== */
.machine-tabs-container {
    margin-top: 40px;
    border: 1px solid #000;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #000;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: #fff;
    border: none;
    border-right: 1px solid #000;
    font-family: 'Bergen Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: #000;
    color: #fff;
}

.tab-body {
    padding: 40px;
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .vibe-grid {
        grid-template-columns: 1fr;
    }

    .v-main {
        grid-row: auto;
        height: 300px;
    }

    .v-small {
        height: 180px;
    }

    .sticky-gallery-section {
        height: 300vh;
    }

    /* Machine Tabs on Mobile */
    .tab-headers {
        flex-direction: column;
    }

    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #000;
        padding: 15px;
        font-size: 12px;
    }

    .tab-body {
        padding: 20px;
    }
}

/* ==================================
   LARGE MOCKUPS GRID
================================== */
.mockup-grid-large {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mockup-img-large {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .mockup-grid-large {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==================================
   NEW SECTIONS CSS (STATS, RISK, APP)
================================== */

/* Stats Grid for Scenario */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.stat-card {
    border: 1px solid #ddd;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Bergen Mono', monospace;
    font-size: 60px;
    font-weight: bold;
    color: #342152;
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #888;
}

.stat-desc {
    font-size: 14px;
    line-height: 1.5;
}

/* Risk Tiers */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.risk-card {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.risk-card:hover {
    transform: translateY(-5px);
    border-color: #342152;
}

.tier-badge {
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-family: 'Bergen Mono', monospace;
    display: inline-block;

    margin-bottom: 15px;
}

/* Mobile Adjustments for Risk Table */
@media (max-width: 768px) {
    .risk-invoice-container {
        padding: 20px;
    }

    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Hide table header on mobile */
    .inv-row.header {
        display: none;
    }

    /* Make rows look like cards */
    .inv-row {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 2px solid #eee;
        padding: 20px 0;
        gap: 10px;
    }

    .inv-cell {
        width: 100%;
        padding: 5px 0;
        text-align: left;
    }

    .col-id {
        font-size: 14px;
        opacity: 0.5;
    }

    .col-class {
        font-size: 18px;
        font-weight: bold;
    }

    .col-desc {
        font-size: 14px;
        color: #666;
    }

    .col-val {
        font-size: 16px;
        border-right: none;
        /* Remove border from last cell in desktop view */
        text-align: left;
        color: #342152;
        font-weight: bold;
    }

    /* Add labels for mobile clarity if needed, or rely on context */
    .col-val::before {
        content: "AFFINITÀ: ";
        font-size: 12px;
        opacity: 0.6;
        font-weight: normal;
    }
}

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

.warning-text {
    color: red;
    font-size: 12px;
    margin-top: 10px;
    font-family: 'Bergen Mono', monospace;
}

.malus-block {
    background: #342152;
    color: #fff;
    padding: 30px;
    margin-top: 40px;
}

/* App Section */
.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.app-features li {
    margin-bottom: 15px;
    color: #fff;
    font-size: 14px;
}



/* ==================================
   REFINED RISK TIERS
================================== */
.risk-grid-tight {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #000;
}

/* ==================================
   RISK TIERS V3 (INVOICE STYLE)
================================== */
.risk-invoice-container {
    padding: 20px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 20px;
    border-bottom: 4px solid #000;
    margin-bottom: 0;
}

.invoice-body {
    border-bottom: 1px solid #000;
}

.inv-row {
    display: grid;
    grid-template-columns: 0.5fr 2fr 3fr 1fr;
    border-bottom: 1px solid #ccc;
    min-height: 80px;
}

.inv-row.header {
    background: #f4f4f4;
    border-bottom: 2px solid #000;
    min-height: 40px;
    align-items: center;
}

.inv-row:last-child {
    border-bottom: none;
}

.inv-cell {
    padding: 20px;
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
}

.inv-cell:last-child {
    border-right: none;
    justify-content: flex-end;
}

.col-id {
    color: #999;
}

.col-class {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 16px;
    gap: 10px;
}

.col-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.4;
}

.col-val {
    font-size: 18px;
    font-weight: 400;
}

/* Status Dots */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background: #00cc66;
}

.status-dot.yellow {
    background: #ffcc00;
}

.status-dot.orange {
    background: #ff6600;
}

.status-dot.red {
    background: #ff0000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.alert-row {
    background: #fff0f0;
}

.invoice-footer {
    padding: 30px;
    background: #000;
    color: #fff;
    margin-top: 40px;
    border: 1px solid #000;
}

.inv-malus .title {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    color: #aaa;
}

.inv-malus p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 800px;
}

@media (max-width: 900px) {
    .inv-row {
        grid-template-columns: 1fr;
        padding: 20px 0;
        gap: 10px;
        border-bottom: 2px solid #000;
        height: auto;
    }

    .inv-row.header {
        display: none;
    }

    .inv-cell {
        padding: 5px 20px;
        border: none;
        justify-content: flex-start !important;
        display: block;
    }

    .col-id {
        font-size: 10px;
        opacity: 0.5;
    }

    .col-val {
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 5px;
        width: 100%;
        color: #342152;
    }
}

/* ==================================
   APP SECTION (RESTORATION)
================================== */
.mockup-box-placeholder {
    width: 300px;
    height: 600px;
    border: 4px solid #333;
    border-radius: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.white-border {
    border: 1px solid #fff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-family: 'Bergen Mono', monospace;
    text-transform: uppercase;
    font-size: 12px;
    transition: all 0.3s;
}

.white-border:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {

    /* Global Layout Fixes */
    .container {
        padding: 0;
        /* Sections already provide 40px padding */
    }

    .section-header-small {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }



    /* App Section Mobile */
    .app-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .app-text-block {
        margin: 0 auto;
    }

    .app-mockup-visual {
        margin: 40px auto;
    }

    .mockup-box-placeholder {
        width: 100%;
        /* Responsive width */
        max-width: 300px;
        height: 500px;
        /* Slightly smaller */
    }

    .flow-title {
        font-size: 40px !important;
    }

    /* Exam Presentation Button */
    .btn-presentation {
        display: inline-flex;
        align-items: center;
        gap: 15px;
        background: #000;
        color: #fff;
        padding: 20px 40px;
        font-family: 'Bergen Mono', monospace;
        font-size: 16px;
        text-transform: uppercase;
        text-decoration: none;
        border: 2px solid #000;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .btn-presentation:hover {
        background: #fff;
        color: #000;
        letter-spacing: 1px;
    }

    .btn-icon {
        font-size: 20px;
        transition: transform 0.3s;
    }

    .btn-presentation:hover .btn-icon {
        transform: translateX(5px);
    }
}

/* ==================================
   PRELOADER
================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    width: 100%;
}

.preloader-logo {
    width: 150px;
    height: auto;
    filter: invert(1);
    animation: pulse 2s infinite ease-in-out;
}

.preloader-copyright {
    position: absolute;
    bottom: 40px;
    color: #444;
    font-family: 'Bergen Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

/* ==================================
   PRINT PROTECTION
================================== */
@media print {

    html,
    body {
        background: #000 !important;
        color: #000 !important;
        height: 100vh !important;
        overflow: hidden !important;
        display: block !important;
    }

    /* Hide everything */
    body * {
        display: none !important;
    }

    /* Show only a block message if needed, or just black */
    body::before {
        content: "ALUA PROTECTED CONTENT";
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100%;
        font-family: 'Bergen Mono', monospace;
        font-size: 24px;
        color: #333 !important;
        /* Slightly visible on black */
        background: #000 !important;
        z-index: 99999;
        position: fixed;
        top: 0;
        left: 0;
    }
}

/* ==================================
   LAYOUT OPTIMIZATIONS - 2026-02-07
================================== */

/* App Section - Simplified & Centered */
.app-content-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.app-text-block {
    text-align: left;
    margin: 0 auto;
}

/* Risk Assessment - Cleaner Table */
.risk-invoice-container {
    background: #fff;
    border: 2px solid #000;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid #000;
    background: #f9f9f9;
}

.inv-row {
    display: grid;
    grid-template-columns: 80px 2fr 3fr 1fr;
    border-bottom: 1px solid #ddd;
    min-height: 60px;
    align-items: center;
}

.inv-row.header {
    background: #000;
    color: #fff;
    font-weight: 400;
}

.inv-cell {
    padding: 20px;
    border-right: 1px solid #ddd;
}

.inv-cell:last-child {
    border-right: none;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.green {
    background: #4caf50;
}

.status-dot.yellow {
    background: #ffc107;
}

.status-dot.red {
    background: #f44336;
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {

    /* App Section */
    .app-content-centered .flow-title {
        font-size: clamp(32px, 10vw, 60px) !important;
    }

    .app-mockup-visual img {
        max-width: 280px;
    }

    .app-text-block>div {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Risk Assessment */
    .invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .inv-row {
        grid-template-columns: 1fr;
        padding: 15px 0;
    }

    .inv-cell {
        padding: 8px 20px;
        border: none;
    }

    .col-val {
        padding-top: 15px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    /* Global Typography */
    .text-block {
        font-size: 15px;
        line-height: 1.6;
    }

    .footer-big-text {
        font-size: clamp(32px, 10vw, 60px);
    }
}

/* ==================================
   RISK ASSESSMENT - SIMPLIFIED CARDS
================================== */
.risk-cards-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.risk-card-simple {
    background: #fff;
    border: 2px solid #000;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.risk-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.risk-card-header h4 {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.risk-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.risk-dot.green {
    background: #4caf50;
}

.risk-dot.yellow {
    background: #ffc107;
}

.risk-dot.red {
    background: #f44336;
}

.risk-dot.black {
    background: #000;
}

.risk-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

.risk-card-value {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.risk-card-value .mono {
    font-size: 24px;
    font-weight: 400;
    color: #342152;
}

/* Color accents */
.green-card {
    border-left: 4px solid #4caf50;
}

.yellow-card {
    border-left: 44px solid #ffc107;
}

.red-card {
    border-left: 4px solid #f44336;
}

.black-card {
    border-left: 4px solid #000;
}

/* Mobile: Stack cards */
@media (max-width: 768px) {
    .risk-cards-simple {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .risk-card-simple {
        padding: 20px 15px !important;
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
    }

    .risk-card-header h4 {
        font-size: 15px;
    }

    .risk-card-desc {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .risk-card-value .mono {
        font-size: 18px;
    }
}

/* ==================================
   FOOTER MOBILE IMPROVEMENTS
================================== */
@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px;
    }

    .footer-content {
        gap: 40px;
        padding: 0;
        /* Footer section already has padding */
    }

    .footer-content>div {
        text-align: left;
    }

    .footer-big-text {
        font-size: clamp(28px, 9vw, 50px);
        line-height: 1.1;
        text-align: left;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
        padding-top: 30px;
    }

    .footer-meta img {
        order: -1;
        margin-bottom: 10px;
    }
}

/* ==================================
   MOBILE TEXT FIX - MINIMAL & SAFE
================================== */
@media (max-width: 768px) {

    /* Only fix text wrapping for paragraphs */
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Expand Risk Assessment cards slightly */
    .risk-card-simple {
        padding: 20px 18px;
    }

    .risk-card-desc {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* ==================================
   GLOBAL LAYOUT FIXES
================================== */
html,
body {
    max-width: 100%;
    /* overflow-x: hidden; REMOVED to fix sticky elements */
}

.flow-section,
.data-grid-section,
.app-section,
.doc-section,
.site-footer,
.hero {
    max-width: 100%;
    box-sizing: border-box;
    /* overflow-x: hidden; REMOVED to fix sticky elements */
}

/* Specific Element Fixes */
.hero-logo-img {
    width: 60%;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(40px, 12vw, 120px);
}

.hero-video {
    width: 100%;
    max-width: 100%;
}

.footer-big-text {
    font-size: clamp(32px, 8vw, 100px);
    max-width: 100%;
    word-wrap: break-word;
}

/* Button & Link Constraints */
.btn-download,
.btn-presentation,
.menu-link {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {

    .btn-download,
    .btn-presentation {
        display: block;
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left;
        width: fit-content;
    }
}

/* ==================================
   CONTACT FORM
================================== */
.contact-form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 40px;
    /* Aligned with others */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 0;
        /* Footer provides consistent spacing */
    }
}

.contact-form-header {
    margin-bottom: 40px;
    text-align: left;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    /* Vertical gap 40px, Horizontal 20px */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.full-width {
    grid-column: 1 / -1;
}

.contact-form-label {
    font-family: 'Bergen Mono', monospace;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    display: block;
    /* Ensure it takes full width to align text correctly */
}

.contact-form-input,
.contact-form-textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    color: #fff;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-size: 16px;
    width: 100%;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    border-color: #fff;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 40px;
}

.btn-submit {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-family: 'Bergen Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    width: 100%;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #ccc;
}

#form-status {
    font-family: 'Bergen Mono', monospace;
    font-size: 12px;
    margin-top: 20px;
    text-align: center;
    min-height: 20px;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 0;
        margin-bottom: 40px;
        /* Remove border on mobile for cleaner look or keep it? */
        /* User said "occupa orizzontalmente troppo poco spazio" -> Removing internal padding helps */
    }

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

    .contact-form-header h3 {
        font-size: 24px !important;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    /* Utility: Hide on Mobile */
    .mobile-hide {
        display: none !important;
    }
}

/* ==================================
   VIDEO PLAY OVERLAY BUTTON
================================== */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0;
    pointer-events: auto;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.9;
}

.video-play-overlay svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}


.teaser-replay-section {
    position: relative !important;
}

.cinema-section {
    position: relative;
}

/* Hide play button when video is playing in fullscreen */
video:fullscreen+.video-play-overlay,
video:-webkit-full-screen+.video-play-overlay,
video:-moz-full-screen+.video-play-overlay {
    display: none;
}

/* ==================================
   TRACES MARQUEE
================================== */
.traces-marquee-section {
    padding: 0;
    background: #000;
    overflow: hidden;
    border-bottom: none;
    /* User requested NO line */
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 60s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto;
    height: 300px;
    /* Fixed height for consistency */
    width: auto;
    /* Width adapts to image aspect ratio */
    margin-right: 0;
    overflow: hidden;
    position: relative;
    border-right: 1px solid #fff;
    background: #000;
}

.marquee-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Ensure full image is visible */
    /* Original colors, no grayscale */
    transition: transform 0.5s ease;
}

.marquee-item:hover img {
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==================================
   EXPERIENCE SECTION (Social Proof)
================================== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    padding: 0 40px;
    margin-top: 60px;
}

.experience-item {
    /* Allow varying aspect ratios or keep uniform? 
       Exhibition photos might be landscape/portrait mix. 
       Masonry is hard with pure CSS grid without JS.
       Let's stick to a robust grid. */
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #000;
}

.experience-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.experience-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* ==================================
   TEAM BACKSTAGE SLIDER
================================== */
.team-backstage-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 40px;
    padding-right: 40px;
    margin-bottom: 60px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    cursor: grab;
}

.team-backstage-slider::-webkit-scrollbar {
    display: none;
}

.backstage-item {
    flex: 0 0 400px;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.backstage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.backstage-item:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .marquee-item {
        height: 200px;
    }

    .experience-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
        /* Section already has 40px padding */
    }

    .backstage-item {
        flex: 0 0 80vw;
    }
}

.team-photo-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
}

.team-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.grid-card:hover .team-photo-container img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.app-mockup-img {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-radius: 40px;
    transition: transform 0.5s ease;
}

.app-mockup-img:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .app-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: left !important;
    }

    .app-info h2 {
        text-align: left !important;
        font-size: 50px !important;
    }

    .app-info .text-block {
        margin: 0 0 20px 0 !important;
    }

    /* Align buttons to left */
    .app-info>div:last-child {
        justify-content: flex-start !important;
    }

    .app-visual {
        order: -1;
        margin-bottom: 20px;
        justify-content: center !important;
        /* Image can still be centered or left? usually centered looks ok, but request was about text alignment. I'll keep image centered for now as it's a visual element. */
    }

    .app-visual img {
        max-width: 280px !important;
        transform: none !important;
    }
}

/* ==================================
   PROJECT MAP SECTION
================================== */
.project-map-section {
    background: #f9f9f9;
    border-top: 2px solid #000;
    padding: 60px 80px;
    /* Aligned with Logo (80px) */
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 768px) {
    .project-map-section {
        padding: 60px 40px;
        /* Match header and other sections */
    }
}

/* ==================================
   MOBILE COMPREHENSIVE PADDING FIX
================================== */
@media (max-width: 768px) {

    /* Force all nested containers to have 0 horizontal padding on mobile
       to prevent cumulative padding with parent sections that already have 40px */
    .flow-section .container,
    .data-grid-section .container,
    .app-section .container,
    .doc-section .container,
    .project-map-section .container,
    .section-padding .container,
    section .container,
    .presentation-box,
    .contact-form-container,
    .app-content-centered .container,
    .invoice-container,
    .risk-assessment-section .container,
    .exam-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure all major sections have consistent 40px padding */
    .project-map-section,
    .contact-form-container,
    .app-content-centered,
    .invoice-section,
    .risk-assessment-section,
    .exam-section,
    .section-padding {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}
/* Final fixes for Footer, App Photo, and Project Map alignment */
@media (max-width: 768px) {
    .site-footer {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    
    .app-visual {
        justify-content: flex-start !important;
        padding-left: 0 !important;
    }
    
    .presentation-box {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .project-map-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
