﻿:root {
  --ink: #16221d;
  --muted: #5f6f67;
  --paper: #fffaf0;
  --paper-strong: #f6ead2;
  --forest: #173c32;
  --forest-2: #235947;
  --amber: #e0a12d;
  --red: #8d3032;
  --blue: #213f66;
  --green: #173c32;
  --line: rgba(22, 34, 29, 0.16);
  --shadow: 0 18px 44px rgba(22, 34, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  min-width: 0;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fffaf0;
  background: rgba(23, 60, 50, 0.95);
  backdrop-filter: blur(16px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid rgba(255, 250, 240, 0.84);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.78rem;
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 8px;
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.1);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 250, 240, 0.18);
  outline: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  transform: translateY(-7px);
}

.nav-toggle-bars::after {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: clamp(18px, 5vw, 64px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(280px, calc(100vw - 36px));
  padding: 8px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: #173c32;
  box-shadow: 0 18px 36px rgba(8, 18, 14, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-header.nav-open .site-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.site-nav a {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 250, 240, 0.12);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: clip;
  display: grid;
  align-items: center;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 64px);
  color: #fffaf0;
  isolation: isolate;
}

.hero-slideshow,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  z-index: -3;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-foulard {
  object-position: 32% center;
}

.feature-photo img[src$="foulard-crema.webp"] {
  object-position: 32% center;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 22, 19, 0.92) 0%, rgba(9, 22, 19, 0.68) 45%, rgba(9, 22, 19, 0.25) 78%),
    linear-gradient(0deg, rgba(9, 22, 19, 0.7) 0%, rgba(9, 22, 19, 0.05) 46%);
}

.hero-content {
  width: min(1180px, 100%);
  max-width: 780px;
}

.hero-layout {
  display: block;
}

.hero-copy {
  min-width: 0;
  max-width: 780px;
}

.title-slideshow,
.title-slide {
  display: none;
}
.eyebrow {
  margin: 0 0 14px;
  color: #f1c56c;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

.eyebrow.light {
  color: #f4c768;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.9;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-subtitle,
.section-lead {
  max-width: 740px;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.section-lead {
  color: var(--muted);
}

.section-lead.light {
  color: rgba(255, 250, 240, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, max-content));
  align-items: stretch;
  max-width: 620px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--amber);
  color: #1f1605;
  box-shadow: 0 12px 26px rgba(224, 161, 45, 0.2);
}

.button.ghost {
  border-color: rgba(255, 250, 240, 0.44);
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
}

.button.hero-option {
  min-width: 190px;
  border-color: rgba(241, 197, 108, 0.66);
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.1);
  box-shadow: none;
}

.button.hero-option:hover,
.button.hero-option:focus-visible {
  border-color: #f1c56c;
  background: rgba(241, 197, 108, 0.2);
}

.button.secondary {
  border-color: rgba(23, 60, 50, 0.22);
  color: var(--forest);
  background: #fffdf7;
}

.button.full {
  width: 100%;
}

.button[hidden] {
  display: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 30px;
}

.countdown div {
  min-height: 92px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  background: rgba(16, 24, 20, 0.45);
  backdrop-filter: blur(8px);
}

.countdown span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 0.9;
  color: var(--amber);
}

.countdown small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.82);
  font-weight: 800;
}

.photo-ribbon {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.photo-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: photo-slide 54s linear infinite;
}

.photo-track img {
  width: clamp(132px, 17vw, 238px);
  height: clamp(92px, 11vw, 150px);
  border: 2px solid rgba(255, 250, 240, 0.74);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  object-fit: cover;
}

@keyframes photo-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.anniversary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--forest);
  color: #fffaf0;
  border-top: 6px solid var(--amber);
}

.metric {
  min-height: 154px;
  padding: clamp(22px, 4vw, 42px);
  border-right: 1px solid rgba(255, 250, 240, 0.16);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.86;
  color: var(--amber);
}

.metric p {
  margin: 12px 0 0;
  max-width: 280px;
  color: rgba(255, 250, 240, 0.84);
  font-weight: 700;
}

.event-band,
.memory-band,
.form-band,
.gallery-band,
.place-band {
  padding: clamp(58px, 8vw, 104px) 0;
}

.event-band,
.form-band {
  background: var(--paper);
}

.page-photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
}

.page-photo-band::before,
.page-photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-photo-band::before {
  z-index: -2;
  background-image: var(--page-photo-image);
  background-repeat: no-repeat;
  background-position: var(--page-photo-position, center);
  background-size: cover;
  opacity: var(--page-photo-opacity, 0.22);
  filter: var(--page-photo-filter, saturate(0.85));
}

.page-photo-band::after {
  z-index: -1;
  background: var(
    --page-photo-overlay,
    linear-gradient(90deg, rgba(255, 250, 240, 0.9) 0%, rgba(255, 250, 240, 0.74) 48%, rgba(255, 250, 240, 0.34) 100%)
  );
}

.aperitivo-photo-band {
  --page-photo-image: url("assets/backgrounds/aperitivo-ai.jpg");
  --page-photo-position: center;
  --page-photo-opacity: 0.72;
  --page-photo-overlay: linear-gradient(90deg, rgba(255, 250, 240, 0.9) 0%, rgba(255, 250, 240, 0.72) 48%, rgba(255, 250, 240, 0.28) 100%);
}

.gadget-photo-band {
  --page-photo-image: url("assets/backgrounds/shop-gadget-ai.jpg");
  --page-photo-position: center top;
  --page-photo-opacity: 0.76;
  --page-photo-overlay: linear-gradient(90deg, rgba(255, 250, 240, 0.88) 0%, rgba(255, 250, 240, 0.68) 48%, rgba(255, 250, 240, 0.26) 100%);
}

.torneo-photo-band {
  --page-photo-image: url("assets/backgrounds/torneo-roverino-ai.jpg");
  --page-photo-position: center;
  --page-photo-opacity: 0.72;
  --page-photo-overlay: linear-gradient(90deg, rgba(255, 250, 240, 0.88) 0%, rgba(255, 250, 240, 0.68) 48%, rgba(255, 250, 240, 0.22) 100%);
}

.page-photo-band .section-inner {
  position: relative;
  z-index: 1;
}

.gallery-band {
  background: #10261f;
}

.single-photo-band {
  padding: 0 0 clamp(58px, 8vw, 104px);
  background: var(--paper);
}

.program-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #101814;
  aspect-ratio: 16 / 7;
}

.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.memory-band {
  background: #edf2df;
}

.place-band {
  color: #fffaf0;
  background: linear-gradient(120deg, var(--forest) 0%, var(--blue) 100%);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-width: 0;
}

.two-column,
.form-layout,
.memory-layout,
.place-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.place-layout {
  align-items: center;
}

.event-info,
.event-form,
.story-card,
.timeline-item,
.data-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow);
}

.event-info {
  padding: 10px 24px;
}

.event-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.event-info dl {
  margin: 0;
}

.event-info div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.event-info div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--red);
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--ink);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 60px);
}

.timeline-item {
  min-height: 230px;
  padding: 22px;
}

.timeline-item time {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.timeline-item p,
.story-card p,
.data-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr) minmax(220px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.feature-photo,
.memory-photo,
.place-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #101814;
}

.feature-photo img,
.memory-photo img,
.place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-photo {
  min-height: 420px;
}

.feature-photo.tall {
  min-height: 420px;
}

.memory-photo,
.place-photo {
  min-height: 360px;
  margin-top: 28px;
}

.place-photo {
  aspect-ratio: 16 / 10;
  min-height: 0;
  max-height: 430px;
  margin-top: 0;
}

.data-note {
  max-width: 620px;
  margin-top: 28px;
  padding: 18px;
  background: #fffdf7;
  min-width: 0;
}

.deadline-note,
.deadline-summary,
.deadline-closed {
  border-left: 4px solid var(--gold);
}

.deadline-summary {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.deadline-summary strong,
.deadline-closed strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
}

.deadline-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.deadline-summary a {
  color: var(--forest);
  font-weight: 900;
}

.deadline-closed {
  max-width: 620px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.deadline-closed p {
  margin: 0;
  color: var(--muted);
}

.is-deadline-closed {
  opacity: 0.72;
}

.button.is-disabled,
a.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.data-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
}

.privacy-layout {
  max-width: 920px;
}

.privacy-content {
  padding: clamp(22px, 4vw, 42px);
  background: #fffdf7;
  color: var(--ink);
}

.privacy-content h1,
.privacy-content h2 {
  color: var(--forest);
}

.privacy-content h1 {
  margin-top: 0;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.privacy-content h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
  line-height: 1.7;
}

.privacy-content a {
  color: var(--green);
  font-weight: 900;
}

.event-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  color: var(--ink);
  background: #fffdf7;
  min-width: 0;
}

.event-form[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(22, 34, 29, 0.24);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(224, 161, 45, 0.4);
  border-color: var(--amber);
}

.participants {
  display: grid;
  gap: 12px;
}

.participants[hidden] {
  display: none;
}

.participant {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(22, 34, 29, 0.14);
  border-radius: 8px;
  background: #fbf3e4;
}

.participant legend {
  padding: 0 8px;
  color: var(--red);
  font-weight: 900;
}

.participant.is-hidden {
  display: none;
}

.gadget-item {
  grid-template-columns: 1fr;
}

.size-distribution,
.shop-size-distribution {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(22, 34, 29, 0.14);
  border-radius: 8px;
  background: #fbf3e4;
}

.size-distribution[hidden],
.shop-size-distribution[hidden] {
  display: none;
}

.size-distribution legend,
.shop-size-distribution legend {
  padding: 0 8px;
  color: var(--red);
  font-weight: 900;
}

.shop-size-distribution {
  padding: 12px;
}

.shop-size-grid {
  display: grid;
  gap: 12px;
}

.shop-size-group {
  display: grid;
  gap: 8px;
}

.shop-size-group-title {
  margin: 0;
  color: rgba(22, 34, 29, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.shop-size-chip {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(22, 34, 29, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.shop-size-chip .size-label {
  text-align: center;
}

.shop-size-stepper {
  display: grid;
  grid-template-columns: 32px minmax(42px, 1fr) 32px;
  gap: 4px;
  align-items: center;
}

.shop-size-chip .quantity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  line-height: 1;
}

.shop-size-chip input {
  min-width: 0;
  min-height: 36px;
  padding: 4px 2px;
  text-align: center;
  font-weight: 900;
  appearance: textfield;
  -moz-appearance: textfield;
}

.shop-size-chip input::-webkit-outer-spin-button,
.shop-size-chip input::-webkit-inner-spin-button,
.cart-quantity input::-webkit-outer-spin-button,
.cart-quantity input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.quantity-status {
  margin: 0 0 4px;
  color: rgba(22, 34, 29, 0.76);
  font-weight: 800;
}

.quantity-status.is-error {
  color: var(--red);
}

.size-row {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) 38px 68px 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(22, 34, 29, 0.1);
}

.size-row:first-of-type {
  border-top: 0;
}

.size-label {
  font-weight: 900;
}

.quantity-button {
  width: 38px;
  min-height: 38px;
  border: 1px solid rgba(22, 34, 29, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.quantity-button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.payment-summary,
.paypal-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(22, 34, 29, 0.14);
  border-radius: 8px;
  background: #fbf3e4;
}

.payment-summary[hidden] {
  display: none;
}

.payment-summary > strong {
  color: var(--red);
  font-size: 1.02rem;
}

.payment-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payment-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(22, 34, 29, 0.1);
  padding-top: 8px;
}

.payment-summary dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.payment-summary dt {
  font-weight: 800;
}

.payment-summary dd {
  margin: 0;
  font-weight: 900;
  color: var(--green);
}

.paypal-box > .fine-print {
  margin: 0;
}

.shop-is-processing {
  overflow: hidden;
}

.shop-processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 28, 22, 0.72);
  backdrop-filter: blur(3px);
}

.shop-processing-overlay[hidden] {
  display: none;
}

.shop-processing-box {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.shop-processing-box strong {
  color: var(--forest);
  font-size: 1.18rem;
}

.shop-processing-box p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.shop-processing-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border: 4px solid rgba(22, 34, 29, 0.16);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: shop-spin 0.8s linear infinite;
}

@keyframes shop-spin {
  to {
    transform: rotate(360deg);
  }
}

.shop-lightbox-open {
  overflow: hidden;
}

.shop-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(12, 28, 22, 0.84);
  backdrop-filter: blur(4px);
}

.shop-lightbox[hidden] {
  display: none;
}

.shop-lightbox figure {
  grid-column: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.shop-lightbox img {
  max-width: min(100%, 980px);
  max-height: 82svh;
  object-fit: contain;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.shop-lightbox figcaption {
  color: #fffaf0;
  font-weight: 900;
  text-align: center;
}

.shop-lightbox-close,
.shop-lightbox-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 999px;
  color: #fffaf0;
  background: rgba(22, 34, 29, 0.58);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.shop-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.shop-lightbox-arrow {
  justify-self: center;
  font-size: 1.5rem;
}

.shop-lightbox-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.shop-lightbox-close:focus-visible,
.shop-lightbox-arrow:focus-visible {
  outline: 3px solid rgba(230, 166, 35, 0.78);
  outline-offset: 3px;
}

.shop-layout {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.shop-intro {
  display: grid;
  gap: 14px;
  max-width: 860px;
  min-width: 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
  min-width: 0;
}

.shop-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(22, 34, 29, 0.14);
  border-radius: 8px;
  background: #fffdf8;
}

.product-card.is-disabled {
  opacity: 0.72;
}

.product-media {
  display: grid;
  place-items: center;
  height: clamp(260px, 28vw, 360px);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  background: #fff;
}

.product-media img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: contain;
}

.product-image-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-image-button:focus-visible {
  outline: 3px solid rgba(230, 166, 35, 0.72);
  outline-offset: 3px;
  border-radius: 8px;
}

.product-image-button img {
  display: block;
  max-height: 100%;
}

.product-media-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-media-duo img {
  max-height: 100%;
}

.product-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 18px;
  background: #fbf3e4;
  color: var(--green);
  font-weight: 900;
  text-align: center;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.product-body h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.product-body p {
  margin: 0;
  color: rgba(22, 34, 29, 0.74);
}

.product-price {
  color: var(--red);
  font-size: 1.35rem;
}

.product-controls {
  display: grid;
  gap: 10px;
}

.product-controls.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-controls.two .button {
  grid-column: 1 / -1;
}

.shop-cart-panel {
  position: static;
  width: min(720px, 100%);
  justify-self: center;
}

.shop-form h3 {
  margin: 0;
  font-size: 1.3rem;
}

.shop-form .form-grid.two {
  grid-template-columns: 1fr;
}

.shop-checkout {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.shop-checkout[hidden] {
  display: none;
}

.checkout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.checkout-heading h3 {
  margin: 0;
}

.checkout-heading h3:focus-visible {
  outline: 3px solid rgba(224, 161, 45, 0.72);
  outline-offset: 4px;
  border-radius: 6px;
}

.button.compact {
  width: auto;
  min-height: 40px;
  padding: 9px 14px;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(22, 34, 29, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 4px;
  color: rgba(22, 34, 29, 0.72);
  font-weight: 700;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 38px 64px 38px 1fr;
  gap: 8px;
  align-items: center;
}

.cart-quantity button,
.cart-quantity input {
  min-width: 0;
  min-height: 38px;
}

.cart-quantity button {
  border: 1px solid rgba(22, 34, 29, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cart-quantity [data-cart-remove] {
  padding: 0 10px;
}

.size-row input {
  min-width: 0;
  min-height: 38px;
  padding: 8px;
  text-align: center;
  font-weight: 900;
  appearance: textfield;
}

.photo-upload-list {
  display: grid;
  gap: 12px;
}

.photo-upload-block {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(22, 34, 29, 0.14);
  border-radius: 8px;
  background: #fbf3e4;
}

.photo-upload-block[hidden] {
  display: none;
}

.photo-upload-block legend {
  padding: 0 8px;
  color: var(--red);
  font-weight: 900;
}

.photo-upload-block.is-compact {
  padding-block: 14px;
}

.photo-fields {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.photo-description-counter,
.file-meta {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.photo-remove {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.photo-remove[hidden] {
  display: none;
}

.upload-progress {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf3e4;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.upload-progress progress {
  width: 100%;
  height: 14px;
  accent-color: var(--amber);
}

.upload-debug {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.upload-debug[hidden] {
  display: none;
}

.upload-debug summary {
  color: var(--forest);
  font-weight: 900;
  cursor: pointer;
}

.upload-debug pre {
  max-height: 260px;
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(22, 34, 29, 0.08);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.debug-thanks-link {
  margin-top: -4px;
}

.thanks-debug {
  margin-top: 18px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.check-row input,
input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.privacy-read-note {
  display: block;
  grid-column: 1 / -1;
  max-width: 100%;
  margin-top: 6px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.privacy-confirm-box {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 60, 50, 0.18);
}

.privacy-confirm-box p {
  margin-top: 0;
  color: var(--muted);
  font-weight: 700;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine-print {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-error,
.form-status {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-height: 1em;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
}

.field-error,
.form-status.is-error {
  color: var(--red);
}

.form-status {
  color: var(--muted);
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 250, 240, 0.82);
  background: #101814;
}

.site-footer p {
  margin: 0;
}

.footer-main {
  display: grid;
  gap: 6px;
}

.footer-ai-note {
  display: block;
  max-width: 760px;
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.82rem;
  line-height: 1.4;
}

.site-footer a {
  color: #fffaf0;
  font-weight: 800;
  text-decoration: none;
}

.footer-contact {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255, 250, 240, 0.82);
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.thanks-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.thanks-privacy-link {
  margin: 18px 0 0;
  text-align: center;
}

.thanks-privacy-link a {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-cart-panel {
    position: static;
  }

  .gallery-layout {
    grid-template-columns: 1fr 1fr;
  }

  .feature-photo.wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .hero {
    min-height: 92svh;
    align-items: end;
  }

  .hero-layout,
  .anniversary-strip,
  .two-column,
  .form-layout,
  .memory-layout,
  .place-layout,
  .timeline {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 124px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 240, 0.16);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .timeline-item {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    right: 18px;
    left: 18px;
    width: auto;
  }

  .page-photo-band::before {
    background-size: var(--page-photo-mobile-size, auto 420px);
    background-position: var(--page-photo-mobile-position, center top);
    opacity: var(--page-photo-mobile-opacity, 0.56);
    filter: saturate(0.9) contrast(0.94);
  }

  .page-photo-band::after {
    background: var(
      --page-photo-mobile-overlay,
      linear-gradient(180deg, rgba(255, 250, 240, 0.62) 0%, rgba(255, 250, 240, 0.8) 260px, rgba(255, 250, 240, 0.96) 560px, rgba(255, 250, 240, 0.98) 100%)
    );
  }

  .aperitivo-photo-band {
    --page-photo-mobile-position: 58% top;
    --page-photo-mobile-size: auto 430px;
    --page-photo-mobile-opacity: 0.58;
  }

  .gadget-photo-band {
    --page-photo-mobile-position: 54% top;
    --page-photo-mobile-size: auto 390px;
    --page-photo-mobile-opacity: 0.62;
  }

  .torneo-photo-band {
    --page-photo-mobile-position: center top;
    --page-photo-mobile-size: auto 420px;
    --page-photo-mobile-opacity: 0.58;
  }

  .hero {
    min-height: 94svh;
    padding-top: 50px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .hero-actions,
  .site-footer,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-menu-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .checkout-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-info div,
  .form-grid.two,
  .participant,
  .photo-fields,
  .shop-catalog,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .product-controls.two {
    grid-template-columns: 1fr;
  }

  .cart-quantity {
    grid-template-columns: 38px 64px 38px;
  }

  .shop-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 16px 10px;
  }

  .shop-lightbox img {
    max-height: 76svh;
  }

  .shop-lightbox-close,
  .shop-lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .cart-quantity [data-cart-remove] {
    grid-column: 1 / -1;
  }

  .program-photo {
    aspect-ratio: 4 / 3;
  }

  .hide-mobile {
    display: none;
  }

  .feature-photo,
  .feature-photo.tall,
  .memory-photo,
  .place-photo {
    min-height: 280px;
  }

  .place-photo {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-slide {
    opacity: 0 !important;
    transition: none !important;
  }

  .hero-slide.active {
    opacity: 1 !important;
  }

  .photo-track {
    animation: none;
  }
}

.thanks-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--paper);
}

.thanks-wrap {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.thanks-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.thanks-wrap h1 {
  max-width: none;
  color: var(--forest);
}



.form-status {
  margin: 0;
  color: var(--muted);
}

button[disabled] {
  cursor: wait;
  opacity: 0.72;
}


