/* Lidl Fresh Club — RSVP
   Palette: blu #0050AA, giallo #FFF000, rosso #E60A14 */

@font-face {
  font-family: 'Lidl Cond Pro';
  font-weight: 400;
  font-style: normal;
  src: url('../assets/fonts/lidl-cond-pro-400.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lidl Cond Pro';
  font-weight: 500;
  font-style: normal;
  src: url('../assets/fonts/lidl-cond-pro-500.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Lidl Cond Pro';
  font-weight: 600;
  font-style: normal;
  src: url('../assets/fonts/lidl-cond-pro-600.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lidl Cond Pro';
  font-weight: 700;
  font-style: normal;
  src: url('../assets/fonts/lidl-cond-pro-700.woff2') format('woff2');
  font-display: swap;
}

:root {
  --blu: #0050AA;
  --giallo: #FFF000;
  --rosso: #E60A14;
  --bianco: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--blu);
}

body {
  font-family: 'Lidl Cond Pro', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--giallo);
}
a:hover {
  color: var(--bianco);
}

/* Layout */
.page {
  min-height: 100svh;
  background: var(--blu);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 4vw, 48px) 16px;
}

.container {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}

/* Hero / locandina */
.hero {
  position: relative;
  width: 100%;
  line-height: 0;
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__hotspot {
  position: absolute;
  left: 26%;
  right: 26%;
  top: 43%;
  height: 15%;
  display: block;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.hero__hotspot:hover,
.hero__hotspot:focus-visible {
  background: rgba(255, 240, 0, 0.15);
  box-shadow: inset 0 0 0 3px var(--giallo);
  outline: none;
}

/* Disclaimer */
.disclaimer {
  color: var(--bianco);
  opacity: 0.85;
  font-weight: 400;
  font-size: clamp(13px, 2.6vw, 15px);
  line-height: 1.5;
  text-align: center;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  color: var(--giallo);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field__input {
  appearance: none;
  background: var(--bianco);
  border: 1px solid var(--blu);
  border-radius: 0;
  color: var(--blu);
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  padding: 13px 14px;
  width: 100%;
}
.field__input:focus {
  outline: 2px solid var(--giallo);
  outline-offset: 0;
}
.field__input.is-invalid {
  border-color: var(--rosso);
}

/* Privacy checkbox */
.privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.privacy__box {
  appearance: none;
  background-color: transparent;
  border: 1px solid var(--giallo);
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 1px 0 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230050AA' stroke-linecap='square' stroke-width='2.5' d='M2.5 8.5 6 12l7.5-8'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 68%;
}
.privacy__box:checked {
  background-color: var(--giallo);
}
.privacy__box.is-invalid {
  border-color: var(--rosso);
}
.privacy__box:focus-visible {
  outline: 2px solid var(--giallo);
  outline-offset: 2px;
}

.privacy__label {
  color: var(--bianco);
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
}
.privacy__label a {
  color: var(--giallo);
  text-decoration: underline;
}
.privacy__req {
  color: var(--giallo);
}

/* Error banner */
.error {
  background: var(--rosso);
  color: var(--bianco);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 14px;
}

/* Submit */
.submit {
  appearance: none;
  border: none;
  background: var(--giallo);
  color: var(--blu);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 25px;
  width: 100%;
  margin-top: 6px;
}
.submit:hover {
  background: var(--rosso);
  color: var(--bianco);
}
.submit:disabled {
  cursor: default;
  opacity: 0.7;
}

/* Sending spinner */
.sending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 0;
}
.sending__dot {
  width: 10px;
  height: 10px;
  background: var(--giallo);
  border-radius: 50%;
  animation: fc-pulse 1.2s ease-in-out infinite;
}
.sending__dot:nth-child(2) {
  animation-delay: 0.2s;
}
.sending__dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes fc-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Done state */
.done {
  text-align: center;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.done__mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--giallo);
  transform: rotate(45deg);
}
.done__title {
  margin: 0;
  color: var(--giallo);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.done__text {
  margin: 0;
  color: var(--bianco);
  opacity: 0.85;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
}

/* Footer */
.footer {
  color: var(--bianco);
  opacity: 0.5;
  font-weight: 400;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Utility */
.is-hidden {
  display: none !important;
}

/* Privacy page */
.legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--bianco);
  padding: clamp(24px, 5vw, 56px) 18px 64px;
}
.legal a {
  color: var(--giallo);
}
.legal__back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal h1 {
  font-weight: 700;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.legal h2 {
  font-weight: 700;
  font-size: clamp(18px, 3.5vw, 22px);
  text-transform: uppercase;
  color: var(--giallo);
  margin: 32px 0 10px;
}
.legal p {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
  opacity: 0.92;
}
.legal ul {
  margin: 0 0 16px 20px;
}
.legal li {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
  opacity: 0.92;
}
.legal strong {
  color: var(--giallo);
  font-weight: 600;
}
