/* Il sito pubblico di Casa. Misure e ritmo ispirati ai grandi siti di prodotto:
   barra sottile in vetro, titoli enormi e stretti, sezioni alternate bianco/grigio, riquadri senza bordi. */
:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --gray: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --link: #0066cc;
  --radius: 18px;
  --wide: 1120px;
  --read: 980px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 3px; border-radius: 6px; }
.grow { flex: 1; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; text-align: center; }

/* barre */
.gnav { height: 44px; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); position: relative; z-index: 30; }
.gnav-in { max-width: 1024px; margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: -.01em; }
.gnav a { color: rgba(0, 0, 0, .8); padding: 0 6px; height: 44px; display: flex; align-items: center; white-space: nowrap; }
.gnav a:hover { color: #000; }
.gnav-logo { color: var(--text) !important; }
.lnav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .12); }
.lnav-in { max-width: 1024px; margin: 0 auto; height: 52px; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.lnav-title { font: 600 21px/1.14 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: .011em; }
.lnav-link { font-size: 12px; color: rgba(0, 0, 0, .8); letter-spacing: -.01em; }
.lnav-link:hover { color: var(--link); }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 21px; border-radius: 980px; font-size: 17px; line-height: 1.18; white-space: nowrap;
  color: var(--link); box-shadow: inset 0 0 0 1px var(--link); transition: background .2s, color .2s; }
.btn:hover { background: var(--link); color: #fff; }
.btn-fill { background: var(--blue); color: #fff; box-shadow: none; }
.btn-fill:hover { background: #0077ed; }
.btn-small { min-height: 28px; padding: 4px 11px; font-size: 12px; letter-spacing: -.01em; }
.btn-off { color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.btn:disabled { opacity: .6; cursor: default; }
.more { color: var(--link); font-weight: 600; font-size: 19px; }
.more:hover { text-decoration: underline; }
.soon { color: var(--faint); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

/* titoli */
.eyebrow { font: 600 28px/1.14 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: .007em; margin-bottom: 6px; }
.headline { font: 700 clamp(40px, 6.6vw, 72px)/1.055 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.012em; }
.h-80 { font: 700 clamp(40px, 7vw, 80px)/1.02 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.013em; max-width: var(--read); }
.h-56 { font: 700 clamp(32px, 5vw, 56px)/1.07 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.005em; }
.sub { font: 600 clamp(19px, 2.2vw, 24px)/1.17 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: .009em; color: var(--muted); max-width: 710px; margin-top: 22px; }
.wrap.narrow .sub { margin-left: auto; margin-right: auto; }
.cap { max-width: 640px; margin-top: 28px; font-size: 19px; line-height: 1.42; letter-spacing: .012em; color: var(--muted); font-weight: 600; }
.cap strong, .tile > p strong { color: var(--text); }

/* sezioni */
.ribbon { text-align: center; padding: 14px 22px; font-size: 14px; letter-spacing: -.016em; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ribbon a { color: var(--link); }
.ribbon a:hover { text-decoration: underline; }
section { padding: clamp(80px, 12vw, 160px) 0; }
.band, .hero { background: var(--gray); }
.intro { padding: clamp(60px, 8vw, 110px) 0; }
.closing { padding: clamp(80px, 10vw, 140px) 0; background: var(--gray); }

.hero { padding: clamp(40px, 6vw, 70px) 0 70px; }
.hero-copy { max-width: var(--wide); margin: 0 auto; padding: 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; margin-top: 34px; }
.hero-art { max-width: var(--wide); margin: 0 auto clamp(36px, 5vw, 64px); padding: 0 22px; position: relative; display: flex; justify-content: center; }

/* riquadri */
.tile { background: #fff; border-radius: var(--radius); overflow: hidden; }
.plain .tile { background: var(--gray); }
.tile > p { padding: 0 32px 34px; font-size: 17px; line-height: 1.24; color: var(--muted); font-weight: 600; }
.tile .art { min-height: 250px; padding: 34px 32px 26px; display: flex; align-items: center; justify-content: center; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 80px); }
.t-2 { grid-column: span 2; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 80px); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; margin-top: clamp(40px, 6vw, 80px); }
.trio .tile, .price { padding: 34px 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.trio h3, .price h3 { font: 600 28px/1.14 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: .007em; }
.trio .tile p { padding: 0; color: var(--muted); font-weight: 400; line-height: 1.38; flex: 1; }
.price-sub { color: var(--muted); }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 14px 0 22px; flex: 1; }
.price li { padding-left: 28px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid #1d8a3f; border-bottom: 2px solid #1d8a3f; transform: rotate(-45deg); }
.tile-wide { margin-top: clamp(40px, 6vw, 80px); }

/* comparsa */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* finte schermate */
.mock { background: #fff; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05); font-size: 14px; letter-spacing: -.01em; }
.tablet { width: min(760px, 100%); padding: 30px 32px 34px; }
.phone { width: 230px; padding: 26px 22px; position: absolute; right: clamp(0px, 6vw, 90px); bottom: -34px; border-radius: 34px; }
.m-kicker { color: var(--faint); font-weight: 600; font-size: 13px; }
.m-h1 { font: 700 26px/1.1 -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.02em; margin: 2px 0 16px; }
.m-h2 { font: 700 20px/1.1 -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.02em; margin-bottom: 8px; }
.m-quick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: linear-gradient(135deg, #eef5ff, #f4eeff 55%, #fff0f6); margin-bottom: 14px; color: #424245; }
.m-quick b { background: var(--blue); color: #fff; padding: 6px 14px; border-radius: 99px; font-weight: 500; font-size: 13px; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-card { border: 1px solid #e8e8ed; border-radius: 16px; padding: 12px 14px; }
.m-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.m-ev { border-left: 4px solid var(--c); padding: 3px 0 3px 9px; margin-bottom: 5px; }
.m-ev i, .m-row i { font-style: normal; color: var(--faint); }
.m-ev i { float: right; }
.m-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.m-row em, .due-mock em, .rank-mock em, .money-mock em { font-style: normal; font-size: 12px; background: var(--gray); color: var(--muted); padding: 2px 9px; border-radius: 99px; margin-left: auto; white-space: nowrap; }
.t-or { background: #ffeed6 !important; color: #a05a00 !important; }
.t-gold { background: #fff3cf !important; color: #8a6100 !important; }
.m-sec { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.m-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c7c7cc; flex: none; display: inline-block; }
.m-check.on { background: var(--blue); border-color: var(--blue); }
.m-row s { color: var(--faint); }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 12px; background: #f4eeff; font-size: 14px; font-weight: 500; color: var(--text); }
.pill.blue { background: #e3effd; color: #0058b0; }

.cal-mock { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(520px, 100%); text-align: center; }
.cal-mock span { font-size: 12px; font-weight: 600; color: var(--faint); }
.cal-mock b { background: #fff; border-radius: 12px; min-height: 62px; padding-top: 8px; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cal-mock b.now { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-mock i { width: 60%; height: 5px; border-radius: 9px; background: var(--c); }
.rank-mock, .money-mock, .due-mock, .health-mock, .list-mock, .chat-mock { width: 100%; max-width: 300px; background: #fff; border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.t-2 .due-mock { max-width: 460px; }
.rank-mock p, .money-mock p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; font-weight: 500; }
.rank-mock i, .money-mock i { flex-basis: 100%; height: 7px; border-radius: 9px; background: linear-gradient(to right, var(--c, #a8dcd9) var(--w), var(--gray) var(--w)); }
.due-mock p, .health-mock p { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #ececf0; font-weight: 500; }
.due-mock p:last-child, .health-mock p:last-child { border: 0; }
.health-mock i { font-style: normal; color: var(--faint); font-weight: 400; }
.grade-mock, .recipe-mock { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.grade-mock .big { font: 700 64px/1 -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.04em; }
.recipe-mock p { color: var(--muted); }
.recipe-mock .m-h2 { color: var(--text); font-size: 26px; margin: 0; }
.chat-mock { background: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chat-mock p { display: flex; gap: 10px; align-items: flex-end; }
.chat-mock p > span:last-child { background: #fff; padding: 10px 14px; border-radius: 18px 18px 18px 6px; font-size: 15px; }

/* scrivi come parli */
.typer { padding: clamp(28px, 5vw, 60px); min-height: 260px; display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.typer-box { font: 600 clamp(22px, 3.6vw, 40px)/1.15 -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.01em; min-height: 1.2em; }
.caret { display: inline-block; width: 3px; height: 1em; background: var(--blue); margin-left: 3px; vertical-align: -0.12em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typer-out { display: flex; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.chip { padding: 8px 16px; border-radius: 99px; background: var(--gray); font-size: 17px; font-weight: 500; animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: var(--d); }
.chip.kind { background: linear-gradient(135deg, #dcebff, #e9defe 55%, #ffe0ec); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }

/* schermo da parete */
.wall-mock { padding: clamp(24px, 4vw, 48px); background: linear-gradient(135deg, #eef5ff, #f4eeff 50%, #fff0f6); }
.w-clock { font: 700 clamp(56px, 9vw, 112px)/.95 -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.05em; }
.w-date { font-size: clamp(17px, 2.2vw, 26px); color: var(--muted); font-weight: 500; margin: 6px 0 28px; }
.w-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-cols > div { background: rgba(255, 255, 255, .88); border-radius: 22px; padding: 20px 22px; }
.w-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 10px; }
.w-cols p + h4 { margin-top: 18px; }
.w-cols p { border-left: 5px solid var(--c); padding: 5px 0 5px 12px; margin-bottom: 8px; font-size: clamp(16px, 1.7vw, 21px); font-weight: 500; }

/* piede */
.foot { background: var(--gray); font-size: 12px; line-height: 1.34; letter-spacing: -.01em; color: rgba(0, 0, 0, .56); padding: 20px 0 24px; }
.fine { padding-bottom: 16px; border-bottom: 1px solid var(--line); max-width: 980px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.foot-cols h4 { font-size: 12px; font-weight: 600; color: rgba(0, 0, 0, .88); margin-bottom: 10px; }
.foot-cols a { display: block; color: rgba(0, 0, 0, .72); margin-bottom: 9px; }
.foot-cols a:hover { text-decoration: underline; }
.legal { padding-top: 16px; }

@media (max-width: 900px) {
  .gnav-in a:not(.gnav-logo):not(:last-child) { display: none; }
  .lnav-link { display: none; }
  .bento, .trio { grid-template-columns: 1fr 1fr; }
  .phone { display: none; }
}
@media (max-width: 640px) {
  .bento, .trio, .duo, .w-cols, .m-grid { grid-template-columns: 1fr; }
  .t-2 { grid-column: auto; }
  .lnav .btn:not(.btn-fill) { display: none; }
  .tablet { padding: 22px 20px 24px; border-radius: 24px; }
  .hero-copy { flex-direction: column; align-items: flex-start; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .cal-mock b { min-height: 48px; border-radius: 9px; }
  .tile > p { padding: 0 24px 28px; }
  .tile .art { padding: 28px 22px 22px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret, .chip { animation: none; }
}

/* pagine di testo: privacy e termini */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 700 clamp(36px, 6vw, 56px)/1.07 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -.005em; }
.doc h2 { font: 600 24px/1.17 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: .009em; margin: 44px 0 10px; }
.doc p, .doc li { color: #424245; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); }
.doc .when { color: var(--faint); margin-top: 10px; }
.doc .draft { background: #fff6d6; border-radius: 14px; padding: 14px 18px; font-size: 14px; color: #6b5200; margin-bottom: 32px; }
.foot .legal a { color: rgba(0, 0, 0, .72); }
.foot .legal a:hover { text-decoration: underline; }
