:root {
  --kx-bg: #08090b;
  --kx-panel: #111318;
  --kx-white: #f7f7f1;
  --kx-muted: #a7a9ad;
  --kx-lime: #d9ff4a;
  --kx-cyan: #4fffe1;
  --kx-line: rgba(255,255,255,.13);
}

.kommexa-page { background: var(--kx-bg); color: var(--kx-white); overflow-x: hidden; }
.kommexa-page .site-header { background: rgba(7,8,10,.8); backdrop-filter: blur(18px); }
.kommexa-page .booking-button { background: var(--kx-lime); color: #090a0b; }
.kommexa-page .nav-links a.active,
.kommexa-page .dropdown-toggle.active { color: var(--kx-lime); }
.kx-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.kx-section-label { margin: 0 0 24px; color: var(--kx-lime); font-size: .73rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.kx-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 54px; }
.kx-section-heading > p { max-width: 470px; color: var(--kx-muted); font-size: 1.05rem; line-height: 1.75; }
.kx-section-heading h2, .kx-project h2, .kx-future h2, .kx-faq h2, .kx-booking h2 { margin: 0; font-size: clamp(3.4rem, 7vw, 7.8rem); line-height: .84; letter-spacing: -.065em; text-transform: uppercase; }
.kx-section-heading h2 em, .kx-project h2 em, .kx-future h2 em, .kx-faq h2 em, .kx-booking h2 em { color: var(--kx-lime); font-style: normal; }

.kx-hero { min-height: 100svh; position: relative; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.kx-hero-image { position: absolute; inset: 0; z-index: -3; background: url('../images/kommexa/kommexa-hero.webp') center 24% / cover no-repeat; transform: scale(1.015); }
.kx-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,6,8,.94) 0%, rgba(5,6,8,.62) 39%, rgba(5,6,8,.06) 69%), linear-gradient(0deg, #08090b 0%, transparent 32%), linear-gradient(180deg, rgba(5,6,8,.45), transparent 32%); }
.kx-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--kx-lime), var(--kx-cyan), transparent); opacity: .8; }
.kx-hero-inner { padding: 190px 0 110px; }
.kx-hero-copy { max-width: 750px; }
.kx-kicker { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; font-size: .77rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.kx-kicker span { width: 45px; height: 2px; background: var(--kx-lime); }
.kx-hero h1 { margin: 0; font-size: clamp(5rem, 12.5vw, 12.5rem); line-height: .75; letter-spacing: -.08em; text-transform: uppercase; text-shadow: 0 10px 45px rgba(0,0,0,.5); }
.kx-genres { margin: 30px 0 0; color: var(--kx-lime); font-size: clamp(.7rem, 1.2vw, .95rem); font-weight: 900; letter-spacing: .17em; }
.kx-intro { max-width: 650px; margin: 25px 0 0; color: #d2d3d4; font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.7; }
.kx-actions { display: flex; gap: 14px; margin-top: 34px; }
.kx-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 27px; border: 1px solid transparent; border-radius: 999px; font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.kx-button:hover { transform: translateY(-3px); }
.kx-button-lime { background: var(--kx-lime); color: #090a0b; }
.kx-button-glass { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(8,9,11,.22); backdrop-filter: blur(12px); }
.kx-button-dark { background: #08090b; color: #fff; }
.kx-scroll { position: absolute; right: 30px; bottom: 105px; display: flex; align-items: center; gap: 13px; color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .22em; transform: rotate(90deg); transform-origin: right bottom; }
.kx-scroll span { width: 44px; height: 1px; background: var(--kx-lime); }

.kx-manifesto { padding: 150px 0 145px; background: var(--kx-white); color: #08090b; }
.kx-manifesto h2 { max-width: 1100px; margin: 0; font-size: clamp(5rem, 13.2vw, 13rem); line-height: .73; letter-spacing: -.085em; text-transform: uppercase; }
.kx-manifesto h2 em { color: #94b700; font-style: normal; }
.kx-manifesto .kx-section-label { color: #647c00; }
.kx-manifesto-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 900px; margin: 75px 0 0 auto; }
.kx-manifesto-bottom p { margin: 0; color: #34363a; font-size: 1.08rem; line-height: 1.8; }

.kx-project { padding: 145px 0; }
.kx-project-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; align-items: start; }
.kx-project-title { position: sticky; top: 140px; }
.kx-project-copy { padding-top: 55px; }
.kx-project-copy p { color: var(--kx-muted); font-size: 1.07rem; line-height: 1.85; }
.kx-project-copy .kx-lead { color: var(--kx-white); font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.35; letter-spacing: -.03em; }

.kx-members { padding: 140px 0; background: #0d0f12; border-block: 1px solid var(--kx-line); }
.kx-member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--kx-line); }
.kx-member-card { min-height: 430px; padding: 34px; display: flex; flex-direction: column; background: #0d0f12; transition: background .3s ease, transform .3s ease; }
.kx-member-card:hover { background: #15181d; transform: translateY(-7px); }
.kx-member-card > span { color: var(--kx-lime); font-size: .72rem; font-weight: 900; letter-spacing: .2em; }
.kx-member-card h3 { margin: auto 0 24px; font-size: clamp(2.5rem, 4.3vw, 4.5rem); line-height: .88; letter-spacing: -.06em; }
.kx-member-card p { margin: 0; color: var(--kx-muted); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }

.kx-sound { padding: 155px 0; background: var(--kx-white); color: #090a0b; }
.kx-sound .kx-section-label { color: #647c00; }
.kx-sound-title h2 { margin: 0 0 85px; font-size: clamp(4.6rem, 11vw, 11.5rem); line-height: .73; letter-spacing: -.085em; text-transform: uppercase; }
.kx-sound-title h2 small { display: block; font-size: .15em; line-height: 1.6; letter-spacing: .2em; }
.kx-sound-title h2 em { color: #94b700; font-style: normal; }
.kx-sound-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(0,0,0,.22); }
.kx-sound-grid article { min-height: 260px; padding: 34px 30px 38px 0; border-bottom: 1px solid rgba(0,0,0,.22); }
.kx-sound-grid article:nth-child(odd) { border-right: 1px solid rgba(0,0,0,.22); padding-right: 55px; }
.kx-sound-grid article:nth-child(even) { padding-left: 55px; }
.kx-sound-grid span { color: #718900; font-size: .72rem; font-weight: 900; }
.kx-sound-grid h3 { margin: 55px 0 14px; font-size: clamp(2.3rem, 4vw, 4rem); letter-spacing: -.06em; }
.kx-sound-grid p { max-width: 460px; margin: 0; color: #55585b; line-height: 1.7; }

.kx-release { padding: 145px 0; }
.kx-text-link { color: var(--kx-white); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.kx-text-link span { color: var(--kx-lime); margin-left: 8px; }
.kx-release-grid { border-top: 1px solid var(--kx-line); }
.kx-release-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 30px; align-items: center; padding: 35px 0; border-bottom: 1px solid var(--kx-line); transition: padding .25s ease, background .25s ease; }
.kx-release-card:hover { padding-inline: 24px; background: rgba(255,255,255,.035); }
.kx-release-number { color: var(--kx-lime); font-size: .73rem; font-weight: 900; }
.kx-release-card p { margin: 0 0 5px; color: var(--kx-muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.kx-release-card h3 { margin: 0; font-size: clamp(1.8rem, 3.7vw, 3.5rem); letter-spacing: -.045em; }
.kx-release-card > span { color: var(--kx-muted); font-size: .69rem; font-weight: 800; letter-spacing: .13em; }

.kx-future { min-height: 760px; position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.kx-future-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8,9,11,.95), rgba(8,9,11,.25)), url('../images/kommexa/kommexa-hero.webp') center 35% / cover no-repeat; filter: saturate(.65); }
.kx-future::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 75% 50%, rgba(217,255,74,.16), transparent 35%); }
.kx-future-inner { padding-block: 120px; }
.kx-future h2 { max-width: 1050px; }
.kx-future-inner > p:last-child { max-width: 650px; margin: 35px 0 0; color: #d0d1d2; font-size: 1.15rem; line-height: 1.75; }

.kx-faq { padding: 145px 0; }
.kx-faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.kx-accordion details { border-top: 1px solid var(--kx-line); }
.kx-accordion details:last-child { border-bottom: 1px solid var(--kx-line); }
.kx-accordion summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; font-size: 1.06rem; font-weight: 800; }
.kx-accordion summary::-webkit-details-marker { display: none; }
.kx-accordion summary span { color: var(--kx-lime); font-size: 1.5rem; font-weight: 300; transition: transform .25s ease; }
.kx-accordion details[open] summary span { transform: rotate(45deg); }
.kx-accordion details p { max-width: 680px; margin: -5px 0 28px; color: var(--kx-muted); line-height: 1.75; }

.kx-booking { padding: 150px 0; color: #090a0b; background: var(--kx-lime); }
.kx-booking .kx-section-label { color: #333d00; }
.kx-booking h2 em { color: #090a0b; -webkit-text-stroke: 2px #090a0b; }
.kx-booking-inner > p:not(.kx-section-label) { margin: 30px 0; font-size: 1.1rem; }

@media (max-width: 900px) {
  .kx-shell { width: min(100% - 32px, 1240px); }
  .kx-hero { min-height: 850px; }
  .kx-hero-image { background-position: 62% center; }
  .kx-hero-shade { background: linear-gradient(90deg, rgba(5,6,8,.92), rgba(5,6,8,.35)), linear-gradient(0deg, #08090b, transparent 40%); }
  .kx-project-grid, .kx-faq-grid { grid-template-columns: 1fr; gap: 55px; }
  .kx-project-title { position: static; }
  .kx-project-copy { padding-top: 0; }
  .kx-section-heading { align-items: start; flex-direction: column; }
  .kx-member-grid { grid-template-columns: 1fr; }
  .kx-member-card { min-height: 300px; }
  .kx-manifesto-bottom { grid-template-columns: 1fr; gap: 25px; margin-left: 0; }
}

@media (max-width: 640px) {
  .kx-hero { min-height: 760px; }
  .kx-hero-image { background-position: 58% center; }
  .kx-hero-inner { padding: 150px 0 75px; }
  .kx-hero h1 { font-size: clamp(4.2rem, 24vw, 7rem); }
  .kx-genres { line-height: 1.8; }
  .kx-actions { align-items: stretch; flex-direction: column; max-width: 310px; }
  .kx-scroll { display: none; }
  .kx-manifesto, .kx-project, .kx-members, .kx-sound, .kx-release, .kx-faq, .kx-booking { padding-block: 95px; }
  .kx-manifesto h2 { font-size: clamp(4.2rem, 23vw, 7rem); }
  .kx-sound-grid { grid-template-columns: 1fr; }
  .kx-sound-grid article:nth-child(n) { padding: 28px 0; border-right: 0; }
  .kx-sound-grid h3 { margin-top: 34px; }
  .kx-release-card { grid-template-columns: 40px 1fr; }
  .kx-release-card > span { grid-column: 2; }
  .kx-future { min-height: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  .kx-button, .kx-member-card, .kx-release-card, .kx-accordion summary span { transition: none; }
}


/* Kommexa members — photographic cards */
.kx-member-card { min-height: 0; padding: 0; overflow: hidden; }
.kx-member-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #08090b; }
.kx-member-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(13,15,18,.92)); pointer-events: none; }
.kx-member-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; filter: saturate(.88) contrast(1.04); transition: transform .6s ease, filter .4s ease; }
.kx-member-card:hover .kx-member-photo img { transform: scale(1.035); filter: saturate(1) contrast(1.06); }
.kx-member-photo > span { position: absolute; z-index: 2; top: 22px; left: 24px; color: var(--kx-lime); font-size: .72rem; font-weight: 900; letter-spacing: .2em; }
.kx-member-copy { min-height: 245px; padding: 30px 32px 34px; display: flex; flex-direction: column; }
.kx-member-copy h3 { margin: 0 0 auto; font-size: clamp(2.2rem, 3.7vw, 4rem); line-height: .9; letter-spacing: -.06em; }
.kx-member-copy p { margin: 28px 0 0; color: var(--kx-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* SoundCloud releases */
.kx-soundcloud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kx-track-card { padding: 28px; border: 1px solid var(--kx-line); background: rgba(255,255,255,.025); }
.kx-track-head { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: end; margin-bottom: 24px; }
.kx-track-head p, .kx-coming-next p { margin: 0 0 5px; color: var(--kx-muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.kx-track-head h3, .kx-coming-next h3 { margin: 0; font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -.045em; }
.kx-track-head strong, .kx-coming-next > strong { color: var(--kx-muted); font-size: .68rem; letter-spacing: .13em; white-space: nowrap; }
.kx-track-card iframe { display: block; border: 0; background: #111; }
.kx-track-link { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: #fff; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.kx-track-link:hover { color: var(--kx-lime); }
.kx-coming-next { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; margin-top: 24px; padding: 30px 28px; border: 1px solid var(--kx-line); }

@media (max-width: 900px) {
  .kx-soundcloud-grid { grid-template-columns: 1fr; }
  .kx-member-copy { min-height: 210px; }
}
@media (max-width: 560px) {
  .kx-track-card { padding: 18px; }
  .kx-track-head { grid-template-columns: 30px 1fr; }
  .kx-track-head strong { grid-column: 2; }
  .kx-coming-next { grid-template-columns: 30px 1fr; }
  .kx-coming-next > strong { grid-column: 2; }
}

/* MOBILE FIX — titolo hero sempre contenuto nello schermo */
@media (max-width: 640px) {
  .kx-hero h1,
  #kx-title {
    max-width: 100%;
    font-size: clamp(3.2rem, 16.2vw, 5.05rem);
    line-height: .86;
    letter-spacing: -.06em;
    white-space: nowrap;
  }
}

@media (max-width: 370px) {
  .kx-hero h1,
  #kx-title {
    font-size: clamp(2.95rem, 15.4vw, 4.35rem);
  }
}
