/*
Theme Name: Gruppo21
Theme URI: https://gruppo21.it
Author: Antigravity
Description: Custom Neo-Brutalist Theme for Gruppo21 — Studio di Progettazione Culturale
Version: 2.0.0
Text Domain: gruppo21
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --black:   #000000;
  --white:   #ffffff;
  --red:     #FF1A1A;
  --offwhite:#F5F3EF;

  --serif:   'Libre Baskerville', Georgia, serif;
  --sans:    'Poppins', system-ui, sans-serif;

  --line:    2px solid var(--black);
  --line-w:  2px solid var(--white);
  --line-r:  2px solid var(--red);

  --speed:   0.2s;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-xl {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.display-lg {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.display-md {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.body-text {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================================
   BLOB CURSOR
   ============================================================ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-shape {
  width: 32px;
  height: 32px;
  background-color: var(--white);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: organic-blob 6s ease-in-out infinite alternate;
  transition: transform 0.15s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s;
  position: relative;
}

.cursor-shape::before {
  content: '';
  position: absolute;
  top: -30%; left: -30%; right: -30%; bottom: -30%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  border: 1.5px solid var(--white);
  animation: organic-blob-reverse 8s linear infinite;
  opacity: 0.8;
  transition: border-color 0.3s;
}

body.hovering-link .cursor-shape {
  width: 64px;
  height: 64px;
  background-color: var(--red);
}

body.hovering-link .cursor-shape::before {
  border-color: var(--red);
  transform: scale(1.1) rotate(45deg);
}

@keyframes organic-blob {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: rotate(120deg) scale(1.1, 0.9); }
  66% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: rotate(240deg) scale(0.95, 1.15); }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(360deg) scale(1); }
}

@keyframes organic-blob-reverse {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(360deg) scale(1); }
  50% { border-radius: 30% 70% 70% 30% / 30% 70% 30% 70%; transform: rotate(180deg) scale(1.15); }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
}

/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */
.container {
  width: 100%;
  padding: 0 2rem;
}

/* The editorial grid: 12 cols, visible lines */
.g21-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-left: var(--line);
  border-right: var(--line);
}

.g21-grid > [class*="span-"] {
  border-right: var(--line);
  border-bottom: var(--line);
  overflow: hidden;
}

.g21-grid > [class*="span-"]:last-child,
.g21-grid > .no-border-r { border-right: none; }

.span-1  { grid-column: span 1; }
.span-2  { grid-column: span 2; }
.span-3  { grid-column: span 3; }
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-9  { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }

.pad    { padding: 2rem; }
.pad-sm { padding: 1.25rem 2rem; }
.pad-lg { padding: 4rem 2rem; }
.pad-xl { padding: 6rem 2rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0;
}

.header-logo-cell {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 22px;
  width: 22px;
  color: var(--black);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-logo:hover img {
  transform: scale(1.15);
}

.header-tagline {
  padding: 0.5rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  display: none; /* shown on wider screens */
}

.header-nav {
  padding: 0 1.5rem;
}

.header-nav ul {
  display: flex;
  gap: 0;
}

.header-nav ul li a {
  display: block;
  padding: 1.2rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--speed);
}

.header-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width var(--speed) var(--ease);
}

.header-nav ul li a:hover { color: var(--red); }
.header-nav ul li a:hover::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  border-bottom: var(--line);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.hero-top {
  padding: 5vw 2rem 3vw;
  border-bottom: var(--line);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-top .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-top .hero-eyebrow .dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-bottom-left {
  padding: 3rem 2rem;
  border-right: var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bottom-right {
  background: var(--black);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2rem;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.hero-bottom-right::before {
  content: 'G21';
  position: absolute;
  font-family: var(--serif);
  font-size: 18rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  top: -2rem;
  right: -2rem;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border: var(--line-w);
  transition: background var(--speed), color var(--speed);
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  background: var(--red);
  border-color: var(--red);
}

.hero-cta .arrow {
  font-size: 1.1rem;
  transition: transform var(--speed);
}

.hero-cta:hover .arrow { transform: translateX(4px); }

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.ticker {
  overflow: hidden;
  background: var(--red);
  border-top: var(--line-r);
  border-bottom: var(--line);
  padding: 0.9rem 0;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-item {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white);
  padding: 0 2.5rem;
}

.ticker-sep {
  color: rgba(255,255,255,0.5);
  font-style: normal;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: var(--line);
}

.section-header .section-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.35;
}

.section-header a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--speed);
}

.section-header a:hover { color: var(--red); }

/* ============================================================
   EXHIBITION CARDS
   ============================================================ */
.expo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  transition: background var(--speed);
}

.expo-card:hover { background: var(--offwhite); }

.expo-card-img {
  border-bottom: var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}

.expo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}

.expo-card:hover .expo-card-img img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.expo-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.04em;
  transition: background 0.4s;
}

.expo-card:hover .expo-card-placeholder {
  background: #111;
}

.expo-card-body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.expo-card-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.expo-card-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.expo-card-desc {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  flex: 1;
  opacity: 0.75;
}

.expo-card-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color var(--speed), border-color var(--speed);
  align-self: flex-start;
}

.expo-card-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ============================================================
   FEATURED BLOCK (large hero-style card)
   ============================================================ */
.featured-block {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-bottom: var(--line);
}

.featured-block-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.featured-block-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.featured-block-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 50ch;
  opacity: 0.75;
}

/* ============================================================
   MANIFESTO BAND
   ============================================================ */
.manifesto-band {
  background: var(--red);
  border-top: var(--line-r);
  border-bottom: var(--line);
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.manifesto-band .display-lg {
  color: var(--white);
  max-width: 14ch;
}

.manifesto-band .manifesto-sub {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 40ch;
  line-height: 1.65;
}

/* ============================================================
   PROGETTI GRID
   ============================================================ */
.project-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-left: var(--line);
  border-right: var(--line);
}

.project-strip > * {
  border-right: var(--line);
  border-bottom: var(--line);
}

.project-strip > *:last-child { border-right: none; }

.project-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--speed);
  min-height: 300px;
  justify-content: space-between;
}

.project-card:hover { background: var(--offwhite); }

.project-card-num {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.3;
}

.project-card-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.project-card-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: var(--line);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background var(--speed), color var(--speed);
}

.project-card:hover .project-card-tag {
  background: var(--black);
  color: var(--white);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--line);
  background: transparent;
  color: var(--black);
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--black);
  border-color: var(--black);
}

.btn-white {
  border-color: var(--white);
  color: var(--white);
}

.btn-white:hover {
  background: var(--white);
  color: var(--black);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: var(--line);
}

.footer-top > * {
  border-right: var(--line);
  padding: 3rem 2rem;
}

.footer-top > *:last-child { border-right: none; }

.footer-wordmark {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-wordmark .wordmark-text {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.footer-col {
  grid-column: span 3;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.4;
}

.footer-col p, .footer-col address {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  font-style: normal;
}

.footer-col a { transition: color var(--speed); }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.footer-bottom p {
  font-family: var(--sans);
  font-size: 0.72rem;
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* ============================================================
   IMAGE MASKS
   ============================================================ */
.mask-arch    { border-top-left-radius: 50% 100%; border-top-right-radius: 50% 100%; overflow: hidden; }
.mask-pill    { border-radius: 9999px; overflow: hidden; }
.mask-blob-1  { border-radius: 41% 59% 41% 59% / 46% 38% 62% 54%; overflow: hidden; }
.mask-blob-2  { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; overflow: hidden; }
.mask-blob-3  { border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%; overflow: hidden; }
.mask-blob-4  { border-radius: 30% 70% 30% 70% / 50% 50% 50% 50%; overflow: hidden; }
.mask-blob-5  { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; overflow: hidden; }
.mask-star    { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); overflow: hidden; }

/* ============================================================
   BACKGROUND PATTERNS
   ============================================================ */
.pattern-dots {
  background-image: radial-gradient(rgba(0,0,0,0.18) 2px, transparent 2px);
  background-size: 22px 22px;
}
.pattern-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.pattern-lines {
  background-image: repeating-linear-gradient(
    45deg, rgba(0,0,0,0.07) 0,
    rgba(0,0,0,0.07) 2px,
    transparent 2px,
    transparent 12px
  );
}
.pattern-dots-white {
  background-image: radial-gradient(rgba(255,255,255,0.2) 2px, transparent 2px);
  background-size: 22px 22px;
}

/* ============================================================
   GUTENBERG BLOCK STYLES — FRONTEND
   These mirror what editor.css does inside Gutenberg.
   Applied when user picks a style from the sidebar.
   ============================================================ */

/* Image masks */
.wp-block-image.is-style-mask-blob-1 img { border-radius: 41% 59% 41% 59% / 46% 38% 62% 54%; }
.wp-block-image.is-style-mask-blob-2 img { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
.wp-block-image.is-style-mask-blob-3 img { border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%; }
.wp-block-image.is-style-mask-arch img   { border-top-left-radius: 50% 100%; border-top-right-radius: 50% 100%; overflow: hidden; }
.wp-block-image.is-style-mask-pill img   { border-radius: 9999px; }
.wp-block-image.is-style-mask-star img   { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* Group/Cover background patterns */
.wp-block-group.is-style-pattern-dots,
.wp-block-cover.is-style-pattern-dots  { background-image: radial-gradient(rgba(0,0,0,0.18) 2px, transparent 2px); background-size: 22px 22px; }

.wp-block-group.is-style-pattern-grid,
.wp-block-cover.is-style-pattern-grid  {
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.wp-block-group.is-style-pattern-lines { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.07) 0, rgba(0,0,0,0.07) 2px, transparent 2px, transparent 12px); }

/* Heading: Display gigante */
.wp-block-heading.is-style-display-xl {
  font-size: clamp(4.5rem, 14vw, 10rem) !important;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

/* Quote: editorial pull-quote */
.wp-block-quote.is-style-editorial-quote {
  border-left: 6px solid var(--red);
  padding: 1.5rem 2rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--black);
  background: none;
}
.wp-block-quote.is-style-editorial-quote cite {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.5;
  margin-top: 1rem;
  display: block;
}

/* Separator: thick line */
.wp-block-separator.is-style-thick-line {
  border: none;
  border-top: 6px solid var(--black);
  margin: 3rem 0;
  max-width: 100%;
  opacity: 1;
}

/* Buttons */
.wp-block-button.is-style-btn-red .wp-block-button__link {
  background: var(--red);
  border: 2px solid var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.9rem 1.75rem;
  transition: background 0.2s, border-color 0.2s;
}
.wp-block-button.is-style-btn-red .wp-block-button__link:hover {
  background: var(--black);
  border-color: var(--black);
}

.wp-block-button.is-style-default .wp-block-button__link,
.wp-block-button__link {
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.9rem 1.75rem;
  transition: background 0.2s, color 0.2s;
}
.wp-block-button.is-style-default .wp-block-button__link:hover,
.wp-block-button__link:hover {
  background: var(--black);
  color: var(--white);
}

.wp-block-button.is-style-btn-white .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
}
.wp-block-button.is-style-btn-white .wp-block-button__link:hover {
  background: var(--white);
  color: var(--black);
}

/* ============================================================
   PAGE & SINGLE TEMPLATES
   ============================================================ */

/* Article / page body: our font stack in post content */
.site-main .wp-block-paragraph,
.site-main .entry-content p {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--black);
}

.site-main .entry-content h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-top: 3rem; margin-bottom: 1rem; }
.site-main .entry-content h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); margin-top: 2rem; margin-bottom: 0.75rem; }

/* Post navigation links hover */
.post-nav a:hover { opacity: 1 !important; color: var(--red); }
.post-header a:hover { opacity: 1 !important; }

/* Brand colour utility classes (Gutenberg color palette) */
.has-nero-color         { color: var(--black) !important; }
.has-bianco-color       { color: var(--white) !important; }
.has-rosso-color        { color: var(--red)   !important; }
.has-panna-color        { color: var(--offwhite) !important; }
.has-nero-background-color     { background-color: var(--black)    !important; color: var(--white); }
.has-bianco-background-color   { background-color: var(--white)    !important; }
.has-rosso-background-color    { background-color: var(--red)      !important; color: var(--white); }
.has-panna-background-color    { background-color: var(--offwhite) !important; }


/* ============================================================
   UTILITY
   ============================================================ */
.bg-black { background: var(--black); color: var(--white); }
.bg-red   { background: var(--red);   color: var(--white); }
.bg-off   { background: var(--offwhite); }

.text-red   { color: var(--red); }
.text-white { color: var(--white); }

.border-bottom-line { border-bottom: var(--line); }
.border-top-line    { border-top: var(--line); }

/* ============================================================
   MOBILE & RESPONSIVE
   ============================================================ */
@media (min-width: 960px) {
  .header-tagline { display: block; }
}

@media (max-width: 900px) {
  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-bottom-right {
    min-height: 180px;
    border-top: var(--line);
  }

  .footer-top {
    display: flex;
    flex-direction: column;
  }

  .footer-top > * {
    border-right: none;
    border-bottom: var(--line);
    padding: 2rem 1.5rem;
  }

  .footer-wordmark { grid-column: unset; }
  .footer-col      { grid-column: unset; }
}

@media (max-width: 768px) {
  /* Cursor: hide on touch */
  .custom-cursor { display: none !important; }
  * { cursor: auto !important; }

  /* Header */
  .site-header {
    grid-template-columns: 1fr auto;
    position: sticky;
  }

  .header-logo-cell {
    padding: 0.75rem 1rem;
  }

  .header-nav {
    padding: 0 0.5rem;
    border-left: var(--line);
  }

  .header-nav ul { gap: 0; }
  .header-nav ul li a { padding: 1rem 0.75rem; font-size: 0.7rem; }

  /* Grid: stack to single column */
  .g21-grid,
  .project-strip {
    display: flex;
    flex-direction: column;
    border-left: none;
    border-right: none;
  }

  .g21-grid > *,
  .project-strip > * {
    border-right: none;
    border-left: none;
  }

  /* Hero */
  .hero-top { padding: 3rem 1.25rem 2rem; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-bottom-right { display: none; }

  /* Manifesto */
  .manifesto-band { padding: 3rem 1.25rem; }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem 1rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor { display: none !important; }
  * { cursor: auto !important; }
}

/* ============================================================
   FUNDING BANNER & MOBILE HEADER FIXES
   ============================================================ */
.funding-banner {
  background-color: var(--offwhite);
  border-bottom: var(--line);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.funding-banner:hover {
  background-color: #eeebe3;
}
.funding-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.funding-logo {
  max-height: 40px;
  width: auto;
  flex-shrink: 0;
}
.funding-text {
  font-size: 0.65rem;
  line-height: 1.4;
  opacity: 0.7;
  font-family: var(--sans);
  font-weight: 500;
  margin: 0;
}
.funding-text .more-text {
  display: none;
}
.funding-text .dots {
  display: inline;
  font-weight: bold;
}
.funding-banner.expanded .more-text {
  display: inline;
}
.funding-banner.expanded .dots {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
  }
  .header-nav {
    overflow-x: auto;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .header-nav ul li a {
    padding: 1rem 0.75rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .header-logo-cell {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
  }
  .funding-banner {
    padding: 1rem;
  }
  .funding-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
