/* ===========================
   BASE & TOKENS
   =========================== */

:root {
  --bg-body: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-soft: #f2f4fa;
  --bg-soft-accent: #e7f3ff;

  --border-subtle: #e0e4f0;

  /* Accento blu/verde REPROX */
  --accent: #1f6feb;
  --accent-soft: rgba(31, 111, 235, 0.08);

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --text-contrast: #ffffff;

  --danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --wrapper-width: 1120px;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
}

/* ===========================
   RESET MINIMO
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  background: var(--bg-surface);
}

.status-page main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
}

.status-wrapper {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.35);
  border-color: transparent;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

/* ===========================
   LAYOUT GENERALE
   =========================== */

.wrap {
  width: 100%;
  max-width: var(--wrapper-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-2xl) 0;
  scroll-margin-top: 96px;
}

.section-light {
  background-color: var(--bg-surface);
}

.section-narrow {
  padding: var(--space-xl) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 var(--space-lg);
}

/* ===========================
   SKIP LINK
   =========================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 9999;
}

/* ===========================
   HEADER
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo:hover,
.logo:focus-visible {
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #5be7c4, #1f6feb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-contrast);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--text-muted);
}

.main-nav a:hover {
  color: var(--text-main);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  display: block;
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* ===========================
   HERO
   =========================== */

.hero {
  padding: var(--space-2xl) 0 var(--space-2xl);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: var(--space-xl);
  align-items: center;
}

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

.hero-title {
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.status-actions {
  justify-content: center;
  text-align: center;
}

.status-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.status-block .list-dot {
  display: inline-block;
  text-align: left;
}

.status-actions {
  margin-top: var(--space-lg);
}
.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-md);
  color: #fff;
}

.status-icon--success {
  background: #16a34a;
}

.status-icon--warning {
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
}

.not-found-code {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin: 0 0 var(--space-md);
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  max-width: 420px;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-device {
  margin: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

/* ===========================
   CTA / BUTTONS
   =========================== */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.cta-primary {
  background: linear-gradient(135deg, #1f6feb, #1fb3a8);
  color: var(--text-contrast);
  box-shadow: 0 10px 30px rgba(31, 111, 235, 0.35);
}

.cta-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(31, 111, 235, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.7);
}

.cta-secondary:hover {
  background: rgba(148, 163, 184, 0.06);
  text-decoration: none;
}

.cta.block {
  width: 100%;
  text-align: center;
}

/* ===========================
   GRID UTILITY
   =========================== */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

/* ===========================
   CARD / FEATURE
   =========================== */

.card-soft {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.card-soft--accent {
  background: linear-gradient(145deg, #e7f3ff, #f5fbff);
  border-color: rgba(191, 219, 254, 0.9);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.list-dot {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-dot li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.list-dot li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: 0.25rem;
  top: 0.55rem;
}

.feature-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
}

.feature-card h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===========================
   SCHERMATE
   =========================== */

.screens-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 1fr);
  margin-inline: 0;
}

@media (min-width: 768px) {
  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 0;
  }
}

.screen-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.screen-card figcaption {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.screen-card img {
  width: 100%;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ===========================
   QUOTE / TESTIMONIAL
   =========================== */

.quote-block {
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quote-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonials-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 var(--space-sm);
}

.quote-author {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ===========================
   PRICING
   =========================== */

.pricing-notice {
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.pricing-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pricing-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pricing-card--accent {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: var(--shadow-soft);
}

.pricing-name {
  font-size: 1.2rem;
  margin: 0 0 0.15rem;
}

.pricing-value {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-main {
  font-size: 2rem;
  font-weight: 700;
}

.pricing-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 0.75rem 1rem;
}

.faq-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.18s ease, color 0.18s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ===========================
   ACCORDION / LEGAL
   =========================== */

.legal {
  max-width: 880px;
}

.legal-meta {
  margin: -0.25rem 0 var(--space-md);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 0.85rem 1rem;
}

.accordion-header {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.18s ease, color 0.18s ease;
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-content {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion-content ul {
  padding-left: 1.1rem;
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.accordion-content li {
  margin-bottom: 0.35rem;
}

/* ===========================
   FORM CONTATTI
   =========================== */

.contact-form {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form .grid-2 {
  gap: var(--space-md);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  background: #f9fafb;
  transition: border-color 0.18s ease, background 0.18s ease,
    box-shadow 0.18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(31, 111, 235, 0.2);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.consent input {
  width: auto;
  margin-top: 0.2rem;
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
}

.form-status {
  min-height: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.form-status.is-success {
  color: #0f9d58;
}

.form-status.is-error {
  color: var(--danger);
}

.cta[disabled],
.cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #f9fafb;
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--text-soft);
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-nav a.is-active {
  color: var(--text-main);
  font-weight: 600;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .hero {
    padding-top: var(--space-xl);
  }

  .header-inner {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border-subtle);
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 0.75rem;
    border-radius: var(--radius-md);
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--bg-soft);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-soft,
  .feature-card,
  .pricing-card,
  .contact-form {
    padding: 1.1rem;
  }

  .quote-block {
    padding: 1.4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .screens-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: -1.5rem;
  }

  .screen-card {
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: none;
    max-width: none;
    margin: 0 auto;
  }

  .screen-card img {
    border-radius: 0;
    width: 100%;
    height: auto;
    display: block;
  }

  .screen-card figcaption {
    display: none;
  }
}
