/*
Theme Name: SSF Theme 2026
Description: Clean child theme for Sound Studies Forum. Orb homepage, audio gate, coherent black/inverted listening system.
Author: Sound Studies Forum
Template: twentytwentyfive
Version: 1.2.0
Text Domain: ssf-theme-2026
*/

/* =========================================================
01 TOKENS
========================================================= */
:root {
  --ssf-black: #000000;
  --ssf-white: #ffffff;
  --ssf-orange: #ff874b;
  --ssf-acid: #d4ff52;
  --ssf-cyan: #8aedff;
  --ssf-purple: #a463ff;

  --ssf-current: var(--ssf-orange);
  --ssf-bg: var(--ssf-black);
  --ssf-text: var(--ssf-white);
  --ssf-muted: rgba(255, 255, 255, .62);
  --ssf-line: rgba(255, 255, 255, .28);

  --ssf-header-h: 76px;
  --ssf-footer-h: 42px;
  --ssf-pad: clamp(18px, 4vw, 48px);
  --ssf-gap: clamp(20px, 4vw, 64px);

  --ssf-font: var(--wp--preset--font-family--canva-sans, "Canva Sans", Arial, Helvetica, sans-serif);
}

body.post-type-archive-publication,
body.single-publication {
  --ssf-current: var(--ssf-cyan);
}

body.post-type-archive-process,
body.single-process {
  --ssf-current: var(--ssf-acid);
}

body.blog,
body.archive.category-news,
body.category-news {
  --ssf-current: var(--ssf-acid);
}

body.page-template-page-current-exhibition,
body.page-template-page-room,
body.single-room,
body.ssf-listening-body {
  --ssf-current: var(--ssf-orange);
}

/* =========================================================
02 RESET / BASE
========================================================= */
html,
body {
  margin: 0;
  min-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

* {
  box-sizing: border-box;
}

*:focus,
*:focus-visible,
*:active {
  outline: none !important;
  box-shadow: none !important;
}

::selection {
  background: var(--ssf-current);
  color: var(--ssf-black);
}

body {
  background: var(--ssf-bg);
  color: var(--ssf-text);
  font-family: var(--ssf-font);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-transform: none;
}

.wp-site-blocks,
#main,
.site,
.site-content {
  position: relative;
}

/* =========================================================
03 TYPOGRAPHY
========================================================= */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: var(--ssf-font);
  text-transform: none;
}

h1,
h2,
h3,
.wp-block-query-title {
  letter-spacing: -0.065em;
  line-height: .9;
}

h1 {
  font-size: clamp(42px, 8vw, 118px);
  font-weight: 700;
}

h2 {
  font-size: clamp(34px, 5.8vw, 88px);
}

h3 {
  font-size: clamp(22px, 3vw, 42px);
}

p {
  line-height: 1.22;
}

.has-small-font-size,
small {
  letter-spacing: .01em;
}

/* =========================================================
04 LINKS / BUTTONS
========================================================= */
a {
  color: var(--ssf-current);
  text-decoration: none;
  transition: opacity .2s ease, letter-spacing .2s ease, color .2s ease, background .2s ease;
}

a:hover {
  opacity: .72;
}

.wp-block-button__link,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.ssf-btn,
.ssf-listen-link,
.ssfListenBtn {
  display: inline-block;
  padding: .65em .82em;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--ssf-current);
  font-family: var(--ssf-font);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: .9;
  text-transform: none;
  cursor: pointer;
}

.wp-block-button__link:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.ssf-btn:hover,
.ssf-listen-link:hover,
.ssfListenBtn:hover {
  background: var(--ssf-current);
  color: var(--ssf-black);
  opacity: 1;
}

/* =========================================================
05 GLOBAL LAYOUT
========================================================= */
.ssf-page,
.ssf-page-inner,
.ssf-archive,
.ssf-archive-header,
.ssf-single,
.ssf-single-hero,
.ssf-single-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ssf-page,
main.alignfull {
  box-sizing: border-box;
}

.ssf-page {
  padding: var(--ssf-pad) !important;
}

.ssf-page-inner,
.ssf-archive-header,
.ssf-single-hero,
.ssf-single-content {
  padding: 0;
}

.ssf-page-inner > * + *,
.ssf-archive-header > * + *,
.ssf-single-hero > * + *,
.ssf-single-content > * + * {
  margin-top: clamp(20px, 3vw, 48px);
}

.wp-block-post-content,
.entry-content,
.ssf-single-content > * {
  max-width: none;
}

.wp-block-post-title,
.wp-block-query-title,
.wp-block-post-featured-image {
  margin-top: 0 !important;
}

.ssf-page .wp-block-post-title,
.ssf-archive .wp-block-query-title {
  margin: 0;
  padding: 0;
}

/* =========================================================
06 HEADER
========================================================= */
.ssf-header,
header.wp-block-template-part,
.wp-site-blocks > header {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: var(--ssf-header-h);
  background: rgba(0, 0, 0, .48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ssf-header-inner {
  padding-left: var(--ssf-pad) !important;
  padding-right: var(--ssf-pad) !important;
  width: 100%;
}

.ssf-header .wp-block-site-logo img,
header .wp-block-site-logo img {
  width: auto;
  max-width: 116px;
  height: auto;
  filter: none;
  opacity: .95;
}

.ssf-header a,
.ssf-header .wp-block-navigation-item__content,
.ssf-header .wp-block-navigation-item__label,
header a,
header .wp-block-navigation-item__content,
header .wp-block-navigation-item__label {
  color: var(--ssf-current) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: .9;
  text-transform: none;
  text-decoration: none !important;
  opacity: .95;
}

.ssf-header a:hover,
.ssf-header .wp-block-navigation-item__content:hover,
header a:hover,
header .wp-block-navigation-item__content:hover {
  opacity: .65;
}

.ssf-header .wp-block-navigation,
header .wp-block-navigation {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 8px;
}

.ssf-header .wp-block-navigation__container,
header .wp-block-navigation__container {
  width: 100%;
  justify-content: space-between;
  gap: clamp(14px, 4vw, 58px);
}

.ssf-header-link {
  margin: 0;
  white-space: nowrap;
}

body.home .ssf-header,
body.home .wp-site-blocks > header {
  background: rgba(0, 0, 0, .32);
}

.ssf-header-inner {
  padding-left: var(--ssf-pad) !important;
  padding-right: var(--ssf-pad) !important;
}

.ssf-header-top {
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 10px;
}

.ssf-header-nav-row {
  margin-left: calc(var(--ssf-pad) * -1);
  margin-right: calc(var(--ssf-pad) * -1);
  padding: 8px var(--ssf-pad);
  background: var(--ssf-current);
}

.ssf-header-nav-row .wp-block-navigation {
  width: 100%;
  margin-top: 0;
}

.ssf-header-nav-row a,
.ssf-header-nav-row .wp-block-navigation-item__content {
  color: var(--ssf-black) !important;
}

/* inverted header */
.ssf-header-lr,
body.ssf-listening-body header.wp-block-template-part,
body.ssf-listening-body .wp-site-blocks > header {
  background: rgba(255, 255, 255, .86) !important;
  color: var(--ssf-black);
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}

.ssf-header-lr .wp-block-site-logo img,
body.ssf-listening-body header .wp-block-site-logo img {
  filter: none;
}

.ssf-header-lr a,
.ssf-header-lr .wp-block-navigation-item__content,
.ssf-header-lr .wp-block-navigation-item__label,
body.ssf-listening-body header a,
body.ssf-listening-body header .wp-block-navigation-item__content {
  color: var(--ssf-black) !important;
}

.ssf-header-cta a {
  border: 1px solid currentColor !important;
  padding: .55em .75em !important;
}

.ssf-header-cta a:hover {
  background: var(--ssf-current) !important;
  color: var(--ssf-black) !important;
  opacity: 1;
}

/* =========================================================
07 FOOTER
========================================================= */
.ssf-footer,
footer.wp-block-template-part,
.wp-site-blocks > footer {
  min-height: var(--ssf-footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--ssf-pad);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ssf-muted);
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ssf-footer p {
  margin: 0;
}

/* =========================================================
08 HOME / ORB PORTAL
========================================================= */
body.home {
  overflow: hidden;
}

body.home .ssf-front-main,
body.home main {
  width: 100%;
  max-width: none !important;
  height: calc(100vh - var(--ssf-header-h) - var(--ssf-footer-h));
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.home .ssf-front-main > .wp-block-post-content {
  width: 100%;
  height: 100%;
}

.ssf-home-panel {
  --ssf-audio-pulse: 0;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}

.ssf-home-panel + * {
  display: none;
}

.ssf-orb-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
}

.ssf-orb {
  width: clamp(150px, 24vw, 360px);
  height: clamp(150px, 24vw, 360px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--ssf-current) 100%, white 0%) 0%,
    color-mix(in srgb, var(--ssf-current) 58%, transparent) 34%,
    color-mix(in srgb, var(--ssf-current) 12%, transparent) 66%,
    transparent 100%
  );
  filter: blur(.6px);
  transform: scale(calc(1 + var(--ssf-audio-pulse) * .38));
  box-shadow:
    0 0 calc(34px + var(--ssf-audio-pulse) * 80px) color-mix(in srgb, var(--ssf-current) 55%, transparent),
    0 0 calc(72px + var(--ssf-audio-pulse) * 130px) color-mix(in srgb, var(--ssf-current) 22%, transparent);
  animation: ssfOrbIdle 4s ease-in-out infinite;
}

.ssf-orb-wrap::after {
  content: "";
  position: absolute;
  width: clamp(190px, 30vw, 440px);
  height: clamp(190px, 30vw, 440px);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ssf-current) 18%, transparent);
  transform: scale(calc(1 + var(--ssf-audio-pulse) * .42));
  opacity: calc(.22 + var(--ssf-audio-pulse) * .5);
}

@keyframes ssfOrbIdle {
  0% { opacity: .72; transform: scale(.985); }
  50% { opacity: 1; transform: scale(1.015); }
  100% { opacity: .72; transform: scale(.985); }
}

.ssf-exh-title,
.ssf-artist,
.ssf-listen-link {
  position: relative;
  z-index: 3;
}

.ssf-exh-title {
  max-width: 96vw;
  white-space: nowrap;
  font-size: clamp(28px, 5vw, 86px);
  margin: 0;
  font-weight: 700;
  line-height: .78;
  letter-spacing: -0.09em;
  color: var(--ssf-white);
  mix-blend-mode: difference;
  cursor: default;
}

.ssf-artist {
  position: absolute;
  left: 50%;
  top: calc(50% + 78px);
  transform: translateX(-50%);
  width: min(720px, 88vw);
  margin: 0;
  color: var(--ssf-white);
  font-size: clamp(15px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.045em;
  opacity: .78;
  cursor: default;
}

.ssf-audio {
  display: none;
}

.ssf-listen-link {
  position: absolute;
  top: calc(50% + 136px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: max-content;
  max-width: 88vw;
}

/* =========================================================
09 AUDIO GATE
========================================================= */
#ssfGate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ssf-black);
  color: var(--ssf-current);
  opacity: 1;
}

#ssfGate::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ssf-current) 20%, transparent), transparent 70%);
  filter: blur(40px);
  animation: ssfGatePulse 4s infinite;
  z-index: 1;
  pointer-events: none;
}

.ssfPortal {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.ssfLabel {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  opacity: .75;
}

.ssfGateLogo {
  position: relative;
  z-index: 3;
  max-width: 180px;
  margin-bottom: 10px;
}

.ssfGateLogo img {
  display: block;
  width: 100%;
  height: auto;
}

.ssfGateLogo span {
  display: block;
  color: var(--ssf-current);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

#ssfGate .ssfEnter {
  position: relative;
  z-index: 3;
  font-size: clamp(44px, 10vw, 140px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: .78;
  color: var(--ssf-current);
  background: transparent;
  border: none;
  padding: 0;
}

#ssfGate .ssfEnter:hover {
  background: transparent;
  color: var(--ssf-current);
  opacity: .7;
}

#ssfGate.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

@keyframes ssfGatePulse {
  0% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: .7; }
}

/* =========================================================
10 ARCHIVES / QUERY LISTS
========================================================= */
.wp-block-query-title {
  color: var(--ssf-text);
}

.ssf-archive-header {
  margin-bottom: clamp(32px, 6vw, 80px);
}

.ssf-archive-header .wp-block-shortcode,
.ssf-archive-intro {
  max-width: none;
  font-size: clamp(24px, 4vw, 64px);
  line-height: .95;
}

.wp-block-post-title.has-background {
  background: transparent !important;
  padding: 0 !important;
}

.wp-block-post-title {
  margin: 0 !important;
}

.wp-block-post-title a {
  color: var(--ssf-current) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: .96;
  opacity: .96;
  text-decoration: none;
}

.wp-block-post-title a:hover {
  opacity: .7;
  letter-spacing: -0.04em;
}

.wp-block-post-date,
.wp-block-post-date a {
  color: var(--ssf-current) !important;
  opacity: .92;
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: .95;
}

.wp-block-post-terms a {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 9px;
  margin-right: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wp-block-separator {
  border-color: currentColor !important;
  opacity: .28;
  margin: 12px 0 22px;
}

.ssf-query-list .wp-block-post-title a {
  font-size: clamp(24px, 5vw, 76px);
  line-height: .9;
}

/* grid archive */
.ssf-query-grid .wp-block-post-template,
.wp-block-post-template.is-layout-grid {
  gap: 1px !important;
}

.ssf-query-grid .wp-block-post,
.wp-block-post-template.is-layout-grid > li {
  background: var(--ssf-black);
  border: 1px solid rgba(255, 255, 255, .75);
  padding: 10px;
}

.ssf-query-grid .wp-block-post-featured-image {
  margin: 0;
}

.wp-block-post-featured-image img,
.ssf-query .wp-block-post-featured-image img,
.ssf-query-grid .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transition: filter .2s ease, opacity .2s ease;
}

.wp-block-post-featured-image:hover img,
.ssf-query-grid .wp-block-post-featured-image:hover img {
  filter: saturate(1.35) contrast(1.18);
}

.ssf-query-grid .wp-block-post-title,
.ssf-query-grid .wp-block-post-date {
  padding: 0 4px;
}

.ssf-query-grid .wp-block-post-title a {
  font-size: clamp(22px, 2.2vw, 38px);
  line-height: .95;
}

/* =========================
SINGLE CPT — AVF/ACF VIEWS
========================= */

.ssf-single {
  min-height: calc(100vh - var(--ssf-header-h));
}

.ssf-single-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ssf-gap);
  align-items: start;
}

.ssf-single-media-visual,
.ssf-single-media-text,
.ssf-single-content {
  width: 100%;
  max-width: none;
}

.ssf-single-media-text .wp-block-post-title,
.ssf-single-hero .wp-block-post-title,
.ssf-single-room-title .wp-block-post-title {
  margin: 0 0 clamp(20px, 3vw, 48px);
  font-size: clamp(38px, 6vw, 92px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 700;
}

.ssf-single-media-text .wp-block-post-content,
.ssf-single-content,
.ssf-single-room-content {
  font-size: clamp(18px, 1.9vw, 32px);
  line-height: 1.12;
}

.ssf-single-media-visual img,
.ssf-single-room-content img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ssf-single-media-visual .wp-block-shortcode,
.ssf-single-content .wp-block-shortcode {
  width: 100%;
  max-width: none;
}

/* Se le viste AVF stampano liste/tabelle/div interni */
.ssf-single .wp-block-shortcode > *,
.ssf-single .wp-block-shortcode div,
.ssf-single .wp-block-shortcode section {
  max-width: none;
}

/* Publication più editoriale */
.ssf-single-publication .ssf-single-content {
  max-width: none;
}

.ssf-single-publication .wp-block-post-content {
  font-size: clamp(22px, 2.6vw, 46px);
  line-height: 1.05;
}

/* Room invertita */
.ssf-single-room-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: var(--ssf-gap);
  align-items: start;
}

.ssf-listening-space {
  background: #fff !important;
  color: #000 !important;
}

.ssf-listening-space a,
.ssf-listening-space h1,
.ssf-listening-space h2,
.ssf-listening-space h3,
.ssf-listening-space p {
  color: #000 !important;
}

@media (max-width: 781px) {
  .ssf-single-media-grid,
  .ssf-single-room-layout {
    grid-template-columns: 1fr;
  }

  .ssf-single-media-text .wp-block-post-title,
  .ssf-single-hero .wp-block-post-title,
  .ssf-single-room-title .wp-block-post-title {
    font-size: clamp(42px, 15vw, 78px);
  }
}

/* =========================================================
12 LISTENING SPACE / INVERTED
========================================================= */
.ssf-listening-space {
  min-height: calc(100vh - var(--ssf-header-h));
  background: var(--ssf-white) !important;
  color: var(--ssf-black) !important;
}

.ssf-listening-space a,
.ssf-listening-space h1,
.ssf-listening-space h2,
.ssf-listening-space h3,
.ssf-listening-space h4,
.ssf-listening-space h5,
.ssf-listening-space h6,
.ssf-listening-space p {
  color: var(--ssf-black) !important;
}

.ssf-listening-space .wp-block-post-featured-image img {
  filter: none !important;
}

.ssf-listening-space .wp-block-separator {
  opacity: .18;
}

.ssf-listening-space .wp-block-button__link,
.ssf-listening-space button,
.ssf-listening-space .ssf-btn {
  color: var(--ssf-black);
  border-color: var(--ssf-black);
}

.ssf-listening-space .wp-block-button__link:hover,
.ssf-listening-space button:hover,
.ssf-listening-space .ssf-btn:hover {
  background: var(--ssf-black);
  color: var(--ssf-white);
}



/* =========================================================
13 AUDIO PREVIEW
========================================================= */
.ssf-audio-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}

.ssf-audio-preview__bar {
  height: 1px;
  background: currentColor;
  opacity: .35;
  position: relative;
  overflow: hidden;
}

.ssf-audio-preview__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: currentColor;
  opacity: 1;
}

/* =========================================================
14 LEGACY / COLUMN EFFECTS
========================================================= */
.wp-block-columns .wp-block-column {
  box-sizing: border-box;
}

.scrollable-columns .wp-block-column,
.wp-block-columns .wp-block-column.faded {
  overflow-y: auto;
  padding-right: 1rem;
}

.wp-block-column.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

.wp-block-column.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .2s; }
.delay-2 { transition-delay: .4s; }
.delay-3 { transition-delay: .6s; }
.delay-4 { transition-delay: .8s; }

.wp-block-column.faded {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}

/* =========================================================
15 MOBILE
========================================================= */
@media (max-width: 781px) {
  :root {
    --ssf-header-h: 64px;
    --ssf-footer-h: 38px;
  }

  .ssf-header-inner {
    padding: 12px 18px !important;
  }

  header .wp-block-site-logo img,
  .ssf-header .wp-block-site-logo img {
    max-width: 90px;
  }

  header a,
  header .wp-block-navigation-item__content,
  header .wp-block-navigation-item__label {
    font-size: 14px;
  }

  header .wp-block-navigation__container {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .ssf-orb {
    width: clamp(140px, 54vw, 260px);
    height: clamp(140px, 54vw, 260px);
  }

  .ssf-orb-wrap::after {
    width: clamp(180px, 68vw, 320px);
    height: clamp(180px, 68vw, 320px);
  }

  .ssf-exh-title {
    font-size: clamp(42px, 15vw, 78px);
    max-width: 92vw;
  }

  .ssf-artist {
    top: calc(50% + 68px);
    width: 88vw;
  }

  .ssf-listen-link {
    top: auto;
    bottom: 24px;
  }

  .wp-block-post-template.is-layout-grid,
  .ssf-query-grid .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  .ssf-single-media-grid {
    grid-template-columns: 1fr;
  }

  .ssf-single-hero .wp-block-post-title,
  .ssf-single-media-text .wp-block-post-title {
    font-size: clamp(48px, 18vw, 86px);
  }
}


.ssf-room-overview {
  margin-top: var(--ssf-gap);
}

.ssf-room-section {
  margin-top: clamp(36px, 7vw, 110px);
}

.ssf-room-section h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 52px);
  line-height: .9;
  color: inherit;
}

.ssf-room-card {
  display: grid;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.ssf-room-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: none;
}

.ssf-room-card h3 {
  margin: 0;
  font-size: clamp(28px, 5vw, 82px);
  line-height: .86;
  letter-spacing: -.065em;
}

.ssf-room-card p {
  margin: 6px 0 0;
  font-size: clamp(18px, 2vw, 32px);
  line-height: 1;
  opacity: .65;
}

.ssf-room-card-current {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.ssf-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.ssf-room-grid .ssf-room-card {
  border: 1px solid currentColor;
  padding: 10px;
}

.ssf-room-label {
  margin: 0 0 18px;
  font-size: clamp(12px, 1.5vw, 24px);
  line-height: .9;
  letter-spacing: -.06em;
}

@media (max-width: 781px) {
  .ssf-room-card-current,
  .ssf-room-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
LISTENING ROOM SPACING
========================= */

.ssf-room-overview {
  margin-top: clamp(56px, 8vw, 140px);
}

.ssf-room-section {
  margin-top: 0;
}

.ssf-room-section + .ssf-room-section {
  margin-top: clamp(80px, 10vw, 180px);
}

.ssf-room-label {
  margin: 0 0 clamp(18px, 2.4vw, 36px);
}

.ssf-room-current .ssf-room-card {
  margin-top: 0;
}

.ssf-room-past {
  padding-top: clamp(20px, 3vw, 48px);
}

.ssf-room-grid {
  margin-top: 0;
}

/* === NAV come fascia colore corrente === */
.ssf-header-inner:last-of-type {

  background: var(--ssf-current);
}

/* link neri sulla fascia */
.ssf-header-inner:last-of-type a,
.ssf-header-inner:last-of-type .wp-block-navigation-item__content,
.ssf-header-inner:last-of-type .wp-block-navigation-item__label {
  color: var(--ssf-black) !important;
}

/* hover (leggero) */
.ssf-header-inner:last-of-type a:hover {
  opacity: 0.7;
}

/* item attivo (inversione) */
.ssf-header-inner:last-of-type .current-menu-item > a,
.ssf-header-inner:last-of-type .current-menu-item .wp-block-navigation-item__content {
  background: var(--ssf-black);
  color: var(--ssf-current) !important;
  padding: 0.3em 0.5em;
}