/* Spirito di Capri — POC PWA brand CSS */
:root {
  --navy: #1a1a2e;
  --navy-deep: #11111f;
  --navy-soft: #23233d;
  --gold: #d4a960;
  --gold-soft: #e8c88f;
  --cream: #f0ece4;
  --cream-soft: #faf7f0;
  --ink: #2b2a33;
  --muted: #8b8798;
  --sea: #2e6f7e;
  --sea-soft: #5d9aa5;
  --ok: #2e7d5b;
  --warn: #b3562e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 17, 31, 0.18);
  --max: 1080px;
  --ff: 'Georgia', 'Times New Roman', serif;
  --fs: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fs);
  background: var(--cream-soft);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.serif { font-family: var(--ff); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(8px);
  color: var(--cream);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand-name { font-family: var(--ff); font-size: 1.05rem; letter-spacing: 0.5px; color: var(--cream); }
.brand-name small { display: block; font-family: var(--fs); font-size: 0.6rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-soft); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-link { color: var(--gold-soft); font-size: 0.8rem; border: 1px solid rgba(212,169,96,.4); padding: 5px 10px; border-radius: 999px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 74vh;
  display: flex; align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(180deg, rgba(17,17,31,.25) 0%, rgba(17,17,31,.45) 45%, rgba(17,17,31,.92) 100%), url('../assets/img/hero.jpg');
  background-size: cover; background-position: center;
}
.hero-content { max-width: var(--max); margin: 0 auto; padding: 90px 20px 70px; width: 100%; }
.hero-kicker { font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 10px; }
.hero h1 { font-family: var(--ff); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; line-height: 1.06; }
.hero p.sub { margin-top: 14px; max-width: 560px; color: rgba(240,236,228,.88); font-size: 1.02rem; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  border-radius: 999px; padding: 13px 24px; font-size: .95rem; font-weight: 600;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 6px 18px rgba(212,169,96,.35); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(240,236,228,.45); color: var(--cream); background: rgba(17,17,31,.25); }
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-small { padding: 8px 16px; font-size: .82rem; }

/* ---------- badges ---------- */
.pwa-badge {
  display: none; margin-left: 6px; font-size: .72rem; color: var(--navy);
  background: var(--gold-soft); border-radius: 999px; padding: 6px 12px; font-weight: 600;
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker { font-size: .7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--sea); }
.section-head h2 { font-family: var(--ff); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--navy); margin-top: 6px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 10px auto 0; }

/* ---------- story / gallery ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story-quote { font-family: var(--ff); font-size: 1.25rem; color: var(--navy); line-height: 1.5; }
.story-txt { margin-top: 14px; color: var(--muted); }
.credit { font-size: .68rem; color: var(--muted); margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { height: 220px; width: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px; font-size: .76rem; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(17,17,31,.85));
}

.menu-card { background: var(--navy); color: var(--cream); border-radius: 18px; padding: 40px; }
.menu-card h3 { font-family: var(--ff); font-weight: 400; font-size: 1.5rem; }
.menu-list { margin-top: 18px; display: grid; gap: 12px; }
.menu-list li { list-style: none; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed rgba(240,236,228,.18); padding-bottom: 12px; font-size: .95rem; }
.menu-list small { display: block; color: var(--gold-soft); font-size: .74rem; }
.dot { color: var(--gold); }

/* ---------- perks strip ---------- */
.perks { background: var(--navy-deep); color: var(--cream); padding: 40px 0; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: rgba(240,236,228,.85); }
.perk b { display: block; color: var(--cream); font-size: .95rem; }
.perk-ico { font-size: 1.4rem; }

/* ---------- login ---------- */
.login-card {
  max-width: 560px; margin: 0 auto; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow); padding: 40px 36px; text-align: center;
  border: 1px solid rgba(26,26,46,.06);
}
.login-card h3 { font-family: var(--ff); font-weight: 400; font-size: 1.6rem; color: var(--navy); }
.login-card .sub { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.social-btn {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1.5px solid rgba(26,26,46,.12); border-radius: 12px; background: #fff;
  font-weight: 600; font-size: .9rem; color: var(--navy); transition: border-color .15s, background .15s, transform .1s;
  text-align: left;
}
.social-btn:hover { border-color: var(--navy); background: var(--cream-soft); }
.social-btn:active { transform: scale(.98); }
.social-btn .ic { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; font-family: var(--fs); }
.ic-g { background: #4285F4; } .ic-f { background: #1877F2; } .ic-i { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); } .ic-t { background: #010101; } .ic-x { background: #000; } .ic-p { background: #E60023; } .ic-a { background: #000; } .ic-w { background: #25D366; }
.login-note { font-size: .72rem; color: var(--muted); margin-top: 20px; }
.login-note code { background: var(--cream-soft); padding: 1px 5px; border-radius: 4px; }

/* ---------- membership card ---------- */
.member-card {
  position: relative; max-width: 460px; margin: 0 auto;
  background: linear-gradient(135deg, var(--navy) 0%, #20203a 55%, #2c2c4d 100%);
  color: var(--cream); border-radius: 20px; padding: 30px; box-shadow: var(--shadow);
  overflow: hidden;
}
.member-card::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,169,96,.35), transparent 70%);
  top: -110px; right: -70px;
}
.member-card .mc-top { display: flex; justify-content: space-between; align-items: center; }
.member-card .mc-brand { font-family: var(--ff); font-size: 1.05rem; }
.member-card .mc-tier { font-size: .66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-soft); border: 1px solid rgba(212,169,96,.5); padding: 4px 10px; border-radius: 999px; }
.member-card .mc-name { font-family: var(--ff); font-size: 1.5rem; margin-top: 22px; }
.member-card .mc-meta { display: flex; gap: 26px; margin-top: 16px; font-size: .72rem; color: rgba(240,236,228,.75); }
.member-card .mc-meta b { display: block; color: var(--cream); font-size: .88rem; }
.member-card .mc-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- coupon ---------- */
.coupon {
  max-width: 460px; margin: 18px auto 0; border-radius: 16px; background: #fff;
  border: 1.5px dashed var(--gold); padding: 20px 22px; display: flex; gap: 16px; align-items: center;
  box-shadow: var(--shadow);
}
.coupon .c-code { font-family: 'Courier New', monospace; font-weight: 700; font-size: 1.2rem; letter-spacing: 1.5px; color: var(--navy); }
.coupon .c-off { background: var(--gold); color: var(--navy-deep); border-radius: 10px; padding: 10px 14px; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.coupon .c-desc { font-size: .78rem; color: var(--muted); margin-top: 3px; }

/* ---------- modals / overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(17,17,31,.55);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 20px; max-width: 460px; width: 100%;
  padding: 34px 30px; text-align: center; box-shadow: var(--shadow);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box h4 { font-family: var(--ff); font-size: 1.3rem; color: var(--navy); font-weight: 400; }
.modal-box p { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.spin {
  width: 38px; height: 38px; margin: 18px auto 0; border-radius: 50%;
  border: 3.5px solid rgba(26,26,46,.12); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.provider-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px auto 0;
  background: var(--cream-soft); border: 1px solid rgba(26,26,46,.1);
  padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--navy);
}
.ok-mark { width: 54px; height: 54px; margin: 4px auto 12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: var(--cream); border-radius: 12px; padding: 12px 20px;
  font-size: .85rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: all .3s ease; z-index: 200; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- footer ---------- */
footer { background: var(--navy-deep); color: rgba(240,236,228,.65); padding: 40px 0; font-size: .8rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--gold-soft); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 66vh; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 160px; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .social-btn { font-size: .8rem; padding: 11px 12px; }
  .menu-card { padding: 28px 22px; }
  .login-card { padding: 30px 20px; }
  .hero-cta .btn { width: 100%; }
}