/* ============================================================
   template-designer.css — Pagina landing Template Designer
   AlbumBuilder PRO
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.td-hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a14 0%, #0f0f1e 100%);
}
.td-hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(174,135,68,.18) 0%, transparent 70%);
  pointer-events: none;
}
.td-hero-particles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(243,226,149,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 15%, rgba(243,226,149,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(243,226,149,.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 60%, rgba(243,226,149,.2) 0%, transparent 100%);
  pointer-events: none;
}
.td-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.td-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(174,135,68,.12);
  border: 1px solid rgba(174,135,68,.3);
  border-radius: 100px;
  color: #f3e295;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.td-badge-dot {
  width: 7px; height: 7px;
  background: #ae8744;
  border-radius: 50%;
  animation: td-pulse 2s ease-in-out infinite;
}
@keyframes td-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}
.td-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.td-hero-italic { font-style: italic; }
.td-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.td-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.td-cta-main {
  padding: 16px 32px;
  font-size: 1rem;
  box-shadow: 0 0 32px rgba(174,135,68,.35);
  transition: box-shadow .3s, transform .2s;
}
.td-cta-main:hover {
  box-shadow: 0 0 48px rgba(174,135,68,.5);
  transform: translateY(-2px);
}
.td-hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.td-proof-item {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.td-proof-sep { color: rgba(255,255,255,.2); }

/* Hero visual */
.td-hero-visual { position: relative; }
.td-hero-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(174,135,68,.2);
}
.td-hero-img {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.td-hero-img-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(174,135,68,.08) 0%, transparent 60%);
  pointer-events: none;
}
.td-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(10,10,20,.85);
  border: 1px solid rgba(174,135,68,.35);
  border-radius: 8px;
  color: #f3e295;
  font-size: .75rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  animation: td-float 4s ease-in-out infinite;
}
.td-fb-ruler { top: 16px; left: 16px; animation-delay: 0s; }
.td-fb-frame { bottom: 24px; left: 24px; animation-delay: 1.3s; }
.td-fb-theme { top: 16px; right: 16px; animation-delay: 2.6s; }
@keyframes td-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── PROBLEMA ──────────────────────────────────────────────── */
.td-problem {
  padding: 100px 0;
  background: #0a0a14;
}
.td-problem-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.td-problem-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
  margin: 12px 0 20px;
}
.td-problem-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 60px;
}
.td-problem-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.td-stat { text-align: center; }
.td-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ae8744, #f3e295);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.td-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}
.td-stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(174,135,68,.3), transparent);
}

/* ── CONFRONTO ─────────────────────────────────────────────── */
.td-compare {
  padding: 80px 0;
  background: linear-gradient(180deg, #0a0a14, #0d0d1a);
}
.td-compare-visual {
  margin: 48px 0 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(174,135,68,.15);
}
.td-compare-img { width: 100%; display: block; }
.td-compare-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}
.td-compare-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
}
.td-compare-label.bad { color: rgba(255,255,255,.4); }
.td-compare-label.good { color: #f3e295; }

/* ── FEATURES ──────────────────────────────────────────────── */
.td-features {
  padding: 100px 0;
  background: #0a0a14;
}
.td-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.td-feat-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 32px;
  transition: border-color .3s, transform .3s, background .3s;
}
.td-feat-card:hover {
  border-color: rgba(174,135,68,.35);
  background: rgba(174,135,68,.05);
  transform: translateY(-4px);
}
.td-feat-icon {
  width: 52px; height: 52px;
  background: rgba(174,135,68,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ae8744;
  margin-bottom: 20px;
}
.td-feat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.td-feat-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ── COME FUNZIONA ─────────────────────────────────────────── */
.td-how {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a14, #0f0f1e);
}
.td-how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
}
.td-step {
  flex: 1;
  padding: 40px 32px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
}
.td-step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ae8744, #f3e295);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}
.td-step h3 {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}
.td-step p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.td-step-connector {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, rgba(174,135,68,.3), rgba(174,135,68,.6), rgba(174,135,68,.3));
  align-self: center;
  flex-shrink: 0;
}

/* ── TESTIMONIANZE ─────────────────────────────────────────── */
.td-testimonials {
  padding: 100px 0;
  background: #0a0a14;
}
.td-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.td-testi-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 32px;
  transition: border-color .3s, transform .3s;
}
.td-testi-card:hover { transform: translateY(-4px); }
.td-testi-card.featured {
  border-color: rgba(174,135,68,.4);
  background: rgba(174,135,68,.05);
  position: relative;
}
.td-testi-card.featured::before {
  content: '✦ In evidenza';
  position: absolute;
  top: -12px; left: 24px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #ae8744, #f3e295);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  color: #0a0a14;
  letter-spacing: .05em;
}
.td-testi-stars {
  color: #ae8744;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.td-testi-text {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}
.td-testi-author { display: flex; align-items: center; gap: 12px; }
.td-testi-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #ae8744, #f3e295);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0a0a14;
  font-size: 1rem;
  flex-shrink: 0;
}
.td-testi-name {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}
.td-testi-role {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
}

/* ── PRICING ───────────────────────────────────────────────── */
.td-pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a14, #0f0f1e);
}
.td-pricing-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(174,135,68,.25);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.td-pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(174,135,68,.6), transparent);
}
.td-pricing-badge-top {
  display: inline-flex;
  padding: 5px 14px;
  background: rgba(174,135,68,.12);
  border: 1px solid rgba(174,135,68,.3);
  border-radius: 100px;
  color: #f3e295;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.td-pricing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.td-pricing-desc {
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 32px;
}
.td-pricing-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.td-pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
.td-check { color: #ae8744; font-size: 1rem; }

/* Right col */
.td-pricing-right {
  background: rgba(174,135,68,.06);
  border: 1px solid rgba(174,135,68,.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.td-pricing-price-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.td-price-old {
  display: inline-block;
  font-size: 1.1rem;
  color: rgba(255,255,255,.3);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.td-price-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.td-price-currency {
  font-size: 1.8rem;
  vertical-align: top;
  line-height: 1.5;
}
.td-pricing-note {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 28px;
  line-height: 1.5;
}
.td-buy-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(174,135,68,.3);
}
.td-buy-btn:hover { box-shadow: 0 8px 48px rgba(174,135,68,.5); }
.td-pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ── FINAL CTA ─────────────────────────────────────────────── */
.td-final-cta {
  padding: 120px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.td-final-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(174,135,68,.12) 0%, transparent 70%);
  pointer-events: none;
}
.td-final-content { position: relative; z-index: 1; }
.td-final-icon {
  font-size: 2rem;
  color: #ae8744;
  margin-bottom: 24px;
  display: block;
  animation: td-pulse 3s ease-in-out infinite;
}
.td-final-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.td-final-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 40px;
}
.td-final-sub {
  margin-top: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .td-hero .container { grid-template-columns: 1fr; text-align: center; }
  .td-hero-sub { margin: 0 auto 36px; }
  .td-hero-ctas { justify-content: center; }
  .td-hero-proof { justify-content: center; }
  .td-hero-visual { order: -1; }
  .td-features-grid { grid-template-columns: repeat(2, 1fr); }
  .td-testimonials-grid { grid-template-columns: 1fr; }
  .td-pricing-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .td-hero-title { font-size: 2.8rem; }
  .td-features-grid { grid-template-columns: 1fr; }
  .td-how-steps { flex-direction: column; }
  .td-step-connector { width: 1px; height: 32px; align-self: center; background: linear-gradient(to bottom, rgba(174,135,68,.3), rgba(174,135,68,.6), rgba(174,135,68,.3)); }
  .td-problem-stats { gap: 24px; }
  .td-pricing-card { padding: 32px 24px; }
  .td-final-cta h2 { font-size: 2.2rem; }
}

/* ── FAQ LUXURY REDESIGN ───────────────────────────────────── */
.faq-section {
  padding: 100px 0;
  background: #0a0a14;
}
.faq-list {
  max-width: 760px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid rgba(174,135,68,.15);
  position: relative;
}
.faq-item:first-child {
  border-top: 1px solid rgba(174,135,68,.15);
}
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-align: left;
  letter-spacing: .01em;
  transition: color .25s;
}
.faq-question:hover {
  color: #f3e295;
}
.faq-question[aria-expanded="true"] {
  color: #f3e295;
}
.faq-chevron {
  flex-shrink: 0;
  color: rgba(174,135,68,.6);
  transition: transform .35s cubic-bezier(.4,0,.2,1), color .25s;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: #ae8744;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer {
  /* height set by JS */
}
.faq-answer p {
  font-size: .92rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  padding-bottom: 28px;
  border-left: 2px solid rgba(174,135,68,.35);
  padding-left: 20px;
  margin: 0;
}
/* Numero progressivo dorato */
.faq-item::before {
  content: counter(faq-counter, decimal-leading-zero);
  counter-increment: faq-counter;
  position: absolute;
  left: -48px;
  top: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ae8744, #f3e295);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .5;
  line-height: 1.5;
}
.faq-list {
  counter-reset: faq-counter;
  padding-left: 64px;
}
@media (max-width: 860px) {
  .faq-list { padding-left: 0; }
  .faq-item::before { display: none; }
}
