/* static/css/home.css*/

/* =========================================================
   HOME PAGE – FULL WIDTH, MOBILE FIRST
   Wrapper full screen + sezioni centrate
========================================================= */

/* =========================================================
   PAGE WRAPPER
========================================================= */
.home-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;

  /* design tokens */
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;

  --text-main: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;

  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;

  --success: #16a34a;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.06);

  color: var(--text-main);
}

/* =========================================================
   CENTRATURA CONTENUTO
   (pagina full width, contenuto max-width)
========================================================= */
.home-page > section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* =========================================================
   RESET BASE
========================================================= */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   TYPOGRAPHY (SCOPED)
========================================================= */
.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page h5,
.home-page h6 {
  color: #0f172a;
}

.home-page p,
.home-page li,
.home-page span {
  color: var(--text-muted);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(37,99,235,0.06) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(16,185,129,0.05) 0, transparent 60%),
    var(--bg-surface);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.1rem;
  margin: 1.2rem auto 3rem;
  box-shadow: var(--shadow-soft);
}

.hero-grid {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero {
    padding: 2.4rem 2rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.2rem;
  }
}

.hero-copy {
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .28rem .7rem .28rem .45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.hero-tag-dot {
  width: .44rem;
  height: .44rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.18);
}

.hero-title {
  margin: 0 0 .8rem;
  font-size: clamp(1.65rem, 5.5vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-highlight {
  color: var(--accent);
}

.hero-subtitle {
  margin: 0 0 1.2rem;
  font-size: clamp(.92rem, 2.6vw, 1rem);
  line-height: 1.65;
}

.hero-meta {
  font-size: .82rem;
  line-height: 1.55;
  max-width: 520px;
  color: var(--text-soft);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease,
              transform .1s ease, box-shadow .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(37,99,235,.25);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #f9fafb;
}

/* =========================================================
   SEZIONI GENERALI
========================================================= */
.section {
  margin-bottom: 3.5rem;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-eyebrow {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
}

.section-title {
  font-size: clamp(1.15rem, 3.8vw, 1.35rem);
  font-weight: 800;
}

.section-description {
  font-size: .92rem;
  line-height: 1.65;
}

/* =========================================================
   CTA FINALE
========================================================= */
.section-final {
  margin-bottom: 2rem;
}

.final-card {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border-radius: 24px;
  border: 1px solid #dbeafe;
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.final-title {
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  font-weight: 900;
}

.final-text {
  font-size: .93rem;
  line-height: 1.65;
}

.final-hint {
  font-size: .78rem;
  color: var(--text-soft);
}

/* =========================================================
   MOBILE MICRO FIX
========================================================= */
@media (max-width: 360px) {
  .hero {
    padding: 1.25rem .95rem;
  }
  .btn {
    font-size: .88rem;
  }
}
