/* Luis & Sandra: one photograph, hairline capitals, olive and white bands.
   Custom CSS, no framework. Burgundy and green are accents only. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62.5% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62.5% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-wdth-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62.5% 100%; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pinyon Script";
  src: url("../fonts/pinyon-script-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
/* Layout: full-width bands, olive and white in turn; type and photographs carry the page. */
:root {
  color-scheme: only light;

  --white: #FEFEFD;
  --noir: #484E28;          /* primary: olive, 8.7:1 on white */
  --ink: #484E28;
  --grey: #6B6E58;          /* secondary text on white, 5.2:1 */
  --grey-light: #CDD0BC;    /* secondary text on olive, 5.6:1 */
  --rule: #DDDED6;
  --rule-strong: #8C8F7C;   /* input baselines and chip outlines, 3.3:1 on white */
  --rule-dark: #6A704A;
  --bordeaux: #6B1D2E;      /* accent: script, one flag, hover */
  --bordeaux-light: #F4C9D1;/* error text on olive, 5.9:1 */
  --verde: #B7CBA3;         /* state dots, underlines and focus rings only */
  --verde-deep: #45603D;    /* green state text on white, 6.9:1 */
  --verde-wash: #EAF0E3;    /* green state field on white */
  --error-wash: #F7ECEE;

  --font-display: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --font-text: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --band: clamp(5rem, 2.5rem + 8vw, 10.5rem);
  --header: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-curtain: cubic-bezier(0.76, 0, 0.24, 1);

  --z-raised: 2;
  --z-header: 20;
  --z-sheet: 30;
  --z-gate: 40;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #8C8F7C var(--white); }
/* offsets live on the targets, so focusing a link in the sticky header never scrolls the page */
main [id], .band { scroll-margin-top: var(--header); }
#main :is(a, button, input, textarea, summary), .form-summary { scroll-margin-top: calc(var(--header) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--bordeaux);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
::selection { background: var(--noir); color: var(--white); }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 4px; }
.band--dark :focus-visible, .gate :focus-visible, .sheet :focus-visible { outline-color: var(--verde); }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-gate); background: var(--noir); color: var(--white); padding: 0.75rem 1rem; }
.skip:focus { top: 1rem; }
.icon, .btn svg, .arrow-link svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Type roles ---------- */
.cap {
  font-family: var(--font-display);
  font-weight: 200;
  font-stretch: 62.5%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
}
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  color: var(--bordeaux);
}
.gate .script { color: var(--white); }
.micro {
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.5;
}
[lang="it"] { font-style: normal; }

/* Placeholders the hosts still fill in */
.ph {
  background: linear-gradient(transparent 60%, rgba(183, 203, 163, 0.8) 60%, rgba(183, 203, 163, 0.8) 92%, transparent 92%);
  white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ph--wrap { white-space: normal; }
.band--dark .ph, .gate .ph { background: linear-gradient(transparent 60%, rgba(183, 203, 163, 0.32) 60%, rgba(183, 203, 163, 0.32) 92%, transparent 92%); }
body.no-marks .ph { background: none; }

/* ---------- Bands ---------- */
.band { position: relative; padding: var(--band) var(--gutter); }
.band--dark { background: var(--noir); color: var(--white); }
.band--light { background: var(--white); color: var(--ink); }
.section-title { font-size: clamp(2.75rem, 1rem + 5vw, 7rem); }
.section-head { display: grid; justify-items: start; gap: 1rem; }
.section-note { color: var(--grey); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.85rem;
  min-height: 3.4rem; padding: 0 1.9rem;
  border: 1px solid currentColor; border-radius: 0; background: transparent;
  font-family: var(--font-text); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--noir); border-color: var(--noir); color: var(--white); }
.btn--outline { color: var(--ink); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--line { border-style: dashed; color: var(--ink); text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }
/* hover states only where a pointer can hover: no sticky fills after a tap. Kept before the
   rules they must yield to (.input--dark:hover, .is-invalid, :disabled). */
@media (hover: hover) {
  .btn:hover svg { transform: translateX(4px); }
  .btn--dark:hover { background: var(--bordeaux); border-color: var(--bordeaux); }
  .btn--outline:hover { background: var(--noir); color: var(--white); border-color: var(--noir); }
  .btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
  .btn--line:hover { background: rgba(72, 78, 40, 0.05); }
  .input:hover { border-bottom-color: var(--ink); }
  .choice__box:hover { border-color: var(--ink); }
  .chip > span:hover { border-color: var(--ink); }
  .stepper button:hover { background: rgba(72, 78, 40, 0.05); }
}
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; transform: none; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  font-family: var(--font-text); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: inherit;
}
.arrow-link span { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; padding-bottom: 2px; }
.arrow-link svg { transition: transform 0.3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link--light { color: var(--white); }

/* ---------- Gate: a black curtain over the cloister ---------- */
.gate {
  position: fixed; inset: 0; z-index: var(--z-gate);
  background: var(--noir); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
  transition: transform 1.15s var(--ease-curtain), visibility 0s linear 1.15s;
}
.gate__photo { position: absolute; inset: 0; }
.gate__photo img { width: 100%; height: 100%; object-fit: cover; }
.gate__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(72, 78, 40, 0.80) 0%, rgba(72, 78, 40, 0.84) 45%, rgba(72, 78, 40, 0.95) 100%); }
.gate__inner {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--gutter) + 4rem) var(--gutter) clamp(2rem, 6vh, 4.5rem);
}
.gate__mark { position: absolute; top: var(--gutter); left: var(--gutter); width: 30px; height: 36px; color: var(--white); }
.gate__title { display: flex; flex-direction: column; align-items: flex-start; }
.gate__title .cap { font-size: clamp(4.8rem, 1rem + 15vw, 15rem); }
.gate__title .script { font-size: clamp(2.8rem, 1rem + 5.4vw, 6.5rem); margin: -0.32em 0 0 0.9em; transform: rotate(-5deg); }
.gate__form { margin-top: clamp(2rem, 5vh, 3.25rem); display: flex; align-items: flex-end; gap: 1.25rem; width: min(100%, 640px); }
.gate__form .field { flex: 1; min-width: 0; }
.gate__form .micro { color: rgba(254, 254, 253, 0.85); }
.field__control { position: relative; }
.gate__toggle {
  position: absolute; right: -0.4rem; bottom: 0.1rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: rgba(254, 254, 253, 0.85); cursor: pointer;
}
.gate__toggle:hover { color: var(--white); }
.gate__toggle svg { width: 22px; height: 22px; }
.gate__help { margin-top: 1.25rem; max-width: 48ch; color: var(--grey-light); font-size: 0.9375rem; }
.no-js .gate__form { display: none; }
.gate.is-opening .gate__form { opacity: 0.4; transition: opacity 0.3s; }
.gate.is-leaving { transform: translateY(-100%); visibility: hidden; pointer-events: none; }
.gate.shake .field__control { animation: nudge 0.4s var(--ease); }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-6px); } 60% { transform: translateX(4px); } }

/* ---------- Fields ---------- */
.field { display: grid; gap: 0.45rem; }
.field__label { font-weight: 500; font-size: 0.9375rem; }
.field__help { font-size: 0.9375rem; color: var(--grey); }
.field__error { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.9375rem; font-weight: 500; color: var(--bordeaux); }
.gate .field__error { color: var(--bordeaux-light); }
.field__error svg { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; flex: none; }
.input {
  width: 100%; min-height: 3rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 0.6rem 0; font-size: 1.125rem; line-height: 1.4; color: inherit;
  transition: border-color 0.25s var(--ease);
}
.input::placeholder { color: #6B6E58; font-style: italic; opacity: 1; }
.input:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: calc(0.6rem - 1px); }
.input:focus-visible { outline: none; }
.input--dark { border-bottom-color: rgba(254, 254, 253, 0.6); color: var(--white); letter-spacing: 0.06em; padding-right: 3rem; }
.input--dark::placeholder { color: rgba(254, 254, 253, 0.8); }
.input--dark:hover, .input--dark:focus { border-bottom-color: var(--white); }
.textarea { resize: vertical; min-height: 5rem; }
.is-invalid .input { border-bottom-color: var(--bordeaux); }
.gate .is-invalid .input { border-bottom-color: var(--bordeaux-light); }

/* ---------- Header ---------- */
.site[data-locked="true"] { visibility: hidden; }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-header);
  height: var(--header); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
}
.header.is-stuck { box-shadow: 0 1px 0 var(--rule); }
/* over a black band the header takes the band's colour (set by an IntersectionObserver in site.js) */
.header.on-dark { background: var(--noir); color: var(--white); }
/* at the very top the header floats over the hero photograph */
.header.on-dark:not(.is-stuck) { background: linear-gradient(180deg, rgba(43, 47, 24, 0.72), rgba(43, 47, 24, 0)); }
.header.on-dark.is-stuck { box-shadow: 0 1px 0 var(--rule-dark); }
.header.on-dark .header__mark, .header.on-dark .menu-toggle { color: var(--white); }
.header.on-dark .nav a { background-image: linear-gradient(var(--white), var(--white)); }
.header.on-dark .nav a:hover, .header.on-dark .nav a[aria-current="true"], .header.on-dark .header__cta:hover { color: var(--white); }
.header.on-dark :focus-visible { outline-color: var(--verde); }
.header.on-dark:not(.is-stuck) :focus-visible { outline-color: var(--white); }
.header__mark { display: inline-flex; color: var(--ink); min-width: 44px; min-height: 44px; align-items: center; }
.header__mark svg { width: 22px; height: 26px; }
.nav { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); margin-right: auto; }
.nav a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  background: linear-gradient(var(--bordeaux), var(--bordeaux)) no-repeat 0 calc(100% - 10px) / 0 1px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--bordeaux); background-size: 100% 1px; }
.header__cta { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 0.6rem; }
.header__cta svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.header__cta:hover { color: var(--bordeaux); }
.header__cta:hover svg { transform: translateX(4px); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle--light { color: var(--white); display: inline-flex; }

.sheet {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  background: var(--noir); color: var(--white);
  display: flex; flex-direction: column; padding: 0 var(--gutter) max(2rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-1.5%);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sheet__top { height: var(--header); display: flex; align-items: center; justify-content: space-between; flex: none; }
.sheet__mark { width: 24px; height: 29px; color: var(--white); }
.sheet__links { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); }
.sheet__links a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule-dark); text-decoration: none; }
.sheet__links .cap { font-size: clamp(2rem, 9vw, 3.5rem); }
.sheet__links small { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-light); }
.sheet__signout { margin-top: auto; padding-top: 2rem; align-self: flex-start; background: none; border: 0; color: var(--grey-light); cursor: pointer; min-height: 44px; }

/* ---------- 1 Hero: full-bleed photograph, names, countdown ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 0 var(--gutter) clamp(3rem, 7vh, 5rem);
  display: grid; align-content: end; justify-items: center;
  overflow: hidden; isolation: isolate;
  /* the sticky header is 76px tall and sits on this band in its black tone: pull the photo under it */
  margin-top: calc(-1 * var(--header));
  padding-top: var(--header);
}
.hero__photo { position: absolute; inset: 0; z-index: -1; background: #5B6136; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43, 47, 24, 0.62) 0%, rgba(43, 47, 24, 0.60) 25%, rgba(43, 47, 24, 0.55) 45%, rgba(43, 47, 24, 0.45) 62%, rgba(43, 47, 24, 0.85) 100%);
}
.hero__inner { position: relative; display: grid; justify-items: center; text-align: center; max-width: 100%; }
.hero__kicker { color: var(--white); letter-spacing: 0.3em; }
.hero__title {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; column-gap: 0.12em;
  font-family: var(--font-display); font-weight: 200; font-stretch: 75%;
  font-size: clamp(3.6rem, 1rem + 11vw, 12rem); line-height: 0.9; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(72, 78, 40, 0.35);
}
.hero__amp { font-family: var(--font-display); font-style: italic; font-weight: 200; font-stretch: 100%; font-size: 0.92em; line-height: 1; text-transform: none; letter-spacing: 0; color: var(--white); margin: 0 0.06em; }
.hero__date { margin-top: clamp(1.1rem, 2.5vw, 1.9rem); color: var(--white); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0.9rem; letter-spacing: 0.26em; }
.hero__sep { color: var(--grey-light); }
.countdown {
  margin-top: clamp(1.6rem, 4vw, 2.75rem);
  display: inline-grid; justify-items: center; gap: 0.35rem;
  padding: 1rem 1.6rem 0.9rem; min-width: 11rem;
  border-top: 1px solid rgba(254, 254, 253, 0.55); border-bottom: 1px solid rgba(254, 254, 253, 0.55);
  color: var(--white);
}
.countdown__num { font-family: var(--font-display); font-weight: 200; font-stretch: 75%; font-size: clamp(2.8rem, 1rem + 4.5vw, 5.25rem); line-height: 0.95; font-variant-numeric: lining-nums tabular-nums; }
.countdown__label { color: rgba(254, 254, 253, 0.8); }
.hero__cta { margin-top: clamp(1.6rem, 4vw, 2.75rem); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(1rem, 3vh, 2rem); color: rgba(254, 254, 253, 0.55); writing-mode: vertical-rl; letter-spacing: 0.3em; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 2.5rem; margin: 0.8rem auto 0; background: currentColor; }

.site.is-arriving .hero__photo img { animation: settle 2.4s var(--ease) both; }
.site.is-arriving .hero__kicker, .site.is-arriving .hero__date, .site.is-arriving .countdown, .site.is-arriving .hero__cta { animation: fade 1.4s var(--ease) 0.6s both; }
.site.is-arriving .hero__title > * { animation: rise 1.1s var(--ease) both; }
.site.is-arriving .hero__title > *:nth-child(2) { animation-delay: 120ms; }
.site.is-arriving .hero__title > *:nth-child(3) { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- 2 Notices ---------- */
.notices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem clamp(1rem, 2vw, 2rem); align-items: end; }
.notices__deadline { grid-column: 1 / span 7; font-size: clamp(3rem, 1rem + 6.8vw, 8.5rem); }
.notices__deadline .ph { font-family: var(--font-display); }
.notices__list { grid-column: 9 / -1; display: grid; gap: 0.75rem; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.35; color: var(--white); }

/* ---------- 3 Programme: one day ---------- */
.programma__next { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem; padding: 0; background: none; color: var(--ink); font-weight: 500; }
.programma__next::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde-deep); }
.giornata { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 2vw, 2rem); border-top: 1px solid var(--ink); padding-top: 2rem; }
.giornata__aside { grid-column: 1 / span 5; }
.giornata__num { font-family: var(--font-display); font-weight: 200; font-stretch: 62.5%; font-size: clamp(3.4rem, 2rem + 4vw, 7rem); line-height: 0.85; }
.giornata__name { margin-top: 1rem; display: grid; color: var(--ink); }
.giornata__name > span:last-child { color: var(--grey); }
.giornata__arch { margin-top: 2.5rem; width: min(70%, 320px); aspect-ratio: 3 / 4.2; border-radius: 999px 999px 0 0; overflow: hidden; background: #8E9172; }
.giornata__arch img { width: 100%; height: 100%; object-fit: cover; }
.events { grid-column: 7 / -1; display: grid; }
.event { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.2rem 1.5rem; padding: 1.35rem 0; border-top: 1px solid var(--rule); position: relative; }
.event:first-child { border-top: 0; padding-top: 0.25rem; }
.event__time { display: flex; flex-direction: column; gap: 0.1rem; font-weight: 500; font-size: 0.9375rem; font-variant-numeric: lining-nums tabular-nums; line-height: 1.5; padding-top: 0.35rem; }
.event__time small { font-size: 0.8125rem; font-weight: 400; color: var(--grey); }
.event__time small:empty { display: none; }
.event__time > span { align-self: flex-start; }
.event__title { font-weight: 400; grid-row: 1; grid-column: 2; }
.event__title [lang="it"] { display: block; font-family: var(--font-display); font-style: normal; font-weight: 300; font-stretch: 62.5%; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(1.7rem, 1rem + 1.6vw, 2.6rem); line-height: 1.02; }
.event__title small { display: block; font-size: 0.9375rem; color: var(--grey); margin-top: 0.3rem; }
.event.is-next { background: none; box-shadow: inset 2px 0 0 var(--ink); padding-left: 0.75rem; margin-left: -0.75rem; }
.event.is-next .event__time small { color: var(--ink); font-weight: 600; }
.event.is-next .event__time small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verde-deep); margin-right: 0.4rem; vertical-align: 0.1em; }
.event.is-past .event__time, .event.is-past .event__title, .event.is-past .event__title [lang="it"] { color: var(--grey); }

/* ---------- 4 The place ---------- */
.section-head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2vw, 2rem); align-items: end; }
.section-head--split .section-title { grid-column: 1 / span 7; }
.luogo__text { grid-column: 9 / -1; color: var(--grey-light); max-width: 42ch; }
.strip {
  margin: clamp(3rem, 6vw, 5rem) calc(-1 * var(--gutter)) 0;
  display: grid; grid-template-columns: 1fr 0.82fr 1.12fr 0.82fr 1fr; gap: 8px; align-items: end;
}
.strip figure { position: relative; }
.strip__frame { overflow: hidden; background: #5B6136; }
.strip__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.strip__item:hover .strip__frame img { transform: scale(1.04); }
.strip__item--a .strip__frame, .strip__item--e .strip__frame { aspect-ratio: 4 / 4.6; }
.strip__item--b .strip__frame, .strip__item--d .strip__frame { aspect-ratio: 3 / 4.8; }
.strip__frame--arch { aspect-ratio: 3 / 4.6; border-radius: 999px 999px 0 0; }
.strip figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.luogo__address { margin-top: 2.5rem; font-style: normal; color: var(--grey-light); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; font-size: 0.9375rem; }

/* ---------- 5 Where to sleep ---------- */
.alloggi { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem clamp(1rem, 2vw, 2rem); align-items: start; }
.alloggi__aside { grid-column: 1 / span 5; display: grid; justify-items: start; gap: 1rem; }
.alloggi__arch { margin-top: 1.5rem; width: min(62%, 300px); aspect-ratio: 3 / 4.2; border-radius: 999px 999px 0 0; overflow: hidden; background: #8E9172; }
.alloggi__arch img { width: 100%; height: 100%; object-fit: cover; }
.alloggi__body { grid-column: 7 / -1; display: grid; gap: 2rem; align-self: end; }
.alloggi__lede { max-width: 52ch; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.5; }
.alloggi__list { display: grid; border-top: 1px solid var(--ink); }
.alloggi__list > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.alloggi__list dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding-top: 0.3rem; }
.alloggi__list dd { color: var(--grey); max-width: 52ch; }
.alloggi__note { color: var(--grey); font-size: 0.9375rem; max-width: 52ch; }

/* ---------- 6 Good to know ---------- */
.info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem clamp(1rem, 2vw, 2rem); align-items: start; }
.info__aside { grid-column: 1 / span 5; }
.info__note { margin-top: 1rem; color: var(--grey-light); }
.info__address { margin-top: 2rem; font-style: normal; color: var(--grey-light); display: grid; justify-items: start; gap: 0.75rem; }
.info__arch { margin-top: 2.5rem; width: min(75%, 340px); aspect-ratio: 3 / 4.2; border-radius: 999px 999px 0 0; overflow: hidden; background: #5B6136; }
.info__arch img { width: 100%; height: 100%; object-fit: cover; }
.faq { grid-column: 7 / -1; border-top: 1px solid var(--rule-dark); align-self: end; }
.faq details { border-bottom: 1px solid var(--rule-dark); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0; min-height: 44px;
  font-family: var(--font-display); font-weight: 300; font-stretch: 62.5%; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; color: var(--grey-light); transition: transform 0.35s var(--ease); flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.faq__body { padding: 0 0 1.75rem; color: var(--grey-light); max-width: 58ch; display: grid; gap: 1rem; }
.faq__ways { display: grid; gap: 0.85rem; }
.faq__ways dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); }
.distances { display: grid; gap: 0.3rem; max-width: 34rem; }
.distances li { display: flex; align-items: baseline; gap: 0.5rem; }
.distances li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--rule-dark); transform: translateY(-0.3em); }
.distances span:last-child { order: 2; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 7 Reply ---------- */
.risposta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem clamp(1rem, 2vw, 2rem); align-items: start; }
.risposta__aside { grid-column: 1 / span 5; position: sticky; top: calc(var(--header) + 2rem); }
.risposta__script { font-size: clamp(1.9rem, 1rem + 2.4vw, 3.4rem); margin: -0.4em 0 0 1.2em; transform: rotate(-5deg); transform-origin: left; }
.risposta__lede { margin-top: 1.75rem; max-width: 34ch; }
.risposta__arch { margin-top: 2.5rem; width: min(62%, 300px); aspect-ratio: 3 / 4.2; border-radius: 999px 999px 0 0; overflow: hidden; background: #8E9172; }
.risposta__arch img { width: 100%; height: 100%; object-fit: cover; }
.reply-slot { grid-column: 7 / -1; min-width: 0; }
.reply { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reply.is-sealing { opacity: 0; transform: translateY(28px); }
.reply__closed { padding: 1.25rem 0; border-top: 1px solid var(--ink); }
.group { padding: 2rem 0; border-top: 1px solid var(--rule); display: grid; gap: 1.6rem; }
.group__legend { float: left; width: 100%; padding: 0; color: var(--grey); margin-bottom: 1.25rem; }
.group__legend.visually-hidden { float: none; width: 1px; margin: -1px; }
.group > legend ~ * { clear: both; }
fieldset.field > legend { float: left; width: 100%; padding: 0; margin-bottom: 0.6rem; }
fieldset.field > legend ~ * { clear: both; }

.choices { display: grid; gap: 0.6rem; }
.choices--two { grid-template-columns: 1fr 1fr; }
.choices--three { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: grid; cursor: pointer; }
.choice__box { height: 100%; }
/* the invisible input covers its box, so keyboard focus scrolls the whole box into view */
.choice input, .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__box {
  display: grid; place-content: center; gap: 0.1rem; text-align: center;
  min-height: 3.75rem; padding: 0.75rem 0.75rem;
  border: 1px solid var(--rule-strong);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.choice__main { font-weight: 500; }
.choice__main[lang="it"], .choice__main [lang="it"] { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.2rem; }
.choice__sub { font-size: 0.8125rem; color: var(--grey); }
.choice input:checked + .choice__box { background: var(--noir); border-color: var(--noir); color: var(--white); }
.choice input:checked + .choice__box .choice__sub { color: var(--grey-light); }
.choice input:focus-visible + .choice__box, .chip input:focus-visible + span { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.is-invalid .choice__box { border-color: var(--bordeaux); }
/* Sì is green, No is burgundy: as text while open, as the whole box once chosen */
.choices--small .choice__box { min-height: 3rem; padding: 0.5rem 0.75rem; }
.choice--yes .choice__main, .choice--yes .choice__main [lang="it"] { color: var(--verde-deep); }
.choice--no .choice__main, .choice--no .choice__main [lang="it"] { color: var(--bordeaux); }
.choice--yes input:checked + .choice__box { background: var(--verde-deep); border-color: var(--verde-deep); }
.choice--no input:checked + .choice__box { background: var(--bordeaux); border-color: var(--bordeaux); }
.choice--yes input:checked + .choice__box .choice__main, .choice--yes input:checked + .choice__box .choice__main [lang="it"],
.choice--no input:checked + .choice__box .choice__main, .choice--no input:checked + .choice__box .choice__main [lang="it"] { color: var(--white); }
.choice--yes input:focus-visible + .choice__box { outline-color: var(--verde-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip { position: relative; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.15rem; border: 1px solid var(--rule-strong); border-radius: 999px; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.chip input:checked + span { background: var(--noir); border-color: var(--noir); color: var(--white); }
.chip > span .ph { margin-left: 0.35em; }
.strip:focus-visible { outline-offset: -3px; }
.field--row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--rule-strong); }
.stepper button { width: 3rem; min-height: 3rem; background: none; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.stepper button:disabled { color: #B8BAA8; cursor: not-allowed; background: none; }
.stepper svg { width: 18px; height: 18px; }
.stepper output { min-width: 3.25rem; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; border-inline: 1px solid var(--rule); font-variant-numeric: lining-nums tabular-nums; }
.group__hint { color: var(--grey); font-size: 0.9375rem; max-width: 52ch; }
.field--narrow { max-width: 14rem; }
.persons { display: grid; gap: 0.5rem; }
.person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem 1.5rem; align-items: start; padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--rule); }
.person:first-child { border-top: 0; padding-top: 0.25rem; }
.person__num { grid-column: 1 / -1; color: var(--grey); display: flex; justify-content: space-between; align-items: baseline; }
.person > div.field { grid-column: 1 / -1; }
.person__intol { grid-column: 1 / -1; display: grid; gap: 1rem; padding: 1rem 1.1rem 1.25rem; border: 1px dashed var(--rule-strong); }
.person__remove { grid-column: 1 / -1; justify-self: end; background: none; border: 0; color: var(--bordeaux); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; font-weight: 500; min-height: 44px; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; }
.person__remove svg { width: 16px; height: 16px; }
.add-person { margin-top: 0.25rem; }
.kids { display: grid; gap: 0.8rem; }
.kid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 1fr); gap: 0.75rem 1rem; align-items: end; padding: 1rem 0; background: none; border-top: 1px solid var(--rule); }
.kid__menu { align-self: end; }
.kid__remove { grid-column: 3; justify-self: end; align-self: center; background: none; border: 0; color: var(--bordeaux); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; font-weight: 500; min-height: 44px; text-decoration: underline; text-underline-offset: 0.2em; }
.kid__remove svg { width: 16px; height: 16px; }
.add-kid { margin-top: 0.8rem; }
.form-summary { display: flex; gap: 0.6rem; align-items: flex-start; padding: 1rem 1.15rem; margin-bottom: 1rem; background: var(--error-wash); color: var(--bordeaux); font-weight: 500; }
.form-summary svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.15rem; }
.reply__foot { padding-top: 2rem; border-top: 1px solid var(--ink); display: grid; gap: 1rem; justify-items: start; }
.reply__privacy, .demo-note { font-size: 0.875rem; color: var(--grey); }
.demo-note { color: var(--grey); }

.thanks { padding: 2.5rem 0; border-top: 1px solid var(--ink); }
.thanks.is-in { animation: rise 0.9s var(--ease) both; }
.thanks__title { font-size: clamp(2.8rem, 1.2rem + 4.4vw, 5.5rem); }
#thanks-body { margin-top: 1.5rem; max-width: 46ch; }
#thanks-when { margin-top: 0.6rem; color: var(--grey); font-size: 0.9375rem; }
.thanks__summary { margin-top: 1.5rem; padding: 0.25rem 0 0.25rem 1.2rem; background: none; border-left: 1px solid var(--ink); display: grid; gap: 0.2rem; font-size: 0.9375rem; max-width: 34rem; }
.thanks__summary strong { font-weight: 600; }
.thanks__note { margin-top: 1.5rem; color: var(--grey); font-size: 0.9375rem; }
.thanks__actions { margin-top: 1.5rem; }
.thanks .demo-note { margin-top: 1.25rem; }

/* ---------- 8 Closing ---------- */
.closing { padding-top: clamp(1rem, 2vw, 2rem); padding-bottom: 2.5rem; text-align: center; }
.closing__strip { margin: 0 calc(-1 * var(--gutter)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.closing__strip li { aspect-ratio: 4 / 5; overflow: hidden; background: #5B6136; }
.closing__strip img { width: 100%; height: 100%; object-fit: cover; }
.closing__title { display: flex; flex-direction: column; align-items: center; margin-top: var(--band); }
.closing__title .cap { font-size: clamp(4rem, 1rem + 12vw, 14rem); }
.closing__meta { margin-top: var(--band); padding-top: 2rem; border-top: 1px solid var(--rule-dark); display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1.5rem 3rem; align-items: start; text-align: left; font-size: 0.875rem; color: var(--grey-light); }
.closing__hosts { color: var(--white); }
.closing__note { text-align: center; }
.closing__actions { display: flex; justify-content: flex-end; gap: 1.75rem; flex-wrap: wrap; }
.closing__actions a, .closing__actions button { background: none; border: 0; padding: 0; color: var(--grey-light); cursor: pointer; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.closing__actions a:hover, .closing__actions button:hover { color: var(--white); }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .nav { display: none; }
  .header { justify-content: space-between; }
  .header__cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .giornata__aside, .events { grid-column: 1 / -1; }
  .giornata__aside { display: flex; align-items: flex-end; gap: 1.5rem; }
  .giornata__name { margin-top: 0; }
  .giornata__arch { display: none; }
  .alloggi__aside, .alloggi__body { grid-column: 1 / -1; }
  .alloggi__arch { display: none; }
  .notices__deadline { grid-column: 1 / -1; }
  .notices__list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .section-head--split .section-title, .luogo__text { grid-column: 1 / -1; }
  .info__aside, .faq { grid-column: 1 / -1; }
  .info__arch { display: none; }
  .risposta__aside { grid-column: 1 / -1; position: static; }
  .risposta__arch { display: none; }
  .reply-slot { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --header: 64px; }
  .micro { font-size: 0.8125rem; }
  .hero { min-height: 100svh; padding-bottom: 3.5rem; }
  .hero__title { font-size: clamp(3.2rem, 17vw, 5.4rem); flex-direction: column; align-items: center; line-height: 0.95; }
  .hero__amp { font-size: 0.9em; margin: 0.05em 0; transform: none; }
  .hero__date { flex-direction: column; gap: 0.35rem; letter-spacing: 0.2em; }
  .hero__sep { display: none; }
  .hero__scroll { display: none; }
  .notices__list { grid-template-columns: 1fr; }
  .giornata { padding-top: 1.5rem; }
  .giornata__aside { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .event { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.2rem 1rem; }
  .event__flag { justify-self: start; }
  .alloggi__list > div { grid-template-columns: minmax(0, 1fr); }
  .strip {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 0.5rem 0;
    scrollbar-width: none; align-items: flex-end;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item { flex: 0 0 64vw; scroll-snap-align: center; }
  .strip__item--c { order: -1; flex-basis: 88vw; }
  .choices--three { grid-template-columns: 1fr; }
  .kid { grid-template-columns: minmax(0, 1fr) 5.5rem; }
  .kid__menu { grid-column: 1 / -1; }
  .kid__remove { grid-column: 1 / -1; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .closing__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closing__strip li:nth-child(n + 4) { display: none; }
  .closing__meta { grid-template-columns: 1fr; text-align: center; }
  .closing__actions { justify-content: center; }
  .gate__form { flex-direction: column; align-items: stretch; }
  .gate__submit { width: 100%; }
}

@media (max-width: 359px) {
  .input--dark { letter-spacing: 0; }
}

/* ---------- Forced colors: selected choices keep a visible state ---------- */
@media (forced-colors: active) {
  .choice input:checked + .choice__box, .chip input:checked + span {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print: the programme prints cleanly ---------- */
@media print {
  .header, .gate, .hero, .notices, .luogo, .alloggi, .info, .risposta, .closing { display: none !important; }
  .programma { padding: 0; }
}

/* ---------- Variants that must follow their base rules ---------- */
.distances--light li::after { border-bottom-color: var(--rule-strong); }
.distances--light span:last-child { color: var(--ink); }
