:root {
  --navy: #0B1560; --mag: #D6007E; --mag-d: #B0006A; --pink-50: #FFF5FA; --pink-100: #FFE6F1; --pink-200: #FFCCE2;
  --text: #333964; --muted: #5F6488; --line: #F2DDE8; --white: #fff; --wa: #25D366; --ok: #0F7A3D;
  --font-h: 'Fredoka', ui-rounded, system-ui, sans-serif; --font-b: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --r: 18px; --shadow: 0 10px 24px -14px rgba(11, 21, 96, .45);
  --top-h: 60px; --tabs-h: 66px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--pink-50); min-height: 100dvh; }
h1, h2, h3 { font-family: var(--font-h); color: var(--navy); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
a { color: var(--mag); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }

.top { position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; display: flex; align-items: center; gap: 10px; background: var(--white); border-bottom: 1px solid var(--line); }
.top-logo img { height: 42px; width: auto; display: block; }
.top-title { font-family: var(--font-h); font-weight: 600; color: var(--navy); font-size: 1.1rem; flex: 1; }
.top-install { border: 0; border-radius: 999px; background: var(--mag); color: var(--white); font-weight: 800; font-size: .85rem; padding: 8px 14px; min-height: 40px; cursor: pointer; }

main { max-width: 560px; margin: 0 auto; padding: 18px 16px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); outline: none; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -16px rgba(11, 21, 96, .4); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 800; min-height: 44px; }
.tabs svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--mag); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.navy { background: var(--navy); border-color: var(--navy); color: #D9DCF5; }
.card.navy h2, .card.navy h3 { color: var(--white); }
.card.promo { background: linear-gradient(135deg, var(--mag), #8E2DE2); border: 0; color: var(--white); }
.card.promo h2, .card.promo h3 { color: var(--white); }
.muted { color: var(--muted); font-size: .92rem; }

.giorgio { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.giorgio img { width: 78px; height: auto; flex: none; }
.bubble { position: relative; background: var(--white); border: 2px solid var(--pink-200); border-radius: 18px; padding: 12px 14px; color: var(--navy); font-size: .95rem; }
.bubble::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: var(--white); border-left: 2px solid var(--pink-200); border-bottom: 2px solid var(--pink-200); transform: translateY(-50%) rotate(45deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px 18px; border: 2px solid transparent; border-radius: 999px; font-family: var(--font-h); font-weight: 600; font-size: 1.02rem; cursor: pointer; text-decoration: none; transition: transform .14s var(--ease-out), background-color .2s ease; touch-action: manipulation; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-p { background: var(--mag); color: var(--white); }
.btn-g { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-w { background: var(--wa); color: var(--white); }
.btn-l { background: var(--white); color: var(--navy); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 10px; }

label { display: block; font-weight: 800; color: var(--navy); font-size: .9rem; margin: 12px 0 4px; }
input[type=text], input[type=tel], input[type=email], input[type=date], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); color: var(--navy); font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--mag); outline: none; }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--text); font-size: .92rem; margin: 12px 0 0; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--mag); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.error { color: #B00020; font-weight: 700; font-size: .9rem; margin-top: 10px; }

.code { font-family: var(--font-h); font-weight: 700; font-size: 1.8rem; letter-spacing: .08em; color: var(--white); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--pink-100); color: var(--mag); }
.pill.ok { background: #E3F8EC; color: var(--ok); }
.pill.gray { background: #EEF0F6; color: var(--muted); }
.pill.navy { background: var(--navy); color: var(--white); }

.services { display: grid; gap: 10px; }
.svc { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; transition: border-color .2s ease, transform .14s var(--ease-out); }
.svc:active { transform: scale(.98); }
.svc[aria-pressed="true"] { border-color: var(--mag); background: var(--pink-50); }
.svc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-100); font-size: 1.4rem; flex: none; }
.svc strong { display: block; color: var(--navy); font-family: var(--font-h); font-weight: 600; }
.svc small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.day { flex: none; scroll-snap-align: start; width: 64px; min-height: 70px; border: 2px solid var(--line); border-radius: 16px; background: var(--white); color: var(--navy); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.day b { font-family: var(--font-h); font-size: 1.3rem; line-height: 1; }
.day small { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.day[aria-pressed="true"] small { color: var(--pink-200); }
.day[disabled] { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { min-height: 52px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); color: var(--navy); font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.slot small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.slot[aria-pressed="true"] { background: var(--mag); border-color: var(--mag); color: var(--white); }
.slot[aria-pressed="true"] small { color: var(--pink-100); }
.slot[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.list-item { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item h3 { margin: 0 0 2px; }
.empty { text-align: center; padding: 24px 10px; color: var(--muted); }
.empty img { width: 96px; margin: 0 auto 10px; display: block; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 40; background: var(--navy); color: var(--white); font-weight: 700; padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px); transition: opacity .2s ease, transform .25s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(7, 14, 69, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto; background: var(--white); border-radius: 24px 24px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .28s var(--ease-out); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ios-steps { padding-left: 1.2em; } .ios-steps li { margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .btn, .svc, .toast { transition: none; } }
