/* ============================================
   HOME.CSS — Studio Cambria
   Stili specifici per la homepage
   ============================================ */

/* ── HERO ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-surface);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  z-index: 4;
  pointer-events: none;
}

/* Griglia SVG animata */
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--brand-gold);
}

.hero-grid-base {
  opacity: 0.06;
  z-index: 1;
}

.hero-grid-reveal {
  opacity: 0.35;
  z-index: 2;
  -webkit-mask-image: radial-gradient(300px circle at -9999px -9999px, black, transparent);
  mask-image: radial-gradient(300px circle at -9999px -9999px, black, transparent);
}

/* Blob decorativi */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.hero-blob-gold {
  width: 40%;
  height: 40%;
  right: -10%;
  top: -15%;
  background: var(--gold-tint-strong);
  filter: blur(120px);
}

.hero-blob-navy {
  width: 35%;
  height: 35%;
  left: -8%;
  bottom: -15%;
  background: var(--navy-tint);
  filter: blur(120px);
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-accessible);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: var(--gold-tint);
  border-radius: var(--radius-sm);
}

.hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-semibold);
  color: var(--brand-navy);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  color: var(--brand-charcoal);
  opacity: 0.75;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
}

.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Hero button variants ── */
.btn-hero-primary {
  background: var(--color-accent);
  color: var(--brand-navy);
  border: 2px solid var(--color-accent);
  padding: 14px 32px;
}

.btn-hero-primary .btn-hover-dot {
  background: var(--color-accent);
}

.btn-hero-primary .btn-hover-content {
  color: var(--brand-navy);
}

.btn-hero-ghost {
  background: transparent;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy);
  padding: 14px 32px;
}

.btn-hero-ghost .btn-hover-dot {
  background: var(--brand-navy);
}

.btn-hero-ghost .btn-hover-content {
  color: var(--color-white);
}

/* ── Hero Stats Inline ── */
.hero-stats-inline {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.hero-stat-inline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-tint);
  flex-shrink: 0;
}

.stat-icon i {
  font-size: var(--text-lg);
  color: var(--color-accent);
}

.stat-number-inline {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--brand-navy);
  line-height: 1.2;
}

.stat-label-inline {
  display: block;
  font-size: var(--text-xs);
  color: var(--brand-stone);
}

/* ── Hero Collage ── */
.hero-collage {
  position: relative;
  height: 500px;
  width: 100%;
}

.hero-img {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}

.hero-img:hover {
  transform: scale(1.03);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
}

.hero-img-1 {
  width: 260px;
  height: 260px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-img-1:hover {
  transform: translateX(-50%) scale(1.03);
}

.hero-img-2 {
  width: 220px;
  height: 220px;
  right: 0;
  top: 35%;
  z-index: 2;
}

.hero-img-3 {
  width: 200px;
  height: 200px;
  left: 0;
  bottom: 0;
  z-index: 1;
}

/* Forme decorative flottanti */
.hero-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: heroFloat 3s ease-in-out infinite;
}

.hero-float-1 {
  width: 56px;
  height: 56px;
  background: var(--gold-tint-strong);
  left: 20%;
  top: -8px;
}

.hero-float-2 {
  width: 40px;
  height: 40px;
  background: var(--navy-tint);
  border-radius: var(--radius-md);
  right: 20%;
  bottom: 10%;
  animation-delay: 0.5s;
}

.hero-float-3 {
  width: 24px;
  height: 24px;
  background: var(--gold-tint);
  left: 5%;
  top: 40%;
  animation-delay: 1s;
}

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

/* ── TEXT REVEAL ── */

.text-reveal-section {
  position: relative;
  height: 200vh;
  background: var(--color-surface);
}

.text-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-padding);
}

.text-reveal-text {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.text-reveal-text .word {
  position: relative;
  margin: 0 0.25em;
  display: inline-block;
}

.text-reveal-text .word .word-bg {
  color: var(--brand-navy);
  opacity: 0.1;
}

.text-reveal-text .word .word-fg {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--brand-navy);
  opacity: 0;
  transition: none;
}

/* ── PROBLEMA ── */

.section-problem {
  background: var(--color-bg);
}

/* ── Bouncy Cards Grid ── */
.problem-row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.problem-row:last-child {
  margin-bottom: 0;
  grid-template-columns: 8fr 4fr;
}

/* Bounce card */
.problem-card {
  position: relative;
  min-height: 300px;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  padding: var(--space-8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.problem-card:hover {
  transform: scale(0.95) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

/* Card title */
.problem-title-card {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  text-align: center;
}

/* Slide-up panel */
.problem-card-slide {
  position: absolute;
  bottom: 0;
  left: var(--space-4);
  right: var(--space-4);
  top: 40%;
  transform: translateY(8px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, var(--slide-from), var(--slide-to));
  padding: var(--space-8) var(--space-6) var(--space-6);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.problem-card:hover .problem-card-slide {
  transform: translateY(4px) rotate(2deg);
}

.problem-slide-text {
  font-size: var(--text-sm);
  color: var(--color-white);
  text-align: center;
  line-height: var(--leading-relaxed);
  opacity: 0.9;
}

/* Icon in slide panel */
.problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.problem-icon i {
  font-size: var(--text-2xl);
  color: var(--color-white);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ── SOLUZIONE — Timeline ── */

.section-solution {
  position: relative;
  overflow: hidden;
}

.section-solution > .container {
  position: relative;
  z-index: 2;
}

.section-solution::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 137, 42, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Solution layout — two columns */
.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.solution-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.solution-step {
  display: flex;
  gap: var(--space-5);
}

.step-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
  line-height: 1;
  min-width: 48px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.step-text {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.6);
  line-height: var(--leading-relaxed);
}

.solution-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.solution-cta {
  margin-top: var(--space-12);
  text-align: center;
}

/* Magnetize button */
.btn-magnetize {
  background: rgba(201, 137, 42, 0.1);
  color: var(--brand-gold-light);
  border: 2px solid rgba(201, 137, 42, 0.35);
  padding: 14px 36px;
  font-size: var(--text-base);
  overflow: visible;
}

.btn-magnetize .btn-hover-dot {
  background: var(--color-accent);
  border-radius: 9999px;
  overflow: hidden;
}

.btn-magnetize .btn-hover-content {
  color: var(--brand-navy);
}

.magnetize-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.magnetize-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--brand-gold-light);
  opacity: 0.3;
  will-change: transform, opacity;
}

.magnetize-particle.attracted {
  opacity: 0.9;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.btn-magnetize:hover {
  border-color: rgba(201, 137, 42, 0.6);
  background: rgba(201, 137, 42, 0.15);
}

.solution-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  perspective: 1000px;
  animation: solutionFloat 6s ease-in-out infinite;
}

@keyframes solutionFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-6px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-14px) rotate(0.3deg);
  }
}

/* ── Holographic Card ── */
.holo-card {
  --x: 50%;
  --y: 50%;
  --bg-x: 50%;
  --bg-y: 50%;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease-out;
  will-change: transform;
  cursor: default;
}

.holo-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    350px circle at var(--bg-x) var(--bg-y),
    rgba(201, 137, 42, 0.2),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.holo-card:hover .holo-glow {
  opacity: 1;
}

/* Holographic shimmer stripe */
.holo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(201, 137, 42, 0.08) 45%,
    rgba(253, 250, 246, 0.12) 50%,
    rgba(201, 137, 42, 0.08) 55%,
    transparent 70%
  );
  background-size: 200% 200%;
  background-position: var(--bg-x) var(--bg-y);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 4;
}

.holo-card:hover::after {
  opacity: 1;
}

.solution-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(201, 137, 42, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.solution-card {
  position: relative;
  z-index: 1;
  padding: var(--space-10);
  text-align: center;
}

.solution-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(253, 250, 246, 0.7);
}

.solution-card-header i {
  font-size: var(--text-xl);
  color: var(--color-accent);
}

.solution-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  line-height: 1;
}

.solution-metric-label {
  display: block;
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.6);
  margin-top: var(--space-4);
}

/* ── SOCIAL PROOF ── */

.section-proof {
  background: var(--color-surface);
}

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

.proof-card {
  padding: var(--space-10);
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.proof-card-featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.proof-card-featured .proof-icon {
  background: rgba(201, 137, 42, 0.2);
}

.proof-card-featured .proof-number {
  color: var(--color-accent-light);
}

.proof-card-featured .proof-label,
.proof-card-featured .proof-sublabel {
  color: rgba(253, 250, 246, 0.8);
}

.proof-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
  border-radius: 50%;
  margin: 0 auto var(--space-6);
}

.proof-icon i {
  font-size: var(--text-2xl);
  color: var(--color-accent);
}

.proof-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-semibold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.proof-label {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.proof-sublabel {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.proof-trust {
  text-align: center;
  margin-top: var(--space-12);
}

.trust-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.trust-text i {
  color: var(--color-accent);
}

/* ── CASE STUDIES — Bento Grid ── */

.section-cases {
  background: var(--color-bg);
}

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

/* Card base */
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow:
    0 0 0 1px var(--color-card-shadow-ring),
    0 2px 4px var(--color-card-shadow),
    0 12px 24px var(--color-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Decorative floating icons */
.bento-card-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bento-card-deco i {
  position: absolute;
  color: var(--color-accent);
  opacity: 0.06;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.bento-card-deco i:nth-child(1) {
  font-size: 4rem;
  top: 8%;
  right: 6%;
  transform: rotate(-15deg);
}

.bento-card-deco i:nth-child(2) {
  font-size: 2.5rem;
  bottom: 30%;
  right: 25%;
  transform: rotate(10deg);
}

.bento-card-deco i:nth-child(3) {
  font-size: 3rem;
  top: 40%;
  right: 45%;
  transform: rotate(-5deg);
}

.bento-card:hover .bento-card-deco i {
  opacity: 0.12;
}

.bento-card:hover .bento-card-deco i:nth-child(1) {
  transform: rotate(-15deg) translateY(-6px) scale(1.08);
}

.bento-card:hover .bento-card-deco i:nth-child(2) {
  transform: rotate(10deg) translateX(5px);
}

.bento-card:hover .bento-card-deco i:nth-child(3) {
  transform: rotate(-5deg) translateY(5px) scale(1.04);
}

/* Content */
.bento-card-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.bento-card-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

.bento-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.bento-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.bento-card-bando {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  background: var(--navy-tint-light);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

/* Footer — always visible */
.bento-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-3);
}

.bento-card-location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.bento-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-accent);
}

/* Grid placement — 3x2 asymmetric */
.bento-card-1 {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}

.bento-card-2 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.bento-card-3 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.bento-card-4 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.bento-card-5 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

/* ── SERVIZI ── */

.section-services {
  position: relative;
}

.section-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 137, 42, 0.3), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.service-card {
  padding: var(--space-10);
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 137, 42, 0.15);
  border-radius: 50%;
  margin: 0 auto var(--space-8);
}

.service-icon i {
  font-size: var(--text-3xl);
  color: var(--color-accent);
}

.service-title {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.service-text {
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.6);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.service-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.7);
}

.service-list i {
  color: var(--color-accent);
  font-size: var(--text-sm);
}

/* ── FAQ ── */

.section-faq {
  background: var(--color-surface);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
}

.faq-heading {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-text);
  line-height: var(--leading-tight);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.faq-intro-text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.faq-intro-cta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.faq-intro-cta a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.faq-intro-cta a:hover {
  color: var(--color-accent-light);
}

/* Typewriter cursor */
.faq-answer .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── URGENZA ── */

.section-urgency {
  background: var(--color-bg);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.urgency-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-16);
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.urgency-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
  border-radius: 50%;
  margin: 0 auto var(--space-8);
}

.urgency-icon i {
  font-size: var(--text-3xl);
  color: var(--color-accent);
}

.urgency-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.urgency-text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.urgency-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.urgency-note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.urgency-note i {
  color: var(--color-accent);
}

.urgency-note a {
  color: var(--color-accent);
  font-weight: var(--font-medium);
}

/* ── FOOTER CTA ── */

.section-footer-cta {
  text-align: center;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.footer-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-semibold);
  color: var(--color-white);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-6);
}

.footer-cta-accent {
  color: var(--color-accent);
}

.footer-cta-text {
  font-size: var(--text-lg);
  color: rgba(253, 250, 246, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
}

.footer-cta-actions {
  margin-bottom: var(--space-12);
}

.footer-cta-info {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(253, 250, 246, 0.6);
}

.cta-info-item i {
  color: var(--color-accent);
}

.cta-info-item a {
  color: rgba(253, 250, 246, 0.6);
  transition: color var(--transition-fast);
}

.cta-info-item a:hover {
  color: var(--color-accent);
}

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .hero-collage {
    height: 400px;
  }

  .hero-img-1 { width: 220px; height: 220px; }
  .hero-img-2 { width: 180px; height: 180px; }
  .hero-img-3 { width: 160px; height: 160px; }

  .hero-stats-inline {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .bento-card-1,
  .bento-card-2,
  .bento-card-3,
  .bento-card-4,
  .bento-card-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .solution-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .solution-visual {
    order: -1;
  }

  .problem-row,
  .problem-row:last-child {
    grid-template-columns: 1fr 1fr;
  }

  .problem-card {
    min-height: 260px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-card-1,
  .bento-card-2,
  .bento-card-3,
  .bento-card-4,
  .bento-card-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .faq-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
  }
  
  .hero-collage {
    height: 300px;
  }

  .hero-img-1 { width: 180px; height: 180px; }
  .hero-img-2 { width: 150px; height: 150px; }
  .hero-img-3 { width: 140px; height: 140px; }

  .hero-stats-inline {
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-interactive {
    width: 100%;
  }
  
  .problem-row,
  .problem-row:last-child {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 340px;
  }

  .problem-card-slide {
    top: 30%;
  }

  .problem-title-card {
    font-size: var(--text-2xl);
  }

  .urgency-content {
    padding: var(--space-8);
  }
  
  .urgency-title {
    font-size: var(--text-2xl);
  }
  
  .footer-cta-info {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* ── PAGE TRAIL ── */

.page-trail-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.section-dark .page-trail-wrap {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.page-trail {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-accent);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.page-trail:hover {
  color: var(--color-accent-accessible);
  gap: var(--space-3);
}

html[data-theme="night"] .page-trail:hover {
  color: var(--color-accent);
}

.section-dark .page-trail {
  color: rgba(253, 250, 246, 0.45);
}

.section-dark .page-trail:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .page-trail-wrap {
    justify-content: center;
  }
}
