:root {
  --primary-dark: #0F766E;   /* Ottanio Scuro */
  --primary-emerald: #10B981; /* Smeraldo */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
}

/* Scorrimento morbido quando si segue un'ancora del menu */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--slate-900);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- HEADER E NAVIGAZIONE --- */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 210px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 0.75rem 0.9rem;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary-dark);
}
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--white);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-emerald));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
  padding: 6rem 1.5rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- SEZIONE: LE 5 ANIME --- */
.section-padding {
  padding: 6rem 1.5rem;
}
.bg-light {
  background: var(--slate-50);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.section-title p {
  color: var(--slate-500);
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto;
}
.section-title.is-left {
  text-align: left;
  margin-bottom: 2rem;
}
.section-title.is-left h2 {
  font-size: 2.2rem;
}
.grid-5-anime {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.anime-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.anime-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--primary-emerald);
}
.anime-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-emerald));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.anime-card:hover::before {
  opacity: 1;
}
.icon-wrapper {
  width: 48px;
  height: 48px;
  background: #E6F4F1;
  color: var(--primary-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.anime-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.anime-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.feature-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}
.feature-list li {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.feature-list li::before {
  content: '✓';
  color: var(--primary-emerald);
  font-weight: bold;
}

/* --- DOMINI E CNAME --- */
.cname-box {
  background: var(--slate-900);
  color: var(--white);
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: 0 25px 50px -12px rgba(15, 118, 110, 0.25);
}
.cname-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.cname-text p {
  color: var(--slate-400);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cname-option {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.cname-option strong {
  display: block;
  color: var(--primary-emerald);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.code-pill {
  display: inline-block;
  background: #000;
  color: #38BDF8;
  font-family: monospace;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.mockup-window {
  background: var(--slate-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}
.mockup-header {
  background: var(--slate-900);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #FF5F56; }
.dot.y { background: #FFBD2E; }
.dot.g { background: #27C93F; }

.placeholder-box {
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--slate-500);
  border: 2px dashed rgba(255,255,255,0.1);
  margin: 1.5rem;
  border-radius: 8px;
}
.placeholder-box svg {
  width: 48px; height: 48px;
  stroke: var(--primary-emerald);
  margin-bottom: 1rem;
}
.placeholder-box h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.placeholder-box .code-pill {
  background: #0F172A;
}

/* --- SIMULATORE WEBHOOK --- */
.webhook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.json-editor {
  background: #1E1E1E;
  border-radius: 12px;
  padding: 1.5rem;
  font-family: monospace;
  color: #D4D4D4;
  font-size: 0.9rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow-x: auto;
}
.json-key { color: #9CDCFE; }
.json-string { color: #CE9178; }
.json-number { color: #B5CEA8; }

.integration-logos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.integration-badge {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- PRICING & ADMIN MODEL --- */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.toggle-label {
  font-weight: 600;
  color: var(--slate-600);
}
.toggle-label.active {
  color: var(--slate-900);
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--primary-dark);
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-emerald); }
input:checked + .slider:before { transform: translateX(26px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}
.pricing-card.popular {
  border: 2px solid var(--primary-emerald);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
  transform: scale(1.02);
}
.pricing-card .plan-note {
  color: var(--slate-500);
  font-size: 0.9rem;
}
.pricing-card .feature-list {
  text-align: left;
}
.popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary-emerald);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
}
.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 1.5rem 0;
}
.price span { font-size: 1rem; color: var(--slate-500); font-weight: 500; }
.price .price-amount {
  font-size: 3.5rem;
  color: #0F172A;
  font-weight: 800;
}

/* --- RICHIESTA ATTIVAZIONE --- */
.demo-form {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.demo-grid,
.demo-volumes {
  display: grid;
  gap: 1rem 1.25rem;
}
.demo-grid {
  grid-template-columns: 1fr 1fr;
}
.demo-volumes {
  grid-template-columns: repeat(4, 1fr);
}
.demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.demo-field label,
.demo-block legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-900);
}
.demo-field input,
.demo-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.demo-field textarea {
  resize: vertical;
  min-height: 7rem;
}
.demo-field input:focus,
.demo-field textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  border-color: var(--primary-dark);
}
.demo-block {
  border: 0;
  margin: 1.75rem 0 0;
  padding: 0;
}
.demo-hint {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin: 0.35rem 0 0.9rem;
}
.demo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.demo-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  background: var(--white);
}
.demo-check:has(input:checked) {
  border-color: var(--primary-emerald);
  background: #E6F4F1;
  color: var(--primary-dark);
}
.demo-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-dark);
}
.demo-notes {
  margin-top: 1.75rem;
}
.demo-submit {
  margin-top: 1.5rem;
  text-align: center;
}
.demo-submit .btn-primary {
  font-family: inherit;
  font-size: 1rem;
}
.demo-again {
  text-align: center;
  margin: 0;
}
.demo-again a {
  color: var(--primary-dark);
  font-weight: 700;
}
.demo-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-alert {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.form-alert.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.form-alert.is-ok {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

a.anime-card {
  color: inherit;
  text-decoration: none;
}
.card-more {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--primary-dark);
  font-weight: 800;
}
.module {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.module.is-two {
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  margin: 0 auto;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
}
.module-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.module-card p,
.module-card li {
  color: var(--slate-600);
  font-size: 0.95rem;
}
.module-card p + p,
.module-card ul + p,
.module-card p + ul {
  margin-top: 0.9rem;
}
.module-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.module-card li::before {
  content: '✓ ';
  color: var(--primary-emerald);
  font-weight: 700;
}
.url-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.url-list code {
  display: block;
  background: var(--slate-900);
  color: #38BDF8;
  font-family: ui-monospace, monospace;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .module,
  .module.is-two {
    grid-template-columns: 1fr;
  }
  .demo-volumes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .demo-grid,
  .demo-volumes {
    grid-template-columns: 1fr;
  }
  .demo-form {
    padding: 1.5rem 1.1rem;
  }
}

/* --- FAQ SECTION --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
details {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
}
summary {
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  color: var(--primary-dark);
  font-size: 1.5rem;
}
details[open] summary::after { content: '−'; }
details p {
  margin-top: 1rem;
  color: var(--slate-600);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* --- FOOTER --- */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 1.5rem 2rem;
}
.footer-brand {
  align-self: start;
}
footer .footer-logo {
  display: block;
  width: 200px;
  height: 43px;
  margin-bottom: 1rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  text-align: left;
}
.footer-brand p {
  max-width: 280px;
  line-height: 1.6;
}
footer h2 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.45rem;
}
.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-company {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-sample {
  max-width: 1200px;
  margin: 0.35rem auto 0;
  font-size: 0.8rem;
  color: var(--slate-500);
}
.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
}
.footer-divider {
  max-width: 1200px;
  margin: 1.5rem auto;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.legal-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}
.legal-page p {
  color: var(--slate-600);
  margin-bottom: 0.8rem;
}
.legal-page a {
  color: var(--primary-dark);
}
.legal-note {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--slate-600);
  padding: 0.9rem 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* --- RECENSIONI --- */
.review-viewport {
  overflow: hidden;
}
.review-track {
  display: flex;
  width: calc(var(--n, 1) * 100%);
  transition: transform 0.45s ease;
}
.review-slide {
  flex: 0 0 calc(100% / var(--n, 1));
  min-width: 0;
}
.review-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2.25rem 2rem;
}
.review-stars {
  color: var(--primary-emerald);
  letter-spacing: 0.15em;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.review-card blockquote {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--slate-800);
  margin-bottom: 1.75rem;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E6F4F1;
  color: var(--primary-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-author strong {
  display: block;
  font-size: 1rem;
}
.review-author span {
  color: var(--slate-500);
  font-size: 0.92rem;
}
.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.review-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--slate-900);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.review-arrow:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.review-dots {
  display: flex;
  gap: 0.5rem;
}
.review-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
}
.review-dot.is-active {
  background: var(--primary-dark);
}
@media (prefers-reduced-motion: reduce) {
  .review-track {
    transition: none;
  }
}
