/* ==========================================================================
   FacileQuaderno – Static Landing Page Styles
   Clean, accessible, responsive vanilla CSS
   ========================================================================== */

:root {
  --fq-primary: #4f46e5;
  --fq-primary-hover: #4338ca;
  --fq-primary-light: #eef2ff;
  --fq-accent: #f59e0b;
  --fq-text-main: #1e293b;
  --fq-text-muted: #64748b;
  --fq-bg-body: #ffffff;
  --fq-bg-alt: #f8fafc;
  --fq-border: #e2e8f0;
  --fq-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --fq-card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --fq-radius-lg: 16px;
  --fq-radius-md: 12px;
  --fq-radius-sm: 8px;
  --fq-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--fq-font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fq-text-main);
  background-color: var(--fq-bg-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.fq-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header & Nav */
.fq-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fq-border);
}

.fq-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.fq-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fq-text-main);
}

.fq-logo {
  border-radius: var(--fq-radius-sm);
  object-fit: contain;
}

.fq-brand-name {
  letter-spacing: -0.02em;
}

.fq-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.fq-nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.fq-nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fq-text-muted);
  transition: color 0.2s ease;
}

.fq-nav-links a:hover {
  color: var(--fq-primary);
}

.fq-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.fq-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.fq-toggle-bar {
  width: 24px;
  height: 2px;
  background-color: var(--fq-text-main);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.fq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: var(--fq-radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}

.fq-btn-primary {
  background-color: var(--fq-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fq-btn-primary:hover {
  background-color: var(--fq-primary-hover);
}

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

.fq-btn-outline:hover {
  background-color: var(--fq-bg-alt);
  border-color: #cbd5e1;
}

.fq-btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--fq-radius-md);
}

.fq-btn-light {
  background-color: #ffffff;
  color: var(--fq-primary);
}

.fq-btn-light:hover {
  background-color: #f1f5f9;
}

.fq-btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: transparent;
}

.fq-btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Hero Section */
.fq-hero {
  padding-top: 64px;
  padding-bottom: 80px;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.06), transparent 50%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.05), transparent 50%);
}

.fq-hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.fq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--fq-primary-light);
  color: var(--fq-primary);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.fq-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--fq-primary);
  border-radius: 50%;
}

.fq-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #0f172a;
  margin-bottom: 20px;
}

.fq-hero-lead {
  font-size: 1.15rem;
  line-height: 1.68;
  color: #475569;
  margin-bottom: 28px;
}

.fq-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.fq-hero-sublinks {
  margin-bottom: 20px;
}

.fq-hero-link-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fq-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.fq-hero-link-ai:hover {
  color: var(--fq-primary-hover);
}

.fq-hero-note {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Hero Visual / Image Frame in stile FacileMappa */
.fq-hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.fq-hero-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fq-hero-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -4px rgba(15, 23, 42, 0.06);
}

.fq-hero-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background-color: #f1f5f9;
  aspect-ratio: 4 / 3;
}

.fq-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fq-hero-pill-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.fq-pill-icon {
  width: 18px;
  height: 18px;
  background-color: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.fq-hero-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 6px 4px;
  justify-content: center;
}

.fq-hero-feat-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background-color: var(--fq-bg-alt);
  border: 1px solid var(--fq-border);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Sections Common */
.fq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.fq-section-alt {
  background-color: var(--fq-bg-alt);
}

.fq-section-header {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.fq-section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fq-primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.fq-section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 14px;
}

.fq-section-header p {
  font-size: 1.1rem;
  color: var(--fq-text-muted);
}

/* Grids */
.fq-grid {
  display: grid;
  gap: 28px;
}

.fq-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Feature & Tool Cards */
.fq-feature-box, .fq-tool-card, .fq-audience-card {
  background-color: #ffffff;
  border-radius: var(--fq-radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--fq-border);
  box-shadow: var(--fq-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fq-feature-box:hover, .fq-tool-card:hover, .fq-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fq-card-shadow-hover);
}

.fq-icon-box, .fq-tool-icon, .fq-audience-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: var(--fq-radius-md);
  margin-bottom: 20px;
  background-color: var(--fq-primary-light);
  color: var(--fq-primary);
}

.fq-feature-box h3, .fq-tool-card h3, .fq-audience-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.fq-feature-box p, .fq-tool-card p, .fq-audience-card p {
  font-size: 0.95rem;
  color: var(--fq-text-muted);
  line-height: 1.6;
}

/* Steps */
.fq-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.fq-step-card {
  background-color: #ffffff;
  border-radius: var(--fq-radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--fq-border);
  box-shadow: var(--fq-card-shadow);
  position: relative;
}

.fq-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--fq-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.fq-step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.fq-step-card p {
  font-size: 0.95rem;
  color: var(--fq-text-muted);
  line-height: 1.6;
}

/* CTA Banner */
.fq-cta-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.fq-cta-content {
  max-width: 720px;
}

.fq-cta-banner h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.fq-cta-banner p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.6;
}

.fq-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.fq-footer {
  background-color: #0f172a;
  color: #f1f5f9;
  padding-top: 64px;
  padding-bottom: 40px;
  margin-top: auto;
}

.fq-footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.fq-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fq-logo-sm {
  border-radius: 6px;
}

.fq-footer-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.6;
}

.fq-footer-links h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}

.fq-footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fq-footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.fq-footer-links a:hover {
  color: #ffffff;
}

.fq-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.fq-footer-subtext {
  font-size: 0.8rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .fq-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .fq-hero-content {
    order: 1;
  }

  .fq-hero-visual {
    order: 2;
  }

  .fq-hero h1 {
    font-size: 2.35rem;
  }

  .fq-hero-lead {
    font-size: 1.1rem;
  }

  .fq-hero-ctas {
    justify-content: center;
  }

  .fq-hero-sublinks {
    text-align: center;
  }

  .fq-grid-3, .fq-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fq-footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .fq-mobile-toggle {
    display: flex;
  }

  .fq-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--fq-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  .fq-nav.fq-nav-open {
    display: flex;
  }

  .fq-nav-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .fq-nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .fq-nav-actions .fq-btn {
    width: 100%;
  }

  .fq-hero h1 {
    font-size: 1.85rem;
  }

  .fq-grid-3, .fq-steps-grid {
    grid-template-columns: 1fr;
  }

  .fq-footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fq-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
