/*
 * =========================================================
 *  MARY G. — Landing Page Design System
 *  Brand: La Mappa dei Copioni d'Amore di Mary G.
 *  Tone: Elegant & reassuring · Modern & professional
 * =========================================================
 *
 *  HOW TO USE
 *  Link this file + colors.css in every landing page:
 *    <link rel="stylesheet" href="../brand-assets/colors.css">
 *    <link rel="stylesheet" href="../brand-assets/landing-design-system.css">
 *  Then import the font from Google Fonts:
 *    <link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&display=swap" rel="stylesheet">
 * =========================================================
 */


/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
/*
 *  Three font roles:
 *  --font-primary  : DM Sans — corpo testo leggero (landing generiche)
 *  --font-display  : Montserrat — titoli, label, UI (sales page)
 *  --font-body     : Lora — corpo testo serif, citazioni (sales page)
 *
 *  Google Fonts per sales page:
 *    <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap" rel="stylesheet">
 */

:root {
  /* Font stack */
  --font-primary: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Lora', Georgia, serif;

  /* Type scale (1.25 Major Third) */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-md: 1.125rem;
  /* 18px */
  --text-lg: 1.25rem;
  /* 20px */
  --text-xl: 1.5rem;
  /* 24px */
  --text-2xl: 2rem;
  /* 32px */
  --text-3xl: 2.5rem;
  /* 40px */
  --text-4xl: 3rem;
  /* 48px */
  --text-5xl: 3.75rem;
  /* 60px */
  --text-6xl: 4.5rem;
  /* 72px */

  /* Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter spacing */
  --tracking-tight: -0.03em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-widest: 0.12em;
}


/* ─── SPACING ─────────────────────────────────────────────── */

:root {
  /* Base unit: 4px */
  --space-1: 0.25rem;
  /* 4px  */
  --space-2: 0.5rem;
  /* 8px  */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */
  --space-32: 8rem;
  /* 128px */
  --space-40: 10rem;
  /* 160px */

  /* Section vertical padding */
  --section-padding-y: var(--space-24);
  /* default breathing room */
  --section-padding-y-lg: var(--space-32);
  /* hero / feature sections */
  --section-padding-y-sm: var(--space-16);
  /* tight sections */
}


/* ─── LAYOUT ──────────────────────────────────────────────── */

:root {
  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  /* Default page max-width */
  --container-default: var(--container-xl);

  /* Horizontal padding on container */
  --container-px: clamp(1.5rem, 5vw, 3rem);
}

.container {
  width: 100%;
  max-width: var(--container-default);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--narrow {
  max-width: var(--container-md);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--wide {
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--container-px);
}


/* ─── BORDERS & RADIUS ────────────────────────────────────── */

:root {
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Thin geometry lines — signature decorative element */
  --border-thin: 1px solid;
  --border-color-default: color-mix(in srgb, var(--color-plum) 15%, transparent);
  --border-color-muted: color-mix(in srgb, var(--color-sage) 25%, transparent);
  --border-color-accent: color-mix(in srgb, var(--color-pink) 60%, transparent);
}


/* ─── SHADOWS ─────────────────────────────────────────────── */

:root {
  /* Layered soft shadows — elegant, not dramatic */
  --shadow-xs: 0 1px 2px 0 rgb(110 18 54 / 0.04);
  --shadow-sm: 0 2px 6px -1px rgb(110 18 54 / 0.07),
    0 1px 2px -1px rgb(110 18 54 / 0.04);
  --shadow-md: 0 6px 20px -4px rgb(110 18 54 / 0.10),
    0 2px 6px -2px rgb(110 18 54 / 0.05);
  --shadow-lg: 0 16px 40px -8px rgb(110 18 54 / 0.14),
    0 4px 10px -4px rgb(110 18 54 / 0.06);
  --shadow-xl: 0 28px 64px -12px rgb(110 18 54 / 0.18),
    0 8px 16px -8px rgb(110 18 54 / 0.08);

  /* Glow effect for highlights */
  --glow-pink: 0 0 32px color-mix(in srgb, var(--color-pink) 40%, transparent);
  --glow-plum: 0 0 40px color-mix(in srgb, var(--color-plum) 20%, transparent);
}


/* ─── COLOR EXTENSIONS ────────────────────────────────────── */

:root {
  /* Surface layers (on top of cream background) */
  --surface-1: #FFFFFF;
  --surface-2: var(--color-cream);
  --surface-3: color-mix(in srgb, var(--color-pink) 20%, var(--color-cream));
  --surface-dark: #1A0A12;
  /* near-black with plum undertone */

  /* Text colors */
  --text-primary: #1A0A12;
  --text-secondary: color-mix(in srgb, var(--color-plum) 60%, var(--color-sage));
  --text-muted: var(--color-sage);
  --text-inverse: var(--color-cream);
  --text-on-plum: var(--color-cream);

  /* Semantic overlays */
  --overlay-light: color-mix(in srgb, var(--color-cream) 80%, transparent);
  --overlay-dark: color-mix(in srgb, var(--surface-dark) 60%, transparent);
}


/* ─── TRANSITIONS ─────────────────────────────────────────── */

:root {
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
}


/* ─── BUTTONS ─────────────────────────────────────────────── */
/*
 *  Philosophy: inviting, never aggressive. Two core variants:
 *  - .btn-primary  : plum fill, the main CTA
 *  - .btn-outline  : bordered, secondary action
 *  - .btn-ghost    : text-only with underline animation
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  border: var(--border-thin) transparent;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-plum);
  color: var(--color-cream);
  border-color: var(--color-plum);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--color-plum) 85%, #000);
  box-shadow: var(--shadow-md), var(--glow-plum);
}

.btn-outline {
  background: transparent;
  color: var(--color-plum);
  border-color: var(--color-plum);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--color-plum) 6%, transparent);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-plum);
  border-color: transparent;
  padding-inline: var(--space-2);
  border-radius: var(--radius-sm);
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: var(--space-2);
  right: var(--space-2);
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  opacity: 0.4;
  transition: transform var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out);
}

.btn-ghost:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Size variants */
.btn-sm {
  font-size: var(--text-xs);
  padding: 0.55rem 1.25rem;
}

.btn-lg {
  font-size: var(--text-md);
  padding: 1rem 2.25rem;
}


/* ─── SECTION PATTERNS ────────────────────────────────────── */
/*
 *  Alternating backgrounds create visual rhythm without images.
 *  Use these classes on <section> elements.
 */

.section {
  padding-block: var(--section-padding-y);
}

.section--lg {
  padding-block: var(--section-padding-y-lg);
}

.section--sm {
  padding-block: var(--section-padding-y-sm);
}

.section-cream {
  background: var(--surface-2);
}

.section-white {
  background: var(--surface-1);
}

.section-blush {
  background: var(--surface-3);
}

.section-dark {
  background: var(--surface-dark);
  color: var(--text-inverse);
}

.section-plum {
  background: var(--color-plum);
  color: var(--text-on-plum);
}


/* ─── DECORATIVE GEOMETRY ─────────────────────────────────── */
/*
 *  Signature element: thin lines and delicate shapes.
 *  Add with pseudo-elements or as standalone <span class="deco-*">.
 */

/* Horizontal rule with centered label */
.deco-rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.deco-rule::before,
.deco-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color-muted);
}

/* Thin vertical accent line (left border on quotes, bio blocks) */
.deco-line-left {
  border-left: 2px solid var(--color-pink);
  padding-left: var(--space-6);
}

/* Small dot separator */
.deco-dot::before {
  content: '·';
  margin-inline: var(--space-2);
  color: var(--text-muted);
}

/* Subtle corner marks (for featured cards or highlight boxes) */
.deco-corner {
  position: relative;
}

.deco-corner::before,
.deco-corner::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-plum);
  border-style: solid;
  opacity: 0.35;
}

.deco-corner::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.deco-corner::after {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}


/* ─── TYPOGRAPHY UTILITIES ────────────────────────────────── */

.text-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-plum);
}

/* Headline with highlighted word in pink/accent */
.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.05em;
  height: 0.3em;
  background: color-mix(in srgb, var(--color-pink) 55%, transparent);
  z-index: -1;
  border-radius: 2px;
}

/* Large display quote */
.text-quote {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: var(--weight-light);
  font-style: italic;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-plum);
}


/* ─── CARD PATTERNS ───────────────────────────────────────── */

.card {
  background: var(--surface-1);
  border: var(--border-thin) var(--border-color-muted);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Testimonial card variant */
.card-testimonial {
  background: var(--surface-1);
  border: var(--border-thin) var(--border-color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.card-testimonial .card-quote {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.card-testimonial .card-author {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

/* Screenshot / proof card */
.card-screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: var(--border-thin) var(--border-color-muted);
}

.card-screenshot img {
  width: 100%;
  display: block;
}


/* ─── HERO SECTION PATTERN ────────────────────────────────── */
/*
 *  Full-width hero with centered or split layout.
 *  Mix of large breathing room + focused text column.
 */

.hero {
  padding-block: clamp(var(--space-20), 10vw, var(--space-40));
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-plum);
  border: var(--border-thin) var(--border-color-default);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: clamp(var(--text-md), 2vw, var(--text-xl));
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}


/* ─── RESPONSIVE GRID ─────────────────────────────────────── */

.grid-2 {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(4, 1fr);
}

/* Split layout: text | visual */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 5vw, var(--space-20));
  align-items: center;
}

.split--reverse>*:first-child {
  order: 2;
}

.split--reverse>*:last-child {
  order: 1;
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse>* {
    order: unset;
  }
}


/* ─── AMBIENT BACKGROUNDS ─────────────────────────────────── */
/*
 *  Radial gradient orbs — 2–3 soft blobs of brand color,
 *  very transparent (10–15%), posizionati asimmetricamente.
 *  Aggiungere .bg-radial-glow a qualsiasi section o wrapper.
 */

:root {
  --glow-orb-plum: color-mix(in srgb, var(--color-plum) 13%, transparent);
  --glow-orb-pink: color-mix(in srgb, var(--color-pink) 12%, transparent);
  --glow-orb-sage: color-mix(in srgb, var(--color-sage) 10%, transparent);
}

.bg-radial-glow {
  position: relative;
  isolation: isolate;
}

.bg-radial-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 10% 15%, var(--glow-orb-plum) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 88% 80%, var(--glow-orb-pink) 0%, transparent 70%),
    radial-gradient(ellipse 40% 38% at 65% 8%, var(--glow-orb-sage) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Hero: orbs più ampi, posizionati verso i bordi */
.bg-radial-glow--hero::before {
  background:
    radial-gradient(ellipse 70% 60% at 5% 10%, color-mix(in srgb, var(--color-plum) 14%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 50% 65% at 90% 85%, color-mix(in srgb, var(--color-pink) 13%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 55% 5%, color-mix(in srgb, var(--color-sage) 11%, transparent) 0%, transparent 65%);
}

/* Variant: peso visivo sul fondo della sezione */
.bg-radial-glow--bottom::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 90%, var(--glow-orb-plum) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, var(--glow-orb-pink) 0%, transparent 70%);
}

/* Applicazione globale sul body — due orbs fissi agli angoli opposti */
body.ambient-bg {
  background-image:
    radial-gradient(ellipse 70% 55% at 0% 0%, color-mix(in srgb, var(--color-plum) 10%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 55% 65% at 100% 100%, color-mix(in srgb, var(--color-pink) 10%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 70% 20%, color-mix(in srgb, var(--color-sage) 8%, transparent) 0%, transparent 60%);
}


/* ─── GRAIN TEXTURE ───────────────────────────────────────── */
/*
 *  Texture grana leggerissima via SVG feTurbulence.
 *  Sovrapposta con mix-blend-mode: overlay, quasi impercettibile.
 *  Aggiungere .texture-grain a qualsiasi section o all'<body>.
 */

.texture-grain {
  position: relative;
  isolation: isolate;
}

.texture-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 320px 320px;
  opacity: 0.038;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Versione più leggera per sfondi chiari */
.texture-grain--light::after {
  opacity: 0.025;
}

/* Versione leggermente più marcata per sezioni scure */
.texture-grain--dark::after {
  opacity: 0.055;
  mix-blend-mode: soft-light;
}


/* ─── BASE RESET & GLOBAL ─────────────────────────────────── */
/*
 *  Opinionated base for landing pages.
 *  Import this last or keep it scoped to a root class.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--color-background);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}


/* ─── SECTION TYPOGRAPHY ──────────────────────────────────── */
/*
 *  Trio standard per l'intestazione di ogni sezione:
 *    <span class="section-eyebrow">Label</span>
 *    <h2 class="section-title">Titolo</h2>
 *    <p class="section-intro">Descrizione introduttiva...</p>
 */

.section-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-plum);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: var(--weight-bold);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title--light {
  color: #fff;
}

.section-intro {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 660px;
}

.text-center .section-intro {
  margin-inline: auto;
}


/* ─── TEXT HIGHLIGHT VARIANTS ─────────────────────────────── */
/*
 *  .text-highlight        : sottolineatura pink (su sfondi chiari)
 *  .hero-highlight        : sottolineatura su dark hero (su sfondi scuri)
 *  .section-highlight     : variante per testo in sezione (sfondo chiaro)
 *  .section-highlight--plum : variante plum per enfasi
 */

.hero-highlight {
  font-style: normal;
  color: var(--color-pink);
  position: relative;
  display: inline;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.05em;
  height: 0.28em;
  background: rgba(232, 196, 196, 0.22);
  border-radius: 3px;
  z-index: -1;
  transform: rotate(-0.4deg);
}

.section-highlight {
  position: relative;
  display: inline;
}

.section-highlight::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 0.05em;
  height: 0.28em;
  background: rgba(232, 196, 196, 0.38);
  border-radius: 3px;
  z-index: -1;
  transform: rotate(-0.4deg);
}

.section-highlight--plum::after {
  background: rgba(110, 18, 54, 0.18);
}


/* ─── SCROLL REVEAL ───────────────────────────────────────── */
/*
 *  Aggiungere .reveal agli elementi da animare al momento
 *  in cui entrano nel viewport. JS: aggiungi .visible tramite
 *  IntersectionObserver. Opzionale: .reveal-delay-1/2/3/4.
 */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ─── COUNTDOWN ───────────────────────────────────────────── */

.countdown-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 196, 196, 0.08);
  border: 1px solid rgba(232, 196, 196, 0.2);
  border-radius: var(--radius-xl);
  padding: 1rem 2rem;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-pink);
}

.countdown-timer {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: 1;
  min-width: 2.5ch;
  text-align: center;
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 300;
  color: rgba(232, 196, 196, 0.4);
  margin-top: -0.5rem;
}

.countdown-unit span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Sticky countdown bar */
.sticky-countdown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-plum);
  padding: 0.85rem var(--container-px);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 2px 20px rgba(110, 18, 54, 0.4);
}

.sticky-countdown.visible {
  transform: translateY(0);
}

.sticky-countdown-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sticky-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
}

.sticky-label {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 196, 196, 0.55);
  margin-top: 0.1rem;
}

.sticky-sep {
  font-size: 1.4rem;
  font-weight: 200;
  color: rgba(232, 196, 196, 0.35);
  line-height: 1;
  padding-bottom: 0.9rem;
}

.sticky-divider {
  width: 1px;
  height: 2.8rem;
  background: rgba(232, 196, 196, 0.2);
  flex-shrink: 0;
}

.sticky-cta {
  background: #fff;
  color: var(--color-plum);
  border: 2px solid #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.sticky-cta:hover {
  opacity: 0.88;
}


/* ─── STAT CHIPS ──────────────────────────────────────────── */

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-chip {
  background: color-mix(in srgb, var(--color-plum) 8%, var(--color-cream));
  border: 1px solid var(--border-color-default);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-plum);
  letter-spacing: 0.04em;
}


/* ─── FAQ ACCORDION ───────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border-color-muted);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-color-muted);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  text-align: left;
}

.faq-question-text {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border-color-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-base), border-color var(--duration-base);
}

.faq-item.open .faq-icon {
  background: var(--color-plum);
  border-color: var(--color-plum);
}

.faq-icon-bar {
  position: relative;
  width: 12px;
  height: 12px;
}

.faq-icon-bar::before,
.faq-icon-bar::after {
  content: '';
  position: absolute;
  background: var(--color-plum);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), background var(--duration-base);
}

.faq-item.open .faq-icon-bar::before,
.faq-item.open .faq-icon-bar::after {
  background: #fff;
}

.faq-icon-bar::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon-bar::after {
  width: 1.5px;
  height: 12px;
  left: 50%;
  top: 0;
  transform: translateX(-50%) scaleY(1);
}

.faq-item.open .faq-icon-bar::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ─── PRICING CARD ────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--surface-1);
  border: 2px solid var(--border-color-muted);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--color-plum);
  box-shadow: var(--shadow-xl), var(--glow-plum);
}

.pricing-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-plum);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-type {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.pricing-price-block {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price-old {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.pricing-price-new {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-plum);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-price-note {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.pricing-divider {
  height: 1px;
  background: var(--border-color-muted);
  margin: 1.5rem 0;
  align-self: stretch;
}

.pricing-includes-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  align-self: stretch;
  text-align: left;
}

.pricing-include-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  align-self: stretch;
  text-align: left;
}

.pricing-include-list li {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 1.4rem;
  position: relative;
}

.pricing-include-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-plum);
  font-weight: 700;
}

.pricing-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: stretch;
}

.pricing-actions .btn {
  width: 100%;
  justify-content: center;
}

.savings-tag {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #a84d00;
  background: color-mix(in srgb, #e8c4a0 40%, #fff);
  border: 1px solid rgba(168, 77, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
}


/* ─── BUTTON VARIANT: SECONDARY DARK ─────────────────────── */

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-plum);
  border: 1.5px solid var(--color-plum);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-spring);
}

.btn-secondary-dark:hover {
  background: color-mix(in srgb, var(--color-plum) 6%, transparent);
  box-shadow: var(--shadow-sm);
}

.btn-secondary-dark:active {
  transform: scale(0.97);
}


/* ─── WHATSAPP FLOATING BUTTON ────────────────────────────── */

.wa-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  text-decoration: none;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}


/* ─── UTILITY: MARGIN HELPERS ─────────────────────────────── */

.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.text-center { text-align: center; }