:root {
  --bg: #f4efe3;
  --paper: rgba(255, 252, 246, 0.68);
  --paper-strong: rgba(255, 251, 242, 0.84);
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.7);
  --line: rgba(17, 17, 17, 0.12);
  --accent: #0b63ce;
  --accent-2: #ff6b95;
  --accent-3: #f2a900;
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.14);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 99, 206, 0.24), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(255, 107, 149, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(242, 169, 0, 0.22), transparent 30%),
    var(--bg);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--background-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(0.95);
  opacity: 0.12;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 239, 227, 0.75), rgba(244, 239, 227, 0.94)),
    repeating-linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.02) 0,
      rgba(17, 17, 17, 0.02) 1px,
      transparent 1px,
      transparent 13px
    );
  pointer-events: none;
}

body[data-page="home"] {
  --background-image: url("ec39dbff-8890-4390-a7bc-fa1f43938ee3.JPG");
}

body[data-page="onepage"] {
  --background-image: url("ec39dbff-8890-4390-a7bc-fa1f43938ee3.JPG");
}

body[data-page="manifesto"] {
  --background-image: url("a633eb99-8656-4125-b536-6648655db3a9.JPG");
}

body[data-page="eventi"] {
  --background-image: url("6610e12d-26ce-4b04-a5ff-6ded87a47135.JPG");
}

body[data-page="contatti"] {
  --background-image: url("3302db31-097b-44af-ada9-0e70cb8fceac.JPG");
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding: 0.5rem 0 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}

.brand-word {
  display: grid;
  grid-template-columns: 0.525fr 0.612fr 0.849fr 0.610fr 0.511fr 0.674fr 0.695fr;
  align-items: end;
  gap: 0.15rem;
  width: clamp(17rem, 40vw, 31rem);
  height: auto;
}

.brand-letter {
  display: block;
  min-width: 0;
  width: 100%;
  height: auto;
  animation: none;
  transform: none;
}

.brand-subtitle {
  margin: 0.35rem 0 0.25rem;
  font: 0.65rem/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.section-title,
.event-item h4 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.brand-kicker,
.eyebrow,
.feature-index,
.event-date,
.contact-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0.35rem;
}

.brand-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease;
}

.brand-socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
}

.brand-socials svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 48px;
  min-width: 0;
  padding: 0.9rem 1.5rem;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(17, 17, 17, 0.3);
  border-radius: 999px;
  font: 0.8rem Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.main-nav a.active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.main-nav a:hover {
  color: var(--bg);
  background: #30352e;
  border-color: var(--text);
}

.main-nav a:active,
.main-nav a.is-visible:active {
  transform: scale(0.97);
}

.main-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.one-page {
  width: 100%;
}

.scroll-art {
  position: relative;
  display: grid;
  min-height: 76vh;
  place-items: center;
  padding: 2vh 0;
}

.scroll-art__scale {
  --scroll-scale: 0.56;
  width: min(72vw, 760px);
  transform: scale(var(--scroll-scale));
  transform-origin: center;
  will-change: transform;
}

.scroll-art--mono .scroll-art__scale {
  width: min(78vw, 900px);
}

.scroll-art--contact .scroll-art__scale {
  width: min(70vw, 790px);
}

.scroll-art__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transform-origin: center;
  will-change: transform;
}

.scroll-art__image--spin {
  animation: homeFloatSpin 20s linear infinite;
}

.scroll-art__image--float {
  animation: artworkFloat 7.5s ease-in-out infinite;
}

.scroll-art__image--float-late {
  animation-delay: -3.8s;
}

.scroll-cue {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.content-section {
  position: relative;
  min-height: 88vh;
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 4vw, 4.5rem);
  border-top: 1px solid rgba(17, 17, 17, 0.24);
  scroll-margin-top: 1rem;
}

.content-section::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 0;
  width: 22%;
  height: 1px;
  background: var(--text);
}

.manifesto-section,
.events-section,
.contact-section {
  min-height: auto;
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-top: 0;
}

.manifesto-section::after,
.events-section::after,
.contact-section::after {
  display: none;
}

.section-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.65fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 1rem;
}

.section-heading h1,
.section-heading h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.section-heading h2 {
  font-size: clamp(3.6rem, 9vw, 8.5rem);
}

.section-heading h2.section-title {
  max-width: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.section-intro {
  max-width: 34rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.manifesto-quote {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.manifesto-quote::before {
  content: "“";
  position: absolute;
  top: -0.12em;
  left: -0.03em;
  background: transparent;
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  z-index: 0;
}

.manifesto-quote blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
}

.manifesto-quote p {
  margin: 0;
}

.manifesto-quote__translation {
  font-size: clamp(1.25rem, 1.75vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.manifesto-quote__original {
  margin-top: clamp(0.35rem, 1vw, 1rem) !important;
  padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
  border-left: 1px solid rgba(17, 17, 17, 0.35);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
}

.manifesto-quote__original footer {
  margin-top: 1.75rem;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-list {
  display: grid;
}

.events-group-title {
  margin: 0;
  font: 400 0.8rem Arial, Helvetica, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.events-group--past {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(17, 17, 17, 0.22);
}

.events-empty {
  margin: 0;
  padding: clamp(2rem, 6vw, 5rem) 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.event-item {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.event-item + .event-item {
  border-top: 1px solid var(--text);
}

.event-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(17, 17, 17, 0.08);
}

.event-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: filter 400ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-item:hover .event-media img {
  filter: saturate(1) contrast(1);
  transform: scale(1.025);
}

.event-media--empty {
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.3);
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(17, 17, 17, 0.16) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(17, 17, 17, 0.16) 50%, transparent 50.3%);
}

.event-media--empty span {
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  font: 0.68rem "Courier New", Courier, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-content {
  display: grid;
  align-content: center;
}

.event-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.5rem);
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
}

.event-item h4 {
  max-width: 13ch;
  margin: 0 0 1.4rem;
  font-size: clamp(2.4rem, 5.5vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.event-biography {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.62;
  white-space: pre-line;
}

.event-date {
  font: 0.72rem "Courier New", Courier, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-place {
  margin: 0;
  color: var(--muted);
  font: 0.7rem "Courier New", Courier, monospace;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  border: 1px solid var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.event-link:hover {
  color: var(--bg);
  background: var(--text);
}

.event-link svg {
  width: 1.65rem;
  height: 1.1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.event-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.artistic-direction {
  margin: 1.75rem 0 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.artistic-direction span {
  display: block;
  margin-bottom: 0.4rem;
  font: 0.7rem Arial, Helvetica, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-layout {
  max-width: 58rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.newsletter-signup {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
  margin-bottom: clamp(7rem, 14vw, 13rem);
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--bg);
  background: var(--text);
  transform: rotate(-0.35deg);
}

.newsletter-copy h3 {
  max-width: 13ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.newsletter-copy > p:last-child {
  max-width: 32rem;
  margin-bottom: 0;
  color: rgba(244, 239, 227, 0.7);
  line-height: 1.55;
}

.newsletter-form {
  display: grid;
  gap: 1.2rem;
}

.newsletter-email {
  display: grid;
  gap: 0.55rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.newsletter-email input {
  width: 100%;
  padding: 0.9rem 0;
  color: var(--bg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bg);
  border-radius: 0;
  font: 1.2rem Georgia, "Times New Roman", serif;
  outline: none;
}

.newsletter-email input::placeholder {
  color: rgba(244, 239, 227, 0.48);
}

.newsletter-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: rgba(244, 239, 227, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
}

.newsletter-consent input {
  margin-top: 0.18rem;
  accent-color: var(--bg);
}

.newsletter-form button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--bg);
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.newsletter-form button:hover {
  color: var(--bg);
  background: transparent;
}

.newsletter-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.newsletter-status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(244, 239, 227, 0.75);
  font-size: 0.88rem;
}

.newsletter-status.is-error {
  color: #ffb2a3;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-details > a {
  display: inline-block;
  margin: 0.6rem 0 1.5rem;
  color: var(--text);
  font-size: clamp(1.35rem, 2.7vw, 2.8rem);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text);
}

@keyframes artworkFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(-1.6deg);
  }
  25% {
    transform: translate3d(-1rem, -1.35rem, 0) rotate(1deg);
  }
  50% {
    transform: translate3d(0.65rem, -1.8rem, 0) rotate(-0.8deg);
  }
  75% {
    transform: translate3d(1.2rem, -0.7rem, 0) rotate(1.2deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.6deg);
  }
}

@keyframes homeFloatSpin {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(-1rem, -1.35rem, 0) rotate(90deg);
  }
  50% {
    transform: translate3d(0.65rem, -1.8rem, 0) rotate(180deg);
  }
  75% {
    transform: translate3d(1.2rem, -0.7rem, 0) rotate(270deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .scroll-art {
    min-height: 66vh;
  }

  .scroll-art__scale,
  .scroll-art--mono .scroll-art__scale,
  .scroll-art--contact .scroll-art__scale {
    width: min(84vw, 720px);
  }

  .section-heading--split,
  .manifesto-quote,
  .contact-layout,
  .newsletter-signup {
    grid-template-columns: 1fr;
  }

  .manifesto-quote__original {
    max-width: 42rem;
    margin-left: clamp(1rem, 8vw, 5rem) !important;
  }

  .section-intro {
    margin-top: 1rem;
  }

  .event-item {
    grid-template-columns: minmax(200px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1.75rem, 5vw, 3.5rem);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    width: 100%;
  }

  .brand-block,
  .brand-word {
    width: 100%;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .main-nav a {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 1.1rem;
    gap: 1rem;
  }

  .brand-socials {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-socials a {
    width: 2rem;
  }

  .scroll-art {
    min-height: 58vh;
  }

  .scroll-art__scale,
  .scroll-art--mono .scroll-art__scale,
  .scroll-art--contact .scroll-art__scale {
    width: 91vw;
  }

  .scroll-cue {
    bottom: 3vh;
  }

  .content-section {
    min-height: auto;
    padding: 4.5rem 0.5rem 6rem;
  }

  .manifesto-section,
  .events-section,
  .contact-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .newsletter-signup {
    gap: 2.5rem;
    margin-inline: -0.5rem;
    padding: 2.2rem 1.25rem;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }

  .manifesto-lead {
    font-size: clamp(2rem, 10vw, 3.15rem);
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .event-media {
    width: min(100%, 34rem);
  }

  .event-item h4 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }

  .event-meta {
    display: grid;
    gap: 0.5rem;
  }

  .event-place {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-art__image,
  .event-media img {
    animation: none;
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
