
:root {
  --primary: #78350f; /* amber-900 */
  --accent: #b45309;  /* amber-700 */
  --stone-50: #fafaf9;
  --stone-900: #1c1917;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Navbar Scrolled State */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-link {
  color: #57534e;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgba(120, 53, 15, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--stone-900);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #fde68a;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Phone Mockup Styling */
.phone-frame {
  max-width: 850px; 
  margin: 0 auto;
  border-radius: 3.5rem;
  position: relative;
  transition: transform 0.5s ease;
}

.phone-frame:hover {
  transform: scale(1.02);
}

.floating-card {
  position: absolute;
  bottom: 15%;
  left: -10%; /* Spostato leggermente per accomodare la larghezza maggiore */
  background: white;
  padding: 1.25rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 220px;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 10;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Steps */
.step-card {
  position: relative;
}

.step-number {
  font-size: 5rem;
  font-weight: 800;
  color: #f5f5f4;
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  z-index: -1;
  font-family: 'Outfit', sans-serif;
}

/* Feature Boxes */
.feature-box {
  background: white;
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: #fffbeb;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid #e7e5e4;
  padding: 1rem 0;
}

.faq-question {
  list-style: none;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
}

details[open] .faq-question::after {
  content: '-';
}

.faq-answer {
  padding-bottom: 1.5rem;
  color: #57534e;
  line-height: 1.6;
}

/* Responsive fixes */
@media (max-width: 1024px) {
  .phone-frame {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .phone-frame {
    max-width: 320px;
  }
  .floating-card {
    left: 5%;
    bottom: -5%;
  }
}
