/* =====================================================
   PerLei — Vanilla CSS (converted from React/Tailwind)
   ===================================================== */

:root {
  --background: 20 33% 98%;
  --foreground: 15 20% 18%;
  --card: 20 30% 96%;
  --card-foreground: 15 20% 18%;
  --primary: 15 45% 65%;
  --primary-foreground: 20 33% 98%;
  --secondary: 350 25% 93%;
  --secondary-foreground: 15 20% 25%;
  --muted: 20 20% 94%;
  --muted-foreground: 15 10% 50%;
  --accent: 25 55% 72%;
  --accent-foreground: 20 33% 98%;
  --border: 20 20% 90%;
  --ring: 15 45% 65%;
  --radius: 0.75rem;

  --rose-gold: 15 45% 65%;
  --blush: 350 30% 92%;
  --nude: 25 25% 88%;
  --cream: 30 30% 96%;
  --gold: 35 60% 55%;
  --deep-rose: 350 35% 45%;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Raleway', sans-serif;
}

/* ------- Reset ------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.overflow-hidden { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: transparent; cursor: pointer; color: inherit; }
ul { list-style: none; }
strong { color: hsl(var(--foreground)); font-weight: 600; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.15; }

/* ------- Layout helpers ------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}
.max-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.section-padding {
  padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.section-alt { background-color: hsl(var(--blush)); }
.section-cream { background-color: hsl(var(--cream)); }
.bg-background { background-color: hsl(var(--background)); }

.gradient-rose {
  background: linear-gradient(135deg, hsl(var(--blush)), hsl(var(--cream)));
}
.gradient-gold {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--gold)));
}

/* ------- Typography utilities ------- */
.text-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.text-display-light {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
}
.text-primary { color: hsl(var(--primary)); }

.section-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: hsl(var(--muted-foreground));
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.muted-large {
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.muted-large.left { text-align: left; }

.quote {
  font-size: clamp(1.25rem, 3.6vw, 1.875rem);
  margin-top: 2.5rem;
  color: hsl(var(--foreground));
}

.promise-tag {
  color: hsl(var(--foreground));
  font-size: 1.25rem;
  font-weight: 500;
}

/* ------- Buttons & badges ------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all .3s ease;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--gold)));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 20px -4px hsl(var(--primary) / 0.4);
  text-align: center;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px hsl(var(--primary) / 0.5);
}
.btn-sm { padding: 0.75rem 1.5rem; font-size: 0.8125rem; }
.btn-block { display: block; width: 100%; }

.btn-outline-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: all .3s ease;
}
.btn-outline-rose:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-italy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: hsl(var(--blush));
  color: hsl(var(--deep-rose));
  margin-bottom: 1.5rem;
}

/* ------- Icon circle ------- */
.icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--blush)), hsl(var(--nude)));
  color: hsl(var(--deep-rose));
}
.ic-24 { width: 1.5rem; height: 1.5rem; }
.ic-28 { width: 1.75rem; height: 1.75rem; }

/* ------- Divider ------- */
.divider-rose {
  width: 4rem;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
}
.divider-rose.divider-left { margin-left: 0; }

/* ------- Card product ------- */
.card-product {
  border-radius: 1rem;
  overflow: hidden;
  background: hsl(var(--card));
  box-shadow: 0 4px 30px -10px hsl(var(--primary) / 0.15);
  transition: all .5s ease;
  display: flex;
  flex-direction: column;
}
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -10px hsl(var(--primary) / 0.25);
}

/* =====================================================
   WHATSAPP FAB
   ===================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  transition: transform .3s ease;
}
.whatsapp-fab:hover { transform: scale(1.1); }
.whatsapp-fab svg { width: 1.75rem; height: 1.75rem; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-text { text-align: center; }
@media (min-width: 1024px) { .hero-text { text-align: left; } }
.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}
.hero-lead {
  font-family: var(--font-body);
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) { .hero-lead { margin-left: 0; margin-right: 0; } }
.hero-sub {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) { .hero-sub { margin-left: 0; margin-right: 0; } }

.hero-image {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) { .hero-image { justify-content: flex-end; } }
.hero-image img {
  max-width: clamp(220px, 50vw, 380px);
  object-fit: contain;
}

.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
}
.hero-blob-1 {
  top: 5rem;
  right: 2.5rem;
  width: 8rem;
  height: 8rem;
  background: hsl(var(--primary) / 0.05);
}
.hero-blob-2 {
  bottom: 5rem;
  left: 2.5rem;
  width: 12rem;
  height: 12rem;
  background: hsl(var(--accent) / 0.1);
}

/* =====================================================
   BENEFITS
   ===================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}
.benefit-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  transition: all .3s ease;
}
.benefit-card:hover {
  background: hsl(var(--card));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
.benefit-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.benefit-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.65;
}

/* =====================================================
   PRODUCTS
   ===================================================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 4rem;
}
@media (min-width: 560px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.card-product-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.card-product-image img {
  max-height: 100%;
  object-fit: contain;
  transition: transform .7s ease;
}
.card-product-image img:hover { transform: scale(1.05); }
.card-product-body {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.product-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}
.product-features .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: hsl(var(--primary));
  flex-shrink: 0;
  display: inline-block;
}
.product-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}
.product-ship {
  font-size: 0.75rem;
  color: hsl(var(--primary));
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Kit completo */
.kit-card {
  max-width: 42rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.kit-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: hsl(var(--gold));
  color: #fff;
  z-index: 1;
}
.kit-body {
  padding: 1.5rem 1.5rem 1.5rem;
  padding-top: 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .kit-body { padding: 2.5rem; padding-top: 3rem; }
}
.kit-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.kit-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.kit-image {
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.kit-image img { max-height: clamp(220px, 35vw, 300px); object-fit: contain; }
.kit-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.kit-price-old {
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
  font-size: 1.125rem;
}
.kit-price-new {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.kit-body .btn-primary { margin-top: 1rem; }

/* =====================================================
   TUBEROSA
   ===================================================== */
.tuberosa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .tuberosa-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.tuberosa-text { order: 2; }
.tuberosa-image { order: 1; display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .tuberosa-text { order: 1; }
  .tuberosa-image { order: 2; }
}
.tuberosa-image img {
  border-radius: 1.5rem;
  max-width: 24rem;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
}
.tuberosa-quote {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
}

/* =====================================================
   MADE IN ITALY (trust)
   ===================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 560px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(5, 1fr); }
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.trust-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-align: center;
}

/* =====================================================
   RITUAL
   ===================================================== */
.ritual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ritual-grid { grid-template-columns: 1fr 1fr; }
}
.ritual-image img {
  border-radius: 1.5rem;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
}
.ritual-steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.ritual-step { display: flex; gap: 1.5rem; }
.ritual-num {
  font-size: 2.25rem;
  color: hsl(var(--primary) / 0.3);
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
}
.ritual-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.ritual-desc {
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 1.5rem);
  background: hsl(var(--foreground));
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.5rem;
}
.footer-sub {
  color: hsl(var(--primary-foreground) / 0.5);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.footer-copy {
  color: hsl(var(--primary-foreground) / 0.4);
  font-size: 0.75rem;
}

/* =====================================================
   ANIMATIONS (replicate animate-fade-up / animate-fade-in / reveal on scroll)
   ===================================================== */
.fade-up   { animation: fadeUp 0.8s ease-out both; }
.fade-in   { animation: fadeIn 1s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
