:root {
    --ink: #14171A;
    --ink-soft: #4B5259;
    --ink-faint: #5B6066;
    --paper: #FAFAFA;
    --panel: #F0F1F0;
    --panel-2: #E9EBEA;
    --line: #E1E3E2;
    --surface: #FFFFFF;
    --emerald: #0E7C5A;
    --emerald-deep: #0A6349;
    --emerald-tint: #E3F2EC;
    --emerald-btn: #0E7C5A;
    --emerald-btn-hover: #0A6349;
    --lead-bg: #14171A;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-1: 0 1px 2px rgba(20, 23, 26, 0.06), 0 8px 24px rgba(20, 23, 26, 0.05);
    --maxw: 1180px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #EDEFEE;
        --ink-soft: #B7BCBA;
        --ink-faint: #8B9192;
        --paper: #0E1210;
        --panel: #161A18;
        --panel-2: #1D2220;
        --line: #262B28;
        --surface: #1B201E;
        --emerald: #22C08C;
        --emerald-deep: #1AA279;
        --emerald-tint: rgba(34, 192, 140, 0.14);
        --lead-bg: #123328;
        --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
header.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    flex: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 14.5px;
    font-weight: 600;
    transition: color .2s ease;
}

@media (hover:hover) and (pointer:fine) {
    .nav-links a:hover {
        color: var(--ink);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 160ms var(--ease-out), background 200ms ease, box-shadow 200ms ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--emerald-btn);
    color: #fff;
}

@media (hover:hover) and (pointer:fine) {
    .btn-primary:hover {
        background: var(--emerald-btn-hover);
    }

    .btn-ghost:hover {
        background: var(--panel);
    }
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.nav-cta {
    display: none;
}

@media (min-width:860px) {
    .nav-cta {
        display: inline-flex;
    }
}

.nav-links {
    display: none;
}

@media (min-width:860px) {
    .nav-links {
        display: flex;
    }
}

/* ---------- Hero ---------- */
.hero {
    padding: 64px 0 72px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: center;
}

@media (min-width:920px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 56px;
    }
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--emerald);
    background: var(--emerald-tint);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 18px;
}

.hero-sub {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 0 28px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-ctas .btn {
    padding: 14px 26px;
    font-size: 15px;
}

.fact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.fact-card-title {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    margin-bottom: 18px;
}

.fact-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.fact-row:first-of-type {
    border-top: none;
}

.fact-label {
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 500;
}

.fact-value {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: right;
}

.fact-value.accent {
    color: var(--emerald);
}

/* ---------- Photo band (full-width, cinematic) ---------- */
.photo-band {
    position: relative;
    overflow: hidden;
    min-height: min(58vh, 520px);
    display: flex;
    align-items: flex-end;
}

.photo-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.photo-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 13, 0.05) 30%, rgba(10, 15, 13, 0.78) 100%);
}

.photo-band .band-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 24px 52px;
    max-width: var(--maxw);
    margin: 0 auto;
    color: #fff;
}

.photo-band .band-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    max-width: 22ch;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.photo-band .band-copy p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 52ch;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Sections ---------- */
section {
    padding: 76px 0;
}

section.alt {
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 640px;
    margin: 0 0 44px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
}

.section-head p {
    font-size: 16px;
    color: var(--ink-soft);
    margin: 0;
    max-width: 56ch;
}

/* Reveal: fully visible by default (no JS dependency). Enhanced with a
CSS-only scroll-driven animation where supported; falls back to static
visibility everywhere else, including reduced-motion and no-JS. */
.reveal {
    opacity: 1;
    transform: none;
}

@supports (animation-timeline: view()) {
    .reveal {
        opacity: 0;
        transform: translateY(18px);
        animation: reveal-in linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 35%;
    }
}

@keyframes reveal-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Requisiti: borderless icon+text pairs, no boxed cards */
.req-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 48px;
    row-gap: 0;
}

@media (min-width:720px) {
    .req-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.req-item {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

@media (min-width:720px) {

    .req-item:nth-child(1),
    .req-item:nth-child(2) {
        border-top: none;
    }
}

@media (max-width:719px) {
    .req-item:first-child {
        border-top: none;
    }
}

.req-icon {
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 2px;
    color: var(--emerald);
}

.req-item h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 5px;
}

.req-item p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

/* Spese: grouped clusters */
.cluster {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.cluster-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 18px;
    align-items: start;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.cluster-item:first-child {
    border-top: none;
}

@media (max-width:640px) {
    .cluster-item {
        grid-template-columns: 38px 1fr;
    }

    .cluster-tag {
        grid-column: 2;
        margin-top: 6px;
    }
}

.cluster-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
}

.cluster-body h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 0 0 5px;
}

.cluster-body p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
    max-width: 60ch;
}

.cluster-tag {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--emerald);
    background: var(--emerald-tint);
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
    align-self: center;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width:900px) {
    .timeline {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
        position: relative;
    }

    .timeline::before {
        content: '';
        position: absolute;
        top: 19px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: var(--line);
    }
}

.tl-node {
    position: relative;
    padding: 0 18px 0 0;
}

@media (min-width:900px) {
    .tl-node {
        padding: 0 14px;
        text-align: left;
    }
}

.tl-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--emerald);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

@media (max-width:899px) {
    .tl-node {
        display: flex;
        gap: 16px;
        padding: 0 0 28px 0;
    }

    .tl-node:last-child {
        padding-bottom: 0;
    }

    .tl-dot {
        margin-bottom: 0;
        flex: none;
    }
}

.tl-date {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.tl-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.tl-text {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
}

/* Come Inoke: bento */
.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width:860px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(160px, auto);
    }

    .bento .card-lead {
        grid-column: 1 / -1;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-lead {
    background: var(--lead-bg);
    color: #fff;
    border-color: var(--lead-bg);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.card-lead .card-num {
    color: var(--emerald);
}

.card-lead p {
    color: #C9CDCB;
}

.card-tint {
    background: var(--emerald-tint);
    border-color: var(--emerald-tint);
}

.card-shade {
    background: var(--panel-2);
}

.card-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--emerald-deep);
    letter-spacing: 0.02em;
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.card p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.6;
}

/* Documenti */
.doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width:700px) {
    .doc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 200ms ease, transform 160ms var(--ease-out);
}

@media (hover:hover) and (pointer:fine) {
    .doc-card:hover {
        border-color: var(--emerald);
        transform: translateY(-2px);
    }
}

.doc-card:active {
    transform: scale(0.98);
}

.doc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--emerald-tint);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.doc-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 3px;
}

.doc-meta {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin: 0;
}

.doc-arrow {
    margin-left: auto;
    color: var(--ink-faint);
    flex: none;
}

/* CTA band */
.cta-band {
    background: var(--lead-bg);
    color: #fff;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

@media (min-width:860px) {
    .cta-band {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: stretch;
    }
}

.cta-copy {
    padding: 52px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    align-items: flex-start;
}

.cta-band h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.cta-band p {
    margin: 0;
    color: #B7BCBA;
    font-size: 15px;
    max-width: 44ch;
}

.cta-band .btn-primary {
    padding: 15px 28px;
    font-size: 15.5px;
}

.cta-photo {
    position: relative;
    min-height: 240px;
}

.cta-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width:860px) {
    .cta-photo::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, var(--lead-bg) 0%, transparent 40%);
    }
}

@media (max-width:859px) {
    .cta-photo {
        order: -1;
    }

    .cta-photo::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, transparent 55%, var(--lead-bg) 100%);
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 36px;
}

.foot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.foot-brand {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 6px;
}

.foot-addr {
    font-size: 13.5px;
    color: var(--ink-faint);
    line-height: 1.6;
    margin: 0;
}

.foot-note {
    font-size: 12.5px;
    color: var(--ink-faint);
    border-top: 1px solid var(--line);
    padding-top: 20px;
    line-height: 1.6;
}

.foot-note a {
    color: var(--ink-soft);
    font-weight: 600;
}

svg {
    display: block;
}

/* Decorative geometric "pulse" motif: abstract, not photographic, used to
give momentum/energy to action-oriented panels (hero facts, lead card,
final CTA). Purely ornamental, stroke-only, follows the page's single
accent color so it never breaks the color-consistency lock. */
.pulse-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--emerald);
    pointer-events: none;
    z-index: -1;
}

.fact-card .pulse-art {
    opacity: 0.5;
}

.card-lead .pulse-art {
    opacity: 0.6;
}

.cta-band .pulse-art {
    opacity: 0.9;
}