/* ============================================================
   Stile del sito pubblico — eleganza spa
   Palette: avorio, sabbia, oro caldo, bruno
   ============================================================ */

:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #33291f;
  --ink-soft: #5d5142;
  --muted: #8a7a66;
  --accent: #a8845c;
  --accent-dark: #8a6a44;
  --sand: #efe7da;
  --line: #e7ddcc;
  --danger: #b05b4c;
  --ok: #5c8a5e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(90, 70, 45, 0.09);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }

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

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }

.brand {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 1.5px;
  color: var(--ink); text-decoration: none;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-size: 15px; letter-spacing: 0.6px; text-transform: uppercase; }
.main-nav a:hover { color: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-block;
  background: var(--accent); color: #fff !important;
  border: 1px solid var(--accent);
  padding: 13px 32px; border-radius: 40px;
  font-family: var(--font-body); font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-lg { padding: 16px 44px; font-size: 16px; }
.btn-small { padding: 9px 20px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-outline { background: transparent; color: var(--accent-dark) !important; border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--sand); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #964a3c; border-color: #964a3c; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse at 20% 10%, #f3e9d8 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, #ecdfc9 0%, transparent 50%),
    linear-gradient(160deg, #f8f3ea, #efe4d2);
  text-align: center;
  padding: 110px 0 120px;
}
.hero-photo { background-size: cover; background-position: center; }
.hero-photo h1, .hero-photo .hero-text, .hero-photo .hero-eyebrow { color: #fdfaf5; }
.hero-photo .hero-eyebrow { color: #ecdcc3; }

.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 4px;
  font-size: 13.5px; color: var(--accent-dark); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(42px, 6.5vw, 72px); margin-bottom: 22px; font-weight: 500; }
.hero-text { max-width: 620px; margin: 0 auto 38px; font-size: 19px; color: var(--ink-soft); }

/* ---------- Sezioni ---------- */

.section { padding: 90px 0; }
.section-alt { background: var(--sand); }

.section-title { font-size: clamp(30px, 4vw, 44px); text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 48px; }

/* ---------- Servizi ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-4px); }

.service-img { height: 210px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-img-placeholder { display: flex; align-items: center; justify-content: center; }
.service-img-placeholder span {
  font-family: var(--font-display); font-size: 84px; color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

.service-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 25px; margin-bottom: 8px; }
.service-desc { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 18px; }

.service-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; margin-bottom: 18px;
  border-top: 1px solid var(--line);
}
.service-duration { color: var(--muted); font-size: 14.5px; }
.service-price { font-family: var(--font-display); font-size: 24px; color: var(--accent-dark); font-weight: 600; }

/* ---------- Chi siamo ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-placeholder {
  border-radius: var(--radius); height: 380px;
  background: linear-gradient(150deg, #e2d3ba, #cbb391);
  display: flex; align-items: center; justify-content: center;
}
.about-placeholder span { font-size: 90px; color: rgba(255, 255, 255, 0.8); }
.about-content .section-title { text-align: left; }
.about-text { color: var(--ink-soft); }

/* ---------- Fascia CTA ---------- */

.cta-band { background: var(--ink); color: #f3ead9; text-align: center; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta-inner p { color: #cbbba2; margin-bottom: 30px; }

/* ---------- Footer ---------- */

.site-footer { background: #2a221a; color: #cbbba2; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding: 60px 22px; }
.footer-brand { font-family: var(--font-display); font-size: 24px; color: #f3ead9; margin-bottom: 10px; }
.footer-tagline { color: #a8977f; }
.site-footer h4 { color: #f3ead9; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 14px; }
.site-footer a { color: #dcc9a8; }
.footer-social a { margin-right: 14px; }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.hours-list em { font-style: normal; color: #a8977f; }
.footer-bottom { border-top: 1px solid #3d3227; padding: 18px 0; font-size: 13.5px; color: #8a7a66; }
.footer-bottom a { color: #a8977f; }

/* ---------- Card e riepiloghi ---------- */

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; margin-bottom: 26px;
}
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card-danger { border: 1px solid #ecd5cf; }

.confirm-card { text-align: center; }
.confirm-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.confirm-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.summary-list { margin: 18px 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); font-size: 14.5px; }
.summary-list dd { font-weight: 400; text-align: right; }

.badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: var(--sand); color: var(--muted);
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.badge-ok { background: #e4efe4; color: var(--ok); }
.badge-cancel { background: #f6e3df; color: var(--danger); }

/* ---------- Messaggi flash ---------- */

.flash { padding: 14px 20px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.flash-ok { background: #e4efe4; color: #3d6b3f; border: 1px solid #c8dfc8; }
.flash-error { background: #f6e3df; color: #8c4436; border: 1px solid #ecd0c8; }

/* ---------- Form ---------- */

.field { margin-bottom: 18px; flex: 1; }
.field label { display: block; font-size: 14px; letter-spacing: 0.5px; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-family: var(--font-body); font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 132, 92, 0.15);
}
.field-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.field-row .field { min-width: 180px; }

/* ---------- Prenotazione ---------- */

.booking-form { margin-top: 10px; }

.step-block {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; margin-bottom: 26px;
}
.step-title { font-size: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 34px; height: 34px; flex: none;
  background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 16px;
}

.service-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.service-option { cursor: pointer; }
.service-option input { position: absolute; opacity: 0; }
.service-option-body {
  display: block; padding: 14px 18px;
  border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.service-option-body strong { display: block; font-weight: 500; }
.service-option-body small { color: var(--muted); }
.service-option input:checked + .service-option-body {
  border-color: var(--accent); background: #f7efe3;
  box-shadow: 0 0 0 3px rgba(168, 132, 92, 0.12);
}

/* Campo "Giorno": largo quanto il pannello, con etichetta e valore centrati */
.date-field { text-align: center; }
.date-field label { text-align: center; }
.date-field input {
  text-align: center;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px; /* su iPhone il campo data vuoto tende a schiacciarsi */
}
.date-field input::-webkit-date-and-time-value { text-align: center; line-height: 1.4; }
/* Solo iPhone/iPad: il campo data nativo di iOS impone una larghezza propria e
   sborda dal pannello — togliendo l'aspetto nativo torna a rispettare le misure */
@supports (-webkit-touch-callout: none) {
  .date-field input {
    -webkit-appearance: none;
    appearance: none;
  }
}

.slots-area { margin-top: 6px; }
.slots-hint { color: var(--muted); font-size: 15px; padding: 8px 2px; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.slot-btn {
  padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: var(--font-body); font-size: 15.5px;
  cursor: pointer; transition: all 0.15s;
}
.slot-btn:hover { border-color: var(--accent); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

.booking-recap { border-left: 4px solid var(--accent); }
.booking-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

.resend-form .field { margin-bottom: 0; }

/* ---------- Pagine legali (privacy) ---------- */

.legal-text h3 { font-size: 23px; margin: 24px 0 8px; }
.legal-text h3:first-of-type { margin-top: 10px; }
.legal-text p, .legal-text li { color: var(--ink-soft); font-size: 15.5px; }
.legal-text p { margin-bottom: 12px; }
.legal-text ul { padding-left: 22px; margin-bottom: 12px; }
.legal-text li { margin-bottom: 6px; }

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

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 22px; }
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 80px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px; gap: 18px;
  }
  .main-nav.open { display: flex; }
  .summary-list div { flex-direction: column; gap: 2px; }
  .summary-list dd { text-align: left; }
}
