/* ============================================
   Virtual Land — "The Sensitive Rationalist"
   ============================================ */

:root {
    /* Surface hierarchy */
    --surface:                 #ffffff;
    --surface-container-lowest:#ffffff;
    --surface-container-low:   #f5f5f3;
    --surface-container:       #eeeeeb;
    /* Content */
    --on-background:           #191c1b;
    --on-surface-variant:      #43493f;
    --outline:                 #74796d;
    --outline-variant:         #c5c8b6;
    /* Primary */
    --primary:                 #4d6712;
    --primary-container:       #cdef8e;
    --surface-tint:            #4d6712;
    /* Radius */
    --radius:    10px;
    /* Ambient shadow */
    --shadow-ambient: 0 8px 48px rgba(77, 103, 18, 0.05);
    /* Ghost border */
    --ghost-border: 1px solid rgba(197, 200, 182, 0.15);

    /* Section backgrounds */
    --sage-light:  #d4e4c8;
    --sage-mid:    #b0cca0;
    --forest:      #1e3a1e;
    --forest-mid:  #2d5a2d;

    /* Aliases for backward compat in HTML inline styles */
    --bone:      var(--surface);
    --ink:       var(--on-background);
    --graphite:  var(--on-surface-variant);
    --mist:      var(--outline);
    --moss:      var(--primary);
    --sage:      var(--primary-container);
    --clay:      var(--primary);
    --night:     var(--on-background);
    --chalk:     var(--surface-container-lowest);
}

/* ── Section Backgrounds ─────────────────── */
.bg-surface { background-color: var(--surface); }

.bg-sage {
    background-color: var(--sage-light);
}

.bg-sage-pattern {
    background-color: var(--sage-light);
    background-image: radial-gradient(circle, var(--on-background) 0.8px, transparent 0.8px);
    background-size: 20px 20px;
    background-position: 0 0;
    background-blend-mode: normal;
}
.bg-sage-pattern { --dot-opacity: 0.07; }
.bg-sage-pattern {
    background-image: radial-gradient(circle, rgba(25, 28, 27, 0.07) 0.8px, transparent 0.8px);
}

.bg-forest {
    background-color: var(--forest);
    color: #fff;
}
.bg-forest h1, .bg-forest h2, .bg-forest h3,
.bg-forest .section-label, .bg-forest .section-label::before,
.bg-forest .page-label { color: rgba(255,255,255,0.95); }
.bg-forest .section-label::before { background: rgba(255,255,255,0.3); }
.bg-forest .lead, .bg-forest p, .bg-forest .card-label,
.bg-forest .market-label, .bg-forest .market-item h4,
.bg-forest .tab-btn,
.section.bg-forest .lead,
.cta-section.bg-forest .lead { color: rgba(255,255,255,0.85); }
.bg-forest .agent-num, .bg-forest .agent .role { color: rgba(255,255,255,0.55); }
.bg-forest .agent p { color: rgba(255,255,255,0.85); }
.bg-forest .card-num { color: rgba(255,255,255,0.2); }
.bg-forest .agent { border-left-color: rgba(255,255,255,0.15); }
.bg-forest .agent:hover { background: rgba(255,255,255,0.05); }
.bg-forest .btn { background: #fff; color: var(--forest); }
.bg-forest .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.bg-forest .btn-white { background: #fff; color: var(--forest); }
.bg-forest .tab-btn { color: rgba(255,255,255,0.5); border-bottom-color: transparent; }
.bg-forest .tab-btn.active, .bg-forest .tab-btn:hover {
    color: #fff; border-bottom-color: rgba(255,255,255,0.6);
}
.bg-forest .tab-content p { color: rgba(255,255,255,0.7); }
.bg-forest .tab-content h4 { color: rgba(255,255,255,0.4); }
.bg-forest .highlight-text {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
}
.bg-forest .compare-table td { color: rgba(255,255,255,0.7); }
.bg-forest .compare-table td:first-child { color: #fff; }
.bg-forest .compare-table td.highlight { background: rgba(255,255,255,0.08); color: #fff; }

.bg-forest-pattern {
    background-color: var(--forest);
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    color: #fff;
}
.bg-forest-pattern h1, .bg-forest-pattern h2, .bg-forest-pattern h3 { color: #fff; }
.bg-forest-pattern .lead, .bg-forest-pattern p { color: rgba(255,255,255,0.7); }
.bg-forest-pattern .btn { background: #fff; color: var(--forest); }

/* Section illustration positioning */
.section-illust {
    position: relative;
    overflow: hidden;
}
.section-illust__img {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(240px, 35vw, 500px);
    height: auto;
    opacity: 0.25;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}
.section-illust > *:not(.section-illust__img) {
    position: relative;
    z-index: 1;
}
/* Full-size illustration as section watermark */
.section-illust__img--full {
    width: clamp(400px, 50vw, 650px);
    right: -3rem;
    top: 2rem;
    transform: none;
    opacity: 0.35;
}

.bg-forest .section-illust__img,
.bg-forest-pattern .section-illust__img {
    opacity: 0.15;
    filter: invert(1);
}

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

body {
    font-family: "Epilogue", sans-serif;
    font-size: 15px;
    background-color: var(--surface);
    color: var(--on-background);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ── Typography ────────────────────────────── */
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }

/* ── Navbar ─────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    transition: padding 0.4s ease;
}
.nav.shrink { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.nav.shrink .logo { width: clamp(100px, 10vw, 130px); }

.logo-link { text-decoration: none; color: inherit; display: inline-flex; }
.logo {
    width: clamp(130px, 13vw, 170px);
    height: auto;
    color: var(--ink);
    transition: width 0.4s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--mist);
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0;
    height: 1px;
    background: var(--moss);
    transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── Hamburger ──────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none; border: none; padding: 0;
}
.hamburger span {
    display: block;
    width: 26px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile Menu ────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--surface);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.mobile-menu a {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.8rem;
    color: var(--ink);
    text-decoration: none;
    transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--moss); }
.mobile-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none; border: none;
    color: var(--ink);
}

/* ── Page Layout ────────────────────────────── */
.page-body {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Hero — Homepage ────────────────────────── */
.hero-split {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 90vh;
    align-items: center;
    overflow: hidden;
    background: #fff;
}
.hero-text-wrap {
    padding: 6rem 4.5rem 4rem;
    padding-left: clamp(3rem, 10vw, 10rem);
}
.hero-text-wrap .page-label {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 2rem;
}
.hero-text-wrap h1 {
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.hero-text-wrap h1 em {
    font-style: italic;
    color: var(--moss);
}
.hero-divider {
    width: 80px; height: 2px;
    background: var(--primary);
    margin: 1.5rem 0 1.5rem;
}
.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--graphite);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}
.hero-image-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 1rem 0;
}
.hero-image-wrap img {
    width: 110%;
    max-width: none;
    max-height: 85vh;
    object-fit: contain;
    mix-blend-mode: darken;
    margin-right: -5%;
}

/* ── Page Hero — Inner Pages ────────────────── */
.page-hero {
    position: relative;
    overflow: hidden;
}
.page-hero--image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
}
.page-hero--image > .page-hero__text { align-self: center; }
.page-hero--image > .page-hero__image { align-self: stretch; }
.page-hero__text {
    padding: 4rem 4.5rem;
}
.page-hero__image {
    position: relative;
    min-height: 400px;
    height: 100%;
    overflow: hidden;
}
.page-hero__image img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.page-hero__image::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, var(--bone) 0%, transparent 30%);
}
/* Illustration variant for page hero */
.page-hero__image--illust {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}
.page-hero__image--illust img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    mix-blend-mode: darken;
}
.page-hero__image--illust::after { display: none; }

.page-hero--simple {
    padding: 4rem 4.5rem 3rem;
    /* no-line: tonal transition */
}

.page-label {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 1.5rem;
}
.page-hero h1, .page-hero--simple h1 {
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    max-width: 680px;
}
.page-hero .lead, .page-hero--simple .lead {
    font-size: 1rem;
    color: var(--graphite);
    line-height: 1.7;
    max-width: 540px;
    margin-top: 1.5rem;
}

/* ── Sections ────────────────────────────────── */
.section {
    padding: 4rem 4.5rem;
    /* no-line: tonal transition */
}
.section--alt { background: var(--sage-light); }
.section-label {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 2rem; height: 1px;
    background: var(--mist);
}
.section h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.section .lead {
    font-size: 1rem;
    color: var(--graphite);
    line-height: 1.7;
    max-width: 600px;
}

/* ── Staggered Cards (Homepage) ──────────────── */
.cards-staggered {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.card-featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--surface-container-lowest);
    border-radius: var(--radius);
    box-shadow: var(--shadow-ambient);
}
.card-num {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}
.card-featured h3 {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--ink);
}
.card-featured p {
    font-size: 0.875rem;
    color: var(--graphite);
    line-height: 1.7;
}

.cards-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 0;
}
.card-std {
    padding: 2rem;
    box-shadow: var(--shadow-ambient);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-std:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.card-std .card-num {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.card-std h3 {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.card-std p {
    font-size: 0.875rem;
    color: var(--graphite);
    line-height: 1.7;
}

/* ── Ambiti Cards ────────────────────────────── */
.ambiti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: stretch;
}
.ambito-card {
    padding: 2.5rem 2rem;
    background: var(--forest-mid);
    color: #fff;
    border-radius: var(--radius);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.bg-forest .ambito-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}
.ambito-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25) !important;
}
.bg-forest .ambito-card:hover {
    background: rgba(255,255,255,0.14);
}
.ambito-card .card-label {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 1rem;
}
.ambito-card h3 {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}
.ambito-card p {
    font-size: 0.82rem;
    line-height: 1.7;
    opacity: 0.7;
    flex: 1;
}
.ambito-card .card-meta {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
    flex: 0 0 auto;
}
.ambito-card .card-meta strong {
    font-weight: 500;
    letter-spacing: 0.02em;
}
.ambito-card .card-role {
    display: block;
    font-family: "Epilogue", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-top: 0.25rem;
}
.ambito-card .speaker-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.ambito-card .speaker-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.ambito-card .speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ambito-card .speaker-id { min-width: 0; }
.ambito-card .speaker-head h3 { margin-bottom: 0; }

/* ── CTA Section ─────────────────────────────── */
.cta-section {
    position: relative;
    padding: 6rem 4.5rem;
    background: var(--forest);
    color: #fff;
    overflow: hidden;
    text-align: center;
}
.cta-section::before { content: none; }
.cta-section--image {
    background-size: cover;
    background-position: center;
}
.cta-section--image::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background: rgba(30,58,30,0.82);
    transform: none;
    left: 0;
    top: 0;
    border-radius: 0;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3rem);
    max-width: 700px;
    margin: 0 auto 1rem;
}
.cta-section .lead {
    color: rgba(255,255,255,0.6);
    margin: 0 auto 2.5rem;
    max-width: 500px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.cta-section .btn {
    padding: 1.1rem 3rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--ink);
    color: var(--bone);
    text-decoration: none;
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 1rem;
    margin-bottom: 0.75rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.btn-white {
    background: #fff;
    color: var(--night);
}
.btn-clay {
    background: var(--primary);
    color: #fff;
}

/* ── Compare Table (Rolechat) ────────────────── */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%; min-width: 540px;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 3rem;
    font-size: 0.8rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.compare-table th {
    text-align: left; padding: 1rem 1.2rem;
    background: var(--night); color: #fff;
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-weight: 400; font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.compare-table td {
    padding: 1rem 1.2rem;
    /* no-line: tonal transition */
    color: var(--graphite);
}
.compare-table tr:hover td { background: var(--surface-container-low); }
.compare-table td:first-child { font-weight: 500; color: var(--ink); }
.compare-table td.highlight {
    color: var(--ink); font-weight: 500;
    background: var(--surface-container-low);
}
.compare-table th:last-child { color: var(--sage); }

/* ── Agents (Rolechat) ───────────────────────── */
.agents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 3rem;
}
.agent {
    padding: 2.5rem 2rem;
    border-left: 3px solid transparent;
    transition: background 0.3s ease;
}
.agent:nth-child(1) { border-left-color: var(--clay); }
.agent:nth-child(2) { border-left-color: var(--moss); }
.agent:nth-child(3) { border-left-color: var(--sage); }
.agent:hover { background: var(--chalk); }
.agent-num {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--mist);
    margin-bottom: 1rem;
}
.agent h3 {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}
.agent .role {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.68rem;
    color: var(--mist);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.agent p {
    font-size: 0.82rem;
    color: var(--graphite);
    line-height: 1.7;
}

/* ── Tabs (Rolechat estensione narrativa) ──── */
.tabs-nav {
    display: flex;
    gap: 0;
    /* no-line: ghost border */ border-bottom: var(--ghost-border);
    margin-top: 2rem;
}
.tab-btn {
    padding: 1rem 2rem;
    background: none; border: none;
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mist);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.tab-btn.active, .tab-btn:hover {
    color: var(--ink);
    border-bottom-color: var(--primary);
}
.tab-content {
    display: none;
    padding: 2rem 0;
    animation: tabFade 0.4s ease;
}
.tab-content.active { display: block; }
@keyframes tabFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tab-content h4 {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 0.4rem;
    margin-top: 1rem;
}
.tab-content h4:first-child { margin-top: 0; }
.tab-content p { font-size: 0.88rem; color: var(--graphite); line-height: 1.7; }

/* ── Info Cards (Chi siamo) ──────────────────── */
.info-cards-stagger {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.info-card {
    padding: 2rem;
    background: var(--night);
    color: #fff;
    border-radius: var(--radius);
    transition: transform 0.4s ease;
}
.info-card:hover { transform: translateY(-4px); }
.info-card.outlined {
    background: transparent;
    border: var(--ghost-border);
    color: var(--ink);
}
.info-card .card-num-deco {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.info-card .card-label {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}
.info-card p { font-size: 0.875rem; line-height: 1.7; }

/* ── Team — Editorial Contact Sheet ───────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 1.25rem;
    row-gap: 0;
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    align-items: start;
}
.team-member {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
}
/* Alto/basso a scorrimento: posizioni sfalsate su riga unica */
.team-member:nth-child(1) { transform: translateY(0); }
.team-member:nth-child(2) { transform: translateY(2.5rem); }
.team-member:nth-child(3) { transform: translateY(-1.5rem); }
.team-member:nth-child(4) { transform: translateY(3rem); }
.team-member:nth-child(5) { transform: translateY(0.5rem); }
.team-member:nth-child(6) { transform: translateY(-2rem); }

.team-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--surface-container-low);
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
    filter: grayscale(1) contrast(1.02);
}
.team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.team-member:hover .team-photo img {
    transform: scale(1.04);
}
.team-member:hover .team-photo::after {
    opacity: 0.18;
}
.team-linkedin {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--primary);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease, color 0.25s ease;
}
.team-linkedin svg {
    width: 0.95rem;
    height: 0.95rem;
}
.team-member:hover .team-linkedin {
    opacity: 1;
    transform: translateY(0);
}
.team-linkedin:hover {
    background: var(--primary);
    color: #fff;
}
.team-member figcaption {
    margin-top: 1.1rem;
    position: relative;
}
.team-member h3 {
    font-family: "Epilogue", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.2;
    margin: 0 0 0.25rem 0;
    color: var(--graphite);
    letter-spacing: -0.01em;
}
.team-member h3::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1px;
    background: var(--primary);
    margin-top: 0.4rem;
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-member:hover h3::after { transform: scaleX(1); }
.team-member .role {
    font-family: "Epilogue", sans-serif;
    font-weight: 500;
    font-size: 0.58rem;
    color: var(--mist);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
}
.team-linkedin {
    width: 1.6rem;
    height: 1.6rem;
    top: 0.5rem;
    right: 0.5rem;
}
.team-linkedin svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* ── Market Blocks ───────────────────────────── */
.market-block {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3.5rem 0;
    /* no-line: tonal transition */
    align-items: start;
}
.market-num {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 4rem;
    font-weight: 400;
    color: var(--primary);
    opacity: 0.35;
    line-height: 1;
}
.market-title {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0.5rem 0 1.5rem;
}
.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.market-item h4 {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--mist);
}
.market-item p { font-size: 0.82rem; color: var(--graphite); line-height: 1.7; }
.market-item.full-width { grid-column: 1 / -1; }
.market-label {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
}

/* ── Case Histories ──────────────────────────── */
.case-block {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 4.5rem;
    padding: 5rem 0;
    /* no-line: tonal transition */
    align-items: start;
}
.case-block:nth-child(even) { direction: rtl; }
.case-block:nth-child(even) > * { direction: ltr; }
.case-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    max-width: 380px;
    transform: translateY(-0.75rem);
    box-shadow: 0 20px 40px -20px rgba(30, 58, 30, 0.25),
                0 1px 2px rgba(30, 58, 30, 0.08);
}
.case-image img {
    width: 100%; height: 100%; display: block;
    object-fit: cover;
    filter: sepia(0.08) saturate(0.9);
    transition: transform 0.5s ease;
}
.case-image:hover img { transform: scale(1.04); }
.case-tag {
    display: inline-block;
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    margin-bottom: 0.75rem;
    border-radius: 4px;
}
.case-title {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.case-desc { font-size: 0.875rem; color: var(--graphite); line-height: 1.7; margin-bottom: 1rem; }
.case-objective { font-size: 0.82rem; color: var(--graphite); line-height: 1.7; margin-bottom: 1.5rem; }
.case-objective strong { color: var(--ink); }
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.case-grid-item {
    padding: 1rem;
    background: var(--surface-container-low);
    border-radius: var(--radius);
}
.case-grid-item h4 {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--moss);
}
.case-grid-item p { font-size: 0.75rem; color: var(--graphite); line-height: 1.6; }

/* ── Etica — Principles ──────────────────────── */
.principles-flow {
    margin-top: 3rem;
}
.principle {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    /* no-line: tonal transition */
    align-items: start;
}
.principle-num {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary);
    opacity: 0.4;
    line-height: 1;
}
.principle h3 {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}
.principle p { font-size: 0.85rem; color: var(--graphite); line-height: 1.7; }

/* ── Etica — Paradigm ────────────────────────── */
.paradigm-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.paradigm-col {
    padding: 2rem;
    background: var(--surface-container-lowest);
    border-radius: var(--radius);
    box-shadow: var(--shadow-ambient);
}
.paradigm-col .step-label {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 0.75rem;
}
.paradigm-col h3 {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.paradigm-col p { font-size: 0.82rem; color: var(--graphite); line-height: 1.7; }

/* ── Quote Section ───────────────────────────── */
.quote-section {
    position: relative;
    padding: 6rem 4.5rem;
    text-align: center;
    overflow: hidden;
}
.quote-section--image {
    background-size: cover;
    background-position: center;
    color: #fff;
}
.quote-section--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30,58,30,0.8);
}
.quote-section > * { position: relative; z-index: 1; }
.quote-section blockquote {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}
.quote-section cite {
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.72rem;
    font-style: normal;
    color: var(--mist);
    letter-spacing: 0.06em;
}
.quote-section--image cite { color: rgba(255,255,255,0.5); }

/* ── Highlight text ──────────────────────────── */
.highlight-text {
    font-family: "Epilogue", sans-serif; font-weight: 700;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: var(--surface-container-low);
    text-align: center;
    border-radius: var(--radius);
}

/* ── Contact Form ────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 720px;
    margin-top: 3rem;
}
.form-full { grid-column: 1 / -1; }
.form-grid label {
    display: block;
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--mist);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--ink);
    font-family: "Epilogue", sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s ease;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: var(--moss);
    border-bottom-width: 2px;
}
.form-grid textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.form-grid select { background: var(--bone); }
.form-success {
    display: none;
    padding: 1.5rem 2rem;
    background: var(--surface-container-low);
    border-left: 3px solid var(--primary);
    margin-bottom: 2rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
    padding: 1rem 4.5rem;
    /* no-line: tonal transition */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.72rem;
    color: var(--ink);
    opacity: 0.5;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Scroll Animations ───────────────────────── */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}
.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.reveal-image.visible {
    clip-path: inset(0 0 0 0);
}

/* Stagger children */
.stagger-children .reveal-card:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal-card:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal-card:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal-card:nth-child(4) { transition-delay: 0.25s; }
.stagger-children .reveal-card:nth-child(5) { transition-delay: 0.3s; }
.stagger-children .reveal-card:nth-child(6) { transition-delay: 0.35s; }

/* Hero entry animations */
.fade-in { opacity: 0; transform: translateY(15px); animation: slideUp 0.8s ease-out forwards; }
.fade-in-d1 { animation-delay: 0.2s; }
.fade-in-d2 { animation-delay: 0.5s; }
.fade-in-d3 { animation-delay: 0.8s; }
.fade-in-d4 { animation-delay: 1.1s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* Legacy compat */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Privacy page ────────────────────────────── */
.privacy-content { max-width: 700px; width: 100%; padding: 6rem 4.5rem 4rem; }
.privacy-content h1 {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.privacy-description {
    font-size: 0.95rem; font-weight: 300;
    line-height: 1.6; margin-bottom: 2.5rem;
    color: var(--graphite);
}
.privacy-list { list-style: none; }
.privacy-list li { /* no-line: ghost border */ border-bottom: var(--ghost-border); }
.privacy-list li:first-child { border-top: var(--ghost-border); }
.privacy-list a {
    display: block; padding: 1rem 0;
    color: var(--ink); text-decoration: none;
    font-size: 0.95rem; font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}
.privacy-list a:hover { color: var(--moss); }
.privacy-list .icon { margin-right: 0.75rem; }
.back-link {
    display: inline-block; margin-bottom: 2rem;
    color: var(--ink); text-decoration: none;
    font-family: "Epilogue", sans-serif; font-weight: 500;
    font-size: 0.72rem; letter-spacing: 0.1em;
    opacity: 0.5; transition: opacity 0.3s ease;
}
.back-link:hover { opacity: 1; }

/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-text, .reveal-card, .reveal-image, .fade-up, .fade-in {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1.5rem;
        row-gap: 2.5rem;
        max-width: 720px;
    }
    .team-member:nth-child(n) { transform: none; }
    .team-member:nth-child(3n+2) { transform: translateY(2rem); }
    .nav { padding: 1rem 2rem; }
    .hero-split { grid-template-columns: 1fr; min-height: auto; }
    .hero-text-wrap { padding: 5rem 2rem 2rem; padding-left: 2rem; }
    .hero-image-wrap { padding: 1rem; }
    .hero-image-wrap img { max-height: 50vh; }
    .page-hero--image { grid-template-columns: 1fr; }
    .page-hero__text { padding: 3rem 2rem; }
    .page-hero__image { height: 40vh; }
    .page-hero--simple { padding: 3rem 2rem 2rem; }
    .section { padding: 3rem 2rem; }
    .cta-section { padding: 3rem 2rem; }
    .ambiti-grid { grid-template-columns: repeat(2, 1fr); }
    /* ambiti responsive */
    .info-cards-stagger { grid-template-columns: repeat(2, 1fr); }
    .paradigm-cols { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: 1fr; }
    .quote-section { padding: 4rem 2rem; }
    .site-footer { padding: 1.5rem 2rem; }
    .privacy-content { padding: 5rem 2rem 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-text-wrap { padding: 4rem 1.5rem 1.5rem; }
    .hero-image-wrap img { max-height: 40vh; }
    .hero-text-wrap h1 { font-size: 2rem; }
    .page-hero__text { padding: 2rem 1.5rem; }
    .page-hero__image { height: 30vh; }
    .page-hero--simple { padding: 2rem 1.5rem 1.5rem; }
    .section { padding: 2rem 1.5rem; }
    .cta-section { padding: 2.5rem 1.5rem; }
    .cards-duo { grid-template-columns: 1fr; }
    .ambiti-grid { grid-template-columns: 1fr; }
    .info-cards-stagger { grid-template-columns: 1fr; }
    .agents { grid-template-columns: 1fr; }
    .agent { border-left: 3px solid transparent; border-top: none; padding: 1.5rem 0 1.5rem 1rem; }
    .agent:nth-child(1) { border-left-color: var(--clay); }
    .agent:nth-child(2) { border-left-color: var(--moss); }
    .agent:nth-child(3) { border-left-color: var(--sage); }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
        row-gap: 3rem;
        padding: 0;
        max-width: 480px;
        margin: 3rem auto 0;
    }
    .team-member:nth-child(n) { transform: none; }
    .team-member:nth-child(even) { transform: translateY(2rem); }
    .market-block { grid-template-columns: 1fr; }
    .case-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    .case-block:nth-child(even) { direction: ltr; }
    .case-image {
        max-width: 280px;
        transform: none;
    }
    .paradigm-cols { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; text-align: center; padding: 1.5rem; }
    .quote-section { padding: 3rem 1.5rem; }
    .tabs-nav { overflow-x: auto; }
    .privacy-content { padding: 4rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
    .page-hero h1, .page-hero--simple h1 { font-size: 1.5rem; }
    .section h2 { font-size: 1.3rem; }
    .hero-text-wrap h1 { font-size: 1.7rem; }
    .market-num { font-size: 2.5rem; }
    .principle { grid-template-columns: 50px 1fr; gap: 1rem; }
    .principle-num { font-size: 1.8rem; }
}

/* ===== AI Week landing — radio day options ===== */
.aiweek-radio-group {
    border: 0;
    padding: 0;
    margin: 0;
}
.aiweek-radio-group legend {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft, #6b6b6b);
    margin-bottom: 0.75rem;
    padding: 0;
}
.aiweek-day-options {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.aiweek-day-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: "Epilogue", sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.2;
}
.aiweek-day-options input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    flex-shrink: 0;
    cursor: pointer;
}

.form-error {
    padding: 1.25rem 1.75rem;
    background: #c0392b;
    color: #fff;
    border-radius: var(--radius);
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.25);
}
.form-error strong {
    font-weight: 700;
    margin-right: 0.4rem;
    letter-spacing: 0.02em;
}

.aiweek-form-success {
    margin-top: 2rem;
}

/* ── Case Histories — Video trailer ─────────── */
.case-image--video { cursor: pointer; }
.case-image--video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 30, 15, 0) 55%, rgba(20, 30, 15, 0.35) 100%);
    pointer-events: none;
    transition: background 0.35s ease;
}
.case-image--video:hover::after {
    background: linear-gradient(180deg, rgba(20, 30, 15, 0.05) 0%, rgba(20, 30, 15, 0.45) 100%);
}
.case-trailer-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    font-family: "Epilogue", sans-serif;
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.case-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px -6px rgba(20, 30, 15, 0.5);
    transition: transform 0.35s ease, background 0.35s ease;
}
.case-play::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent var(--primary);
}
.case-image--video:hover .case-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #fff;
}
.case-image--video:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* ── Video Lightbox ─────────────────────────── */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 15, 8, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.video-lightbox.open {
    display: flex;
    opacity: 1;
}
.video-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.video-lightbox__inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-lightbox__close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10000;
}
.video-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 768px) {
    .case-play { width: 54px; height: 54px; }
    .case-play::before { border-width: 8px 0 8px 12px; }
}

/* ── AI Week — Event strip (KILLERCLICK page) ── */
.event-strip {
    background: var(--primary);
    color: #fff;
    padding: 1.4rem 4.5rem;
    font-family: "Epilogue", sans-serif;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.event-strip__label {
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    flex: 0 0 auto;
}
.event-strip__sep { display: none; }
.event-strip__main {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.event-strip strong {
    font-weight: 500;
    color: #fff;
}

/* ── KILLERCLICK Hero ─────────────────────────── */
.kc-hero {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 4.5rem;
    align-items: center;
    padding: 5rem 4.5rem;
    background: var(--surface);
}
.kc-hero__poster {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(20, 30, 15, 0.45),
                0 2px 4px rgba(20, 30, 15, 0.08);
}
.kc-hero__poster img {
    width: 100%;
    height: auto;
    display: block;
}
.kc-hero__content { max-width: 640px; }
.kc-hero__content h1 {
    font-family: "Epilogue", sans-serif;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0.5rem 0 1.25rem;
    color: var(--ink);
}
.kc-hero__content h1 em {
    font-style: italic;
    color: var(--primary);
}
.kc-compliance {
    font-family: "Epilogue", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--moss);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
/* Stagione 1 — mini-card poster con trailer integrato */
.kc-season {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem 0.75rem;
    background: var(--surface-container-low);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}
.kc-season__head { padding-bottom: 0.5rem; }
.kc-season__label {
    font-family: "Epilogue", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.4rem;
}
.kc-season__title {
    font-family: "Epilogue", sans-serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.kc-season__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.8rem;
    color: var(--graphite);
}
.kc-season__meta li { position: relative; }
.kc-season__meta li + li::before {
    content: "·";
    position: absolute;
    left: -0.85rem;
    color: var(--mist);
}
.kc-season__trailer {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.55rem 0;
    background: transparent;
    border: 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    width: 100%;
    color: var(--ink);
    font-family: "Epilogue", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    cursor: pointer;
    transition: color 0.25s ease;
}
.kc-season__trailer:hover { color: var(--primary); }
.kc-season__trailer-play {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M4 2.5v7l5.5-3.5z' fill='%23fff'/></svg>") center/10px no-repeat;
    flex-shrink: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.kc-season__trailer:hover .kc-season__trailer-play {
    background-color: var(--primary);
    transform: scale(1.06);
}

/* CTA primaria — card "Prova la demo" + QR affiancato */
.kc-demo {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.75rem;
    align-items: stretch;
    padding: 1.75rem 1.75rem 1.5rem;
    background: var(--ink);
    color: var(--bone);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.kc-demo::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(165, 184, 116, 0.18), transparent 70%);
    pointer-events: none;
}
.kc-demo__main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}
.kc-demo__kicker {
    margin: 0;
    font-family: "Epilogue", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.kc-demo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-family: "Epilogue", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    align-self: flex-start;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.kc-demo__cta:hover {
    transform: translateY(-2px);
    background: #6d8a3a;
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.kc-demo__cta:hover .kc-demo__arrow { transform: translateX(4px); }
.kc-demo__arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.kc-demo__note {
    margin: 0;
    max-width: 38ch;
    font-family: "Epilogue", sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}
.kc-demo__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem;
    background: var(--bone);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}
.kc-demo__qr:hover { transform: translateY(-2px); }
.kc-demo__qr img {
    width: 110px;
    height: 110px;
    display: block;
}
.kc-demo__qr span {
    font-family: "Epilogue", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--graphite);
}

/* CTA secondaria — link discreto per il meeting in fiera */
.kc-secondary { margin-top: 1.25rem; }
.kc-secondary__link {
    font-family: "Epilogue", sans-serif;
    font-size: 0.85rem;
    color: var(--graphite);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.kc-secondary__link strong {
    color: var(--ink);
    font-weight: 600;
}
.kc-secondary__link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}


@media (max-width: 768px) {
    .event-strip { padding: 1.1rem 1.5rem; gap: 0.85rem; }
    .event-strip__main { font-size: 0.9rem; }
    .kc-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem;
    }
    .kc-hero__poster { max-width: 320px; margin: 0 auto; }
    .kc-hero__content h1 { font-size: 1.7rem; }
    .kc-demo {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .kc-demo__qr {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.75rem;
    }
    .kc-demo__qr img { width: 88px; height: 88px; }
    .kc-demo__cta { width: 100%; justify-content: space-between; }
}
