@font-face {
  font-family: "Open Sans";
  src: url("OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fugaz One";
  src: url("fugaz-one.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #28160d;
  --paper: #fff9f0;
  --red: #a50c14;
  --clay: #8c300f;
  --heading: "Fugaz One", system-ui, sans-serif;
  --lime: #e3ed36;
  --line: #e5cdbc;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul { margin: 0; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); background: white; color: var(--ink); padding: .75rem; z-index: 2; }
.skip:focus { transform: none; }
.top { background: var(--red); color: white; }
.top-inner { position: relative; }
.top-inner, .footer-inner {
  min-height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1rem;
}
.brand { display: block; }
.brand img { width: 200px; }
h2, .edition { font-family: var(--heading); font-weight: 400; }
.menu-toggle { display: none; }
nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.75rem, 2.6vw, 2rem); }
nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
@media (width > 740px) {
  .top nav a { font-family: var(--heading); font-weight: 400; }
}
.hero {
  color: #fffaf1;
  background: var(--clay);
  background-image: linear-gradient(105deg, #431508e8, #67230cb0 54%, #67230c40), url("campo-terra-rossa.webp");
  background-position: center;
  background-size: cover;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 6vw, 6rem);
  padding-block: clamp(2.25rem, 5vw, 4.75rem);
}
.edition { color: var(--lime); font-size: .9rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 {
  width: min(100%, 31rem);
  margin-block: .8rem 1.25rem;
}
.event { font-weight: 800; font-size: clamp(1.05rem, 2.1vw, 1.45rem); }
.event span { color: var(--lime); padding-inline: .14em; }
.intro { max-width: 34ch; margin-block: 1rem 1.65rem; font-size: 1.05rem; line-height: 1.55; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  padding: .85rem 1.05rem;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.cta:hover { background: #f1fa60; }
.poster {
  display: block;
  width: min(100%, 26rem);
  justify-self: end;
  box-shadow: 0 1.35rem 2.8rem #280d09a6, 0 .3rem .65rem #280d095e;
}
.categorie { background: var(--lime); }
.categorie-inner, .categorie ul {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
}
.categorie h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.categorie ul { grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; }
.categorie li { border-left: 1px solid #6a701c; padding-left: .85rem; }
.categorie strong, .categorie li span { display: block; }
.categorie li span { font-size: .85rem; margin-top: .25rem; }
.documenti-list { padding-block: clamp(2rem, 5vw, 4.5rem); }
.documenti {
  scroll-margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr minmax(9rem, 30%);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.documenti:nth-child(even) { grid-template-columns: minmax(9rem, 30%) 1fr; }
.documenti:nth-child(even) .documenti-figure { grid-area: 1 / 1; }
.documenti-figure {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  margin-block: clamp(-3.75rem, -5vw, -1.8rem);
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
}
.documenti h2 { color: var(--red); font-size: clamp(1.75rem, 4vw, 2.7rem); letter-spacing: -.055em; line-height: 1; }
.empty { margin-top: .85rem; color: #654638; }
.pdf-list { margin-top: 1.15rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.pdf-list a { display: flex; justify-content: space-between; gap: 1rem; background: #f7ebdd; padding: .85rem 1rem; border-radius: .25rem; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.pdf-list a:hover { background: #f3ddc9; text-decoration: underline; }
.pdf-type { flex-shrink: 0; font-size: .8rem; align-self: center; color: #77401e; }
.footer { color: var(--paper); background: var(--red); font-size: .85rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 126px; }
@media (max-width: 740px) {
  .brand img { width: 148px; }
  .top-inner { gap: .75rem; }
  .top nav { width: 100%; flex-direction: column; gap: 0; }
  .top nav a { padding: .7rem 0; }
  .top.is-enhanced .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }
  .top.is-enhanced #menu-principale { display: none; }
  .wrap { width: calc(100% - 2rem); }
  .hero-inner, .categorie-inner { grid-template-columns: 1fr; }
  .poster { justify-self: start; }
  .hero { background-image: linear-gradient(165deg, #431508e8, #67230c87), url("campo-terra-rossa.webp"); }
}
@media (max-width: 360px) {
  .categorie ul { gap: .35rem; }
  .categorie li { padding-left: .4rem; }
}

html:has(.mobile-menu[open]) { overflow: hidden; }
.mobile-menu {
  inset: 0;
  position: fixed;
  margin: 0;
  padding: 4rem 1.5rem;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  background: var(--red);
  color: white;
}
.mobile-menu[open] {
  display: grid;
  place-items: center;
  animation: menu-in 250ms ease-out both;
}
.mobile-menu[open].is-closing { animation: menu-out 180ms ease-in both; }
.mobile-menu-content {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 7vh, 4rem);
  animation: menu-links-in 340ms ease-out both;
}
.mobile-menu-content img { width: min(200px, 52vw); }
.mobile-menu nav {
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.mobile-menu nav a { font: 400 clamp(1.7rem, 8vw, 3rem)/1.15 var(--heading); }
.menu-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-close::before, .menu-close::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-out { to { opacity: 0; } }
@keyframes menu-links-in { from { opacity: 0; transform: translateY(1rem); } }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open], .mobile-menu[open].is-closing, .mobile-menu-content { animation: none; }
}
@media (max-width: 600px) {
  .documenti, .documenti:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 26%); }
  .documenti:nth-child(even) { grid-template-columns: minmax(4.5rem, 26%) minmax(0, 1fr); }
  .documenti-figure {
    width: min(38vw, calc(100% + 1.15rem));
    max-width: none;
    margin-block: -2rem;
  }
  .documenti { min-height: 7rem; }
  .pdf-list a { gap: .4rem; padding-inline: .5rem; }
}

.footer-brand { flex-wrap: wrap; gap: 1rem 2rem; }
.footer-brand address { font-style: normal; line-height: 1.6; }
.footer-credits {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 2rem;
  padding-block: .95rem;
  border-top: 1px solid #ffffff38;
}
.footer-credits a { font-weight: 750; text-underline-offset: .25em; }

.arrow-up-right {
  position: relative;
  display: inline-block;
  width: .74em;
  height: .74em;
  margin-inline: .12em;
  vertical-align: .03em;
  flex: none;
}
.arrow-up-right::before, .arrow-up-right::after {
  content: "";
  position: absolute;
}
.arrow-up-right::before {
  inset: 0 0 auto auto;
  width: .47em;
  height: .47em;
  border-top: .11em solid currentColor;
  border-right: .11em solid currentColor;
}
.arrow-up-right::after {
  top: 0;
  right: 0;
  width: .9em;
  height: .11em;
  background: currentColor;
  transform: translateY(.04em) rotate(-45deg);
  transform-origin: right center;
}

.categorie { background: var(--lime); overflow: hidden; }
.categorie-inner { grid-template-columns: 1fr 4fr; padding-block: 1.25rem; }
.categorie ul { gap: .75rem; align-items: stretch; }
.categorie li {
  position: relative;
  isolation: isolate;
  padding: .8rem .8rem .8rem 1rem;
  border: 0;
}
.categorie li::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #f7ff71;
  transform: skew(-9deg);
  border-left: 3px solid var(--red);
}
.categorie strong {
  color: var(--red);
  text-transform: uppercase;
  font: 400 clamp(1rem, 2.6vw, 1.8rem)/1.06 var(--heading);
}
@media (max-width: 740px) {
  .categorie-inner { grid-template-columns: 1fr; }
  .categorie ul { grid-template-columns: 1fr; }
  .categorie li { padding: .65rem 1rem; }
  .categorie li span { font-size: .85rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .categorie li { transition: transform 180ms ease; }
  .categorie li:nth-child(odd):hover { transform: translateY(-.3rem) rotate(-2deg); }
  .categorie li:nth-child(even):hover { transform: translateY(-.3rem) rotate(2deg); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > *, .poster {
    animation: hero-fade-in 1.15s cubic-bezier(.22, .65, .25, 1) both;
    animation-delay: var(--hero-delay, 80ms);
  }
  .hero h1 { --hero-delay: 180ms; }
  .hero .event { --hero-delay: 330ms; }
  .hero .intro { --hero-delay: 445ms; }
  .hero .cta { --hero-delay: 590ms; }
  .poster { --hero-delay: 300ms; }
  .has-entered { animation: section-fade-in 820ms cubic-bezier(.2, .7, .2, 1) both; }
  .categorie li:nth-child(2).has-entered { animation-delay: 75ms; }
  .categorie li:nth-child(3).has-entered { animation-delay: 150ms; }
  .documenti-figure.has-entered {
    --entry-x: 1.6rem;
    animation-delay: 145ms;
  }
  .documenti:nth-child(even) .documenti-figure.has-entered { --entry-x: -1.6rem; }
}
@keyframes section-fade-in {
  from { opacity: .12; transform: translate(var(--entry-x, 0), 1.1rem); }
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(1.3rem); }
}
