/* Private events & catering (/events/): the café's reel in the hero, blurred stills from it behind three sections,
   frosted cards, sticker-like tags, a swipeable photo strip and the enquiry form. Loaded on this page only;
   the rest comes from style.css (bands, buttons, FAQ, ticker). */

/* Behind a section: two blurred stills from the reel (--a, --b) that slowly crossfade. Only opacity changes:
   a blurred copy of the reel flashed at every cut, and a slow drift/zoom of the stills looked jerky (owner, 2026-11-26). */
.ev-hero, .ev-formats, .ev-enquiry { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); }
.ev-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.ev-bg span { position: absolute; inset: 0; background: var(--a) center / cover no-repeat; }
.ev-bg span + span { background-image: var(--b); opacity: 0; will-change: opacity; animation: ev-fade 24s ease-in-out infinite alternate; }
.ev-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 14, 0.45), rgba(14, 14, 14, 0.8)); }
@keyframes ev-fade { 0%, 30% { opacity: 0; } 70%, 100% { opacity: 1; } }

/* Hero */
.ev-hero { background: var(--ink); padding-block: 20px 56px; }
.ev-hero .wrap { display: grid; gap: 36px; align-items: center; }
.ev-copy { display: flex; flex-direction: column; gap: 16px; }
.ev-mega {
  font-family: var(--display); color: var(--yellow); text-transform: uppercase;
  /* three lines, each as wide as the column allows: the widest line ("EVENTO") is about 5.25 em */
  font-size: min(calc((100vw - 40px) / 5.3), 150px); line-height: 0.86; letter-spacing: -0.02em;
  display: flex; flex-direction: column;
}
.ev-hero h1 { font-size: clamp(24px, 6.2vw, 36px); line-height: 1.12; font-weight: 800; text-wrap: balance; max-width: 18em; }
.ev-hero .lead { max-width: 30em; }

.ev-reel-wrap { position: relative; justify-self: center; width: min(76vw, 340px); }
.ev-reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #1b1b1b;
  backface-visibility: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: rotate(2.5deg);
}
.ev-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-ctls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.ev-ctl {
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(14, 14, 14, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ev-ctl svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
/* each button holds two icons; the state decides which one shows */
.ev-ctl[data-play] svg:last-child, .ev-ctl[data-play].is-paused svg:first-child { display: none; }
.ev-ctl[data-play].is-paused svg:last-child { display: block; }
.ev-sticker {
  position: absolute; left: -14px; top: 22px; z-index: 1;
  width: 112px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--yellow); color: var(--ink); transform: rotate(-12deg) translateZ(0); backface-visibility: hidden;
  font-weight: 800; font-size: 13px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.ev-sticker b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .ev-hero { padding-block: 40px 88px; }
  .ev-hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .ev-mega { font-size: min(calc((min(100vw, 1120px) - 88px) * 0.55 / 5.3), 120px); }
  .ev-reel-wrap { width: 340px; }
  .ev-sticker { left: -44px; width: 124px; }
}

.ticker--yellow { background: var(--yellow); color: var(--ink); }

/* At our place or at yours */
.ev-formats { background: var(--green); }
.ev-formats .ev-bg { background-color: var(--green); }
.ev-formats .ev-bg::after { background: linear-gradient(180deg, rgba(68, 99, 77, 0.72), rgba(14, 14, 14, 0.78)); }
.ev-two-lines span { display: block; }
.ev-cards { display: grid; gap: 14px; margin-top: 28px; }
.ev-card {
  padding: 22px; border-radius: 26px; display: flex; flex-direction: column; gap: 14px;
  /* no backdrop-filter: the background is blurred already, and a live blur over the moving background made the
     cards flicker (owner, 2026-11-26) */
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.26);
}
.ev-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 7.6vw, 42px); line-height: 1.02; text-wrap: balance; }
.ev-big { font-family: var(--display); color: var(--yellow); font-size: clamp(56px, 15vw, 92px); line-height: 0.9; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ev-big small { font-family: var(--text); font-size: 15px; font-weight: 700; color: var(--paper); letter-spacing: 0.02em; }
.ev-card ul { display: grid; gap: 8px; font-weight: 600; }
.ev-card li { display: flex; gap: 10px; }
.ev-card li::before { content: "→"; color: var(--yellow); flex: none; }
.ev-card .btn { margin-top: auto; align-self: flex-start; padding-inline: 22px; }
@media (min-width: 820px) {
  .ev-cards { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
  .ev-card { padding: 32px; }
}

/* What we host: tags like stickers */
.ev-occasions { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.ev-occasions li {
  padding: 12px 20px; border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--display); font-size: clamp(18px, 4.6vw, 28px); line-height: 1.1;
}
.ev-occasions li:nth-child(4n + 1) { background: var(--yellow); border-color: var(--yellow); transform: rotate(-2deg); }
.ev-occasions li:nth-child(4n + 2) { background: var(--green); border-color: var(--green); color: var(--paper); transform: rotate(1.5deg); }
.ev-occasions li:nth-child(4n) { background: var(--ink); color: var(--paper); transform: rotate(-1deg); }

/* Photo strip from the reel: swipe on a phone, all in a row on a wide screen */
.ev-gallery { padding-block: 48px 40px; }
.ev-gallery .h2 { color: var(--yellow); max-width: 12em; }
.ev-strip {
  display: flex; gap: 12px; margin-top: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px var(--gutter-r) 28px var(--gutter-l); scrollbar-width: none; overscroll-behavior-x: contain;
}
.ev-strip::-webkit-scrollbar { display: none; }
.ev-strip:focus-visible { outline-offset: -3px; }
.ev-strip li { flex: 0 0 auto; width: min(56vw, 230px); scroll-snap-align: center; }
.ev-strip li:nth-child(odd) { transform: rotate(-1.5deg); }
.ev-strip li:nth-child(even) { transform: rotate(1.5deg) translateY(12px); }
.ev-strip img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #222; }
@media (min-width: 720px) { .ev-gallery { padding-block: 72px 56px; } }
@media (min-width: 1240px) { .ev-strip { justify-content: center; } .ev-strip li { width: 190px; } }

/* How it works */
.ev-steps { display: grid; gap: 12px; counter-reset: ev-step; }
.ev-steps li {
  counter-increment: ev-step; padding: 22px; border-radius: 26px; background: var(--paper); border: 2px solid var(--ink);
  display: grid; gap: 8px; align-content: start;
}
.ev-steps li::before { content: counter(ev-step); font-family: var(--display); font-size: 60px; line-height: 0.9; color: var(--green); }
.ev-steps h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; }
.ev-steps p { font-weight: 600; }
@media (min-width: 820px) { .ev-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .ev-steps li { padding: 28px; } }

/* Enquiry */
.ev-enquiry { background: var(--ink); scroll-margin-top: 0; }
.ev-enquiry .wrap { display: grid; gap: 28px; }
.ev-intro { display: flex; flex-direction: column; gap: 14px; }
.ev-intro a { color: var(--yellow); font-weight: 700; text-underline-offset: 4px; }
.ev-enquiry .muted { color: rgba(255, 255, 255, 0.78); }
.ev-formcard {
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.ev-form { display: grid; gap: 20px; }
.ev-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.ev-form legend { padding: 0; margin-bottom: 12px; font-weight: 800; font-size: 16px; }
.ev-form legend small { font-weight: 600; font-size: 13px; color: var(--muted); margin-left: 4px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip { position: relative; display: inline-flex; }
.ev-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ev-chip span {
  min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center;
  border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: 15px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ev-chip input:checked + span { background: var(--ink); color: var(--yellow); }
.ev-chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.ev-row { display: grid; gap: 12px; }
/* date and guests side by side even on a phone; the phone number below them */
.ev-row--3 { grid-template-columns: minmax(0, 1fr) 96px; }
.ev-row--3 > :last-child { grid-column: 1 / -1; }
.ev-field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; min-width: 0; }
.ev-field input, .ev-field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600;
  -webkit-appearance: none; appearance: none;
}
.ev-field textarea { min-height: 116px; resize: vertical; line-height: 1.45; }
.ev-field input[type="date"] { min-width: 0; }
.ev-field input:focus-visible, .ev-field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.ev-field input:user-invalid { border-color: #B3261E; }
.ev-send { width: 100%; cursor: pointer; font-family: inherit; }
.ev-send[disabled] { opacity: 0.6; cursor: progress; }
.ev-status { font-weight: 700; color: #B3261E; }
.ev-status a { color: inherit; }
.ev-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ev-done { display: grid; gap: 10px; justify-items: start; padding-block: 12px; }
.ev-done:focus { outline: none; }
.ev-done-mark {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); font-size: 30px; font-weight: 800;
}
.ev-done h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
@media (min-width: 600px) {
  .ev-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-row--3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .ev-row--3 > :last-child { grid-column: auto; }
}
@media (min-width: 960px) {
  .ev-enquiry .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .ev-intro { position: sticky; top: 32px; }
  .ev-formcard { padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-bg span + span { animation: none; }
  .ev-chip span { transition: none; }
}
