/* ============================================================
   Francesca & Lucia — Open Day landing
   Palette brand: #ed0b69 magenta · #000 nero · #b4b4b4 grigio · #fff bianco
   Font: Playfair Display (display) + Inter (UI/testo)
   Mobile-first.
   ============================================================ */

:root {
  --pink: #ed0b69;
  --pink-dark: #c40a58;
  --pink-soft: #fdeaf2;
  --black: #0b0b0d;
  --ink: #1a1a1e;
  --gray: #b4b4b4;
  --muted: #6a6a72;
  --line: #e7e7ea;
  --bg: #ffffff;
  --bg-alt: #faf7f8;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --shadow: 0 10px 30px rgba(0, 0, 0, .10);
  --shadow-pink: 0 10px 26px rgba(237, 11, 105, .28);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --tap: 48px; /* touch target minimo */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pink-dark); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 620px; }

.section { padding: 56px 0; }
.section.why { background: var(--bg-alt); }
.section.dates { background: var(--bg); }
.section.booking { background: var(--pink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--pink);
  margin: 0 0 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--black);
}

.lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 24px; max-width: 46ch; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--pink); color: var(--white); box-shadow: var(--shadow-pink); }
.btn-primary:hover { background: var(--pink-dark); }

.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }

.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute; inset: 0;
  background: url("assets/hero.jpg") center 30% / cover no-repeat;
  transform: scale(1.02);
}
/* Scrim leggero: rende il testo leggibile lasciando vedere il palco */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,.45) 0%, rgba(11,11,13,.22) 45%, rgba(11,11,13,.78) 100%),
    radial-gradient(130% 85% at 50% 40%, rgba(11,11,13,0) 40%, rgba(11,11,13,.35) 100%);
}
.hero-content {
  position: relative;
  padding: 40px 22px 120px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-logo {
  display: block;
  width: clamp(160px, 44vw, 260px); /* almeno ~1/3 della larghezza */
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}
.hero-badge {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .82rem;
  color: #ffd0e4;
  margin: 0 0 18px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 8.5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-title em { color: #ff5ba0; font-style: italic; }
.hero-sub {
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0 auto 28px;
  max-width: 44ch;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero-note { margin-top: 14px; font-size: .92rem; opacity: .92; line-height: 1.5; }
/* frase enfatizzata in serif corsivo, come "con noi" */
.serif-em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.18em;
  color: #ff5ba0;
}

/* ---------------- Value strip ---------------- */
.value-strip { background: var(--black); color: var(--white); padding: 30px 20px; }
.value-list {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 1040px;
  display: grid; gap: 22px;
}
.value-list li { display: flex; gap: 14px; align-items: center; }
.value-ico {
  flex: none; width: 34px; height: 34px;
  fill: none; stroke: var(--pink); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.value-list strong { color: var(--white); font-weight: 700; }
.value-list span { font-size: .98rem; color: #d9d9de; }

/* ---------------- Gallery (scorrevole) ---------------- */
.gallery {
  margin-top: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox: nasconde la barra */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery::-webkit-scrollbar { display: none; } /* Safari/Chrome: nasconde la barra */
.gallery-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.gallery-track img {
  height: 240px;
  width: auto;
  flex: none;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* ---------------- Dates ---------------- */
.dates-grid { display: grid; gap: 16px; }
.date-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.date-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; margin: 0 0 4px; color: var(--black);
}
.date-card .zona {
  display: flex; align-items: flex-start; gap: 6px;
  color: var(--pink-dark); font-size: .88rem; font-weight: 600;
  margin: 0 0 12px; text-decoration: none; line-height: 1.35;
}
.date-card .zona:hover { text-decoration: underline; }
.date-card .zona svg {
  flex: none; width: 16px; height: 16px; margin-top: 2px;
  fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.date-card ul { list-style: none; margin: 0; padding: 0; }
.date-card li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.date-card li .d { font-weight: 700; color: var(--ink); }
.date-card li .h { color: var(--pink-dark); font-weight: 700; }
.date-card li .lv { color: var(--muted); font-size: .84rem; }

/* ---------------- Form ---------------- */
.field { margin: 0 0 22px; border: 0; padding: 0; }
.field > label, .field legend {
  display: block; font-weight: 600; margin: 0 0 8px; color: var(--ink); font-size: 1rem;
}
.req { color: var(--pink); }
.field-hint { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.field-err { margin: 7px 0 0; font-size: .88rem; color: #c0143a; font-weight: 600; }

input[type="text"], input[type="tel"], input[type="number"], select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 16px; /* evita lo zoom automatico su iOS */
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #d4d4da;
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23ed0b69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 44px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(237, 11, 105, .18);
}
input.invalid, select.invalid { border-color: #c0143a; }
input:disabled, select:disabled { background: #f1f1f3; color: var(--muted); cursor: not-allowed; }

/* Radio "choice" */
.choice-group { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-box {
  display: flex; align-items: center; min-height: var(--tap);
  padding: 12px 16px;
  border: 1.5px solid #d4d4da; border-radius: var(--radius);
  background: var(--white); font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice input:checked + .choice-box {
  border-color: var(--pink); background: #fff0f6; box-shadow: inset 0 0 0 1px var(--pink);
}
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 3px rgba(237, 11, 105, .22); }

.hp { position: absolute; left: -9999px; }

.form-foot { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 14px; }

/* Error summary */
.error-summary {
  border: 2px solid #c0143a; background: #fff2f4; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 22px;
}
.error-summary h3 { margin: 0 0 8px; color: #c0143a; font-size: 1rem; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: #c0143a; font-weight: 600; }

/* ---------------- Confirm ---------------- */
.section.confirm { background: var(--black); color: var(--white); }
.confirm-card { text-align: center; }
.confirm-check {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--pink); display: grid; place-items: center; box-shadow: var(--shadow-pink);
}
.confirm-check svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.confirm-title { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 0 0 8px; }
.confirm-lead { color: #d9d9de; margin: 0 0 22px; }

.confirm-recap {
  text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 22px;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
}
.confirm-recap dt { color: var(--gray); font-size: .9rem; }
.confirm-recap dd { margin: 0; font-weight: 600; }

.confirm-actions { display: grid; gap: 12px; margin-bottom: 26px; }
.confirm .btn-ghost { color: #fff; border-color: #fff; }
.confirm .btn-ghost:hover { background: #fff; color: var(--black); }

.confirm-note {
  text-align: center; font-size: .95rem; color: #d9d9de;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px;
}
.confirm-note p { margin: 0 0 10px; }
.confirm-contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.confirm-contacts a { color: #ff5ba0; font-weight: 700; text-decoration: none; }
.confirm-thanks { margin-top: 18px; font-size: 1rem; color: #fff; text-align: center; }
.confirm-new {
  display: inline-block; margin: 26px auto 0;
  background: #333333; border: 2px solid #333333; cursor: pointer;
  color: #fff; font-family: var(--font-ui); font-size: 1rem; font-weight: 700;
  text-decoration: none; padding: 13px 26px; border-radius: 999px;
  min-height: var(--tap); box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.confirm-new:hover { background: #4a4a4a; border-color: #4a4a4a; transform: translateY(-1px); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--black); color: #d9d9de; padding: 34px 0 40px; }
.footer-inner { text-align: center; display: grid; gap: 14px; }
.footer-logo { height: 88px; width: auto; margin: 0 auto; }
.footer-heading {
  text-transform: uppercase; letter-spacing: .14em; font-weight: 800;
  color: var(--white); margin: 0 0 6px; font-size: .9rem;
}
.footer-contacts p { margin: 3px 0; }
.footer-contacts a { color: #ff5ba0; text-decoration: none; font-weight: 600; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.fb-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.footer-copy { font-size: .8rem; color: var(--gray); margin-top: 8px; line-height: 1.5; }

/* ---------------- Sticky CTA (mobile) ---------------- */
.sticky-cta {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px;
  background: var(--pink); color: #fff; font-weight: 700; text-decoration: none;
  border-radius: 999px; box-shadow: var(--shadow-pink);
  transition: opacity .25s ease, transform .25s ease;
}
.sticky-cta.hidden { opacity: 0; transform: translateY(120%); pointer-events: none; }

/* ============================================================
   Tablet / Desktop
   ============================================================ */
@media (min-width: 700px) {
  .section { padding: 80px 0; }
  .value-list { grid-template-columns: repeat(3, 1fr); }
  .value-list li { flex-direction: column; text-align: center; gap: 10px; }
  .dates-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-group { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: none; }
  .gallery-track img { height: 300px; }
}

@media (min-width: 1000px) {
  .hero-title { font-size: 3.8rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-media { transform: none; }
}
