/* A calmer desktop scale, with readable minimum sizes for secondary text. */
@media (min-width: 981px) {
  .home-page { --u: min(.044270833333vw, .75px); }
  .home-page .hero__slide--portrait .hero__media { left:auto; right:0; }
  .home-page .wave--hero-top { height:calc(300 * var(--u)); }
  .home-page .wave--hero { top:auto; bottom:calc(-146 * var(--u)); height:calc(560 * var(--u)); }
  .home-page .hero__copy { left:max(calc(347.6 * var(--u)), calc((100% - 1126px) / 2 + 104 * var(--u))); }

  .home-page .header__bar { width:min(1126px, calc(100% - 48px)); height:max(64px, calc(102 * var(--u))); }
  .home-page .nav { margin-right:calc(80 * var(--u)); }
  .home-page .nav a { font-size:clamp(12px, calc(17 * var(--u)), 15px); }

  .home-page .btn { font-size:max(15px, calc(25.5 * var(--u))); }
  .home-page .header__ticket { font-size:14px; white-space:nowrap; min-width:170px; }
  .home-page .show-card .btn { font-size:max(14px, calc(25.5 * var(--u))); }
  .home-page .news-card__date,
  .home-page .news-card__excerpt { font-size:max(14px, calc(21 * var(--u))) !important; }
  .home-page .newsletter__form input[type='text'],
  .home-page .newsletter__form input[type='email'] { font-size:max(14px, calc(21 * var(--u))); }
  .home-page .check { font-size:max(13px, calc(21 * var(--u))); }
  .home-page .footer__grid { height:auto; min-height:calc(472.554 * var(--u)); padding-bottom:40px; font-size:max(14px, calc(21 * var(--u))); }
  .home-page .footer__main { font-size:max(14px, calc(23 * var(--u))); }
  .home-page .footer__legal p { font-size:max(12px, calc(20 * var(--u))) !important; }
  .internal-page .prose p,
  .internal-page .prose li,
  .internal-page .space-copy p,
  .internal-page .arrive p { font-size:max(16px, calc(24 * var(--u))) !important; }
}
@media (min-width:981px) and (max-width:1200px) {
 .home-page .footer__grid { height:auto; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px 20px; padding-bottom:40px; }
 .home-page .footer__grid a { overflow-wrap:anywhere; }
}

/* Original social artwork includes its circular outline. */
.home-page .hero .social a,
.home-page .page-hero .social a,
.home-page .footer__brands .social a {
 width:38px;
 height:38px;
 flex:0 0 38px;
 border:0;
 border-radius:50%;
 padding:0;
}
.home-page .social a img { width:100%; height:100%; object-fit:contain; }
body.home-page:not(.internal-page) .social a img { width:84%; height:84%; }
.home-page .hero__dots { align-items:center; }
.home-page .hero__dots [data-autoplay] {
 width:28px; height:28px; border:0; border-radius:4px;
 background:transparent; color:#fff; font-size:18px; line-height:1; padding:0;
}
.home-page .hero__dots [data-autoplay]:focus-visible { outline:2px solid var(--lime); outline-offset:2px; }
.home-page .hero .social,
.home-page .footer__brands .social { gap:12px; }
.home-page .page-hero .social { top:50%; transform:translateY(-50%); gap:8px; }
@media(max-width:600px) {
 .home-page .hero .social a,
 .home-page .page-hero .social a { width:30px; height:30px; flex-basis:30px; }
 .home-page .footer__brands .social a { width:36px; height:36px; flex-basis:36px; }
 .home-page.internal-page .page-hero .social {
  top:auto;
  right:auto;
  bottom:24px;
  left:20px;
  transform:none;
  flex-direction:row;
  gap:10px;
 }
}

/* Let the homepage news section grow with its cards and its final action. */
.home-page:not(.internal-page) .news-band { height:auto; padding-bottom:56px; }
.home-page:not(.internal-page) .news-band__all { position:static; width:100%; margin:48px 0 0; }
@media(max-width:980px) {
 .home-page:not(.internal-page) .news-band { padding-bottom:48px; }
 .home-page:not(.internal-page) .news-band__all { margin-top:36px; }
}
.home-page .show-card:is([data-show="natale-acido"], [data-show="gen-z"], [data-show="schiros"], [data-show="se-non-posso-ballare"], [data-show="arrivano-i-dunque"]) .show-card__media img {
  object-position: center top;
}

/* Keep the full vertical scene and poster artwork inside the shared card frame. */
.home-page .show-card:is([data-show="gaber-balletto"], [data-show="sfidati-di-me"], [data-show="belle-ripiene"], [data-show="capitolho"]) .show-card__media img {
  object-fit: contain;
  object-position: center;
}

/* The photo is mirrored: its source left edge is the visible right edge. */
.home-page .project-teaser__image {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 26%), linear-gradient(to bottom, transparent, #000 14%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 26%), linear-gradient(to bottom, transparent, #000 14%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Give the theatre section banners 100px more room, keeping their copy centred. */
.home-page:is(.page-theater, .page-structure, .page-project, .page-foundation, .page-supporter, .page-partner, .page-sponsors) .page-hero {
  height: calc(317 * var(--u) + 100px);
}
.home-page:is(.page-theater, .page-structure, .page-project, .page-foundation, .page-supporter, .page-partner, .page-sponsors) .page-hero__copy {
  padding-top: calc(96 * var(--u) + 50px);
}
.home-page.page-theater .page-hero { height: calc(550 * var(--u) + 100px); }
.home-page.page-partner .page-hero { background-position: center bottom; }
.home-page.page-events .page-hero {
  background-position: center bottom;
  height: calc(317 * var(--u) + 150px);
}
.home-page.page-events .page-hero__copy { padding-top: calc(96 * var(--u) + 75px); }
.home-page.page-spaces .page-hero { height: calc(550 * var(--u) + 100px); }
.home-page.page-spaces .page-hero__copy { padding-top: calc(95 * var(--u) + 50px); }
.home-page:is(.page-theater, .page-structure, .page-project, .page-foundation, .page-supporter, .page-partner, .page-sponsors) .prose p,
.home-page.page-sponsors .sponsor-page p {
  margin-bottom: 1.5em;
}
.home-page:is(.page-theater, .page-structure, .page-project, .page-foundation, .page-supporter, .page-partner, .page-sponsors) .prose h2 {
  margin-top: 2em;
  margin-bottom: .75em;
}
.home-page:is(.page-theater, .page-structure, .page-project, .page-foundation, .page-supporter, .page-partner, .page-sponsors) .prose h2:first-child {
  margin-top: 0;
}
.home-page.page-theater .page-hero__copy { padding-top: calc(95 * var(--u) + 50px); }
@media(max-width:980px) {
  .home-page.page-spaces .page-hero { height: auto; min-height: 450px; }
  .home-page.page-spaces .page-hero__copy { padding: 120px 0; }
  .home-page.page-events .page-hero { height: auto; min-height: 410px; }
  .home-page.page-events .page-hero__copy { padding: 145px 0; }
  .home-page:is(.page-theater, .page-structure, .page-project, .page-foundation, .page-supporter, .page-partner, .page-sponsors) .page-hero {
    height: auto;
    min-height: 360px;
  }
  .home-page:is(.page-theater, .page-structure, .page-project, .page-foundation, .page-supporter, .page-partner, .page-sponsors) .page-hero__copy {
    padding: 120px 0;
  }
  .home-page.page-theater .page-hero { min-height: 450px; }
}
.page-contacts .map-hero iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 23.3854vw, 500px);
  border: 0;
  filter: grayscale(1);
}
.home-page .hero__slide--custom .hero__media {
  position:absolute;
  grid-column:1 / -1;
  grid-row:1 / -1;
  inset:0;
  width:100%;
  height:100%;
}
.home-page .hero__slide--custom .hero__media img { object-fit:cover; object-position:center; }
.home-page .hero__slide--custom .hero__media::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.15) 60%, transparent);
}
@media(max-width:980px) {
  .home-page .hero__slide--custom .hero__media img { object-position:75% center; }
}
.page-structure .video-item__preview {
  display:block;
  position:relative;
  width:100%;
  padding:0;
  border:0;
  background:#111;
  cursor:pointer;
}
.page-structure .video-item__preview img { display:block; margin:0; }
.page-structure .video-item__preview .video-item__play { top:50%; }
.page-structure .video-item__preview:hover .video-item__play { background:#245a64; }
.page-structure .video-item__preview:focus-visible { outline:3px solid #245a64; outline-offset:4px; }
.page-structure .video-item__player { display:block; width:100%; aspect-ratio:16 / 9; border:0; background:#111; }
.page-structure .video-item__external { display:block; margin-top:8px; text-align:center; font-size:13px; color:#245a64; text-decoration:underline; }
.video-modal {
  width:min(1120px, calc(100vw - 32px), calc((90dvh - 100px) / .5625));
  max-height:94dvh;
  padding:0;
  border:0;
  border-radius:14px;
  background:#111;
  color:#fff;
  box-shadow:0 24px 90px #0009;
}
.video-modal::backdrop { background:rgba(0,0,0,.82); }
body.has-video-modal { overflow:hidden; }
.video-modal__toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 20px; }
.video-modal .video-modal__toolbar h2 { margin:0; font:700 18px Aller,sans-serif; color:#fff; }
.video-modal__close { display:flex; align-items:center; gap:10px; border:0; border-radius:6px; padding:6px 10px; background:#303030; color:#fff; font:inherit; cursor:pointer; }
.video-modal__close span { font-size:28px; line-height:1; }
.video-modal__player { display:block; width:100%; aspect-ratio:16 / 9; border:0; }
.video-modal__external { display:block; padding:12px 20px; color:#bde47c; text-align:right; font-size:14px; }
.video-modal[open] { animation:news-modal-in 250ms ease both; }
@media(prefers-reduced-motion:reduce) { .video-modal[open] { animation:none; } }

/* Stack event actions without shrinking the carousel cards. */
.home-page .show-card__actions {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-top:auto;
}
.home-page .show-card__actions .btn { margin-top:0; max-width:100%; }
.home-page .carousel .show-card:has([data-show-description]) {
  height:auto;
  min-height:calc(663 * var(--u) + 50px);
}
@media(max-width:980px) {
  .home-page .carousel .show-card:has([data-show-description]) { min-height:530px; }
}
.show-modal .news-modal__body { font-size:18px; line-height:1.65; overflow-wrap:anywhere; }
.show-modal .news-modal__body ul,
.show-modal .news-modal__body ol { padding-left:1.5em; }
.show-modal .news-modal__body table { display:block; max-width:100%; overflow-x:auto; }
