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

/* ── Tema scuro (default) ── */
:root, [data-theme="dark"] {
  --bg:         #0b1f1a;
  --surface:    #0f2922;
  --surface2:   #123d33;
  --border:     #1f6f5e55;
  --green:      #c8a153;
  --green-dim:  #c8a15344;
  --green-glow: #c8a15318;
  --gold:       #edb96a;
  --gold-dim:   #edb96a33;
  --gold-glow:  #edb96a12;
  --error:      #f87171;
  --error-glow: #f8717122;
  --text:       #f5f5f5;
  --muted:      #9ca3cf;
  --font-head:  'Cormorant Garant', serif;
  --font-body:  'Montserrat', sans-serif;
  --radius:     20px;
  --radius-sm:  12px;
  --glow-color: #c8a15322;
}

/* ── Tema chiaro ── */
[data-theme="light"] {
  --bg:         #f6f1e7;
  --surface:    #ffffff;
  --surface2:   #ede8d8;
  --border:     #0f3d2e33;
  --green:      #0f3d2e;
  --green-dim:  #0f3d2e44;
  --green-glow: #0f3d2e14;
  --gold:       #c8a153;
  --gold-dim:   #c8a15333;
  --gold-glow:  #c8a15312;
  --error:      #dc2626;
  --error-glow: #dc262622;
  --text:       #0f3d2e;
  --muted:      #a3b18a;
  --glow-color: #0f3d2e18;
}

html, body { min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); transition: background .3s, color .3s; overflow-x: hidden; }
[data-theme="light"] body { font-weight: 500; }
[data-theme="light"] .field label { color: var(--green); opacity: .85; }
[data-theme="light"] .card { box-shadow: 0 4px 24px #0f3d2e18; }

body::before {
  content: ''; position: fixed; inset: 0;
  background-image: linear-gradient(var(--border) 1px,transparent 1px), linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size: 48px 48px; opacity: .12; pointer-events: none; z-index: 0;
}
body::after {
  content: ''; position: fixed; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

.page-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 32px 16px 64px; }

.header { text-align: center; margin-bottom: 28px; animation: fadeDown .5s cubic-bezier(.22,1,.36,1) both; }
.header .bismillah { font-family: var(--font-head); font-size: 22px; color: var(--gold); letter-spacing: .15em; margin-bottom: 6px; opacity: .85; }
.site-logo { display: flex; justify-content: center; align-items: center; margin: 10px auto 6px; }
.logo-img { display: none; }
[data-theme="dark"]  .logo-dark  { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 50%; box-shadow: 0 4px 20px #0006; }
[data-theme="light"] .logo-light { display: block; width: 140px; height: auto; object-fit: contain; }
.site-name { font-family: var(--font-head); font-size: clamp(28px,6vw,42px); font-weight: 400; letter-spacing: .06em; margin-top: 4px; }
.site-name span { color: var(--gold); font-weight: 600; }
.site-tagline { font-family: var(--font-head); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); opacity: .8; margin-top: 2px; margin-bottom: 2px; }
.header p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Theme pill — fixed top-right on all pages */
.theme-pill { position: fixed; top: 14px; right: 16px; z-index: 9999; width: 40px; height: 40px; border-radius: 50%; background: var(--surface2); border: 1.5px solid var(--border); cursor: pointer; font-size: 18px; display: grid; place-items: center; transition: all .2s; box-shadow: 0 4px 16px #0004; }
.theme-pill:hover { transform: scale(1.1); border-color: var(--gold); box-shadow: 0 4px 20px var(--gold-dim); }

/* Velo chip tooltip */
.chip-tooltip { position: relative; }
.chip-tooltip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 11px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; max-width: 220px; white-space: normal; text-align: center; pointer-events: none; opacity: 0; transition: opacity .18s; z-index: 100; box-shadow: 0 4px 12px #0003; }
.chip-tooltip:hover::after { opacity: 1; }

.progress-wrap { width: 100%; max-width: 580px; margin-bottom: 20px; animation: fadeDown .5s .05s cubic-bezier(.22,1,.36,1) both; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.progress-meta strong { color: var(--green); font-family: var(--font-head); }
.progress-track { height: 4px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 99px; transition: width .4s cubic-bezier(.22,1,.36,1); }
.steps-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: background .3s, transform .3s; cursor: pointer; }
.dot.active { background: var(--green); transform: scale(1.5); }
.dot.done   { background: var(--green); opacity: .45; }

.card { width: 100%; max-width: 580px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: 0 8px 40px #00000055; animation: slideIn .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes slideIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.card.exit { animation: slideOut .22s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes slideOut { to { opacity:0; transform:translateY(-16px); } }

.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.step-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--green-glow); border: 1px solid var(--green-dim); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.step-icon.gold { background: var(--gold-glow); border-color: var(--gold-dim); }
/* Profile photo thumbnail in "Il mio Profilo" header */
.profile-photo-thumb.has-photo { padding: 0; overflow: hidden; border-radius: 50%; }
.profile-photo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Collapsible cards (Foto Profilo, Testimonianza) */
.collapse-toggle { cursor: pointer; user-select: none; }
.collapse-toggle .collapse-chevron { margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .3s; flex-shrink: 0; }
.collapsible.collapsed .collapse-chevron { transform: rotate(-90deg); }
.collapsible.collapsed .step-header { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.collapsible.collapsed .collapsible-body { display: none; }
.pt-body { display: flex; flex-direction: column; gap: .5rem; }
.step-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.step-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.fields { display: flex; flex-direction: column; gap: 15px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.field label .req { color: var(--green); margin-left: 2px; }

.field input, .field select, .field textarea {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; color: var(--text); font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.field select option { background: var(--surface2); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Error states */
.field input.error, .field select.error, .field textarea.error { border-color: var(--error) !important; box-shadow: 0 0 0 3px var(--error-glow) !important; }
.err-msg { font-size: 11px; color: var(--error); margin-top: 2px; display: none; }
.field.has-error .err-msg { display: block; }

/* Searchable dropdown */
.search-select { position: relative; }
.dropdown-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: var(--surface2); border: 1px solid var(--green-dim); border-radius: var(--radius-sm);
  max-height: 200px; overflow-y: auto; display: none; box-shadow: 0 8px 24px #00000088;
}
.dropdown-list.open { display: block; }
.dropdown-list::-webkit-scrollbar { width: 4px; }
.dropdown-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.dropdown-item { padding: 9px 14px; font-size: 13.5px; cursor: pointer; transition: background .15s; }
.dropdown-item:hover { background: var(--green-glow); color: var(--green); }
.dropdown-item.no-res { color: var(--muted); cursor: default; font-style: italic; }
.dropdown-item.no-res:hover { background: transparent; color: var(--muted); }
.dropdown-item.focused { background: var(--green-glow); color: var(--green); }

/* Chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { padding: 7px 14px; border-radius: 50px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-size: 13px; cursor: pointer; transition: all .2s; user-select: none; }
.chip:hover { border-color: var(--muted); color: var(--text); }
.chip.selected { border-color: var(--green); background: var(--green-glow); color: var(--green); font-weight: 500; }
.chip-group.chip-error .chip:not(.selected) { border-color: var(--error); }

/* Sì/No toggle */
.toggle-wrap { display: flex; gap: 10px; }
.toggle-btn { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-family: var(--font-head); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; text-align: center; }
.toggle-btn:hover { border-color: var(--muted); color: var(--text); }
.toggle-btn.yes.on { border-color: var(--green); background: var(--green-glow); color: var(--green); }
.toggle-btn.no.on  { border-color: var(--error);  background: var(--error-glow); color: var(--error); }
.toggle-wrap.toggle-error .toggle-btn { border-color: var(--error); }

/* Conditional section */
.conditional { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s cubic-bezier(.22,1,.36,1), opacity .3s; }
.conditional.open { max-height: 1200px; opacity: 1; overflow: visible; }
.cond-inner { padding-top: 14px; border-top: 1px solid var(--border); margin-top: 4px; display: flex; flex-direction: column; gap: 14px; }
.cond-label { font-size: 11.5px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* Mahram */
.mahram-box { background: var(--gold-glow); border: 1px solid var(--gold-dim); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mahram-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--gold); }

/* Section divider */
.sec-divider { font-family: var(--font-head); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid var(--gold-dim); }

/* Privacy note */
.privacy-note { display: flex; align-items: flex-start; gap: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.privacy-note span { font-size: 14px; flex-shrink: 0; }

/* Character counter */
.char-counter { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; }
.char-counter.warn { color: var(--gold); }
.char-counter.over { color: var(--error); }

/* Nav */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); gap: 12px; }
.btn { padding: 12px 28px; border-radius: 50px; font-family: var(--font-head); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; border: 1.5px solid transparent; }
.btn:active { transform: scale(.96); }
.btn-back   { background: var(--surface2); border-color: var(--border); color: var(--muted); }
.btn-back:hover { border-color: var(--muted); color: var(--text); }
.btn-next   { background: var(--green); color: #0b1f1a; border-color: var(--green); box-shadow: 0 0 20px var(--green-dim); margin-left: auto; }
[data-theme="light"] .btn-next { color: #fff; }
.btn-next:hover { box-shadow: 0 0 30px var(--green-dim); }
.btn-submit { background: var(--gold); color: #0b1f1a; border-color: var(--gold); box-shadow: 0 0 20px var(--gold-dim); margin-left: auto; }

/* Summary */
.summary-grid { display: flex; flex-direction: column; gap: 8px; }
.sum-sec { font-family: var(--font-head); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-top: 8px; margin-bottom: 2px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; background: var(--surface2); border-radius: var(--radius-sm); font-size: 13px; }
.sum-row .lbl { color: var(--muted); flex-shrink: 0; }
.sum-row .val { color: var(--text); text-align: right; font-weight: 500; word-break: break-word; max-width: 60%; }

/* Success */
.success-screen { text-align: center; padding: 16px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green-glow); border: 2px solid var(--green); display: grid; place-items: center; font-size: 32px; box-shadow: 0 0 40px var(--green-dim); animation: popIn .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes popIn { from { transform:scale(.5); opacity:0; } to { transform:scale(1); opacity:1; } }
.success-screen h2 { font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.success-screen p  { font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.6; }
.btn-restart { background: var(--surface2); border: 1.5px solid var(--border); color: var(--text); padding: 11px 28px; border-radius: 50px; font-family: var(--font-head); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.btn-restart:hover { border-color: var(--green); }

/* Auth tabs / link */
.auth-tab-wrap { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.auth-tab { flex:1; padding: 10px; background: var(--surface2); color: var(--muted); font-family: var(--font-head); font-size: 13px; font-weight: 700; cursor: pointer; border: none; transition: all .2s; }
.auth-tab.active { background: var(--green-glow); color: var(--green); }
.auth-link { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.auth-link:hover { color: var(--green); }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-google:hover { background: var(--surface); border-color: var(--muted); }

/* Sidebar layout */
#main-wrap { display: flex; min-height: 100vh; }

#sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px 0; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
}
.sidebar-brand { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.sidebar-item {
  width: 100%; padding: 11px 20px; text-align: left;
  background: none; border: none; color: var(--muted);
  font-family: var(--font-body); font-size: 14px; cursor: pointer;
  border-left: 3px solid transparent; transition: all .2s;
}
.sidebar-item:hover { color: var(--text); background: var(--surface2); }
.sidebar-item.active { color: var(--green); border-left-color: var(--green); background: var(--green-glow); }
a.sidebar-item { display: block; text-decoration: none; }

#app-content { flex: 1; margin-left: 220px; }

/* Password eye toggle */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 42px; width: 100%; }
.eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 4px; transition: color .15s; }
.eye-btn:hover { color: var(--text); }

/* Altezza warning (non bloccante) */
.warn-msg { display: block; font-size: 12px; color: var(--gold); margin-top: 4px; line-height: 1.4; }

/* Topic hints — Su di me */
.topic-hints { margin-bottom: 10px; }
.topic-hint-label { font-size: 11px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px;
  opacity: .85;
}

@media (max-width: 640px) {
  #sidebar { width: 100%; height: auto; position: relative; flex-direction: row; padding: 8px 0; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .sidebar-brand { display: none; }
  .sidebar-item { border-left: none; border-bottom: 3px solid transparent; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .sidebar-item.active { border-left: none; border-bottom-color: var(--green); }
  #app-content { margin-left: 0; }
  #main-wrap { flex-direction: column; }
  .card { padding: 20px 16px 18px; border-radius: 14px; }
  .page-wrap { padding: 16px 10px 48px; }
  .row-2 { grid-template-columns: 1fr; }
  .step-header { gap: 10px; }
  .nav-row { gap: 8px; }
  .btn { padding: 11px 20px; font-size: 13px; }
  #auth-user-bar { font-size: 11px; padding: 5px 10px; gap: 8px; }
}

/* ══════════════════════════════════
   LANDING PAGE  (#landing-wrap)
══════════════════════════════════ */

#landing-wrap {
  --verde:     #0F3D2E;
  --oro:       #C8A153;
  --oro-light: #D9B96A;
  --crema:     #F6F1E7;
  --bianco:    #FFFFFF;
  --salvia:    #A3B18A;
  --salvia-lt: #C5D4B5;
  --testo:     #1a2e22;
  --testo-lt:  #4a5e44;
  font-family: 'Montserrat', sans-serif;
  background: var(--crema);
  color: var(--testo);
  overflow-x: hidden;
}

[data-theme="dark"] #landing-wrap {
  --verde:     #4a9e6a;
  --oro:       #C8A153;
  --oro-light: #D9B96A;
  --crema:     #071812;
  --bianco:    #0c2218;
  --salvia:    #2a4d35;
  --salvia-lt: #3d6647;
  --testo:     #E8F2EC;
  --testo-lt:  #8ab49a;
}

/* ── Nav ── */
#landing-wrap nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(246,241,231,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,161,83,.18);
  transition: background .3s;
}
[data-theme="dark"] #landing-wrap nav {
  background: rgba(7,24,18,.90);
}
#landing-wrap .nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--verde); letter-spacing: .02em;
}
#landing-wrap .nav-logo span { color: var(--oro); }
#landing-wrap .nav-links { display: flex; gap: 2rem; list-style: none; }
#landing-wrap .nav-links a {
  text-decoration: none; font-size: .75rem; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase; color: var(--testo-lt);
  transition: color .25s;
}
#landing-wrap .nav-links a:hover { color: var(--oro); }
#landing-wrap .nav-actions { display: flex; align-items: center; gap: .8rem; }
#landing-wrap .lp-theme-btn {
  background: none; border: none; font-size: 1rem; cursor: pointer;
  padding: .3rem; line-height: 1;
}
#landing-wrap .btn-nav-login {
  background: transparent; color: var(--verde); border: 1.5px solid var(--salvia);
  padding: .45rem 1.1rem; font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: border-color .25s, color .25s;
}
#landing-wrap .btn-nav-login:hover { border-color: var(--oro); color: var(--oro); }
#landing-wrap .btn-nav-register {
  background: var(--verde); color: var(--oro); border: 1.5px solid var(--verde);
  padding: .45rem 1.1rem; font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; border-radius: 2px; transition: background .25s, color .25s;
}
#landing-wrap .btn-nav-register:hover { background: var(--oro); color: var(--verde); border-color: var(--oro); }

/* ── Hero ── */
#landing-wrap .hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 0 4rem; padding-top: 80px;
  position: relative; overflow: hidden;
}
#landing-wrap .hero::before {
  content: ''; position: absolute; top: -10%; right: -8%;
  width: 70vw; height: 90vh;
  background: radial-gradient(ellipse at 60% 40%, rgba(163,177,138,.22) 0%, rgba(200,161,83,.08) 45%, transparent 70%);
  pointer-events: none;
}
#landing-wrap .hero-content { position: relative; z-index: 2; }
#landing-wrap .hero-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--oro); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8rem;
}
#landing-wrap .hero-eyebrow::before { content: ''; display: block; width: 36px; height: 1px; background: var(--oro); }
#landing-wrap .hero-title {
  font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 700; line-height: 1.08; color: var(--verde); margin-bottom: 1.8rem;
}
#landing-wrap .hero-title em { font-style: italic; color: var(--oro); }
#landing-wrap .hero-sub {
  font-size: .92rem; line-height: 1.8; color: var(--testo-lt); max-width: 420px; margin-bottom: 2.8rem;
}
#landing-wrap .hero-btns { display: flex; gap: 1.2rem; flex-wrap: wrap; }
#landing-wrap .btn-primary {
  background: var(--verde); color: var(--crema); padding: .9rem 2.2rem;
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; border: 2px solid var(--verde);
  cursor: pointer; transition: background .25s, color .25s;
}
#landing-wrap .btn-primary:hover { background: transparent; color: var(--verde); }
#landing-wrap .btn-outline {
  background: transparent; color: var(--verde); padding: .9rem 2.2rem;
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--salvia); cursor: pointer; transition: border-color .25s, color .25s;
  display: inline-flex; align-items: center;
}
#landing-wrap .btn-outline:hover { border-color: var(--oro); color: var(--oro); }
#landing-wrap .hero-visual {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
}
#landing-wrap .hero-phone-wrap {
  position: relative; width: 500px; height: 620px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#landing-wrap .hero-ring-outer {
  position: absolute; top: 50%; left: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 1.5px solid rgba(200,161,83,.18);
  pointer-events: none; z-index: 0;
}
#landing-wrap .hero-ring-inner {
  position: absolute; top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(200,161,83,.10);
  pointer-events: none; z-index: 0;
}
#landing-wrap .phone-mockup {
  width: 250px; background: var(--bianco); border-radius: 36px; padding: 10px;
  box-shadow: 0 40px 100px rgba(15,61,46,.18), 0 8px 30px rgba(200,161,83,.15), inset 0 0 0 1px rgba(200,161,83,.25);
  animation: lp-float 5s ease-in-out infinite;
}
@keyframes lp-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
#landing-wrap .phone-screen {
  background: linear-gradient(160deg, var(--crema) 0%, var(--bianco) 100%);
  border-radius: 28px; padding: 2rem 1.4rem 2.5rem; min-height: 500px;
  display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden;
}
#landing-wrap .phone-screen::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(to top, rgba(163,177,138,.35), transparent);
}
#landing-wrap .phone-logo-mark { width: 64px; height: 64px; margin-bottom: .8rem; display: flex; align-items: center; justify-content: center; }
#landing-wrap .phone-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--verde); margin-bottom: .2rem; }
#landing-wrap .phone-tagline { font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); margin-bottom: 2rem; }
#landing-wrap .phone-text { font-size: .76rem; line-height: 1.6; color: var(--testo-lt); text-align: center; margin-bottom: 2rem; padding: 0 .3rem; }
#landing-wrap .phone-btn-primary {
  width: 100%; background: var(--verde); color: var(--crema); border: none; border-radius: 6px;
  padding: .75rem; font-family: 'Montserrat', sans-serif; font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer; margin-bottom: .7rem;
}
#landing-wrap .phone-btn-secondary {
  width: 100%; background: transparent; color: var(--verde); border: 1.5px solid var(--salvia);
  border-radius: 6px; padding: .72rem; font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
#landing-wrap .badge {
  position: absolute; background: var(--bianco); border-radius: 12px; padding: .7rem 1rem;
  box-shadow: 0 12px 40px rgba(15,61,46,.12); border: 1px solid rgba(200,161,83,.2);
  display: flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 600;
  color: var(--verde); white-space: nowrap; z-index: 3;
}
#landing-wrap .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--salvia); flex-shrink: 0; }
#landing-wrap .badge-dot.gold { background: var(--oro); }
/* Badges on ring circumferences — wrapper 500×620 px, centre (250,310)        */
/* badge-1: outer ring r=230 at 135° → (87, 147)  badge centre offset ~(45,18) */
/* badge-2: inner ring r=170 at 215° → (111, 407) badge centre offset ~(45,18) */
/* badge-3: outer ring r=230 at  45° → (413, 147) right edge = 500−413−45=42  */
#landing-wrap .badge-1 { top: 129px; left: 38px; animation: lp-float 4.5s ease-in-out infinite .5s; }
#landing-wrap .badge-2 { top: 389px; left: 58px; animation: lp-float 5.5s ease-in-out infinite 1s; }
#landing-wrap .badge-3 { top: 129px; right: 38px; animation: lp-float 4s ease-in-out infinite .2s; }

/* ── Section commons ── */
#landing-wrap section { padding: 6rem 4rem; }
#landing-wrap .section-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--oro); display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem;
}
#landing-wrap .section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--oro); }
#landing-wrap .section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700; color: var(--verde); line-height: 1.15; margin-bottom: 1.2rem;
}
#landing-wrap .section-title em { font-style: italic; color: var(--oro); }
#landing-wrap .section-desc { font-size: .9rem; line-height: 1.85; color: var(--testo-lt); max-width: 520px; }

/* ── How it works ── */
#landing-wrap .how { background: var(--verde); position: relative; overflow: hidden; }
#landing-wrap .how::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 60vw; height: 160%;
  background: radial-gradient(ellipse, rgba(200,161,83,.08) 0%, transparent 65%); pointer-events: none;
}
#landing-wrap .how .section-label { color: var(--oro-light); }
#landing-wrap .how .section-label::before { background: var(--oro-light); }
#landing-wrap .how .section-title { color: var(--crema); }
#landing-wrap .how .section-title em { color: var(--oro-light); }
#landing-wrap .how .section-desc { color: rgba(246,241,231,.65); }
#landing-wrap .how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; margin-top: 4rem; }
#landing-wrap .step-card {
  padding: 2.4rem; border: 1px solid rgba(200,161,83,.18); border-radius: 2px;
  background: rgba(246,241,231,.04);
  box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 10px 28px rgba(0,0,0,.14);
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s;
}
#landing-wrap .step-card:hover {
  background: rgba(246,241,231,.08); border-color: rgba(200,161,83,.4);
  box-shadow: 0 8px 0 rgba(0,0,0,.18), 0 18px 40px rgba(0,0,0,.18);
  transform: translateY(-4px);
}
#landing-wrap .step-num { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700; color: rgba(200,161,83,.28); line-height: 1; margin-bottom: 1rem; }
[data-theme="dark"] #landing-wrap .step-num { color: rgba(200,161,83,.55); }
#landing-wrap .step-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; color: var(--crema); margin-bottom: .8rem; }
#landing-wrap .step-desc { font-size: .83rem; line-height: 1.75; color: rgba(246,241,231,.6); }

/* ── Values ── */
#landing-wrap .values { background: var(--crema); }
#landing-wrap .values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
#landing-wrap .values-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.6rem; }
#landing-wrap .val-item {
  display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 1.6rem;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px rgba(15,61,46,.05);
  transition: border-color .3s, background .3s, box-shadow .3s, transform .3s;
}
#landing-wrap .val-item:hover {
  border-color: var(--oro); background: rgba(200,161,83,.06);
  box-shadow: 0 6px 20px rgba(15,61,46,.10);
  transform: translateY(-2px);
}
#landing-wrap .val-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--verde); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--oro); font-size: .9rem; }
#landing-wrap .val-title { font-weight: 600; font-size: .9rem; color: var(--verde); margin-bottom: .35rem; }
#landing-wrap .val-desc { font-size: .82rem; line-height: 1.7; color: var(--testo-lt); }
#landing-wrap .brand-panel { background: var(--verde); border-radius: 2px; padding: 3rem; position: relative; overflow: hidden; }
#landing-wrap .brand-panel::before {
  content: ''; position: absolute; top: -40%; left: -20%; width: 100%; height: 100%;
  background: radial-gradient(ellipse, rgba(200,161,83,.12) 0%, transparent 65%); pointer-events: none;
}
#landing-wrap .palette-row { display: flex; gap: .8rem; margin-bottom: 2rem; }
#landing-wrap .swatch { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.18); position: relative; }
#landing-wrap .swatch::after {
  content: attr(data-label); position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
  font-size: .6rem; font-weight: 600; color: rgba(246,241,231,.55); white-space: nowrap; letter-spacing: .06em;
}
#landing-wrap .brand-quote { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-style: italic; color: var(--crema); line-height: 1.5; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(200,161,83,.25); }
#landing-wrap .brand-quote em { color: var(--oro-light); }

/* ── Features ── */
#landing-wrap .features { background: #f0ebe0; }
[data-theme="dark"] #landing-wrap .features { background: #0c2218; }
#landing-wrap .features-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; }
#landing-wrap .feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; }
#landing-wrap .feat-card {
  background: var(--bianco); padding: 2.4rem; border-radius: 2px;
  border: 1px solid rgba(200,161,83,.12);
  box-shadow: 0 4px 0 rgba(15,61,46,.08), 0 8px 24px rgba(15,61,46,.06);
  transition: box-shadow .3s, transform .3s; position: relative; overflow: hidden;
}
#landing-wrap .feat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
#landing-wrap .feat-card:hover {
  box-shadow: 0 8px 0 rgba(15,61,46,.10), 0 20px 60px rgba(15,61,46,.12);
  transform: translateY(-4px);
}
#landing-wrap .feat-card:hover::after { transform: scaleX(1); }
#landing-wrap .feat-icon { font-size: 1.6rem; margin-bottom: 1.2rem; display: block; }
#landing-wrap .feat-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--verde); margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
#landing-wrap .feat-desc { font-size: .82rem; line-height: 1.75; color: var(--testo-lt); }
#landing-wrap .feat-badge-premium {
  font-family: 'Montserrat', sans-serif; font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: var(--oro); color: var(--verde);
  padding: .15rem .5rem; border-radius: 20px;
}

/* ── Testimonials ── */
#landing-wrap .testimonials { background: var(--crema); }
#landing-wrap .test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3.5rem; }
#landing-wrap .test-card {
  padding: 2.4rem; border: 1px solid rgba(163,177,138,.35); border-radius: 2px;
  background: var(--bianco); position: relative;
  box-shadow: 0 4px 0 rgba(163,177,138,.18), 0 8px 24px rgba(15,61,46,.06);
  transition: box-shadow .3s, transform .3s;
}
#landing-wrap .test-card:hover {
  box-shadow: 0 8px 0 rgba(163,177,138,.22), 0 18px 40px rgba(15,61,46,.10);
  transform: translateY(-3px);
}
#landing-wrap .test-quote { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--oro); line-height: .8; margin-bottom: .8rem; }
#landing-wrap .test-text { font-size: .84rem; line-height: 1.8; color: var(--testo-lt); margin-bottom: 1.6rem; font-style: italic; }
#landing-wrap .test-author { display: flex; align-items: center; gap: .9rem; }
#landing-wrap .test-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--salvia); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; color: var(--verde); }
#landing-wrap .test-name { font-size: .82rem; font-weight: 600; color: var(--verde); }
#landing-wrap .test-loc { font-size: .72rem; color: var(--testo-lt); }
#landing-wrap .test-loading { font-size: .84rem; color: var(--testo-lt); padding: 2rem 0; }
#landing-wrap .test-form-wrap { margin-top: 3rem; max-width: 640px; margin-left: auto; margin-right: auto; border: 1px solid rgba(200,161,83,.2); border-radius: 2px; padding: 2.4rem; background: var(--bianco); }
#landing-wrap .test-form-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--verde); margin-bottom: 1.2rem; }
#landing-wrap .test-form-msg { font-size: .83rem; margin-bottom: 1rem; }
#landing-wrap .test-textarea { width: 100%; min-height: 120px; resize: vertical; border: 1px solid rgba(200,161,83,.3); border-radius: 2px; background: var(--crema); color: var(--verde); padding: .75rem 1rem; font-family: 'Montserrat', sans-serif; font-size: .84rem; line-height: 1.7; }
#landing-wrap .test-input { width: 100%; border: 1px solid rgba(200,161,83,.3); border-radius: 2px; background: var(--crema); color: var(--verde); padding: .75rem 1rem; font-family: 'Montserrat', sans-serif; font-size: .84rem; margin-top: .75rem; }
#landing-wrap .test-char-wrap { font-size: .72rem; color: var(--testo-lt); text-align: right; margin: .3rem 0 .75rem; }
#landing-wrap .test-submit-btn { margin-top: 1.2rem; }
#landing-wrap .test-form-footer { margin-top: 1rem; text-align: center; }
#landing-wrap .test-home-link { font-size: .75rem; color: var(--testo-lt); text-decoration: none; transition: color .25s; }
#landing-wrap .test-home-link:hover { color: var(--oro); }

/* ── Profile page testimonials form ── */
.pt-textarea { width:100%; min-height:110px; resize:vertical; border:1px solid rgba(200,161,83,.3); border-radius:2px; background:var(--crema); color:var(--verde); padding:.75rem 1rem; font-family:'Montserrat',sans-serif; font-size:.84rem; line-height:1.7; box-sizing:border-box; }
.pt-input { width:100%; border:1px solid rgba(200,161,83,.3); border-radius:2px; background:var(--crema); color:var(--verde); padding:.75rem 1rem; font-family:'Montserrat',sans-serif; font-size:.84rem; box-sizing:border-box; }
.pt-char-wrap { font-size:.72rem; color:var(--testo-lt); text-align:right; margin:.3rem 0 .75rem; }
.pt-form-msg  { font-size:.83rem; margin-top:.5rem; }

/* ── Auth back button ── */
.auth-back-btn {
  position: absolute; top: 1.5rem; left: 1.5rem; z-index: 10;
  background: transparent; border: 1px solid rgba(200,161,83,.35);
  color: var(--verde); padding: .55rem 1.2rem;
  font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; cursor: pointer; border-radius: 2px;
  transition: border-color .25s, color .25s;
}
.auth-back-btn:hover { border-color: var(--oro); color: var(--oro); }

/* ── Pricing ── */
#landing-wrap .pricing { background: var(--crema); }
#landing-wrap .pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3.5rem; }
#landing-wrap .pricing-card {
  background: var(--bianco); border: 1px solid rgba(200,161,83,.15); border-radius: 2px;
  padding: 2.4rem; position: relative; transition: box-shadow .3s, transform .3s;
}
#landing-wrap .pricing-card:hover { box-shadow: 0 20px 60px rgba(15,61,46,.10); transform: translateY(-4px); }
#landing-wrap .pricing-card.pricing-featured {
  background: var(--verde); border-color: var(--verde); transform: scale(1.04);
}
#landing-wrap .pricing-card.pricing-featured:hover { transform: scale(1.04) translateY(-4px); }
#landing-wrap .pricing-popular {
  font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--oro); color: var(--verde); padding: .25rem .8rem; border-radius: 20px;
  display: inline-block; margin-bottom: 1rem;
}
#landing-wrap .pricing-tier {
  font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700;
  color: var(--verde); margin-bottom: .5rem;
}
#landing-wrap .pricing-card.pricing-featured .pricing-tier { color: var(--crema); }
#landing-wrap .pricing-price {
  font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700;
  color: var(--verde); line-height: 1; margin-bottom: 1.8rem;
}
#landing-wrap .pricing-card.pricing-featured .pricing-price { color: var(--oro); }
#landing-wrap .pricing-price span { font-family: 'Montserrat', sans-serif; font-size: .85rem; font-weight: 400; color: var(--testo-lt); }
#landing-wrap .pricing-card.pricing-featured .pricing-price span { color: rgba(246,241,231,.55); }
#landing-wrap .pricing-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
#landing-wrap .pricing-features li { font-size: .83rem; line-height: 1.5; color: var(--testo-lt); display: flex; gap: .5rem; }
#landing-wrap .pricing-card.pricing-featured .pricing-features li { color: rgba(246,241,231,.75); }
#landing-wrap .pricing-features li.ok::before { content: '✓'; color: var(--oro); font-weight: 700; flex-shrink: 0; }
#landing-wrap .pricing-features li.no::before { content: '✗'; color: var(--salvia); flex-shrink: 0; }
#landing-wrap .btn-pricing {
  width: 100%; background: transparent; color: var(--verde); border: 2px solid var(--salvia);
  padding: .8rem; font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 2px;
  transition: border-color .25s, color .25s;
}
#landing-wrap .btn-pricing:hover { border-color: var(--oro); color: var(--oro); }
#landing-wrap .btn-pricing.btn-pricing-featured {
  background: var(--oro); color: var(--verde); border-color: var(--oro);
}
#landing-wrap .btn-pricing.btn-pricing-featured:hover { background: transparent; color: var(--oro-light); border-color: var(--oro-light); }

/* ── FAQ ── */
#landing-wrap .faq-section { background: #f0ebe0; }
[data-theme="dark"] #landing-wrap .faq-section { background: #0c2218; }
#landing-wrap .faq-list { max-width: 780px; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(200,161,83,.18); border-radius: 2px; overflow: hidden; }
#landing-wrap .faq-item { border-bottom: 1px solid rgba(200,161,83,.12); }
#landing-wrap .faq-item:last-child { border-bottom: none; }
#landing-wrap .faq-question {
  width: 100%; text-align: left; background: var(--bianco); border: none; padding: 1.3rem 1.6rem;
  font-family: 'Montserrat', sans-serif; font-size: .85rem; font-weight: 600; color: var(--verde);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background .25s; gap: 1rem;
}
#landing-wrap .faq-question:hover { background: rgba(200,161,83,.06); }
#landing-wrap .faq-item.open .faq-question { background: rgba(200,161,83,.08); }
#landing-wrap .faq-icon { font-size: 1.2rem; font-weight: 300; color: var(--oro); flex-shrink: 0; transition: transform .3s; }
#landing-wrap .faq-item.open .faq-icon { transform: rotate(45deg); }
#landing-wrap .faq-answer { display: none; padding: 1.2rem 1.6rem; background: var(--bianco); }
#landing-wrap .faq-item.open .faq-answer { display: block; }
#landing-wrap .faq-answer p { font-size: .84rem; line-height: 1.8; color: var(--testo-lt); }

/* ── Contact ── */
#landing-wrap .contact-section { background: var(--crema); }
#landing-wrap .contact-grid { display: flex; gap: 1.5rem; margin-top: 3rem; justify-content: center; flex-wrap: wrap; }
#landing-wrap a.contact-card { text-decoration: none; color: inherit; }
#landing-wrap .contact-card {
  background: var(--bianco); border: 1px solid rgba(200,161,83,.15); border-radius: 2px;
  padding: 2rem 1.5rem; text-align: center;
  flex: 1 1 200px; max-width: 280px;
  box-shadow: 0 4px 0 rgba(15,61,46,.07), 0 8px 24px rgba(15,61,46,.05);
  transition: box-shadow .3s, transform .3s;
}
#landing-wrap .contact-card:hover {
  box-shadow: 0 8px 0 rgba(15,61,46,.09), 0 20px 40px rgba(15,61,46,.10);
  transform: translateY(-4px);
}
#landing-wrap .contact-icon { font-size: 1.8rem; margin-bottom: .8rem; display: flex; justify-content: center; align-items: center; height: 2.4rem; }
#landing-wrap .contact-logo { width: 40px; height: 40px; object-fit: contain; }
.theme-img-dark { display: none; }
[data-theme="dark"] .theme-img-light { display: none; }
[data-theme="dark"] .theme-img-dark  { display: block; }
#landing-wrap .contact-label { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-lt); margin-bottom: .4rem; }
#landing-wrap .contact-value { font-size: .85rem; font-weight: 600; color: var(--verde); }

/* ── Founders ── */
#landing-wrap .founders-section { padding: 5rem 2rem; background: var(--crema); text-align: center; }
#landing-wrap .founders-grid { display: flex; gap: 2rem; margin-top: 3rem; justify-content: center; flex-wrap: wrap; }
#landing-wrap .founder-card {
  background: var(--bianco); border: 1px solid rgba(200,161,83,.18); border-radius: 2px;
  padding: 2.5rem 2rem; text-align: center;
  flex: 1 1 260px; max-width: 340px;
  box-shadow: 0 4px 0 rgba(15,61,46,.07), 0 8px 24px rgba(15,61,46,.05);
  transition: box-shadow .3s, transform .3s;
}
#landing-wrap .founder-card:hover { box-shadow: 0 8px 0 rgba(15,61,46,.09), 0 20px 40px rgba(15,61,46,.10); transform: translateY(-4px); }
#landing-wrap .founder-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--verde) 0%, #1a5c3e 100%);
  color: var(--oro); font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; border: 2px solid rgba(200,161,83,.4);
}
#landing-wrap .founder-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--verde); margin-bottom: .25rem; }
#landing-wrap .founder-role { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--oro); margin-bottom: 1rem; }
#landing-wrap .founder-bio { font-size: .84rem; color: var(--testo-lt); line-height: 1.65; }

/* ── CTA Band ── */
#landing-wrap .cta-band {
  background: linear-gradient(135deg, var(--verde) 0%, #1a5c3e 100%);
  padding: 5rem 4rem; text-align: center; position: relative; overflow: hidden;
}
#landing-wrap .cta-band::before {
  content: ''; position: absolute; top: -50%; left: -10%; width: 120%; height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(200,161,83,.10) 0%, transparent 60%); pointer-events: none;
}
#landing-wrap .cta-band .section-title { color: var(--crema); text-align: center; margin: 0 auto .8rem; max-width: 600px; }
#landing-wrap .cta-band .section-desc { color: rgba(246,241,231,.65); text-align: center; margin: 0 auto 2.5rem; }
#landing-wrap .cta-band .section-label { justify-content: center; color: var(--oro-light); }
#landing-wrap .cta-band .section-label::before { background: var(--oro-light); }
#landing-wrap .cta-btns { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
#landing-wrap .btn-gold {
  background: var(--oro); color: var(--verde); padding: .9rem 2.4rem;
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; border: 2px solid var(--oro);
  cursor: pointer; transition: background .25s, color .25s;
}
#landing-wrap .btn-gold:hover { background: transparent; color: var(--oro); }

/* ── Footer ── */
#landing-wrap footer {
  background: #071a10; padding: 3.5rem 4rem 2rem;
}
#landing-wrap .footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem;
  margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(200,161,83,.12);
}
#landing-wrap .footer-brand p { font-size: .8rem; line-height: 1.75; color: rgba(246,241,231,.45); max-width: 280px; margin-top: .6rem; }
#landing-wrap .footer-col h4 { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); margin-bottom: 1.2rem; }
#landing-wrap .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
#landing-wrap .footer-col a { font-size: .8rem; color: rgba(246,241,231,.45); text-decoration: none; transition: color .2s; }
#landing-wrap .footer-col a:hover { color: var(--oro-light); }
#landing-wrap .footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: rgba(246,241,231,.25); }

/* ── Scroll reveal ── */
#landing-wrap .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
#landing-wrap .reveal.visible { opacity: 1; transform: translateY(0); }
#landing-wrap .reveal-delay-1 { transition-delay: .1s; }
#landing-wrap .reveal-delay-2 { transition-delay: .2s; }
#landing-wrap .reveal-delay-3 { transition-delay: .3s; }
#landing-wrap .reveal-delay-4 { transition-delay: .4s; }

/* ── Hamburger ── */
#landing-wrap .nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
#landing-wrap .nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--verde);
  border-radius: 1px;
  transition: transform .28s, opacity .28s;
}
#landing-wrap .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#landing-wrap .nav-hamburger.open span:nth-child(2) { opacity: 0; }
#landing-wrap .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
#lp-mobile-menu {
  display: none;
  position: fixed;
  top: 57px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(246,241,231,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,161,83,.2);
  padding: 1.25rem 1.5rem 1.75rem;
  flex-direction: column;
  gap: .25rem;
}
#lp-mobile-menu.open { display: flex; }
[data-theme="dark"] #lp-mobile-menu { background: rgba(7,24,18,.97); }
#lp-mobile-menu ul { list-style: none; }
#lp-mobile-menu li a {
  display: block;
  font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--testo-lt); text-decoration: none;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(200,161,83,.12);
  transition: color .2s;
}
#lp-mobile-menu li:last-child a { border-bottom: none; }
#lp-mobile-menu li a:hover { color: var(--oro); }
#lp-mobile-menu .mobile-nav-btns {
  display: flex; gap: .75rem; margin-top: 1.25rem;
}
#lp-mobile-menu .mobile-nav-btns button { flex: 1; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  #landing-wrap .reveal { transition: none; opacity: 1; transform: none; }
  #landing-wrap .lp-float { animation: none; }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  #landing-wrap nav { padding: 1rem 1.5rem; height: 57px; }
  #landing-wrap .nav-hamburger { display: flex; }
  #landing-wrap .nav-links { display: none; }
  #landing-wrap .brand-panel { padding: 1.5rem; }
  #landing-wrap section { padding: 4rem 1.5rem; }
  #landing-wrap .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; text-align: center; gap: 3rem; }
  #landing-wrap .hero-eyebrow { justify-content: center; }
  #landing-wrap .hero-sub { margin: 0 auto 2rem; }
  #landing-wrap .hero-btns { justify-content: center; }
  #landing-wrap .how-grid,
  #landing-wrap .feat-grid,
  #landing-wrap .test-grid,
  #landing-wrap .pricing-grid { grid-template-columns: 1fr; }
  #landing-wrap .pricing-card.pricing-featured { transform: scale(1); }
  #landing-wrap .values-grid { grid-template-columns: 1fr; }
  #landing-wrap .features-header { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  #landing-wrap .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  #landing-wrap .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  #landing-wrap .badge { display: none; }
  #landing-wrap .hero-phone-wrap { width: auto; height: auto; }
  #landing-wrap .hero-ring-outer, #landing-wrap .hero-ring-inner { display: none; }
  #landing-wrap .cta-btns { flex-direction: column; align-items: center; }
  #landing-wrap .contact-card { flex: 1 1 140px; max-width: 100%; }
  #landing-wrap .nav-actions .btn-nav-login { display: none; }
}

/* ══════════════════════════════════
   FOUNDERS PAGE (founders.html)
══════════════════════════════════ */
.founders-page {
  --verde:    #0F3D2E; --oro: #C8A153; --crema: #F6F1E7; --bianco: #FFFFFF;
  --salvia:   #A3B18A; --testo: #1a2e22; --testo-lt: #4a5e44;
  background: var(--crema); color: var(--testo);
  font-family: 'Montserrat', sans-serif; min-height: 100vh; overflow-x: hidden;
}
[data-theme="dark"] .founders-page {
  --verde:    #4a9e6a; --crema: #071812; --bianco: #0c2218;
  --salvia:   #2a4d35; --testo: #E8F2EC; --testo-lt: #8ab49a;
}
.fp-header { text-align: center; padding: 5rem 2rem 3.5rem; }
.fp-back { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-lt); text-decoration: none; transition: color .25s; margin-bottom: 2rem; }
.fp-back:hover { color: var(--oro); }
.fp-bismillah { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--oro); opacity: .8; letter-spacing: .1em; margin-bottom: .5rem; }
.fp-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--verde); margin-bottom: 1.5rem; }
.fp-brand span { color: var(--oro); }
.fp-section-label { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--salvia); margin-bottom: .75rem; }
.fp-title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--verde); font-weight: 600; line-height: 1.15; margin-bottom: 1rem; }
.fp-title em { color: var(--oro); font-style: normal; }
.fp-desc { font-size: .92rem; color: var(--testo-lt); max-width: 520px; margin: 0 auto; line-height: 1.75; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1080px; margin: 0 auto; padding: 0 3rem 6rem; }
.fp-card { display: flex; flex-direction: column; gap: 2rem; }
.fp-photo-wrap {
  width: 100%; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 2px; border: 1px solid rgba(200,161,83,.22);
  background: var(--crema); position: relative;
}
.fp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-avatar {
  position: absolute; inset: 0; display: flex;
  background: linear-gradient(135deg, var(--verde) 0%, #1a5c3e 100%);
  color: var(--oro); font-family: 'Playfair Display', serif;
  font-size: 6rem; font-weight: 700;
  align-items: center; justify-content: center;
}
.fp-info { padding: 0 .25rem; }
.fp-name { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 600; color: var(--verde); margin-bottom: .4rem; }
.fp-role { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro); margin-bottom: 1.4rem; }
.fp-bio { font-size: .88rem; color: var(--testo-lt); line-height: 1.85; }
@media (max-width: 720px) {
  .fp-grid { grid-template-columns: 1fr; gap: 3.5rem; padding: 0 1.5rem 4rem; }
}

/* ── Delete account modal ── */
.del-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.del-modal { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 2.5rem 2rem; max-width: 420px; width: 90%; box-shadow: 0 24px 60px rgba(0,0,0,.28); text-align: center; }
.del-modal-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.del-modal-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--text); margin-bottom: .75rem; }
.del-modal-desc { font-size: .83rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
.del-modal-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn-danger { background: #c0392b; color: #fff; border: none; border-radius: var(--radius-sm); padding: .65rem 1.4rem; font-family: var(--font-body); font-size: .83rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-danger:hover { background: #a93226; }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .65rem 1.4rem; font-family: var(--font-body); font-size: .83rem; cursor: pointer; transition: color .2s, border-color .2s; }
.btn-ghost:hover { color: var(--text); border-color: var(--green); }
.btn-delete-home {
  width: 100%; background: transparent;
  border: 1.5px solid var(--error); color: var(--error);
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .75rem 1.5rem; border-radius: var(--radius-sm);
  cursor: pointer; opacity: .45;
  transition: opacity .22s, background .22s, color .22s, box-shadow .22s, transform .22s;
}
.btn-delete-home:hover {
  opacity: 1; background: var(--error); color: #fff;
  box-shadow: 0 4px 20px var(--error-glow); transform: translateY(-2px);
}

/* ── User Dashboard ─────────────────────────────────────────── */
.user-kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: .5rem;
}
.user-kpi-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1rem 1rem;
  position: relative; overflow: hidden; transition: transform .2s;
}
.user-kpi-card:hover { transform: translateY(-2px); }
.user-kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--kpi-color, var(--green));
}
.user-kpi-card.gold::before { --kpi-color: var(--gold); }
.user-kpi-icon { font-size: 1.2rem; margin-bottom: .5rem; display: block; }
.user-kpi-val {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  line-height: 1; color: var(--kpi-color, var(--green)); margin-bottom: .25rem;
}
.user-kpi-card.gold .user-kpi-val { color: var(--gold); }
.user-kpi-lbl {
  font-size: .65rem; font-weight: 600;
  color: var(--muted); letter-spacing: .07em; text-transform: uppercase;
}
.user-kpi-sub { font-size: .7rem; font-weight: 500; color: var(--text); margin-top: .25rem; opacity: .6; }
.user-completion-wrap {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1rem; margin-bottom: 1rem;
}
.user-completion-hdr {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .7rem; font-weight: 600; color: var(--text);
  margin-bottom: .65rem; letter-spacing: .03em;
}
.user-completion-pct { color: var(--gold); font-size: .85rem; }
.user-completion-track { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.user-completion-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .9s ease;
}
@media (max-width: 480px) {
  .user-kpi-grid { gap: .75rem; }
  .user-kpi-val { font-size: 1.7rem; }
}

/* ── Stars display ──────────────────────────────────────────── */
.stars-row { display: inline-flex; gap: 1px; font-size: .95rem; line-height: 1; }
.s-full  { color: var(--gold); }
.s-empty { color: var(--muted); opacity: .35; }
.s-half  {
  background: linear-gradient(to right, var(--gold) 50%, var(--muted) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Landing page override */
#landing-wrap .s-full  { color: var(--oro); }
#landing-wrap .s-empty { color: var(--salvia); opacity: .35; }
#landing-wrap .s-half  {
  background: linear-gradient(to right, var(--oro) 50%, var(--salvia) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#landing-wrap .test-stars { margin-bottom: .7rem; }

/* Star picker (interactive) */
.star-picker { display: inline-flex; gap: 4px; font-size: 1.9rem; cursor: pointer; line-height: 1; margin-bottom: .75rem; user-select: none; }
.star-item        { color: var(--muted); opacity: .35; }
.star-item.full   { color: var(--gold);  opacity: 1; }
.star-item.half   {
  background: linear-gradient(to right, var(--gold) 50%, var(--muted) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 1;
}
/* Landing page picker override */
#landing-wrap .star-item       { color: var(--salvia); opacity: .35; }
#landing-wrap .star-item.full  { color: var(--oro); opacity: 1; }
#landing-wrap .star-item.half  {
  background: linear-gradient(to right, var(--oro) 50%, var(--salvia) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 1;
}
.star-req-msg { font-size: .7rem; color: var(--error); display: none; margin-bottom: .4rem; }

/* ── Photo Upload ─────────────────────────────────────────────────────────── */
.photo-single-slot {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  max-width: 220px; margin: 0 auto;
}
.photo-slot-preview {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 8px; overflow: hidden;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.photo-slot-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-slot-empty { font-size: 2.5rem; opacity: .3; }
.photo-slot-status { font-size: .72rem; min-height: 1.2em; text-align: center; }
.photo-status-ok { color: var(--green, #2D9D6A); }
.photo-status-pending { color: var(--oro, #C8A153); }
.photo-status-rejected { color: var(--error); }
.btn-photo-upload {
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  padding: .45rem 1.2rem; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  border-radius: var(--radius-sm); transition: all .2s;
}
.btn-photo-upload:hover { border-color: var(--green, #2D9D6A); color: var(--green, #2D9D6A); }
.btn-photo-upload:disabled { opacity: .5; cursor: default; }
