/* Pulizie 24 — scheduling dashboard design system */
:root {
  --ink: #0c1424;
  --ink-2: #111d33;
  --panel: #14223c;
  --panel-2: #1a2b49;
  --line: rgba(148, 178, 226, 0.16);
  --line-strong: rgba(148, 178, 226, 0.32);
  --text: #e8eefb;
  --muted: #9fb0cd;
  --muted-2: #6f82a3;
  --mint: #38e0b0;
  --cyan: #46c8ff;
  --violet: #8b7bff;
  --amber: #ffce6b;
  --glow: 0 18px 50px -22px rgba(70, 200, 255, 0.55);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(70, 200, 255, 0.14), transparent 60%),
    radial-gradient(820px 520px at 92% 4%, rgba(139, 123, 255, 0.13), transparent 62%),
    radial-gradient(700px 600px at 50% 120%, rgba(56, 224, 176, 0.10), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mint); font-weight: 700;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--mint); opacity:.7; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; margin: 12px 0 10px; letter-spacing: -.02em;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--violet));
  z-index: 90; box-shadow: 0 0 14px rgba(70,200,255,.6);
  transition: width .08s linear;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(14px);
  background: rgba(10, 17, 31, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 900; color: #04131a;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: var(--glow);
}
.brand small { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: linear-gradient(135deg, var(--mint), var(--cyan)); color: #04131a;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 8px 12px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; font-size: .95rem; transition: transform .18s, box-shadow .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--mint), var(--cyan)); color: #04131a; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }

/* ---------- animated gradient border ---------- */
.gborder { position: relative; border-radius: var(--radius-lg); }
.gborder::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit;
  background: linear-gradient(135deg, var(--mint), var(--cyan), var(--violet), var(--mint));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderflow 8s linear infinite; pointer-events: none;
}
@keyframes borderflow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* ---------- hero / dashboard ---------- */
.hero { padding: 46px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.18fr; gap: 38px; align-items: stretch; }
.hero-copy { align-self: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; margin: 16px 0 16px; }
.hero-copy h1 span { background: linear-gradient(120deg, var(--mint), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p.lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta div strong { display: block; font-size: 1.25rem; }
.hero-meta div span { color: var(--muted-2); font-size: .82rem; }

/* dashboard panel */
.dash { background: linear-gradient(180deg, var(--panel), var(--ink-2)); border-radius: var(--radius-lg); padding: 20px; overflow: hidden; }
.dash-inner { display: grid; gap: 16px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-title { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dot-row { display: flex; gap: 6px; }
.dot-row i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dot-row i:nth-child(1){ background:#ff6b6b;} .dot-row i:nth-child(2){ background: var(--amber);} .dot-row i:nth-child(3){ background: var(--mint);}

/* segmented control */
.segmented {
  display: inline-flex; background: rgba(8,14,26,.7); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap;
}
.segmented button {
  border: none; background: none; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600;
  padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: color .2s; position: relative;
}
.segmented button[aria-selected="true"] {
  color: #04131a; background: linear-gradient(135deg, var(--mint), var(--cyan)); box-shadow: 0 6px 18px -8px rgba(70,200,255,.7);
}
.segmented button:not([aria-selected="true"]):hover { color: var(--text); }

/* calendar */
.cal { background: rgba(8,14,26,.55); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid span.dow { text-align: center; font-size: .68rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 4px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center;
  font-size: .8rem; color: var(--muted); background: rgba(148,178,226,.05); border: 1px solid transparent;
  transition: background .2s, transform .15s;
}
.cal-cell.muted { opacity: .35; }
.cal-cell.mark {
  color: #04131a; font-weight: 700;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}
.cal-cell.pick { border-color: var(--violet); color: #fff; background: rgba(139,123,255,.18); }
.cal-cell:hover { transform: translateY(-1px); }

.dash-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-tile { background: rgba(8,14,26,.5); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.dash-tile .k { font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; }
.dash-tile .v { font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.dash-tile .bar { height: 6px; border-radius: 999px; background: rgba(148,178,226,.14); margin-top: 10px; overflow: hidden; }
.dash-tile .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--cyan)); }
.hero-photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 150px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(8,14,26,.4); overflow: hidden; padding: 12px 0; }
.marquee-track { display: flex; gap: 46px; white-space: nowrap; width: max-content; animation: scrollx 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { color: var(--muted); font-size: .86rem; letter-spacing: .04em; display: inline-flex; gap: 10px; align-items: center; }
.marquee span::before { content: "◆"; color: var(--mint); font-size: .7rem; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */
section.block { padding: 70px 0; }

/* ---------- frequency planner ---------- */
.freq-controls { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.freq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.freq-card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; transition: transform .25s, opacity .3s, border-color .25s;
}
.freq-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.freq-card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.freq-card .tag { font-size: .72rem; color: var(--mint); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.freq-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.freq-card ul li { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; }
.freq-card ul li::before { content: "✓"; color: var(--mint); font-weight: 800; }
.freq-card.is-hidden { display: none; }
.freq-note { color: var(--muted-2); font-size: .85rem; margin-top: 18px; }

/* ---------- bento checklist matrix ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.bento-item {
  background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; transition: border-color .25s, transform .2s;
}
.bento-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.bento-item h3 { margin: 0 0 6px; font-size: 1rem; }
.bento-item p { margin: 0; color: var(--muted); font-size: .86rem; }
.bento-item .chk { margin-top: 12px; display: grid; gap: 7px; }
.bento-item .chk label { display: flex; gap: 9px; align-items: center; font-size: .82rem; color: var(--muted); cursor: pointer; }
.bento-item .chk input { accent-color: var(--mint); width: 15px; height: 15px; }
.bento-photo { padding: 0; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }
.bento-photo figcaption { position: absolute; left: 14px; bottom: 12px; background: rgba(8,14,26,.78); padding: 6px 12px; border-radius: 999px; font-size: .76rem; }
.b-wide { grid-column: span 2; }
.b-tall { grid-row: span 2; }
.matrix-summary { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.matrix-summary strong { color: var(--mint); font-size: 1.1rem; }

/* ---------- process timeline / rail ---------- */
.rail { position: relative; display: grid; gap: 26px; }
.rail::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--mint), var(--cyan), var(--violet)); opacity: .5; }
.rail-step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; position: relative; }
.rail-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #04131a;
  background: linear-gradient(135deg, var(--mint), var(--cyan)); z-index: 1; box-shadow: var(--glow);
}
.rail-body { background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.rail-body h3 { margin: 0 0 6px; font-size: 1.08rem; }
.rail-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.rail-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: start; }
.rail-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: sticky; top: 96px; }
.rail-media img { width: 100%; height: 100%; object-fit: cover; max-height: 460px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font: inherit; font-weight: 600; font-size: 1rem; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .ic { transition: transform .25s; color: var(--mint); flex-shrink: 0; font-size: 1.2rem; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-a p { margin: 0; padding: 0 20px 18px; font-size: .94rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.info-card { background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info-card .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); }
.info-card .v { font-weight: 600; margin-top: 4px; word-break: break-word; }
.form { background: linear-gradient(180deg, var(--panel), var(--ink-2)); padding: 26px; }
.form .field { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.form input, .form textarea, .form select {
  width: 100%; background: rgba(8,14,26,.6); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: .94rem; transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--cyan); }
.form textarea { resize: vertical; min-height: 120px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.form .consent input { width: auto; margin-top: 3px; accent-color: var(--mint); }
.form-status { margin-top: 14px; font-size: .9rem; color: var(--mint); min-height: 20px; }

/* ---------- sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  background: rgba(13,22,40,.92); backdrop-filter: blur(12px); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 10px 12px 10px 22px; display: flex; gap: 16px; align-items: center;
  z-index: 85; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); transition: transform .35s ease; max-width: 92vw;
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta span { font-size: .9rem; color: var(--muted); }
.sticky-cta strong { color: var(--text); }
.sticky-cta .btn { padding: 10px 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 30px; margin-top: 30px; background: rgba(8,13,24,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin: 0 0 14px; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .9rem; display: block; margin: 7px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { max-width: 32ch; }
.legal-row { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: .82rem; }
.legal-ids { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .gborder::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages ---------- */
.legal-page { padding: 56px 0 40px; }
.legal-page .doc { max-width: 820px; background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.legal-page h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 6px; letter-spacing: -.02em; }
.legal-page .updated { color: var(--muted-2); font-size: .85rem; margin-bottom: 26px; }
.legal-page h2 { font-size: 1.18rem; margin: 28px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: .95rem; }
.legal-page ul { padding-left: 18px; }
.legal-page a { color: var(--cyan); }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--cyan); margin-bottom: 22px; font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .rail-wrap { grid-template-columns: 1fr; }
  .rail-media { position: relative; top: 0; }
  .freq-cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 66px; right: 4vw; left: 4vw; flex-direction: column; background: rgba(12,20,36,.98); border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; gap: 14px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .b-wide, .b-tall { grid-column: auto; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .dash-strip { grid-template-columns: 1fr; }
  .sticky-cta span { display: none; }
  .legal-page .doc { padding: 24px; }
}
