/* Composição da Festa: todos os estilos ficam restritos a esta página. */
.festival-page .festival-panel { --festival-side-padding: 14px; padding-bottom: 0; }
.festival-page .history-shell { padding-bottom: calc(89px + env(safe-area-inset-bottom)); }
.festival-page .bottom-nav { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.festival-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.festival-icon { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.festival-heading { position: relative; isolation: isolate; min-height: 185px; display: flex; align-items: center; padding-right: 28%; }
.festival-page .festival-intro { width: 100%; margin: 0 0 22px; z-index: 1; }
.festival-page .festival-intro h1 { margin: 0; font-size: clamp(1.9rem, 5.7vw, 3.85rem); line-height: 1.05; text-wrap: balance; }
.festival-page .festival-intro p { font-size: clamp(1rem, 2.9vw, 1.6rem); max-width: 560px; margin: 5px 0 7px; text-wrap: balance; }
.festival-tower { position: absolute; left: -3%; top: -8px; width: 24%; height: calc(100% + 24px); object-fit: contain; object-position: left top; opacity: .58; z-index: -1; pointer-events: none; }
.festival-divider { display: block; width: min(76%, 320px); height: auto; flex: 0 0 auto; }
.festival-divider--cross { margin: 0 auto 3px; }
.festival-divider--floral { margin: 0 auto; }
.festival-saint { position: absolute; right: -1%; bottom: -32px; width: 29%; height: calc(100% + 42px); object-fit: contain; object-position: center bottom; z-index: 2; pointer-events: none; }
.festival-banner { display: flex; align-items: center; justify-content: center; gap: 12px; width: 82%; margin: 0; padding: 10px 18px; border: 2px solid #d5a344; border-radius: 100px; color: #fff0ce; background: linear-gradient(#a20315, #79000d 80%); box-shadow: 0 3px 5px #75451438; font: bold clamp(1.2rem, 3.6vw, 2.35rem)/1.12 var(--title-font); }
.festival-banner .festival-icon { width: 36px; height: 36px; }
.festival-hours { margin: 16px 0; color: var(--azul); text-align: center; font: italic 1rem/1.4 var(--title-font); }
.festival-hours > span { display: block; color: var(--vinho); font-style: normal; font-weight: bold; margin-bottom: 3px; }
.festival-days { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.festival-day { display: grid; grid-template-columns: minmax(0, 28%) minmax(0, 1fr); align-items: stretch; gap: 22px; padding: 5px 12px 5px 9px; border: 1px solid #dfb66c; border-top-color: #edd5a3; border-radius: 21px; background: linear-gradient(105deg, #fff8e6d9, #fff0cfb3); box-shadow: 0 2px 3px #94652230; }
.festival-date { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 6px 8px; border-radius: 14px; color: #fff2d7; background: linear-gradient(135deg, #a30416, #76000a); text-align: center; font-family: var(--title-font); }
.festival-date > div { min-width: 0; }
.festival-date strong { display: block; font-size: clamp(1rem, 2.7vw, 1.55rem); line-height: 1.1; }
.festival-date span { display: block; font-size: 1rem; line-height: 1.22; }
.festival-date .festival-exception { margin-top: 3px; }
.festival-theme { position: relative; min-width: 0; align-self: center; padding: 3px 0; }
.festival-theme::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: -12px; width: 2px; background: linear-gradient(transparent, #b97815 30%, #b97815 70%, transparent); }
.festival-theme h3 { margin: 0; color: var(--vinho); font: bold clamp(1rem, 2.6vw, 1.65rem)/1.12 var(--title-font); text-transform: uppercase; overflow-wrap: break-word; }
.festival-theme p { display: flex; gap: 7px; align-items: center; margin: 4px 0 0; color: var(--azul); font: bold 1rem/1.2 var(--title-font); }
.festival-theme p .festival-icon { width: 24px; height: 24px; }
.festival-section-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 12px; color: var(--vinho); font: bold clamp(1.5rem, 4.2vw, 2.6rem)/1.15 var(--title-font); text-align: center; }
.festival-section-heading::before, .festival-section-heading::after { content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, #bd7b18); }
.festival-section-heading::after { transform: scaleX(-1); }
.festival-section-heading .festival-icon { width: 38px; height: 38px; }
.festival-weekend { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.festival-event-card { min-width: 0; border: 1px solid #d8a748; border-radius: 24px; padding: 9px; background: linear-gradient(120deg, #fff7e1e8, #ffe9b5de); box-shadow: 0 3px 4px #ad701f30; }
.festival-event-card h3 { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 6px 10px; border-radius: 100px; background: linear-gradient(#a00012, #78000d); color: #fff1d2; font: bold clamp(1.25rem, 3vw, 1.85rem)/1.15 var(--title-font); }
.festival-event-card h3 small { font-size: .7em; font-weight: normal; }
.festival-event-card ul { list-style: none; padding: 9px clamp(4px, 2vw, 18px) 4px; margin: 0; display: grid; gap: 6px; }
.festival-event-card li { display: flex; align-items: center; gap: 12px; color: var(--vinho); font: bold clamp(1rem, 2.6vw, 1.45rem)/1.25 var(--title-font); }
.festival-event-card li strong { color: var(--azul); }
.festival-event-card li .festival-icon { width: 28px; height: 28px; }

.festival-products {
  width: min(100%, 660px);
  margin: clamp(24px, 5vw, 48px) auto 0;
  color: var(--azul);
}
.festival-kit, .festival-shirts {
  margin: 0;
  padding: clamp(8px, 2vw, 16px);
  border: 1px solid #c8a05a;
  border-radius: 20px;
  background: #fff4dc;
  box-shadow: 0 3px 6px #70430d21;
}
.festival-kit { text-align: center; }
.festival-kit img {
  display: block;
  width: 100%;
  height: clamp(190px, 53vw, 330px);
  object-fit: contain;
}
.festival-kit figcaption, .shirt-price strong {
  color: var(--vinho);
  font: bold 1.45rem/1.25 var(--title-font);
}
.festival-kit figcaption { padding: 10px 0 2px; }
.shirt-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  border-radius: 13px;
  background: #2c2c2c;
}
.shirt-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.shirt-slide img { display: block; width: 100%; height: auto; }
.shirt-slide figcaption {
  position: absolute;
  left: 50%;
  bottom: 1.5%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: .5em;
  padding: .22em .85em;
  border: 1px solid #b59658;
  border-radius: 2em;
  color: #fff3db;
  background: var(--vinho);
  font: 600 clamp(.7rem, 2.75vw, .9rem)/1.2 var(--body-font);
  white-space: nowrap;
}
.shirt-slide figcaption strong { font: bold 1.28em/1.1 var(--title-font); }
.shirt-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: .65rem;
  color: var(--vinho);
  font-variant-numeric: tabular-nums;
}
.shirt-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #bc9555;
  border-radius: 50%;
  color: var(--vinho);
  background: #fffaf0;
  font-size: 1.1rem;
  cursor: pointer;
}
.shirt-price {
  display: grid;
  justify-items: center;
  gap: .65rem;
  margin-top: .8rem;
  padding: 1rem .5rem .4rem;
  border-top: 1px solid #dcc395;
}
.shirt-price p { margin: 0; }
.festival-reservation { padding: clamp(12px, 2vw, 20px); background: #fff4dc; border: 1px solid #c8a05a; border-radius: 20px; }
.festival-form { width: 100%; text-align: center; }
.festival-form summary {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: .7rem 1.7rem;
  border-radius: 2rem;
  color: #fff3dc;
  background: var(--vinho);
  font: bold 1.18rem/1.25 var(--title-font);
  cursor: pointer;
}
.festival-form summary::-webkit-details-marker { display: none; }
.festival-form p { padding: .75rem 0; }
.festival-form a { color: var(--vinho); text-underline-offset: .2em; }
.festival-form iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 320px;
  max-height: 780px;
  border: 1px solid #dcc395;
  border-radius: 12px;
  background: #fff;
}
.festival-shirts :focus-visible, .festival-form :focus-visible { outline: 3px solid #23364d; outline-offset: 2px; }
.festival-products + .festival-altar { margin-top: 12px; }
/* A fotografia compõe o fundo até a navegação, sem moldura oval. */
.festival-altar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: calc(100% + 2 * var(--festival-side-padding));
  aspect-ratio: 2 / 1;
  margin: -34px calc(-1 * var(--festival-side-padding)) 0;
  background:
    url("assets/paper-grain.svg"),
    radial-gradient(ellipse at 50% 48%, #e3b24c70, transparent 76%);
}
.festival-altar img {
  display: block;
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  filter: sepia(.22) saturate(.95);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(180deg, transparent, #000 15%);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(180deg, transparent, #000 15%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@media (min-width: 780px) {
  .festival-page .festival-panel { --festival-side-padding: 26px; }
  .festival-heading { min-height: 210px; padding-left: 11%; }
  .festival-hours { font-size: 1.15rem; }
}
@media (max-width: 600px) {
  .festival-tower { width: 29%; left: -4%; top: 8px; opacity: .3; }
  .festival-divider { width: 88%; }
  .festival-heading { min-height: 190px; padding-right: 27%; }
  .festival-saint { width: 30%; bottom: -12px; height: 100%; }
  .festival-banner { width: 100%; padding: 10px 12px; gap: 9px; }
  .festival-banner .festival-icon { width: 28px; height: 28px; }
  .festival-day { grid-template-columns: minmax(0, 35%) minmax(0, 1fr); gap: 15px; padding: 6px; border-radius: 17px; }
  .festival-date { flex-direction: column; gap: 5px; padding: 9px 4px; border-radius: 12px; }
  .festival-date .festival-icon { width: 23px; height: 23px; }
  .festival-theme::before { left: -8px; }
  .festival-theme h3 { font-size: 1rem; line-height: 1.22; text-transform: none; }
  .festival-theme p { font-size: 1rem; gap: 4px; flex-wrap: wrap; }
  .festival-theme p .festival-icon { width: 20px; height: 20px; }
  .festival-weekend { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .festival-event-card h3 { font-size: 1.4rem; }
  .festival-event-card li { font-size: 1.125rem; }
  .festival-section-heading { gap: 8px; }
  .festival-section-heading .festival-icon { width: 28px; height: 28px; }
  .festival-altar { margin-top: -18px; aspect-ratio: 1.35 / 1; }
  .festival-altar img { width: 100%; }
}
@media (max-width: 360px) {
  .festival-page .festival-panel { --festival-side-padding: 10px; }
  .festival-page .festival-intro h1 { font-size: 1.75rem; }
  .festival-page .festival-intro p { font-size: 1rem; }
  .festival-heading { min-height: 214px; }
  .festival-theme p { font-size: .95rem; }
}
