/* Welcome page sections — Figma Desktop layout */

/* ——— Hero ——— */
.welcome-hero {
    position: relative;
    min-height: min(853px, 100vh);
    display: flex;
    overflow: hidden;
    color: var(--welcome-white);
}

.welcome-hero__media {
    position: absolute;
    inset: 0;
}

.welcome-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.welcome-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
}

.welcome-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(var(--welcome-max), 100%);
    margin: 0 auto;
    padding: 6.5rem var(--welcome-pad) 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    min-height: min(853px, 100vh);
}

.welcome-page .welcome-hero__title,
.welcome-hero__title {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2.75rem, 7.5vw, 5.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--welcome-white);
    text-align: left;
}

.welcome-hero__mark {
    text-decoration: underline;
    text-decoration-color: #4f7cff;
    text-decoration-thickness: 0.14em;
    text-underline-offset: 0.14em;
}

.welcome-hero__bottom {
    max-width: 32rem;
}

.welcome-hero__subtitle {
    margin: 0 0 1.25rem;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.welcome-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ——— Logo band ——— */
.welcome-logo-band {
    background: var(--welcome-white);
    padding: 2.75rem var(--welcome-pad);
}

.welcome-logo-band__inner {
    max-width: var(--welcome-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
}

.welcome-logo-band__logo {
    height: 2.5rem;
    width: auto;
    max-width: 8rem;
    object-fit: contain;
    mix-blend-mode: luminosity;
    opacity: 0.85;
}

/* ——— Process ——— */
.welcome-process {
    --process-accent: #0a0a0a;
    --process-muted: #9e9e9e;
    --process-num-idle: #c4c4c4;
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 6.25rem;
    background: #fff;
    color: var(--welcome-ink);
}

.welcome-process__inner {
    position: relative;
    max-width: min(var(--welcome-max), 100%);
    margin: 0 auto;
    padding: 0 var(--welcome-pad);
}

.welcome-process__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

.welcome-page .welcome-process__title,
.welcome-process__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--welcome-ink);
}

.welcome-process__title-main {
    color: var(--welcome-ink);
}

.welcome-process__title-sub {
    font-size: 0.58em;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--welcome-soft);
}

.welcome-process__row {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: stretch;
}

.welcome-process__cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.welcome-process-card {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--welcome-border);
    padding: 1.65rem 0 1.5rem;
    overflow: visible;
    transition: color 0.25s ease;
}

.welcome-process-card:first-child {
    border-top: none;
    padding-top: 1.85rem;
}

.welcome-process-card:hover .welcome-process-card__name {
    color: #5a5a5a;
}

.welcome-process-card:focus-visible {
    outline: 2px solid var(--process-accent);
    outline-offset: 4px;
}

.welcome-process-card.is-active {
    padding-bottom: 1.9rem;
}

.welcome-process-card__progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--process-accent);
    pointer-events: none;
}

.welcome-process-card__label {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
}

.welcome-process-card__num {
    flex-shrink: 0;
    width: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--process-num-idle);
    transition: color 0.25s ease;
}

.welcome-process-card__name {
    margin: 0;
    flex: 1;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--process-muted);
    transition: color 0.25s ease;
}

.welcome-process-card.is-active .welcome-process-card__num {
    color: var(--process-accent);
}

.welcome-process-card.is-active .welcome-process-card__name {
    color: var(--welcome-ink);
}

.welcome-process-card__text {
    display: block;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--welcome-muted);
    transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
}

.welcome-process-card.is-active .welcome-process-card__text {
    max-height: 8rem;
    opacity: 1;
    margin-top: 1.05rem;
    padding-left: calc(2rem + 0.85rem);
}

.welcome-process__visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    min-height: 0;
    min-width: 0;
    background: transparent;
}

.welcome-process__window {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--welcome-border);
    border-radius: 1.125rem;
    overflow: hidden;
    background: #f4f4f5;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

/* Rendiconta: no macOS chrome — light stage like Misura AI */
.welcome-process__window:has([data-process-stage="1"].is-active) .welcome-process__window-bar {
    display: none;
}

.welcome-process__window:has([data-process-stage="1"].is-active) {
    background: #e8eaee;
    border-color: transparent;
    box-shadow: none;
}

.welcome-process__stages {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: min(30rem, 56vh);
    background: #0f1210;
}

.welcome-process__stage {
    position: absolute;
    inset: 0;
}

.welcome-process__stage[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.welcome-process__stage.is-active {
    visibility: visible;
    pointer-events: auto;
}

.welcome-process__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
}

/* Pre-JS / no-GSAP fallback — GSAP autoAlpha overrides via inline styles */
.welcome-process__stage.is-active .welcome-process__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.welcome-process__caption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.72);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 22rem;
}

.welcome-process__caption-kicker {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--welcome-mint);
}

.welcome-process__caption-title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.welcome-process__caption-sub {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
}

.welcome-process__window-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    background: #ececee;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.welcome-process__window-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    display: inline-block;
}

.welcome-process__window-dot--close {
    background: #ff5f57;
}

.welcome-process__window-dot--min {
    background: #febc2e;
}

.welcome-process__window-dot--max {
    background: #28c840;
}

.welcome-process__visual-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #f4f4f5;
}

/* Misura — live HTML dashboard mock (demo_data numbers) */
.welcome-process__slide--dash {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.welcome-dash {
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 1.1vw, 0.9rem);
    height: 100%;
    min-height: 0;
    padding: clamp(0.85rem, 1.5vw, 1.25rem);
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    color: #121212;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.welcome-dash__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 8px 28px rgba(18, 38, 28, 0.06);
}

.welcome-dash__title {
    margin: 0;
    font-size: clamp(1.1rem, 1.9vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #121212;
}

.welcome-dash__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b6b6b;
}

.welcome-dash__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.welcome-dash__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b6b6b;
}

.welcome-dash__chip--accent {
    background: #fff;
    border-color: rgba(10, 10, 10, 0.2);
    color: #0a0a0a;
}

.welcome-dash__tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    width: fit-content;
    max-width: 100%;
    padding: 0.25rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(18, 38, 28, 0.05);
    overflow-x: auto;
}

.welcome-dash__tab {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b6b6b;
    white-space: nowrap;
}

.welcome-dash__tab.is-active {
    background: #0a0a0a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.2);
}

.welcome-dash__kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.5rem, 0.9vw, 0.75rem);
    flex-shrink: 0;
}

.welcome-dash__kpi {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    padding: clamp(0.7rem, 1.1vw, 1rem);
    border-radius: 1.35rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 28px rgba(10, 10, 10, 0.05);
}

.welcome-dash__kpi--hero {
    background: linear-gradient(145deg, #0a0a0a 0%, #121212 48%, #222 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 40px rgba(10, 10, 10, 0.28);
}

.welcome-dash__kpi--hero .welcome-dash__kpi-label,
.welcome-dash__kpi--hero .welcome-dash__kpi-value {
    color: #fff;
}

.welcome-dash__kpi-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.welcome-dash__kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.welcome-dash__kpi-icon--total {
    background: rgba(255, 255, 255, 0.15);
    color: #6af078;
}

.welcome-dash__kpi-icon--scope1 {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
}

.welcome-dash__kpi-icon--scope2 {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.welcome-dash__kpi-icon--scope3 {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.welcome-dash__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.welcome-dash__badge--scope1 {
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
}

.welcome-dash__badge--scope2 {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.welcome-dash__badge--scope3 {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.welcome-dash__kpi-label {
    margin: 0;
    font-size: clamp(0.6875rem, 1vw, 0.8125rem);
    font-weight: 600;
    line-height: 1.25;
    color: rgba(18, 18, 18, 0.62);
}

.welcome-dash__kpi-value {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: #0a0a0a;
}

.welcome-dash__kpi-pct {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #9e9e9e;
}

.welcome-dash__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(0.5rem, 0.9vw, 0.75rem);
    flex: 1 1 auto;
    min-height: 0;
}

.welcome-dash__card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    padding: clamp(0.7rem, 1.1vw, 1rem);
    border-radius: 1.35rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 28px rgba(10, 10, 10, 0.05);
}

.welcome-dash__card--map {
    grid-row: 1 / span 2;
}

.welcome-dash__card--scope3 {
    grid-column: 2 / span 2;
}

.welcome-dash__card-title {
    margin: 0 0 0.55rem;
    font-size: clamp(0.8rem, 1.1vw, 0.9375rem);
    font-weight: 700;
    color: #121212;
    flex-shrink: 0;
}

.welcome-dash__card-foot {
    margin: 0.45rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b6b6b;
    flex-shrink: 0;
}

.welcome-dash__map {
    position: relative;
    flex: 1 1 auto;
    min-height: 8rem;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #e8eef1;
}

.welcome-dash__map-terrain {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 35% 30%, rgba(106, 240, 120, 0.22), transparent 70%),
        radial-gradient(ellipse 40% 35% at 60% 55%, rgba(37, 99, 235, 0.12), transparent 65%),
        linear-gradient(165deg, #d7e4ea 0%, #c5d4dc 42%, #b7c8d2 100%);
}

.welcome-dash__map-terrain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
}

.welcome-dash__pin {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 1;
}

.welcome-dash__pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #14422d;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(25, 28, 30, 0.35);
}

.welcome-dash__pin--hq .welcome-dash__pin-dot {
    width: 14px;
    height: 14px;
    background: #0a0a0a;
}

.welcome-dash__pin-label {
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e6e6e6;
    font-size: 0.5625rem;
    font-weight: 700;
    color: #121212;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.08);
}

.welcome-dash__donut-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
}

.welcome-dash__donut {
    position: relative;
    width: clamp(4.75rem, 8vw, 6.25rem);
    aspect-ratio: 1;
    border-radius: 50%;
    flex-shrink: 0;
}

.welcome-dash__donut-hole {
    position: absolute;
    inset: 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    line-height: 1.1;
}

.welcome-dash__donut-hole strong {
    font-size: clamp(0.7rem, 1.1vw, 0.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0a0a0a;
}

.welcome-dash__donut-hole small {
    font-size: 0.5625rem;
    font-weight: 600;
    color: #9e9e9e;
}

.welcome-dash__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    font-size: clamp(0.625rem, 0.95vw, 0.75rem);
    font-weight: 500;
    color: #6b6b6b;
}

.welcome-dash__legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.welcome-dash__swatch {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.welcome-dash__breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    flex: 1 1 auto;
}

.welcome-dash__breakdown li {
    display: grid;
    grid-template-columns: 5.1rem minmax(0, 1fr) 2.6rem;
    align-items: center;
    gap: 0.45rem;
}

.welcome-dash__card--scope3 .welcome-dash__breakdown li {
    grid-template-columns: 6rem minmax(0, 1fr) 2.6rem;
}

.welcome-dash__breakdown-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b6b6b;
}

.welcome-dash__breakdown-track {
    height: 0.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.welcome-dash__breakdown-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.welcome-dash__breakdown-val {
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: #0a0a0a;
}

/* Misura slide 1 — light grey gradient stage + larger AI panels */
.welcome-process__slide--ai {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(110% 85% at 12% 8%, rgba(255, 255, 255, 0.85) 0%, transparent 52%),
        radial-gradient(90% 75% at 92% 88%, rgba(210, 214, 220, 0.55) 0%, transparent 48%),
        linear-gradient(155deg, #f3f4f6 0%, #e8eaee 48%, #dde1e7 100%);
}

.welcome-process__window:has(.welcome-process__slide--ai.is-active) .welcome-process__window-bar {
    display: none;
}

.welcome-process__window:has(.welcome-process__slide--ai.is-active) {
    background: #e8eaee;
    border-color: transparent;
    box-shadow: none;
}

.welcome-ai {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: clamp(1.1rem, 2.4vw, 1.85rem);
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    color: #121212;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.welcome-ai__layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 68rem);
    height: 100%;
    min-height: 0;
    /* keep extract overhang inside the stage */
    padding: 2rem 5.25rem 1.15rem 0.75rem;
    box-sizing: border-box;
}

.welcome-ai__stack {
    position: relative;
    width: 100%;
    max-width: 54rem;
    max-height: 100%;
}

/* Frosted glass frame — outer radius lives here */
.welcome-ai__glass {
    position: relative;
    padding: 0.75rem;
    border-radius: 1.65rem;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 240, 246, 0.45) 45%, rgba(255, 255, 255, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 24px 52px rgba(30, 35, 45, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.welcome-ai__glass--extract {
    position: absolute;
    top: -1.5rem;
    right: -4.5rem;
    z-index: 2;
    width: 17.5rem;
    min-width: 16rem;
    padding: 0.65rem;
    border-radius: 1.45rem;
}

.welcome-ai__loader {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    min-width: 0;
    padding: 1.25rem 1.4rem 1.35rem;
    border-radius: 1.1rem;
    background: #fff;
    border: none;
    box-shadow: none;
}

.welcome-ai__loader-body {
    display: grid;
    grid-template-columns: minmax(13rem, 0.95fr) minmax(16rem, 1.25fr);
    gap: 1.15rem;
    align-items: stretch;
    min-height: 14rem;
}

.welcome-ai__extract {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    background: #fff;
    border: none;
    box-shadow: none;
}

.welcome-ai__loader-head,
.welcome-ai__extract-head {
    margin-bottom: 0.65rem;
    flex-shrink: 0;
}

.welcome-ai__loader-title,
.welcome-ai__extract-title {
    margin: 0;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0a0a0a;
}

.welcome-ai__loader-sub,
.welcome-ai__extract-sub {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b6b6b;
}

.welcome-ai__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 1.15rem 1rem;
    margin: 0;
    border: 2px dashed rgba(10, 10, 10, 0.2);
    border-radius: 1rem;
    background: rgba(10, 10, 10, 0.02);
    text-align: center;
    min-height: 100%;
}

.welcome-ai__dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.2rem;
    border-radius: 0.8rem;
    background: #0a0a0a;
    color: #fff;
}

.welcome-ai__dropzone-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0a0a0a;
}

.welcome-ai__dropzone-hint {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #9e9e9e;
}

.welcome-ai__filelist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    overflow: hidden;
    justify-content: center;
}

.welcome-ai__file {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.9rem;
    background: #fafafa;
    border: 1px solid #ececec;
}

.welcome-ai__file-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 1.95rem;
    border-radius: 0.5rem;
    background: #0a0a0a;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.welcome-ai__file-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.welcome-ai__file-meta strong {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a0a0a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-ai__file-meta span {
    font-size: 0.625rem;
    font-weight: 500;
    color: #9e9e9e;
}

.welcome-ai__file-check {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f4f4f5;
    color: #0a0a0a;
    border: 1px solid #e6e6e6;
    font-size: 0.65rem;
    font-weight: 800;
}

.welcome-ai__spinner {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 2px solid #e6e6e6;
    border-top-color: #0a0a0a;
}

.welcome-ai__extract-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.welcome-ai__extract-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 0.95rem;
    background: #0a0a0a;
    color: #fff;
    flex-shrink: 0;
}

.welcome-ai__spark-icon {
    display: block;
    width: 1.7rem;
    height: 1.7rem;
}

.welcome-ai__hits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-height: 0;
}

.welcome-ai__hits li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.8rem;
    background: #fafafa;
    border: 1px solid #ececec;
}

.welcome-ai__hits strong {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a0a0a;
}

.welcome-ai__hits span {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b6b6b;
}

@media (max-width: 900px) {
    .welcome-ai__layout {
        width: 100%;
        padding: 0.5rem 0 0;
        overflow: auto;
        align-items: stretch;
        height: auto;
    }

    .welcome-ai__stack {
        width: 100%;
        max-width: none;
        padding-top: 0.5rem;
    }

    .welcome-ai__loader-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .welcome-ai__glass--extract {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        margin-top: 0.75rem;
    }
}

/* Watershed-style scene: nature + trama + UI panel flush bottom-right */
.welcome-process__slide--scene {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    /* Nature peek top + left; panel touches bottom + right edges */
    padding: clamp(1.75rem, 4vh, 3rem) 0 0 clamp(8%, 9vw, 14%);
    background: #1a2428;
}

.welcome-process__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #1a2428;
    background-image: var(--scene-bg);
    background-position: center 40%;
    background-size: cover;
    background-repeat: no-repeat;
}

.welcome-process__scene-trama {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.55px, transparent 0.85px);
    background-size: 3.25px 3.25px;
    mix-blend-mode: soft-light;
    opacity: 0.9;
    pointer-events: none;
}

.welcome-process__scene-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 16, 0.22) 0%, rgba(8, 12, 16, 0.38) 100%),
        linear-gradient(90deg, rgba(8, 12, 16, 0.08) 0%, transparent 55%, rgba(8, 12, 16, 0.18) 100%);
    pointer-events: none;
}

.welcome-process__scene-card {
    position: relative;
    z-index: 1;
    /* Fills remaining width; sits flush on bottom + right */
    width: 100%;
    max-width: none;
    max-height: calc(100% - clamp(1.75rem, 4vh, 3rem));
    /* Glass only on visible edges (top + left); flush sides stay bare */
    padding: 0.65rem 0 0 0.65rem;
    border-radius: 1.35rem 0 0 0;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.42) 0%, rgba(230, 238, 248, 0.22) 45%, rgba(255, 255, 255, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-right: none;
    border-bottom: none;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

.welcome-process__scene-card-inner {
    height: 100%;
    min-height: 0;
    border-radius: 0.95rem 0 0 0;
    overflow: hidden;
    background: #fff;
}

.welcome-process__scene-card-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    background: #fff;
}

/* Shared subtle light stage (Misura AI / Rendiconta reports / Draft) */
.welcome-process__slide--soft {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(110% 85% at 12% 8%, rgba(255, 255, 255, 0.85) 0%, transparent 52%),
        radial-gradient(90% 75% at 92% 88%, rgba(210, 214, 220, 0.55) 0%, transparent 48%),
        linear-gradient(155deg, #f3f4f6 0%, #e8eaee 48%, #dde1e7 100%);
}

.welcome-reports {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: clamp(1.1rem, 2.4vw, 1.85rem);
    overflow: hidden;
}

.welcome-reports__glass {
    width: min(100%, 48rem);
    max-height: 100%;
}

.welcome-reports .welcome-process__panel {
    height: auto;
    max-height: calc(100% - 0px);
    border-radius: 1.1rem;
    padding: clamp(1.15rem, 2vw, 1.75rem);
}

/* Agisci: same light chrome as Rendiconta soft slides */
.welcome-process__window:has([data-process-stage="2"].is-active) .welcome-process__window-bar {
    display: none;
}

.welcome-process__window:has([data-process-stage="2"].is-active) {
    background: #e8eaee;
    border-color: transparent;
    box-shadow: none;
}

/* Agisci slides — shared soft grey stage (same as Misura AI / Rendiconta) */
.welcome-process__window:has(.welcome-process__slide--soft.is-active:has(.welcome-bi)),
.welcome-process__window:has(.welcome-process__slide--soft.is-active:has(.welcome-deck)) {
    background: #e8eaee;
}

/* Shared purple CTA (match Genera con AI / Genera Presentazione) */
.welcome-bi__ask-btn,
.welcome-deck__ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    font-family: inherit;
    border-radius: 999px;
    padding: 0.8rem 1.05rem;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
    pointer-events: none;
}

/* Agisci slide 1 — Persefoni Copilot-style BI */
.welcome-bi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 1.8vh, 1.15rem);
    height: 100%;
    min-height: 0;
    padding: clamp(1rem, 2.2vw, 1.65rem);
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #18181b;
    -webkit-font-smoothing: antialiased;
}

.welcome-bi__ask {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(100%, 34rem);
    flex-shrink: 0;
}

.welcome-bi__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 10px 28px rgba(24, 24, 27, 0.08);
    font-size: clamp(0.75rem, 1.05vw, 0.875rem);
    font-weight: 500;
    color: #3f3f46;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-bi__stack {
    position: relative;
    width: min(100%, 34rem);
    padding-top: 0.85rem; /* room for aligned sheets above */
}

.welcome-bi__sheet {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 8px 24px rgba(24, 24, 27, 0.06);
    transform-origin: top center;
    pointer-events: none;
}

.welcome-bi__sheet--back {
    transform: translateY(-0.75rem);
    opacity: 0.45;
    z-index: 0;
}

.welcome-bi__sheet--mid {
    transform: translateY(-0.38rem);
    opacity: 0.72;
    z-index: 1;
}

.welcome-bi__answer {
    position: relative;
    z-index: 2;
    padding: 1.1rem 1.25rem 1.2rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 18px 40px rgba(24, 24, 27, 0.1);
}

.welcome-bi__sparkles {
    color: #7c3aed;
    margin-bottom: 0.4rem;
}

.welcome-bi__lead {
    margin: 0 0 0.65rem;
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    line-height: 1.45;
    color: #3f3f46;
}

.welcome-bi__list {
    margin: 0;
    padding: 0 0 0 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    line-height: 1.45;
    color: #52525b;
}

.welcome-bi__list strong {
    color: #18181b;
    font-weight: 700;
}

/* Agisci slide 2 — Genera Presentazione as slide deck */
.welcome-deck {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: clamp(1rem, 2.4vw, 1.85rem);
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #121212;
    -webkit-font-smoothing: antialiased;
}

.welcome-deck__stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.9rem, 2vh, 1.35rem);
    width: min(100%, 40rem);
}

.welcome-deck__ask {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.welcome-deck__input {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-radius: 1.2rem;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 10px 28px rgba(24, 24, 27, 0.08);
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    font-weight: 500;
    line-height: 1.4;
    color: #3f3f46;
}

.welcome-deck__ai-btn {
    align-self: center;
    padding: 0.85rem 1.15rem;
    font-size: 0.8125rem;
}

.welcome-deck__ai-icon {
    display: block;
    animation: welcome-draft-sparkle 2.4s ease-in-out infinite;
}

.welcome-deck__fan {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* PPT landscape */
    margin-top: 0;
    padding-top: 0.75rem; /* aligned stack peek */
}

.welcome-deck__page {
    position: absolute;
    left: 0;
    right: 0;
    top: 1rem;
    bottom: 0;
    border-radius: 0.55rem; /* sharper, more slide-like */
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 16px 36px rgba(24, 24, 27, 0.1);
    transform-origin: top center;
}

.welcome-deck__page--3 {
    transform: translateY(-0.85rem);
    background: #f4f4f5;
    opacity: 0.5;
    z-index: 1;
    box-shadow: none;
}

.welcome-deck__page--2 {
    transform: translateY(-0.42rem);
    background: #fafafa;
    opacity: 0.78;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(24, 24, 27, 0.05);
}

/* Slide 1 — consultant title / cover */
.welcome-deck__page--1 {
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-color: #e4e4e7;
}

.welcome-deck__page--title {
    padding: 0.95rem 1.25rem 0.85rem 1.45rem;
}

.welcome-deck__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.32rem;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

.welcome-deck__title-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

.welcome-deck__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.welcome-deck__logo {
    display: block;
    width: clamp(5.5rem, 12vw, 7rem);
    height: auto;
    flex-shrink: 0;
}

.welcome-deck__conf {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.welcome-deck__title-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 0.75rem 0 0.85rem;
}

.welcome-deck__kicker {
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c3aed;
}

.welcome-deck__cover-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #0a0a0a;
}

.welcome-deck__cover-sub {
    margin: 0;
    max-width: 92%;
    padding-top: 0.7rem;
    border-top: 1px solid #e4e4e7;
    font-size: clamp(0.75rem, 1.15vw, 0.875rem);
    font-weight: 500;
    line-height: 1.4;
    color: #71717a;
}

.welcome-deck__title-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a1a1aa;
}

@media (max-width: 720px) {
    .welcome-bi__ask,
    .welcome-deck__ask {
        flex-direction: column;
        align-items: stretch;
    }

    .welcome-bi__ask-btn,
    .welcome-deck__ai-btn {
        justify-content: center;
        align-self: stretch;
    }

    .welcome-bi__input {
        white-space: normal;
    }
}

.welcome-draft {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: clamp(1.1rem, 2.4vw, 1.85rem);
    color: #121212;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.welcome-draft__glass {
    width: min(100%, 42rem);
    max-height: 100%;
}

.welcome-draft__card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(1.15rem, 2vw, 1.6rem);
    border-radius: 1.1rem;
    background: #fff;
}

.welcome-draft__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.welcome-draft__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b8b8b;
}

.welcome-draft__title {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #121212;
}

/* Match VSME `.btn-ai-explain` purple gradient */
.welcome-draft__ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.8125rem;
    font-family: inherit;
    border-radius: 0.375rem;
    padding: 0.45rem 0.875rem;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    pointer-events: none;
}

.welcome-draft__ai-icon {
    display: block;
    flex-shrink: 0;
    animation: welcome-draft-sparkle 2.4s ease-in-out infinite;
}

@keyframes welcome-draft-sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.15); }
}

.welcome-draft__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

.welcome-draft__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.welcome-draft__label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3a3a3a;
}

.welcome-draft__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    color: #9d174d;
    font-size: 0.6875rem;
    font-weight: 600;
}

/* ESRS-style pink/lavender pending draft */
.welcome-draft__field {
    flex: 1 1 auto;
    min-height: 11rem;
    max-height: 16rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    border-radius: 0.65rem;
    background: #fdf2f8;
    border: 1px solid #f9a8d4;
    color: #4a1d36;
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    line-height: 1.5;
}

.welcome-draft__field p {
    margin: 0;
}

.welcome-draft__field strong {
    color: #831843;
    font-weight: 700;
}

.welcome-draft__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.9rem;
    flex-shrink: 0;
}

.welcome-draft__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    pointer-events: none;
    cursor: default;
}

.welcome-draft__btn--ghost {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.welcome-draft__btn--confirm {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.28);
}

/* Real HTML choose-report panel — replaces low-res screenshot */
.welcome-process__panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    background: #fff;
    color: #121212;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.welcome-process__panel-head {
    margin: 0 0 1.25rem;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}

.welcome-process__panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
    flex: 1 1 auto;
    min-height: 0;
}

.welcome-process__panel-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.welcome-process__panel-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: #f4f4f5;
    border: 1px solid #e6e6e6;
    overflow: hidden;
}

.welcome-process__panel-visual--esrs {
    background: #0a0a0a;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.welcome-process__panel-mark {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0a0a0a;
}

.welcome-process__panel-mark--esrs {
    color: #fff;
    z-index: 1;
}

.welcome-process__panel-stars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12%;
    color: #fff;
    opacity: 0.9;
    pointer-events: none;
}

.welcome-process__panel-logo {
    max-width: 78%;
    max-height: 58%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.welcome-process__panel-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 1.9vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}

.welcome-process__panel-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.welcome-process__panel-title {
    display: block;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    margin: 0 0 0.25rem;
}

.welcome-process__panel-subtitle {
    display: block;
    font-size: clamp(0.625rem, 0.95vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9e9e9e;
    margin: 0 0 0.5rem;
}

.welcome-process__panel-desc {
    font-size: clamp(0.75rem, 1.05vw, 0.875rem);
    line-height: 1.45;
    color: #6b6b6b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 960px) {
    .welcome-process__panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-dash__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-dash__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .welcome-dash__card--map {
        grid-row: auto;
        grid-column: 1 / span 2;
        min-height: 10rem;
    }

    .welcome-dash__card--scope3 {
        grid-column: 1 / span 2;
    }
}

@media (max-width: 720px) {
    .welcome-process__slide--scene {
        justify-content: center;
        align-items: flex-end;
        padding: 1.25rem 0 0 0;
    }

    .welcome-process__scene-card {
        width: 100%;
        max-height: calc(100% - 1.25rem);
        padding: 0.65rem 0.65rem 0;
        border-radius: 1.35rem 1.35rem 0 0;
        border-right: 1px solid rgba(255, 255, 255, 0.55);
        border-left: 1px solid rgba(255, 255, 255, 0.55);
    }

    .welcome-process__scene-card-inner {
        border-radius: 0.95rem 0.95rem 0 0;
    }

    .welcome-process__stages {
        min-height: 22rem;
        aspect-ratio: 4 / 3;
    }

    .welcome-process__panel {
        padding: 1.25rem;
    }

    .welcome-process__panel-head {
        margin-bottom: 1rem;
    }

    .welcome-dash__grid {
        grid-template-columns: 1fr;
    }

    .welcome-dash__card--map,
    .welcome-dash__card--scope3 {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .welcome-process__panel-grid,
    .welcome-dash__kpis {
        grid-template-columns: 1fr;
    }
}

.welcome-process__logos {
    list-style: none;
    margin: 0;
    /* Match dashboard screenshot content gutters (same width as window above) */
    padding: 0.35rem 1.15rem 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.welcome-process__logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    height: 5rem;
    padding: 0;
}

.welcome-process__logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 3.75rem;
    object-fit: contain;
    object-position: center;
}

/* Wide wordmarks: height-led, but never wider than the column */
.welcome-process__logo-img--wri {
    height: calc(4.5rem - 2px);
    max-width: 100%;
    width: auto;
}

.welcome-process__logo-img--pcaf,
.welcome-process__logo-img--ipcc,
.welcome-process__logo-img--natura {
    height: 4.5rem;
}

.welcome-process__logo-img--epa,
.welcome-process__logo-img--iea {
    height: 3.75rem;
}

/* ——— Mission ——— */
.welcome-mission {
    padding: 2rem 0 3rem;
}

.welcome-mission__inner {
    max-width: var(--welcome-max);
    margin: 0 auto;
    padding: 0 var(--welcome-pad);
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 2rem 3.75rem;
    align-items: start;
}

.welcome-mission__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    gap: 6rem;
}

.welcome-mission__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: var(--welcome-muted);
}

.welcome-mission__aside {
    margin: 0;
    max-width: 340px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--welcome-muted);
}

.welcome-mission__headline {
    margin: 0 0 2.5rem;
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    font-weight: 600;
    line-height: 1.22;
    color: var(--welcome-ink);
}

.welcome-mission__foot {
    margin: 0;
    text-align: right;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.6;
    color: var(--welcome-muted);
}

/* ——— Resources (Watershed-style content cards) ——— */
.welcome-resources {
    padding: 1.5rem 0 5.5rem;
    background: var(--welcome-white);
}

.welcome-resources__inner {
    max-width: var(--welcome-max);
    margin: 0 auto;
    padding: 0 var(--welcome-pad);
}

.welcome-resources__head {
    margin-bottom: 2.5rem;
    max-width: 40rem;
}

.welcome-resources__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3.5vw, 2.625rem);
    font-weight: 600;
    line-height: 1.12;
    color: var(--welcome-ink);
}

.welcome-page .welcome-resources__title {
    color: var(--welcome-ink);
}

.welcome-resources__lead {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.5;
    color: var(--welcome-muted);
}

.welcome-resources__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.welcome-resource {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.85rem 0.85rem 1.25rem;
    border: 1px solid var(--welcome-border);
    border-radius: 0.75rem;
    background: var(--welcome-white);
    box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
}

.welcome-resource:hover {
    transform: translateY(-0.4rem);
    border-color: #d4d4d4;
    box-shadow:
        0 18px 40px rgba(18, 18, 18, 0.1),
        0 4px 12px rgba(18, 18, 18, 0.06);
}

.welcome-resource:hover .welcome-resource__img {
    transform: scale(1.04);
}

.welcome-resource:hover .welcome-resource__more {
    opacity: 1;
    gap: 0.45rem;
}

.welcome-resource:hover .welcome-resource__more::after {
    transform: translateX(0.2rem);
}

.welcome-resource__media {
    position: relative;
    margin-bottom: 1.15rem;
    /* Title-only crop from PDF covers (wide band) */
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: 0.45rem;
    background: #1a3a2a;
}

.welcome-resource__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.welcome-resource__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0 0.35rem;
    min-height: 0;
    gap: 0;
}

.welcome-resource__kicker {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--welcome-muted);
}

.welcome-resource__name {
    margin: 0 0 0.4rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--welcome-ink);
}

.welcome-page .welcome-resource__name {
    color: var(--welcome-ink);
}

.welcome-resource__desc {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--welcome-muted);
}

.welcome-resource__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--welcome-ink);
    opacity: 0.72;
    transition: opacity 0.25s ease, gap 0.25s ease;
}

.welcome-resource__more::after {
    content: '→';
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .welcome-resource,
    .welcome-resource__img,
    .welcome-resource__more,
    .welcome-resource__more::after {
        transition: none;
    }

    .welcome-resource:hover {
        transform: none;
    }

    .welcome-resource:hover .welcome-resource__img {
        transform: none;
    }
}

/* ——— Stats ——— */
.welcome-stats {
    padding: 0 0 2rem;
    background: transparent;
}

.welcome-stats__grid {
    max-width: var(--welcome-max);
    margin: 0 auto;
    padding: 0 var(--welcome-pad);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.welcome-stat {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--welcome-border);
    min-height: 0;
}

.welcome-stat--light {
    background-color: var(--welcome-white);
    color: var(--welcome-ink);
}

.welcome-stat--dark {
    background: var(--welcome-black);
    color: var(--welcome-white);
    border-color: var(--welcome-black);
}

.welcome-stat__value {
    margin: 0 0 auto;
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.welcome-stat__label {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.25;
}

.welcome-stat__note {
    margin: auto 0 0;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: var(--welcome-soft);
    text-transform: uppercase;
}

.welcome-stat--light .welcome-stat__note {
    color: #a3a3a3;
}

/* ——— Solutions ——— */
.welcome-solutions {
    padding: 4.5rem 0 5.5rem;
    background: var(--welcome-black);
}

.welcome-solutions__inner {
    max-width: var(--welcome-max);
    margin: 0 auto;
    padding: 0 var(--welcome-pad);
}

.welcome-solutions__title {
    margin: 0 0 3rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--welcome-white);
}

.welcome-page .welcome-solutions__title {
    color: var(--welcome-white);
}

.welcome-solutions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.welcome-sol {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.welcome-sol--dark {
    background: var(--welcome-mint);
    color: var(--welcome-ink);
    border-color: var(--welcome-mint);
}

.welcome-sol--light {
    background: var(--welcome-white);
    color: var(--welcome-ink);
    border-color: rgba(255, 255, 255, 0.12);
}

.welcome-sol__title {
    margin: 0 0 1.75rem;
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    font-weight: 600;
    line-height: 1.12;
    color: inherit;
}

/* Beat .welcome-page h3 { color: ink } — keep ink on mint cards */
.welcome-page .welcome-sol--dark .welcome-sol__title {
    color: var(--welcome-ink);
}

.welcome-sol__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.welcome-sol__list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.welcome-sol--dark .welcome-sol__list li {
    color: rgba(18, 18, 18, 0.72);
}

.welcome-sol--light .welcome-sol__list li {
    color: var(--welcome-ink);
}

.welcome-sol__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.welcome-sol__foot {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-sol__desc {
    margin: 0;
    flex: 1;
    font-size: clamp(0.875rem, 1.15vw, 1rem);
    line-height: 1.55;
    color: rgba(18, 18, 18, 0.55);
}

.welcome-sol--light .welcome-sol__desc {
    color: var(--welcome-muted);
}

/* ——— Testimonials ——— */
.welcome-testimonials {
    padding: 1.25rem 0 6rem;
}

.welcome-testimonials__inner {
    max-width: var(--welcome-max);
    margin: 0 auto;
    padding: 0 var(--welcome-pad);
}

.welcome-testimonials__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--welcome-muted);
}

.welcome-testimonials__title {
    margin: 0 0 2rem;
    font-size: clamp(1.75rem, 3.5vw, 2.625rem);
    font-weight: 600;
    line-height: 1.12;
}

.welcome-testimonials__client {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: var(--welcome-ink);
}

.welcome-testimonials__person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.welcome-testimonials__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #d9d9d9;
    flex-shrink: 0;
}

.welcome-testimonials__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--welcome-ink);
}

.welcome-testimonials__role {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--welcome-muted);
}

.welcome-quote {
    margin: 0 0 2rem;
}

.welcome-quote__lead {
    margin: 0 0 0.85rem;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--welcome-ink);
}

.welcome-quote__follow {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.4;
    color: var(--welcome-muted);
}

/* ——— Footer ——— */
.welcome-footer {
    background: var(--welcome-black, #0a0a0a);
    color: var(--welcome-white, #fff);
    padding: 5rem 0 3.75rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px; /* base — all footer text scales from this */
    line-height: 1.5;
}

.welcome-footer__inner {
    max-width: var(--welcome-max);
    margin: 0 auto;
    padding: 0 var(--welcome-pad);
}

.welcome-footer__row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

.welcome-footer__logo {
    margin: 0 0 1.1rem;
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--welcome-white, #fff);
}

.welcome-footer__tagline {
    margin: 0 0 1rem;
    max-width: 24rem;
    font-size: 0.75rem !important; /* 12px */
    line-height: 1.6;
    font-weight: 400;
    color: var(--welcome-soft, #9e9e9e);
}

.welcome-footer__tagline-caps {
    margin: 0;
    max-width: 24rem;
    font-size: 0.625rem !important; /* 10px */
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.7;
    color: var(--welcome-soft, #9e9e9e);
}

.welcome-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.welcome-footer__col-title {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem !important; /* 11px */
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: var(--welcome-soft, #9e9e9e);
}

.welcome-footer__link,
.welcome-footer__text {
    margin: 0;
    font-size: 0.8125rem !important; /* 13px — same on all pages */
    font-weight: 500;
    line-height: 1.5;
    color: var(--welcome-white, #fff);
    text-decoration: none;
}

.welcome-footer__link:hover {
    opacity: 0.8;
}

.welcome-footer__link--accent {
    color: var(--welcome-accent, #2e8c57);
}

/* Partner logos — one group under Soluzioni + Risorse columns */
.welcome-footer__partners-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-footer__partners {
    grid-column: 3 / 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.welcome-footer__partner-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.welcome-footer__partner-logo--24ore {
    height: 2.35rem;
    max-width: 9.5rem;
}

.welcome-footer__partner-logo--eu {
    height: 2.1rem;
}

.welcome-footer__partner-logo--mef {
    height: 1.85rem;
    max-width: 9.5rem;
    /* Dark MEF mark → white on black */
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.welcome-footer__partner-logo--efrag {
    height: 2rem;
    max-width: 9rem;
    /* Keep orange/grey EFRAG colors; light plate so grey wordmark reads on black */
    padding: 0.35rem 0.55rem;
    border-radius: 0.35rem;
    background: #fff;
}

.welcome-footer__bar {
    margin-top: 3.125rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.welcome-footer__copy {
    margin: 0;
    font-size: 0.6875rem !important; /* 11px */
    line-height: 1.5;
    font-weight: 400;
    color: var(--welcome-soft, #9e9e9e);
}

.welcome-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.welcome-footer__legal a,
.welcome-footer .iubenda-embed,
.welcome-footer a.iubenda-white {
    font-size: 0.6875rem !important; /* 11px — match copy */
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--welcome-soft, #9e9e9e) !important;
    text-decoration: none !important;
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
    .welcome-process__row {
        grid-template-columns: 1fr;
    }

    .welcome-process__visual {
        order: -1;
    }

    .welcome-process__logos {
        flex-wrap: wrap;
    }

    .welcome-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-resources__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-mission__inner,
    .welcome-testimonials__inner {
        grid-template-columns: 1fr;
    }

    .welcome-mission__left {
        gap: 1.5rem;
    }

    .welcome-mission__foot {
        text-align: left;
    }

    .welcome-footer__row,
    .welcome-footer__partners-row {
        grid-template-columns: 1fr 1fr;
    }

    .welcome-footer__partners {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .welcome-process__logos {
        padding-inline: 0.85rem;
    }

    .welcome-process__logo-item {
        flex: 1 1 calc(33.333% - 0.65rem);
        height: 4.25rem;
    }

    .welcome-process__logo-img {
        height: 3.25rem;
    }

    .welcome-process__logo-img--wri {
        height: calc(3.75rem - 2px);
    }

    .welcome-hero,
    .welcome-hero__content {
        min-height: 85vh;
    }

    .welcome-page .welcome-hero__title,
    .welcome-hero__title {
        max-width: none;
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .welcome-logo-band__inner {
        justify-content: center;
    }

    .welcome-solutions__grid,
    .welcome-stats__grid,
    .welcome-resources__grid,
    .welcome-footer__row,
    .welcome-footer__partners-row {
        grid-template-columns: 1fr;
    }

    .welcome-footer__partners {
        grid-column: 1;
    }

    .welcome-sol {
        min-height: 0;
    }

    .welcome-stat {
        aspect-ratio: auto;
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-btn {
        transition: none;
    }

    .welcome-btn:hover {
        transform: none;
    }
}
