/* PARI E DISPARI — SITO AUTONOMO
 * Palette, tipografia e spazi riprendono il nuovo sito Lo Spazio.
 * Font e immagini locali: nessuna dipendenza dal CSS della cartella principale.
 */

/* FONT: Oswald per titoli e navigazione, Manrope per il corpo del testo. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/oswald-0.ttf") format("truetype");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oswald-1.ttf") format("truetype");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/oswald-2.ttf") format("truetype");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-3.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-variable.ttf") format("truetype");
}

/* BASE: stessa dimensione del body e stessi fondi approvati per Lo Spazio. */
:root {
  --ink: #252423;
  --paper: #f8f6f1;
  --sand: #eeeae1;
  --muted: #706e68;
  --line: #dedbd3;
  --accent: #a6225f;
  --font-title: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
strong {
  font-weight: 600;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 20px;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.15;
}
h1 {
  font-size: clamp(40px, 5.3vw, 72px);
}
h2 {
  font-size: clamp(30px, 3.2vw, 43px);
}
h3 {
  font-size: 27px;
}
h4 {
  font-size: 19px;
}
p {
  margin: 0 0 20px;
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.wrap {
  width: min(1180px, calc(100% - 72px));
  margin-inline: auto;
}
.section {
  padding-block: 66px;
}
.eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.body-copy {
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2,
.section-head h3 {
  margin-bottom: 0;
}
.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.text-link {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 15px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}
.text-link:hover {
  color: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid;
  padding: 14px 22px;
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.4px;
  transition:
    background 0.2s,
    color 0.2s;
}
.button.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.button.dark:hover {
  background: #45413b;
}
.button.light {
  color: #fff;
  border-color: #ffffff80;
}
.button.light:hover {
  background: #fff;
  color: var(--ink);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 14px;
}

/* TESTATA: logo originale reso nero sul fondo bianco tramite CSS. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 12px;
}
.brand {
  flex: 0 0 126px;
}
.brand img {
  width: 126px;
  height: 84px;
  object-fit: contain;
  filter: brightness(0);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-title);
  font-size: 15px;
}
.site-header nav > a,
.nav-editions summary {
  padding-block: 10px;
}
.site-header nav [aria-current="page"] {
  border-bottom: 1px solid var(--accent);
}
.site-header nav a:hover {
  color: var(--accent);
}
.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
}
.social-icons svg {
  width: 20px;
  height: 20px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 9px 14px;
  background: #fff;
  font-family: var(--font-title);
  font-size: 16px;
}
.nav-editions {
  position: relative;
}
.nav-editions summary {
  cursor: pointer;
  list-style: none;
}
.nav-editions summary::-webkit-details-marker {
  display: none;
}
.nav-editions summary::after {
  content: "⌄";
  margin-left: 9px;
}
.edition-dropdown {
  position: absolute;
  min-width: 205px;
  top: calc(100% + 12px);
  left: -20px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px #25242312;
}
.edition-dropdown a {
  display: block;
  padding: 10px 0;
  white-space: nowrap;
}

/* HOME: apertura editoriale e slideshow con dissolvenza di tre secondi. */
.home-hero {
  padding-block: 50px 60px;
  background: var(--sand);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 58px;
  align-items: center;
}
.hero-copy h1 {
  margin-block: 18px 26px;
  font-size: clamp(64px, 7.6vw, 98px);
  line-height: 1.03;
}
.hero-copy h1 span {
  color: var(--accent);
}
.hero-copy > p:not(.eyebrow) {
  max-width: 435px;
  color: var(--muted);
}
.hero-copy .button {
  margin-top: 12px;
}
.hero-slides {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #282625;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-gallery-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.hero-gallery-bottom p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.hero-gallery-bottom button {
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 3px 0;
  font-size: 11px;
  color: var(--muted);
}
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.story-grid h2 {
  max-width: 420px;
}
.latest-edition {
  background: #282625;
  color: #fff;
}
.latest-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.latest-grid > div {
  max-width: 570px;
}
.latest-edition h2 {
  font-size: clamp(36px, 4vw, 52px);
}
.latest-edition .eyebrow {
  color: #d7b898;
}
.latest-edition p:not(.eyebrow) {
  color: #d1cec6;
}
.latest-date {
  font-family: var(--font-title);
  font-size: 23px;
}
.latest-art {
  max-width: 345px;
  justify-self: end;
}
.latest-grid .button {
  margin-top: 14px;
}
.edition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.edition-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
}
.edition-cover {
  display: block;
  background: var(--sand);
}
.edition-cover img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: contain;
}
.edition-card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 23px 20px;
}
.edition-card-copy h3 {
  font-size: 42px;
  margin-bottom: 12px;
}
.edition-card-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 0.7px;
}
.edition-card-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
}
.edition-card-copy .text-link {
  margin-top: auto;
  align-self: start;
}

/* EDIZIONI: aperture senza foto come le pagine interne del sito Lo Spazio. */
.page-heading {
  background: var(--sand);
  padding-block: 40px 52px;
}
.page-heading h1 {
  max-width: 1020px;
}
.page-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.page-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  font-family: var(--font-title);
  font-size: 15px;
}
.page-jumps a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
}
.edition-intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 88px;
  align-items: center;
}
.edition-poster {
  max-width: 330px;
  justify-self: end;
}
.edition-poster .media-frame img {
  width: 100%;
  height: auto;
}
.archive-note {
  color: var(--ink);
  padding-block: 15px;
  border-block: 1px solid var(--line);
  margin-top: 24px;
}
.program-section {
  background: var(--sand);
}
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.speaker-card {
  border: 1px solid var(--line);
  background: #fff;
}
.speaker-portrait img {
  width: 100%;
  height: auto;
}
.speaker-copy {
  padding: 25px;
}
.speaker-copy p {
  font-size: 14px;
  color: var(--muted);
}
.speaker-copy p:last-child {
  margin-bottom: 0;
}
.speaker-copy .eyebrow {
  font-size: 11px;
}
.speaker-copy .speaker-context {
  color: var(--ink);
  font-weight: 500;
}
.program-event {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  padding-block: 40px;
  border-top: 1px solid #c9c4b9;
  align-items: start;
}
.program-event:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.program-event:last-of-type {
  padding-bottom: 0;
}
.event-art {
  max-width: 270px;
}
.event-art img {
  width: 100%;
  height: auto;
}
.event-copy {
  padding-block: 12px;
}
.event-copy h3 {
  font-size: 38px;
}
.event-book {
  color: var(--muted);
}
.event-book > span {
  font-size: 13px;
}
.event-copy h4 {
  margin-top: 26px;
  margin-bottom: 14px;
}
.dialogue-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dialogue-list li {
  margin-bottom: 13px;
}
.dialogue-list strong,
.dialogue-list span {
  display: block;
}
.dialogue-list span {
  color: var(--muted);
  font-size: 13px;
}
.event-after {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 13px;
}
.moderation {
  padding-top: 58px;
  margin-top: 30px;
  border-top: 1px solid #c9c4b9;
}
.moderator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.moderator-grid img {
  width: 100%;
  height: auto;
}
.edition-context .body-copy {
  max-width: 850px;
}
.other-editions {
  background: var(--sand);
}
.year-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}
.year-links a {
  display: flex;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid #c9c4b9;
  font-family: var(--font-title);
  font-size: 35px;
}
.year-links a:hover {
  color: var(--accent);
}

/* FOTO E STAMPA: immagini statiche nella pagina, senza pulsanti di ingrandimento. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.media-frame {
  position: relative;
  display: block;
}

.press-section {
  background: #eeeae1;
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}
.press-card {
  background: #fff;
  border: 1px solid var(--line);
}
.press-image {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.press-image img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.press-copy {
  padding: 26px;
}
.press-copy h3 {
  font-size: 25px;
  line-height: 1.3;
}
.press-copy p {
  font-size: 14px;
  color: var(--muted);
}
.press-copy .text-link {
  margin-top: 4px;
}

/* ORGANIZZAZIONE: immagini delle ideatrici e sede del festival. */
.organization-intro {
  margin-bottom: 38px;
}
.organization-scene {
  margin-top: 36px;
}
.organization-scene img {
  width: 100%;
  height: auto;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.person-card {
  border: 1px solid var(--line);
  background: #fff;
}
.person-card img {
  width: 100%;
  height: auto;
}
.person-copy {
  padding: 25px;
}
.person-copy p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.venue-section {
  background: #282625;
  color: #fff;
}
.venue-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.venue-grid img {
  width: 100%;
}
.venue-grid p {
  color: #d1cec6;
}
.venue-grid .eyebrow {
  color: #d7b898;
}
.venue-grid .text-link {
  border-color: #d7b898;
}

/* LOGHI: conservati nei gruppi della singola edizione; dimensioni leggibili. */
.partners {
  background: #fff;
  border-top: 1px solid var(--line);
}
.partner-group + .partner-group {
  margin-top: 34px;
}
.partner-group h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}
.partner-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px 40px;
}
.partner-logo {
  width: 150px;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.partner-logo img {
  max-width: 150px;
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* FOOTER: fondo scuro, recapiti e icone social come nel sito principale. */
footer {
  background: #252423;
  color: #d1cec6;
  padding-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.95fr;
  gap: 56px;
  padding-bottom: 38px;
}
.footer-brand {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-brand img {
  width: 125px;
  height: 85px;
  object-fit: contain;
}
.footer-grid h2 {
  color: #fff;
  font-size: 23px;
  margin-bottom: 16px;
}
.footer-grid p,
.footer-grid > div > a:not(.footer-brand) {
  font-size: 13px;
}
.footer-grid > div > a:not(.footer-brand) {
  display: block;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.footer-grid .text-link {
  display: inline-block !important;
  border-color: #b88c43;
  margin-top: 16px;
}
.footer-grid .social-icons {
  color: #fff;
}
.copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid #ffffff20;
  font-size: 11px;
}
.copyright span {
  margin-right: auto;
}

/* TABLET: colonne ridotte; navigazione completa sempre accessibile. */
@media (max-width: 1000px) {
  .site-header nav {
    gap: 19px;
  }
  .home-hero-grid {
    gap: 32px;
  }
  .hero-copy h1 {
    font-size: 74px;
  }
  .latest-grid {
    gap: 40px;
  }
  .edition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edition-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .edition-cover img {
    height: 100%;
  }
  .story-grid,
  .edition-intro-grid {
    gap: 40px;
  }
  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    gap: 28px;
  }
}

/* MOBILE: menu apribile, impaginazione a una colonna e spazi coerenti. */
@media (max-width: 800px) {
  html {
    scroll-padding-top: 105px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 44px;
  }
  .header-inner {
    min-height: 92px;
    padding-block: 9px;
    gap: 20px;
  }
  .brand {
    flex-basis: 105px;
  }
  .brand img {
    width: 105px;
    height: 72px;
  }
  .menu-toggle {
    display: block;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px;
    gap: 0;
    box-shadow: 0 12px 22px #25242310;
    max-height: calc(100dvh - 92px);
    overflow: auto;
  }
  .site-header nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .site-header nav > a,
  .nav-editions summary {
    padding-block: 13px;
  }
  .site-header nav [aria-current="page"] {
    color: var(--accent);
    border-bottom: 0;
  }
  .edition-dropdown {
    position: static;
    padding: 0 15px 12px;
    border: 0;
    box-shadow: none;
  }
  .site-header .social-icons {
    padding-top: 15px;
  }
  .home-hero {
    padding-block: 38px 40px;
  }
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy h1 {
    font-size: clamp(64px, 12vw, 92px);
  }
  .hero-copy > p:not(.eyebrow) {
    max-width: 580px;
  }
  .hero-gallery {
    max-width: 620px;
  }
  .story-grid,
  .latest-grid,
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .latest-art {
    justify-self: start;
    max-width: 300px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .page-heading {
    padding-block: 28px 40px;
  }
  .page-heading h1 {
    font-size: clamp(38px, 7vw, 56px);
  }
  .breadcrumbs {
    margin-bottom: 26px;
  }
  .edition-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .edition-poster {
    max-width: 300px;
    justify-self: start;
  }
  .program-event {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 26px;
    padding-block: 30px;
  }
  .event-copy h3 {
    font-size: 31px;
  }
  .event-copy .eyebrow {
    font-size: 11px;
    letter-spacing: 0.7px;
  }
  .event-copy {
    padding-top: 0;
  }
  .event-book {
    font-size: 14px;
  }
  .dialogue-list strong {
    font-size: 14px;
  }
  .moderator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .edition-grid,
  .speaker-grid,
  .people-grid,
  .photo-grid,
  .press-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .edition-card {
    grid-template-columns: 0.75fr 1.25fr;
  }
  .edition-card-copy {
    padding: 18px;
  }
  .edition-card-copy h3 {
    font-size: 36px;
  }
  .edition-card-copy > p:not(.eyebrow) {
    font-size: 13px;
  }
  .photo-grid,
  .press-grid {
    gap: 24px;
  }
  .program-event {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .event-art {
    max-width: 250px;
  }
  .event-copy h3 {
    font-size: 35px;
  }
  .event-copy .eyebrow {
    font-size: 12px;
  }
  .event-book,
  .dialogue-list strong {
    font-size: 16px;
  }
  .moderator-grid {
    gap: 16px;
  }
  .year-links {
    gap: 16px;
  }
  .year-links a {
    font-size: 29px;
  }
  .partner-logos {
    gap: 20px;
  }
  .partner-logo {
    width: calc(50% - 10px);
  }
  .copyright {
    flex-direction: column;
    gap: 12px;
  }
}

/* MOVIMENTO RIDOTTO: nessuna dissolvenza e scroll immediato quando richiesto. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ICONE VETTORIALI — Dimensioni e tratto definiti nel CSS, colore del controllo. */
.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* MENU E PULSANTI — Colore esplicito anche su Safari/iOS. */
button {
  color: inherit;
}
.menu-toggle {
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* EDIZIONE 2026: locandina completa, senza ritaglio né apertura delle immagini. */
.hero-edition-poster {
  display: block;
  width: min(100%, 420px);
  justify-self: end;
}
.hero-edition-poster img {
  width: 100%;
  height: auto;
}
.hero-copy .hero-date {
  font-family: var(--font-title);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
}
.edition-pending {
  max-width: 650px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .hero-edition-poster {
    justify-self: start;
    max-width: 420px;
  }
}
