/* ==========================================================================
   Sterpryx Studio - Design System (it-IT)
   Target: 45-65+ Demographics | Warm, Respectful, High-Legibility
   ========================================================================== */

:root {
  --bg-main: #fbfaf8;
  --bg-card: #ffffff;
  --bg-dark: #18222d;
  --bg-dark-accent: #212c38;
  --text-main: #24292e;
  --text-muted: #57606a;
  --text-light: #f0f3f6;
  --color-primary: #18222d;
  --color-accent: #c27848;
  --color-accent-hover: #ab6435;
  --color-gold: #e5a960;
  --border-light: #e8e4dc;
  --border-focus: #c27848;
  --shadow-sm: 0 2px 8px rgba(24, 34, 45, 0.05);
  --shadow-md: 0 8px 24px rgba(24, 34, 45, 0.08);
  --shadow-lg: 0 16px 40px rgba(24, 34, 45, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--color-accent);
  color: #ffffff;
  padding: 10px 18px;
  z-index: 9999;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}
p.lead {
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.section-badge {
  display: inline-block;
  background-color: rgba(194, 120, 72, 0.12);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* Header & Navigation */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo img {
  width: 40px;
  height: 40px;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.brand-name span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}
.nav-links a {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.header-cta {
  background-color: var(--color-accent);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.header-cta:hover {
  background-color: var(--color-accent-hover);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #18222d 0%, #253342 100%);
  color: #ffffff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(229, 169, 96, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  color: #ffffff;
  margin-bottom: 20px;
}
.hero-content p {
  color: #c9d1d9;
  font-size: 1.15rem;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
}
.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.btn-block {
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
}
.hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  width: 100%;
  height: 420px;
}
.hero-badge-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-badge-overlay i {
  font-size: 2rem;
  color: var(--color-accent);
}
.hero-badge-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--color-primary);
}
.hero-badge-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats Section */
.stats-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 500;
}

/* Process / How it Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background-color: var(--bg-card);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.step-number {
  width: 44px;
  height: 44px;
  background-color: rgba(194, 120, 72, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-thumb {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.service-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-body h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.service-body p {
  flex-grow: 1;
  margin-bottom: 18px;
}
.service-meta {
  list-style: none;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.service-meta li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-meta li i {
  color: var(--color-accent);
}

/* Features Block */
.features-section {
  background-color: #ffffff;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.features-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 440px;
  object-fit: cover;
}
.features-list {
  list-style: none;
  margin-top: 24px;
}
.features-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: rgba(194, 120, 72, 0.12);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.feature-text h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}
.pricing-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}
.pricing-card.featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  z-index: 2;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 50px;
}
.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin: 16px 0;
}
.pricing-price small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  margin: 20px 0 30px;
  flex-grow: 1;
}
.pricing-features li {
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-main);
}
.pricing-features li i {
  color: var(--color-accent);
  margin-top: 4px;
}

/* Trust Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle-card {
  background-color: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* Lead Form Section */
.form-section {
  background: linear-gradient(135deg, #18222d 0%, #212c38 100%);
  color: #ffffff;
  padding: 80px 0;
}
.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
}
.form-wrapper h2 {
  text-align: center;
  color: var(--color-primary);
}
.form-wrapper p.subtitle {
  text-align: center;
  margin-bottom: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group.full-width {
  grid-column: span 2;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #fdfdfd;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--color-accent);
  background-color: #ffffff;
  outline: none;
}
textarea.form-control {
  resize: vertical;
  min-height: 110px;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-checkbox input {
  margin-top: 3px;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
}
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
}
.faq-question i {
  color: var(--color-accent);
  transition: transform 0.25s ease;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 24px 20px;
  display: none;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  display: block;
}

/* Content Pages (About, Legal, Privacy, etc.) */
.page-hero {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 {
  color: #ffffff;
  margin-bottom: 12px;
}
.page-hero p {
  color: #c9d1d9;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.content-body {
  background-color: #ffffff;
  padding: 60px 0;
}
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
}
.legal-content ul, .legal-content ol {
  margin: 12px 0 20px 24px;
  color: var(--text-muted);
}
.legal-content li {
  margin-bottom: 8px;
}

/* Trust Layer */
.trust-layer {
  background-color: #edf2f7;
  border-top: 1px solid #d8e2ec;
  border-bottom: 1px solid #d8e2ec;
  padding: 30px 0;
  font-size: 0.88rem;
  color: #4a5568;
}
.trust-layer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.trust-badge-icon {
  font-size: 2.2rem;
  color: var(--color-accent);
  min-width: 44px;
}
.trust-layer-text strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.trust-layer-text p {
  margin-bottom: 0;
  font-size: 0.86rem;
  color: #4a5568;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: #8b949e;
  padding: 60px 0 30px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  color: #8b949e;
  font-size: 0.9rem;
}
.footer-col ul a:hover {
  color: #ffffff;
}
.footer-brand p {
  color: #8b949e;
  font-size: 0.9rem;
  margin-top: 12px;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #6e7681;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 9999;
  display: none;
}
.cookie-banner.active {
  display: block;
}
.cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-text {
  font-size: 0.9rem;
  color: var(--text-main);
}
.cookie-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
}
.cookie-text a {
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  min-width: fit-content;
}
.cookie-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.cookie-btn-accept {
  background-color: var(--color-accent);
  color: #ffffff;
}
.cookie-btn-accept:hover {
  background-color: var(--color-accent-hover);
}
.cookie-btn-reject {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-light);
}
.cookie-btn-reject:hover {
  background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid,
  .principles-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .stats-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-image {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .form-wrapper {
    padding: 24px 18px;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .stats-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-badge-overlay {
    position: static;
    margin-top: 16px;
  }
}