/* Il Coach Finanziario — the site is a conversation (reference: PortfolioBot, chat portfolio: greeting, chips, rule-based answers, repeat scrolls back) */
:root { --orange: #FF5A1F; --orange-dk: #D9440F; --char: #1B1B1F; --char2: #2A2A30; --paper: #F5F1EA; --paper2: #ECE6DB; --white: #FFFDF9; --ink: #16161A; --muted: #6A665E; --line: #DDD6C9;
  --display: 'Big Shoulders Display', system-ui, sans-serif; --body: 'Figtree', system-ui, sans-serif; --ease: cubic-bezier(.16, 1, .3, 1); }
* { box-sizing: border-box; } html, body { height: 100%; }
body { margin: 0; background: var(--paper2); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow: hidden; }
a { color: inherit; } button { font: inherit; } [hidden] { display: none !important; }
::selection { background: var(--orange); color: #fff; }

.chat { height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--paper); background-image: radial-gradient(rgba(27,27,31,.06) 1px, transparent 1px); background-size: 18px 18px; box-shadow: 0 0 0 1px var(--line); }
.head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--char); color: #fff; }
.av { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 18px; color: #fff; flex: none; position: relative; } .av::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3DDC84; border: 2px solid var(--char); }
.head b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; display: block; line-height: 1; } .head small { font-size: 12px; color: rgba(255,255,255,.65); }
.head .sp { flex: 1; } .head .lang { display: inline-flex; border: 1.5px solid rgba(255,255,255,.35); } .head .lang button { background: transparent; border: 0; color: #fff; font: 800 12px var(--display); letter-spacing: .06em; padding: 6px 9px; cursor: pointer; } .head .lang button.is-on { background: var(--orange); }
.head .more { position: relative; } .head .more > button { background: transparent; border: 0; color: #fff; font-size: 20px; cursor: pointer; padding: 4px 8px; } .head .menu { position: absolute; right: 0; top: 100%; background: #fff; color: var(--ink); border: 1.5px solid var(--char); min-width: 200px; display: grid; z-index: 5; } .head .menu a { padding: 10px 12px; text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--line); } .head .menu a:hover { background: var(--paper); }

.log { overflow-y: auto; padding: 18px 16px 8px; display: grid; gap: 10px; align-content: end; scroll-behavior: smooth; }
html.static .log { scroll-behavior: auto; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; position: relative; animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } } html.static .msg { animation: none; }
.msg.coach { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; } .msg.coach::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--orange); border-radius: 3px 0 0 3px; }
.msg.me { background: var(--char); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.msg.sys { justify-self: center; max-width: 92%; background: transparent; color: var(--muted); font-size: 12px; text-align: center; padding: 4px 0; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; } .msg .t { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; text-align: right; } .msg.me .t { color: rgba(255,255,255,.55); }
.msg.flash { animation: flash 1.4s var(--ease); } @keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--orange); } }
.typing { justify-self: start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; } @keyframes blink { 50% { opacity: .2; } }

/* rich message cards */
.card { display: grid; gap: 8px; margin-top: 8px; } .card h4 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; line-height: .95; } .card h4 em { font-style: normal; color: var(--orange); }
.phase { border-top: 2px solid var(--char); padding-top: 8px; } .phase b { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 4px; }
.wk { display: grid; grid-template-columns: 30px 1fr; gap: 6px; font-size: 14px; padding: 3px 0; } .wk i { font-family: var(--display); font-weight: 800; font-style: normal; color: var(--muted); }
.price { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; padding: 10px 12px; border: 2px solid var(--char); background: var(--paper); } .price b { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; } .price b small { font-size: 14px; letter-spacing: .06em; } .price span { font-size: 13px; color: var(--muted); grid-column: 1 / -1; } .price.hot { background: var(--char); color: #fff; border-color: var(--char); } .price.hot b { color: var(--orange); } .price.hot span { color: rgba(255,255,255,.7); }
.calc { display: grid; gap: 8px; } .calc label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: grid; gap: 4px; } .calc input, .calc select { border: 1.5px solid var(--char); background: #fff; padding: 8px 10px; font: 600 16px var(--body); border-radius: 0; width: 100%; } .calc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .calc .out { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--orange); } .calc .out small { font-size: 16px; color: var(--ink); font-weight: 800; letter-spacing: .04em; }
.audio { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--paper); border: 1.5px solid var(--line); } .audio button { width: 40px; height: 40px; border-radius: 50%; background: var(--char); border: 0; cursor: pointer; position: relative; } .audio button::before { content: ''; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-left: 14px solid var(--orange); border-top: 8px solid transparent; border-bottom: 8px solid transparent; } .audio button.on::before { border: 0; width: 12px; height: 14px; border-left: 4px solid var(--orange); border-right: 4px solid var(--orange); left: 50%; } .wave { display: flex; gap: 2px; align-items: center; height: 26px; } .wave i { width: 3px; background: var(--char); border-radius: 2px; height: var(--h); opacity: .35; } .audio.on .wave i { opacity: 1; animation: wv .9s infinite alternate; animation-delay: calc(var(--i) * .05s); } @keyframes wv { to { transform: scaleY(.4); } } .audio small { font-size: 12px; color: var(--muted); }
.eps { display: grid; gap: 4px; margin-top: 6px; font-size: 14px; } .eps a { text-decoration: none; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; background: #fff; border: 1px solid var(--line); } .eps a:hover { border-color: var(--char); }
.book { display: grid; gap: 8px; } .book input { border: 1.5px solid var(--char); background: #fff; padding: 9px 10px; font: 16px var(--body); border-radius: 0; width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; border: 2px solid var(--char); background: var(--char); color: #fff; cursor: pointer; } .btn:hover { background: var(--orange); border-color: var(--orange); } .btn--orange { background: var(--orange); border-color: var(--orange); } .btn--orange:hover { background: var(--char); border-color: var(--char); } .btn--ghost { background: transparent; color: var(--char); } .btn--ghost:hover { color: #fff; }
.chips { display: flex; gap: 8px; padding: 6px 16px 10px; overflow-x: auto; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
@media (hover: hover) and (min-width: 700px) { .chips { flex-wrap: wrap; overflow-x: visible; } }   /* with a mouse the row cannot be swiped: show every chip */
.chip { flex: none; background: #fff; border: 1.5px solid var(--char); color: var(--char); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; } .chip:hover { background: var(--char); color: #fff; } .chip.hot { background: var(--orange); border-color: var(--orange); color: #fff; }
.compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 16px 14px; background: var(--paper); border-top: 1px solid var(--line); } .compose input { border: 2px solid var(--char); background: #fff; padding: 12px 14px; font: 16px var(--body); border-radius: 0; min-width: 0; } .compose input:focus { outline: none; border-color: var(--orange); } .compose button { background: var(--orange); border: 0; color: #fff; font-family: var(--display); font-weight: 900; font-size: 18px; padding: 0 18px; cursor: pointer; }
@media (max-width: 720px) { .msg { max-width: 90%; } .head b { font-size: 18px; } .card h4 { font-size: 22px; } .calc .out { font-size: 36px; } }
.doc { max-width: 46em; margin: 0 auto; padding: 40px 20px; font-size: 15px; } .doc h1 { font-family: var(--display); font-size: 40px; text-transform: uppercase; margin: 0 0 16px; } .doc h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; margin: 20px 0 6px; } .doc p { color: var(--muted); } body.docpage { overflow: auto; background: var(--paper); }

/* logo files (sites/_brand/build.py) */
.avlogo { width: 42px; height: 42px; flex: none; display: block; }

/* == legal == cookie banner + seller block (generated by sites/_legal/gen.py; the banner look comes from _legal/cookie-styles.css) */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 400px; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
.ck, .ck * { box-sizing: border-box; } .ck .ck-k { display: block; } .ck .ck-t, .ck .ck-p { margin: 0; } .ck .b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ck button, .ck a.more { cursor: pointer; text-decoration: none; line-height: 1.2; margin: 0; }
/* banner: andrea-simbula */
.ck { left: 16px; bottom: 18px; width: 340px; background: var(--white); color: var(--ink); border-radius: 18px 18px 18px 4px; padding: 12px 14px 14px; box-shadow: 0 0 0 1.5px var(--char), 0 24px 44px -22px rgba(0,0,0,.5); }
.ck .ck-k { font: 600 12px/1 var(--body); color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 6px; } .ck .ck-k::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); } .ck .ck-t b { font: 800 24px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; display: block; margin-bottom: 4px; } .ck .ck-p { font-size: 14px; }
.ck .b { margin-top: 12px; gap: 6px; } .ck button, .ck .more { border-radius: 999px; padding: 8px 12px; font: 600 14px/1 var(--body); border: 1.5px solid var(--char); color: var(--char); background: #fff; } .ck .ok { background: var(--orange); border-color: var(--orange); color: #fff; } .ck .more { border-style: dashed; }

@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: var(--ck-bottom, 10px); width: auto; max-width: none; transform: none; } }
.seller { font-size: 12.5px; line-height: 1.6; color: inherit; padding: 22px 24px 26px; border-top: 1px solid rgba(128,128,128,.35); letter-spacing: 0; text-transform: none; font-family: inherit; }
.seller-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seller b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; font-weight: 700; }
.seller a { color: inherit; } .seller address { font-style: normal; } .seller strong { font-weight: 700; }
.seller.panel { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; background: #fff; color: #111; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 940px; margin: 0 auto; border-top: 0; padding: 24px 26px 22px; }
.seller.panel:target { display: block; }
.seller .x { position: absolute; top: 6px; right: 12px; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px 8px; }
.ck-page .st { padding: 10px 14px; border: 1px solid rgba(128,128,128,.4); border-radius: 8px; margin: 10px 0 14px; font-weight: 700; } .ck-page .b { display: flex; gap: 8px; flex-wrap: wrap; } .ck-page button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 760px) { table.lgl-t, table.lgl-t tbody, table.lgl-t tr, table.lgl-t td { display: block; width: auto; } table.lgl-t thead { display: none; } table.lgl-t tr { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.35); } table.lgl-t td { border: 0 !important; padding: 2px 0 !important; overflow-wrap: anywhere; } table.lgl-t td::before { content: attr(data-l) ": "; font-weight: 700; } }
table.lgl-t code { overflow-wrap: anywhere; }
.lead-note.lead-note { font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; font-style: normal; text-align: left; max-width: 62ch; } .lead-note.lead-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .seller-in { grid-template-columns: 1fr; } .seller.panel { left: 8px; right: 8px; bottom: 8px; max-height: 80dvh; overflow: auto; } }

/* the coach's face as the chat avatar (photo from his YouTube channel); the logo mark rides in the name line */
.av--ph { width: 46px; height: 46px; background: var(--char2); box-shadow: 0 0 0 2px var(--orange); }
.av--ph .av-in { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; } .av--ph img { position: absolute; left: -26%; top: 4%; width: 150%; max-width: none; height: auto; display: block; }
.av--ph::after { z-index: 1; }
.head b .avlogo { display: inline-block; width: 20px; height: 20px; vertical-align: -3px; margin-right: 7px; }
