:root {
  --primary: #6C2BD9;
  --primary-light: #8B5CF6;
  --accent: #F72585;
  --dark: #0A0A0F;
  --dark2: #12121A;
  --card-bg: #16161E;
  --text: #F0EEF8;
  --text-muted: #9896B0;
  --border: rgba(108,43,217,0.25);
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Raleway', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAV (identica alla homepage) ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 1rem; align-items: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: 50px;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; text-decoration: none; transition: all 0.25s; border: none;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(108,43,217,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,43,217,0.6); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary-light); background: rgba(108,43,217,0.1); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ── HERO TUTORIAL ── */
.tut-hero {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  background-image:  url(assets/images/mostriciattolotutorial.png);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;

}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 15, 0.897) 40%,
    rgba(10, 10, 15, 0) 100%
  );
  z-index: 0;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.tut-hero-inner { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient); color: #fff;
  border-radius: 50px; padding: 0.3rem 1.2rem;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.tut-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 1rem;
}
.tut-hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tut-hero p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2.5rem; }

/* ── TABS ── */
.tut-tabs {
  display: inline-flex; gap: 0.5rem;
  background: rgba(0, 0, 0, 0.377);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 0.4rem;
}
.tut-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem; border-radius: 50px;
  background: transparent; border: none; color: var(--text-muted);
  font-family: 'Raleway', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.tut-tab.active {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 15px rgba(108,43,217,0.4);
}
.tut-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,0.05); }

/* ── CONTAINER ── */
.tut-container { max-width: 860px; margin: 0 auto; padding: 0 2rem; }
.tut-section { padding: 4rem 2rem; }

/* ── CARD STEP ── */
.tut-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.tut-card:hover { border-color: rgba(108,43,217,0.5); }

.tut-step-number {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 5rem; font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1; pointer-events: none;
  user-select: none;
}

.tut-card-header {
  display: flex; align-items: flex-start; gap: 1.2rem;
  margin-bottom: 2rem;
}
.tut-icon-wrap {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  background: rgba(108,43,217,0.15);
  border: 1px solid rgba(108,43,217,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
}
.tut-card-header h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.3rem; }
.tut-card-header p { color: var(--text-muted); font-size: 0.9rem; }

/* ── FORM CONFIGURATORE ── */
.tut-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.tut-form-group label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.tut-input {
  width: 100%; padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: 'Raleway', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.tut-input:focus { border-color: var(--primary-light); }
.tut-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.4rem; }

.tut-size-presets { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.preset {
  padding: 0.3rem 0.8rem; border-radius: 50px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.78rem; font-family: 'Raleway', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.preset.active { background: rgba(108,43,217,0.2); border-color: var(--primary-light); color: var(--primary-light); }
.preset:hover:not(.active) { border-color: var(--text-muted); color: var(--text); }

/* ── CODE BLOCK ── */
.tut-code-block {
  background: #0d0d14;
  border: 1px solid rgba(108,43,217,0.3);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.tut-code-header {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(108,43,217,0.2);
}
.tut-code-dots { display: flex; gap: 6px; }
.tut-code-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.tut-code-dots span:nth-child(1) { background: #ff5f57; }
.tut-code-dots span:nth-child(2) { background: #ffbd2e; }
.tut-code-dots span:nth-child(3) { background: #28c840; }
.tut-code-lang {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 700;
  letter-spacing: 0.1em; margin-right: auto;
}
.tut-copy-btn {
  background: var(--gradient); border: none; border-radius: 50px;
  color: #fff; font-size: 0.78rem; font-family: 'Raleway', sans-serif;
  font-weight: 700; padding: 0.35rem 1rem; cursor: pointer; transition: all 0.2s;
}
.tut-copy-btn:hover { transform: scale(1.05); }

#codeOutput {
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a78bfa;
  font-family: 'Courier New', monospace;
  white-space: pre;
  overflow-x: auto;
}

.tut-note {
  display: flex; align-items: flex-start; gap: 0.7rem;
  background: rgba(108,43,217,0.08);
  border: 1px solid rgba(108,43,217,0.2);
  border-radius: 12px; padding: 1rem 1.2rem;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ── FRECCIA TRA STEP ── */
.tut-arrow {
  display: flex; justify-content: center;
  color: var(--primary-light); margin-top: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── WORDPRESS SECTION ── */
.tut-wp-section { padding: 4rem 2rem; }
.tut-wp-badge {
  display: flex; justify-content: center; margin-bottom: 1rem;
}
.tut-wp-badge span {
  background: rgba(108,43,217,0.15);
  border: 1px solid rgba(108,43,217,0.3);
  color: var(--primary-light);
  border-radius: 50px; padding: 0.4rem 1.2rem;
  font-size: 0.85rem; font-weight: 700;
}
.tut-wp-title { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.tut-wp-sub { text-align: center; color: var(--text-muted); font-size: 0.95rem; }

/* Mockup WordPress */
.tut-wp-mockup {
  background: #1a1a24;
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  margin-bottom: 2rem;
}
.tut-wp-mockup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.tut-wp-mockup-title { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 700; }
.tut-wp-logo {
  width: 28px; height: 28px; border-radius: 50%;
  background: #21759b; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; font-weight: 900; color: #fff;
}
.tut-publish-btn {
  background: var(--gradient); border: none; border-radius: 50px;
  color: #fff; font-size: 0.78rem; font-family: 'Raleway', sans-serif;
  font-weight: 700; padding: 0.4rem 1rem; cursor: pointer;
}
.tut-wp-mockup-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.tut-wp-title-block { font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,0.2); }
.tut-wp-paragraph {
  background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px; padding: 0.6rem 1rem;
  color: rgba(255,255,255,0.2); font-size: 0.85rem;
}
.tut-wp-html-block {
  border: 2px solid rgba(108,43,217,0.5);
  border-radius: 10px; overflow: hidden;
}
.tut-wp-html-label {
  background: rgba(108,43,217,0.15);
  padding: 0.4rem 0.8rem; font-size: 0.75rem;
  color: var(--primary-light); font-weight: 700;
}
.tut-wp-html-code {
  padding: 0.8rem 1rem;
  font-family: 'Courier New', monospace; font-size: 0.78rem;
  line-height: 1.6;
}
.code-tag { color: #f472b6; }
.code-attr { color: #60a5fa; }
.code-val { color: #a3e635; }

.tut-wp-add-block {
  color: rgba(255,255,255,0.2); font-size: 0.85rem; text-align: center;
  padding: 0.5rem; cursor: pointer;
}

/* Mini steps WP */
.tut-wp-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.tut-wp-step { display: flex; align-items: flex-start; gap: 0.8rem; }
.tut-wp-step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: #fff;
}
.tut-wp-step strong { display: block; font-size: 0.88rem; margin-bottom: 0.2rem; }
.tut-wp-step p { font-size: 0.8rem; color: var(--text-muted); }

/* ── FAQ ── */
.tut-faq {
  padding: 5rem 2rem;
  background: var(--dark2);
}
.tut-faq h2 { font-size: 2rem; font-weight: 800; }
.text-center { text-align: center; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(108,43,217,0.4); }

.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: var(--card-bg); border: none; cursor: pointer;
  color: var(--text); font-family: 'Raleway', sans-serif;
  font-size: 0.95rem; font-weight: 600; text-align: left;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(108,43,217,0.08); }
.faq-question.active { color: var(--primary-light); }
.faq-question svg { flex-shrink: 0; transition: transform 0.3s; }
.faq-question.active svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  padding: 0 1.4rem;
  background: var(--card-bg);
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 200px; padding: 1rem 1.4rem; }

/* ── CTA FINALE ── */
.tut-cta {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(108,43,217,0.15) 0%, rgba(247,37,133,0.1) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.tut-cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.8rem; }
.tut-cta p { color: var(--text-muted); font-size: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 4rem 4rem 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 1rem; max-width: 260px; line-height: 1.7; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.82rem; flex-wrap: wrap; gap: 1rem; }

/* ── ANIMAZIONI ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 3rem 2rem 2rem; }
}
@media (max-width: 640px) {
  .tut-form-grid { grid-template-columns: 1fr; }
  .tut-wp-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tut-hero h1 { font-size: 2rem; }
}