/* Import base styles */
@import url('menu-styles.css');

/* ===== LAYOUT OVERRIDE ===== */
body {
  overflow-x: hidden;
}


/* ===== KONAMI CODE EASTER EGG ===== */
@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--btn-secondary);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-brand img {
  height: 3rem;
}

.nav-brand h1 {
  font-family: 'Magic';
  font-size: 1.8rem;
  color: var(--text-accent);
  margin-top: 0.3rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
}

.theme-btn {
  padding: 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn img {
  width: 1.6rem;
  height: 1.6rem;
}

.login-btn {
  background: var(--accent-gold);
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
}

.login-btn:hover {
  transform: scale(1.08);
}

/* ===== HERO SECTION ===== */
.hero {
  margin-top: 5rem;
  padding: 4rem 2rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-family: 'CalSans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-accent);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.btn-hero {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-hero:hover {
  transform: scale(1.02);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-primary);
  opacity: 0.7;
}

.hero-image {
  position: relative;
  height: 100%;
}

.hero-image img{  
  border-radius: 1rem;
}

.hero-image img:nth-child(1) {
  position: absolute;
  height: 230px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
  transform: translateX(-30px);
  animation-delay: 1s;

  bottom: 5%;
  z-index: 3;
}

.hero-image img:nth-child(2) {
  position: absolute;
  width: 500px;
  box-shadow: 0 5px 30px black;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
  transform: translateY(30px);

  left: 12%;
  z-index: 2;
}

.hero-image img:nth-child(3) {
  position: absolute;
  width: 350px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
  transform: translateX(30px);
  animation-delay: 0.7s;

  bottom: 0;
  right: 0;
  z-index: 4;
}


/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-top: 1px solid var(--btn-secondary);
  border-bottom: 1px solid var(--btn-secondary);
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  opacity: 0;
  transform: translateY(20px);
}

.stat-item.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.stat-item h3 {
  font-family: 'Klein-Bold';
  font-size: 3rem;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  color: var(--text-primary);
  opacity: 0.8;
}

/* ===== SECTION COMMON STYLES ===== */
section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
}

.section-header.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.section-header h2 {
  font-family: 'Klein-Bold';
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-primary);
  opacity: 0.8;
}

/* ===== FEATURES SECTION ===== */
.features {
  background: var(--bg-primary);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* Bottone Mostra di più (nascosto di default) */
.show-more-btn {
  display: none;
  margin: 2rem auto 0;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 2px solid var(--text-accent);
  border-radius: 2rem;
  cursor: pointer;
} 

.show-more-btn p {

  color: var(--text-accent);
  font-size: 1rem;
  font-weight: 600;
}

.show-more-btn:hover {
  background-color: var(--close-bg);
}

/* Mobile: mostra solo 2 card inizialmente */
@media (max-width: 480px) {
  .show-more-btn {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(n+3) {
    display: none;
  }

  .features-grid.expanded .feature-card {
    display: block;
  }

  .features-grid.expanded ~ .show-more-btn {
    display: none;
  }
}

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 3px 12px var(--shadow-sm);
  cursor: pointer;
}

.feature-card.visible { 
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:hover { 
  border-color: var(--accent-gold);
}

.feature-icon {
  font-size: 2.7rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Klein-Bold';
  font-size: 1.2rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  opacity: 0.9;
}

.feature-card a {
  text-decoration: underline;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
}

.steps-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translateX(-30px);
}

.step.visible {
  animation: fadeInLeft 0.6s ease forwards;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
  color: white;
  font-family: 'Klein-Bold';
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-family: 'Klein-Bold';
  font-size: 1.8rem;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0.9;
}

/* ===== PRICING SECTION ===== */
.pricing {
  background: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
  gap: 2rem;
  margin: 0 auto;
}


.pricing-card {
  width: calc((1000px - 4rem)/3);
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem 2rem 0.8rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  box-shadow: 0 6px 24px var(--shadow-sm);
  transform: translateY(30px);
  margin: 0 auto;
}

.pricing-card.visible {
  animation: fadeInUp 0.6s ease forwards;
}

.pricing-card.featured {
  border-color: var(--accent-gold);
  transform: scale(1.05);
  border: 3px solid transparent;
  background-image: 
    linear-gradient(var(--card-bg), var(--card-bg)),
    linear-gradient(to right, var(--accent-gold), var(--accent-pink));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.popular-badge {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  
  border: 2px solid transparent;
  background-image: 
    linear-gradient(var(--card-bg), var(--card-bg)),
    linear-gradient(to right, var(--accent-gold), var(--accent-pink));
  background-origin: border-box;
  background-clip: padding-box, border-box;

  color: var(--text-accent);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-header h3 {
  font-family: 'Klein-Bold';
  font-size: 1.5rem;
  color: var(--text-accent);
  margin-bottom: 0.3rem;
}

.pricing-header p {
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
  opacity: 0.8;
  color: var(--text-primary);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.currency {
  font-family: 'Klein-Bold';
  font-size: 2rem;
  color: var(--text-accent);
}

.amount {
  font-family: 'Klein-Bold';
  font-size: 2.6rem;
  color: var(--text-accent);
}

.period {
  font-size: 1rem;
  color: var(--text-primary);
  opacity: 0.7;
}

.btn-pricing {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--text-accent);
  color: var(--text-accent);
  font-weight: 600;
  padding: 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  margin-bottom: 1.3rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-pricing:hover {  
  background: var(--close-bg);
  transform: none;
}

.btn-pricing:active {
  transform: scale(0.97)!important;
}

.featured .btn-pricing {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
  color: white;
  border: none;
  font-weight: 600;
}

.featured .btn-pricing:hover {
  transform: scale(1.02);
}

.features-list {
  list-style: none;
  flex-grow: 1;
  border-top: 2px solid var(--btn-secondary);
  padding: 0.8rem 0;
}

.features-list img {
  width: 15px;
  transform: translateY(2px);
  border-radius: 50%;
  margin-right: 2px;
  will-change: brightness;
}

[data-theme="light"] .features-list img {
  filter: brightness(0);
}

.features-list li {
  padding: 0.4rem 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold));
  padding: 5rem 2rem;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  font-family: 'Klein-Bold';
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}

.cta-container p {
  font-size: 1.3rem;
  color: white;
  opacity: 0.95;
  margin-bottom: 2.5rem;
}

.btn-cta-large {
  background: white;
  color: var(--accent-pink);
  padding: 1.3rem 3.5rem;
  border-radius: 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-cta-large {
  color: #e65b24;
}

.btn-cta-large:hover {
  transform: scale(1.02);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
}

.cta-note {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: white;
  opacity: 0.85;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--bg-primary);
  padding: 5rem 1rem 1rem;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-title {
  font-family: 'Klein-Bold';
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-accent);
  text-align: center;
  margin-bottom: 3rem;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category-title {
  font-family: 'Klein-Bold';
  font-size: 1.8rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-gold);
}

.faq-item {
  background: var(--card-bg);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid var(--btn-secondary);
}

.faq-item:hover {
  border-color: var(--accent-gold);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-accent);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 1.8rem;
}

.faq-icon img{
  width: 100%;
  will-change: filter;
}

[data-theme="light"] .faq-icon img{
  filter: invert(0.8);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  animation-delay: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-image {
    display: none;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .nav-brand h1 {
    font-size: 1.5rem;
  }

  .hero {
    margin-top: 4rem;
    padding: 3rem 1.5rem;
  }

  .hero-title { 
    font-size: 2rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  section {
    padding: 3rem 1.5rem;
  }
  
  .pricing {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    margin-top: 0rem;
  }
  .nav-brand img {
    height: 2.5rem;
  }
  .nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .btn-hero {
    width: 100%;
    font-size: 1rem;
    margin-top: 3cqmax;
    text-align: center;
  }

  .btn-cta-large {
    font-size: 1rem;
  }
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.comparison-wrapper {
  overflow-x: auto;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px var(--shadow-sm);
  background: var(--card-bg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  table-layout: fixed; 
}

.comparison-table thead {
  background: #601f40;
}

.comparison-table th {
  padding: 1.2rem 1rem 0.9rem;
  font-family: 'CalSans', sans-serif;
  font-size: 1.3rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Prima colonna (feature) più larga */
.comparison-table th:first-child {
  text-align: left;
  padding-left: 2rem;
  color: #fdf8db;
}

/* 🔹 Le tre colonne piani IDENTICHE */
.comparison-table th.th-hobby,
.comparison-table th.th-premium,
.comparison-table th.th-pro {
  width: 13%;
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table th.th-hobby {
  background: linear-gradient(135deg, #7a4d00, #5c3400);
  color: #fdf8db;
}

.comparison-table th.th-premium {
  background: linear-gradient(135deg, #c9a961, #b8965f);
  color: #2a2012;
}

.comparison-table th.th-pro {
  background: linear-gradient(135deg, #e0e0ff, #c8c8f0);
  color: #3f3150;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--btn-secondary);
  transition: background 0.2s ease;
}

.comparison-table td {
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-primary);
}

.comparison-table td.feature-name {
  text-align: left;
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--text-accent);
}

.comparison-table td.td-hobby {
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0), rgba(92, 52, 0, 0.05));
}

.comparison-table td.td-premium {
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0), rgba(184, 150, 95, 0.08));
}

.comparison-table td.td-pro {
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0), rgba(200, 200, 240, 0.15));
}

[data-theme="dark"] .comparison-table td.td-hobby {
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0), rgba(106, 48, 10, 0.1));
}

[data-theme="dark"] .comparison-table td.td-premium {
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0), rgba(179, 145, 81, 0.1));
}

[data-theme="dark"] .comparison-table td.td-pro {
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0), rgba(168, 168, 208, 0.1));
}

.comparison-table .fa-check {
  color: #22c55e;
  font-size: 1.3rem;
}

.comparison-table .fa-times {
  color: #ef4444;
  font-size: 1.3rem;
  opacity: 0.8;
}