.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.brand:hover,
.brand:focus-visible { color: var(--paper); }

.brand:hover strong,
.brand:focus-visible strong { color: var(--teal); }

.menu-toggle,
.mobile-cta { display: none; }

.hero__gallery {
  position: absolute;
  inset: 0;
}

.hero__gallery .hero__photo {
  background-position: var(--hero-position, 50% 42%);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.25s ease, transform 7.5s ease;
}

.hero__gallery .hero__photo.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__photo--opening { background-image: url('assets/hero-improshow-cinematica.jpg'); }
.hero__photo--event { background-image: url('assets/improshow-parmacotto-cinematica.jpg'); }
.hero__photo--ai-dinner { background-image: url('assets/hero-ai-cena-natale.jpg'); }
.hero__photo--ai-crowd { background-image: url('assets/hero-ai-pubblico-risate.jpg'); }
.hero__photo--audience { background-image: url('assets/hero-pubblico-parmacotto-cinematica.jpg'); }

.menu-toggle {
  place-items: center;
  align-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: width .2s ease, background-color .2s ease, transform .2s ease, opacity .2s ease;
}

.menu-toggle span:nth-child(2) {
  width: 17px;
  margin-left: 9px;
  background: var(--teal);
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.form-note {
  color: var(--ink);
  background: transparent;
  border: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

.lead-form { scroll-margin-top: 96px; }

.form-status.is-success { color: var(--teal-dark); }

.site-footer { font-size: 13px; }

.show-formats {
  padding: clamp(64px, 8vw, 118px) var(--edge) clamp(54px, 7vw, 96px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.show-formats__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: clamp(28px, 6vw, 100px);
  margin-bottom: clamp(38px, 5vw, 66px);
}

.show-formats__intro .eyebrow { margin-bottom: 18px; }

.show-formats h2 {
  max-width: 14ch;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 400;
  line-height: .96;
}

.show-formats__lead {
  max-width: 42ch;
  padding-bottom: 5px;
  color: #2b3130;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
}

.show-formats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.show-format {
  --format-accent: var(--coral);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(28px, 3vw, 46px);
}

.show-format:nth-child(even) { border-left: 1px solid var(--line); }
.show-format:nth-child(n+3) { border-top: 1px solid var(--line); }
.show-format--safe { --format-accent: #e3261b; }
.show-format--water { --format-accent: #0077a8; }
.show-format--gender { --format-accent: #7548a8; }
.show-format--safe h3,
.show-format--water h3,
.show-format--gender h3 { color: var(--format-accent); }

.show-format::before {
  position: absolute;
  top: -2px;
  left: clamp(28px, 3vw, 46px);
  width: 54px;
  height: 4px;
  background: var(--format-accent);
  content: '';
}

.show-format__type {
  margin-bottom: 24px;
  color: var(--format-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.show-format h3 {
  margin-bottom: 24px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.show-format__gallery {
  width: 100%;
  margin: 0 0 26px;
}

.show-format__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-soft);
}

.show-format__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.show-format__media.is-active {
  z-index: 1;
  opacity: 1;
}

.show-format__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.show-format__media--safe img { object-position: center 62%; }

.show-format__static-media {
  width: 100%;
  margin: 0 0 26px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-soft);
}

.show-format__static-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.show-format__static-media--gender img { object-position: center 42%; }

.show-format__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 10px;
  margin-top: 14px;
}

.show-format__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 220ms ease, transform 220ms ease;
}

.show-format__dots button:hover,
.show-format__dots button:focus-visible { transform: scale(1.25); }

.show-format__dots button:focus-visible {
  outline: 2px solid var(--format-accent);
  outline-offset: 3px;
}

.show-format__dots button.is-active { background: var(--format-accent); }

.show-format > p:not(.show-format__type):not(.show-format__fit) {
  color: #303635;
  font-size: 15px;
  line-height: 1.7;
}

.show-format__fit {
  margin-top: 24px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.show-format__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 28px;
  color: var(--ink);
  border-bottom: 2px solid var(--format-accent);
  font-size: 14px;
  font-weight: 800;
}

.show-format__link:hover,
.show-format__link:focus-visible { color: var(--format-accent); }

@media (prefers-reduced-motion: reduce) {
  .show-format__media,
  .show-format__dots button { transition: none; }
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    flex-wrap: nowrap;
    min-height: 76px;
  }

  .site-nav {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px var(--edge) 20px;
    background: rgba(8, 11, 11, .98);
    border-top: 1px solid rgba(251, 250, 247, .16);
    border-bottom: 1px solid rgba(251, 250, 247, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(251, 250, 247, .14);
    font-size: 14px;
  }

  .site-nav a:first-child { border-top: 0; }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .hero__inner { min-height: 760px; }
  .recognition__row { flex-direction: column; }
  .recognition h2,
  .recognition__col { flex-basis: auto; width: 100%; }
  .recognition__col { padding-top: 0; }
  .show-formats__intro { grid-template-columns: 1fr; }
  .show-formats__lead { max-width: 54ch; }
  .show-format { padding-inline: 24px; }
  .voices { flex-direction: column; }
  .voices__photo { flex-basis: auto; min-height: 480px; }
  .voices__body { flex-basis: auto; }
  .improsafe { flex-direction: column; }
  .improsafe__body,
  .improsafe__photo { flex-basis: auto; }
  .improsafe__photo { min-height: 480px; }
  .contact { flex-direction: column; }
  .contact__intro,
  .lead-form { flex-basis: auto; width: 100%; max-width: none; }
}

@media (max-width: 720px) {
  :root { --edge: 22px; }

  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  section[id] { scroll-margin-top: 76px; }

  .site-header { padding: 12px var(--edge); }
  .brand { max-width: calc(100% - 58px); }
  .brand span { font-size: 16px; }
  .header-cta { display: none; }

  .hero__gallery .hero__photo {
    background-position: var(--hero-position-mobile, 50% 24%);
  }

  .hero__veil {
    background: linear-gradient(180deg, rgba(8, 11, 11, .12) 0%, rgba(8, 11, 11, .08) 24%, rgba(8, 11, 11, .9) 57%, #080b0b 100%);
  }

  .hero__inner {
    min-height: 820px;
    justify-content: flex-end;
    padding: 34px var(--edge) 42px;
  }

  .hero h1 { max-width: 10ch; font-size: 50px; line-height: .95; }
  .hero__base { align-items: stretch; gap: 20px; }
  .hero__lead { flex-basis: 100%; font-size: 17px; }
  .hero__cta { display: none; }
  .facts { width: 100%; justify-content: space-between; gap: 12px; }
  .facts span { flex: 1 1 0; font-size: 9px; }
  .facts strong { font-size: 24px; }

  .marquee { padding-block: 11px; }
  .recognition { padding-block: 78px 68px; }
  .recognition h2 { font-size: 52px; }
  .recognition__col > p { font-size: 18px; }

  .acts { padding-bottom: 78px; }
  .acts__grid { grid-template-columns: 1fr; }
  .act__photo { aspect-ratio: 16 / 11; }
  .act--cta { min-height: 330px; }

  .show-formats { padding-block: 72px 64px; }
  .show-formats h2 { font-size: 46px; }
  .show-formats__grid { grid-template-columns: 1fr; }
  .show-format { min-height: 0; padding: 34px 0 38px; }
  .show-format + .show-format { border-top: 1px solid var(--line); border-left: 0; }
  .show-format::before { left: 0; }
  .show-format__link { margin-top: 28px; }

  .voices__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .voices__body { gap: 24px; padding-block: 58px; }
  .voices blockquote { font-size: 36px; }

  .improsafe__body { padding-block: 68px; }
  .improsafe__photo { min-height: 0; aspect-ratio: 4 / 3; }

  .contact { padding-block: 72px; }
  .contact__intro h2 { font-size: 46px; }
  .contact__direct { font-size: 25px; }
  .lead-form { padding: 26px 22px; }
  .lead-form { scroll-margin-top: 86px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-block: 38px 50px;
    font-size: 15px;
    letter-spacing: .04em;
  }

  .site-footer .brand { max-width: 100%; }

  .mobile-cta {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 16px var(--edge) calc(16px + env(safe-area-inset-bottom, 0px));
    color: var(--paper);
    background: var(--coral);
    border-top: 1px solid rgba(251, 250, 247, .35);
    font-size: 15px;
    font-weight: 800;
  }

  body:has(.lead-form:focus-within) .mobile-cta { visibility: hidden; }
}

@media (max-width: 430px) {
  :root { --edge: 18px; }
  .brand span { font-size: 14px; }
  .hero__inner { min-height: 790px; }
  .hero h1 { font-size: 44px; }
  .facts { flex-wrap: wrap; }
  .facts span { min-width: 82px; }
  .recognition h2 { font-size: 45px; }
  .voices blockquote { font-size: 32px; }
  .contact__intro h2 { font-size: 40px; }
  .contact__direct { font-size: 21px; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .hero__gallery .hero__photo { transition: none; }
  .menu-toggle span,
  .site-nav { transition: none; }
}

.site-footer__cookie {
  padding: 0;
  border: 0;
  color: #a7aca9;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.site-footer__cookie:hover,
.site-footer__cookie:focus-visible { color: var(--coral); }

.consent-banner {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 920px;
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid rgba(251, 250, 247, .22);
  border-radius: 6px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.consent-banner[hidden] { display: none; }
.consent-banner h2 { margin: 0 0 5px; font: 400 23px/1.05 'DM Serif Display', serif; }
.consent-banner p { max-width: 650px; color: #d8dcda; font-size: 13px; line-height: 1.55; }
.consent-banner a { color: var(--paper); text-decoration: underline; }
.consent-banner__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.consent-banner__actions .btn { min-width: 112px; padding: 13px 18px; }
.consent-banner__reject { border: 1px solid rgba(251, 250, 247, .42); color: var(--paper); background: transparent; }

@media (max-width: 720px) {
  .consent-banner {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
  }

  .consent-banner__actions { width: 100%; }
  .consent-banner__actions .btn { flex: 1 1 0; width: auto; }
}
