/* Homepage di faisquadraonline.it: stesso tema dell'app e delle pagine
   legali (notte verde, mosaico, vetro menta, Poppins). Contrasti WCAG AA:
   testo #F2FBF7 / #A9CFC7 su #05262A, testo #0B2E2D / #2B524D sul vetro menta. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/Poppins-Bold.ttf") format("truetype"); }

:root {
  --midnight: #05262a; --night: #0b3634; --pine: #0e4a47;
  --mint: #eaf8f2; --ink: #0b2e2d; --ink-muted: #2b524d;
  --ice: #f2fbf7; --muted: #a9cfc7; --emerald: #17b67e; --emerald-ink: #06533a;
  --page: min(1120px, calc(100% - 32px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; color: var(--ice); overflow-x: hidden;
  font: 16px/1.6 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--midnight);
  background-image:
    radial-gradient(90% 60% at 80% -10%, rgba(23, 182, 126, .28), rgba(5, 38, 42, 0) 60%),
    radial-gradient(120% 70% at 10% 0%, rgba(22, 92, 87, .85), rgba(5, 38, 42, 0) 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); font-weight: 600; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- Barra superiore ---------- */
.topbar {
  width: var(--page); margin: 20px auto 0; display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ice); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; margin-right: auto; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(46, 140, 114, .9), 0 8px 20px rgba(23, 182, 126, .25); }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--ice); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.topnav a:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); box-shadow: 0 1px 0 #fff inset, 0 12px 28px -10px rgba(0, 0, 0, .6); }
.btn-ghost { color: var(--ice); border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.btn-small { min-height: 44px; padding: 9px 18px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  width: var(--page); margin: 0 auto; padding: clamp(40px, 8vw, 88px) 0 clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.eyebrow { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); }
h1 { margin: 0; font-size: clamp(2.3rem, 6.2vw, 4rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
h1 .accent { color: var(--emerald); }
.lead { margin: 22px 0 30px; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; min-height: 56px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: var(--ice); font-weight: 600; line-height: 1.15;
}
.store svg { width: 26px; height: 26px; fill: var(--ice); }
.store small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }

.hero-visual { position: relative; margin: 0; justify-self: center; width: min(360px, 100%); }
.hero-visual img {
  border-radius: 36px; aspect-ratio: 9 / 14; object-fit: cover; object-position: 60% 40%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 80px -10px rgba(23, 182, 126, .35);
}
.match-card {
  position: absolute; left: -28px; bottom: 36px; display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 20px; color: var(--ink-muted); font-size: .86rem; line-height: 1.35;
  background: linear-gradient(180deg, rgba(238, 249, 244, .97), rgba(214, 238, 228, .97));
  box-shadow: 0 1px 0 #fff inset, 0 20px 40px -14px rgba(0, 0, 0, .7);
}
.match-card strong { color: var(--ink); }
.match-card .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 5px rgba(23, 182, 126, .22); flex: none; }

/* ---------- Sezioni ---------- */
.section { width: var(--page); margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0; }
h2 { margin: 0 0 28px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h3 { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: -.01em; }
.glass {
  color: var(--ink); border-radius: 28px; border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(180deg, rgba(238, 249, 244, .97), rgba(214, 238, 228, .97));
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55), inset 0 1px 0 #fff;
}
.glass p, .glass li { color: var(--ink-muted); }
.glass a { color: var(--emerald-ink); }
.glass-dark { border-radius: 24px; padding: 24px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); }
.glass-dark p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { padding: 28px; }
.steps p { margin: 0; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--pine); color: var(--ice); font-weight: 700; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split h2 { margin-bottom: 14px; }
.split > div > p { color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.split .small { margin-top: 16px; }
.checks { list-style: none; margin: 0; padding: 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2305262a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.small { font-size: .88rem; color: var(--muted); }

/* ---------- Piè di pagina ---------- */
.footer {
  width: var(--page); margin: 24px auto 0; padding: 32px 0 40px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.footer-brand img { border-radius: 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer nav a { color: var(--ice); font-weight: 500; font-size: .9rem; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.footer .small { width: 100%; margin: 0; }

/* ---------- Schermi piccoli ---------- */
@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero-visual { width: min(300px, 78%); }
  .match-card { left: -18px; }
  .steps, .trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topnav { display: none; }
  .brand span { font-size: 1.05rem; }
}
