:root {
  --camerani-red: #b3132c;
  --deep-red: #7c0d22;
  --cream: #e7c79c;
  --paper: #fff7ea;
  --ink: #261414;
  --muted: #6f5149;
  --blue: #2c398c;
  --green: #057a62;
  --border: rgba(38, 20, 20, 0.18);
  --shadow: 0 24px 70px rgba(47, 8, 15, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button,
a.secondary-button {
  min-height: 46px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

button:active,
a.secondary-button:active {
  transform: translateY(1px);
}

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

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(32px, 7vw, 80px);
  color: var(--cream);
  background: var(--camerani-red);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: rgba(231, 199, 156, 0.55);
}

.blue-elements {
  position: absolute;
  top: -110px;
  right: -170px;
  width: min(55vw, 620px);
  max-width: none;
  opacity: 0.96;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
}

.logo {
  width: clamp(118px, 14vw, 158px);
  height: auto;
  display: inline-block;
  margin: 0 18px 16px 0;
  vertical-align: bottom;
}

.marinella {
  width: clamp(128px, 16vw, 188px);
  height: auto;
  display: inline-block;
  margin: 0 0 16px;
  vertical-align: bottom;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.registration-panel h2,
.success-panel h2,
.admin-shell h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.98;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(2.75rem, 5.8vw, 4.85rem);
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 247, 234, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.event-details {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
}

.event-details div {
  display: grid;
  gap: 2px;
}

.event-details dt {
  color: rgba(255, 247, 234, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-details dd {
  margin: 0;
  color: #fff7ea;
  font-size: 1rem;
}

.registration-panel {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.94), rgba(255, 247, 234, 0.98)),
    var(--paper);
}

.form-block,
.success-panel,
.admin-login {
  width: min(100%, 560px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.82);
  box-shadow: var(--shadow);
}

.form-block {
  display: grid;
  gap: 18px;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.registration-panel h2,
.success-panel h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.muted,
small {
  color: var(--muted);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

label span,
legend {
  font-size: 0.94rem;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fffdf8;
}

input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(44, 57, 140, 0.16);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented label,
.day-choice {
  position: relative;
}

.segmented input,
.day-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented span,
.day-choice {
  display: grid;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  background: #fffdf8;
}

.segmented input:checked + span,
.day-choice:has(input:checked) {
  border-color: var(--deep-red);
  background: #f7ead5;
  box-shadow: inset 0 0 0 1px var(--deep-red);
}

.day-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.day-choice {
  gap: 4px;
  min-height: 86px;
  cursor: pointer;
}

.day-choice small {
  font-weight: 600;
}

.day-choice[data-available="false"] {
  cursor: not-allowed;
  opacity: 0.48;
}

.check-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-weight: 650;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.check-row span {
  display: grid;
  gap: 4px;
}

.tasting-row {
  padding: 14px;
  border: 1px solid rgba(179, 19, 44, 0.22);
  border-radius: 6px;
  background: rgba(179, 19, 44, 0.06);
}

.primary-button {
  border: 1px solid var(--deep-red);
  color: #fff7ea;
  background: var(--camerani-red);
  font-weight: 850;
}

.primary-button:hover {
  background: var(--deep-red);
}

.secondary-button {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(38, 20, 20, 0.24);
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.secondary-button:hover {
  border-color: var(--ink);
  background: rgba(38, 20, 20, 0.05);
}

.notice {
  width: min(100%, 560px);
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 13, 34, 0.3);
  border-radius: 6px;
  color: var(--deep-red);
  background: rgba(179, 19, 44, 0.08);
  font-weight: 750;
}

.notice[data-tone="success"] {
  border-color: rgba(5, 122, 98, 0.35);
  color: var(--green);
  background: rgba(5, 122, 98, 0.08);
}

.success-panel p:last-of-type {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.success-panel .secondary-button {
  margin-top: 16px;
}

.admin-body {
  background:
    linear-gradient(120deg, rgba(179, 19, 44, 0.08), rgba(44, 57, 140, 0.08)),
    var(--paper);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-login {
  margin: 9vh auto 0;
}

.admin-logo {
  width: 110px;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 12px 24px rgba(47, 8, 15, 0.12));
}

.admin-login h1,
.admin-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-grid article {
  min-height: 112px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.86);
}

.summary-grid span {
  color: var(--muted);
  font-weight: 800;
}

.summary-grid strong {
  color: var(--deep-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.9);
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(38, 20, 20, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 3px;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 58vh;
  }

  .registration-panel {
    align-content: start;
  }

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

@media (max-width: 620px) {
  .hero,
  .registration-panel {
    padding: 24px 18px;
  }

  .blue-elements {
    top: -76px;
    right: -168px;
    width: 560px;
  }

  .marinella {
    display: block;
    margin-left: 0;
  }

  .day-options,
  .segmented,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
    align-items: start;
  }
}
