/*
Theme Name: eContact Cloud
Theme URI: https://econtact.cloud
Author: eContact
Author URI: https://econtact.cloud
Description: Tema WordPress per eContact Cloud - Piattaforma di Automazione WhatsApp per E-commerce. Design moderno hero-mode con UX ottimizzata per conversioni.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: econtact
Tags: one-page, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

eContact Cloud - WhatsApp Marketing Automation Theme
*/

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* Brand Colors */
  --ec-green: #25D366;
  --ec-green-dark: #1da851;
  --ec-green-light: #e8f8ee;
  --ec-green-glow: rgba(37, 211, 102, 0.15);
  --ec-dark: #0a0a0a;
  --ec-dark-soft: #111827;
  --ec-dark-card: #1a1a2e;
  --ec-white: #ffffff;
  --ec-off-white: #f8faf9;
  --ec-gray-50: #f9fafb;
  --ec-gray-100: #f3f4f6;
  --ec-gray-200: #e5e7eb;
  --ec-gray-300: #d1d5db;
  --ec-gray-400: #9ca3af;
  --ec-gray-500: #6b7280;
  --ec-gray-600: #4b5563;
  --ec-gray-700: #374151;
  --ec-gray-800: #1f2937;
  --ec-gray-900: #111827;

  /* Typography */
  --ec-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ec-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --ec-section-padding: 100px 0;
  --ec-container-max: 1200px;
  --ec-container-padding: 0 24px;

  /* Borders & Radius */
  --ec-radius-sm: 8px;
  --ec-radius-md: 12px;
  --ec-radius-lg: 16px;
  --ec-radius-xl: 24px;
  --ec-radius-full: 9999px;

  /* Shadows */
  --ec-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --ec-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --ec-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --ec-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --ec-shadow-green: 0 4px 20px rgba(37, 211, 102, 0.3);

  /* Transitions */
  --ec-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ec-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--ec-font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ec-gray-800);
  background-color: var(--ec-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
	width:200px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--ec-transition);
}

ul, ol { list-style: none; }

.ec-container {
  max-width: var(--ec-container-max);
  margin: 0 auto;
  padding: var(--ec-container-padding);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ec-font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.ec-text-gradient {
  background: linear-gradient(135deg, var(--ec-green), #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ec-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--ec-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ec-label--green {
  background: var(--ec-green-glow);
  color: var(--ec-green);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

/* ============================================
   BUTTONS
   ============================================ */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--ec-radius-full);
  font-family: var(--ec-font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ec-transition);
  white-space: nowrap;
}

.ec-btn--primary {
  background: var(--ec-green);
  color: var(--ec-white);
  box-shadow: var(--ec-shadow-green);
}

.ec-btn--primary:hover {
  background: var(--ec-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.ec-btn--outline {
  background: transparent;
  color: var(--ec-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.ec-btn--outline:hover {
  border-color: var(--ec-white);
  background: rgba(255,255,255,0.1);
}

.ec-btn--dark {
  background: var(--ec-dark);
  color: var(--ec-white);
}

.ec-btn--dark:hover {
  background: var(--ec-dark-soft);
  transform: translateY(-2px);
}

.ec-btn--ghost {
  background: transparent;
  color: var(--ec-green);
  border: 2px solid var(--ec-green);
}

.ec-btn--ghost:hover {
  background: var(--ec-green);
  color: var(--ec-white);
}

.ec-btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.ec-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--ec-transition);
}

.ec-header--scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
}

.ec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--ec-container-max);
  margin: 0 auto;
  padding: var(--ec-container-padding);
}

.ec-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ec-white);
}

.ec-header__logo svg {
  width: 36px;
  height: 36px;
}

.ec-header__logo span {
  color: var(--ec-green);
}

.ec-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ec-header__nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.ec-header__nav a:hover {
  color: var(--ec-white);
}

.ec-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ec-header__login {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
}

.ec-header__login:hover {
  color: var(--ec-white);
}

.ec-header__cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Mobile menu toggle */
.ec-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ec-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ec-white);
  border-radius: 2px;
  transition: var(--ec-transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.ec-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0a0a0a 0%, #0d1f12 40%, #0a1a0e 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.ec-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ec-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ec-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ec-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--ec-radius-full);
  color: var(--ec-green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.ec-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--ec-green);
  border-radius: 50%;
  animation: ec-pulse 2s ease-in-out infinite;
}

@keyframes ec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.ec-hero__title {
  color: var(--ec-white);
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.1;
}

.ec-hero__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.ec-hero__stats {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.ec-hero__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ec-radius-full);
}

.ec-hero__stat-icon {
  color: var(--ec-green);
  font-size: 0.9rem;
}

.ec-hero__stat-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.ec-hero__stat-text strong {
  color: var(--ec-white);
}

.ec-hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* WhatsApp Chat Mockup */
.ec-hero__mockup {
  position: relative;
}

.ec-chat {
  background: var(--ec-dark-card);
  border-radius: var(--ec-radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: var(--ec-shadow-xl);
  max-width: 420px;
  margin-left: auto;
}

.ec-chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(37, 211, 102, 0.1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ec-chat__avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ec-green), #00e676);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ec-white);
  font-size: 0.9rem;
}

.ec-chat__info {
  flex: 1;
}

.ec-chat__name {
  color: var(--ec-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.ec-chat__status {
  color: var(--ec-green);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ec-chat__status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ec-green);
  border-radius: 50%;
}

.ec-chat__badge-tag {
  padding: 4px 10px;
  background: rgba(37, 211, 102, 0.15);
  border-radius: var(--ec-radius-full);
  color: var(--ec-green);
  font-size: 0.7rem;
  font-weight: 600;
}

.ec-chat__messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.ec-chat__msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: ec-msgIn 0.5s ease-out both;
}

.ec-chat__msg--bot {
  background: rgba(37, 211, 102, 0.12);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.ec-chat__msg--user {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.ec-chat__msg-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

.ec-chat__msg-label {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(37, 211, 102, 0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--ec-green);
  margin-bottom: 6px;
}

.ec-chat__revenue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(37, 211, 102, 0.08);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ec-chat__revenue-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

.ec-chat__revenue-amount {
  color: var(--ec-green);
  font-size: 1.1rem;
  font-weight: 700;
}

@keyframes ec-msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ec-chat__msg:nth-child(2) { animation-delay: 0.15s; }
.ec-chat__msg:nth-child(3) { animation-delay: 0.3s; }
.ec-chat__msg:nth-child(4) { animation-delay: 0.45s; }
.ec-chat__msg:nth-child(5) { animation-delay: 0.6s; }

/* ============================================
   LOGO BAR / INTEGRATIONS STRIP
   ============================================ */
.ec-logos {
  padding: 50px 0;
  background: var(--ec-off-white);
  border-top: 1px solid var(--ec-gray-200);
  border-bottom: 1px solid var(--ec-gray-200);
  overflow: hidden;
}

.ec-logos__title {
  text-align: center;
  color: var(--ec-gray-500);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

.ec-logos__track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: ec-scroll 30s linear infinite;
}

.ec-logos__item {
  flex-shrink: 0;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--ec-transition);
  height: 32px;
}

.ec-logos__item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes ec-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   PROBLEM / METRICS SECTION
   ============================================ */
.ec-problem {
  padding: var(--ec-section-padding);
  background: var(--ec-white);
}

.ec-problem__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.ec-problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.ec-metric-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--ec-gray-50);
  border: 1px solid var(--ec-gray-200);
  border-radius: var(--ec-radius-lg);
  transition: var(--ec-transition);
}

.ec-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow-lg);
  border-color: var(--ec-green);
}

.ec-metric-card__value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ec-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.ec-metric-card__value--danger {
  color: #ef4444;
}

.ec-metric-card__label {
  color: var(--ec-gray-500);
  font-size: 0.95rem;
}

.ec-problem__solution {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, var(--ec-green-light), var(--ec-white));
  border-radius: var(--ec-radius-lg);
  border: 1px solid rgba(37, 211, 102, 0.15);
}

.ec-problem__solution p {
  font-size: 1.15rem;
  color: var(--ec-gray-700);
}

.ec-problem__solution strong {
  color: var(--ec-green-dark);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.ec-features {
  padding: var(--ec-section-padding);
  background: var(--ec-off-white);
}

.ec-features__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.ec-features__subtitle {
  color: var(--ec-gray-500);
  font-size: 1.05rem;
  margin-top: 16px;
}

.ec-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ec-feature-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-gray-200);
  border-radius: var(--ec-radius-lg);
  padding: 36px 30px;
  transition: var(--ec-transition);
  position: relative;
  overflow: hidden;
}

.ec-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ec-green);
  transform: scaleX(0);
  transition: var(--ec-transition);
}

.ec-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow-lg);
  border-color: rgba(37, 211, 102, 0.3);
}

.ec-feature-card:hover::before {
  transform: scaleX(1);
}

.ec-feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ec-green-glow);
  border-radius: var(--ec-radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.ec-feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ec-dark);
  margin-bottom: 10px;
}

.ec-feature-card__desc {
  color: var(--ec-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ec-feature-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  background: var(--ec-green-light);
  border-radius: var(--ec-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ec-green-dark);
}

/* ============================================
   AI AGENT SECTION
   ============================================ */
.ec-ai {
  padding: var(--ec-section-padding);
  background: linear-gradient(160deg, #0a0a0a 0%, #0d1f12 100%);
  color: var(--ec-white);
  position: relative;
  overflow: hidden;
}

.ec-ai::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ec-ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ec-ai__content { }

.ec-ai__label {
  margin-bottom: 20px;
}

.ec-ai__title {
  margin-bottom: 20px;
}

.ec-ai__desc {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.ec-ai__comparison {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.ec-ai__compare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--ec-radius-md);
}

.ec-ai__compare-item--before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.ec-ai__compare-item--after {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.15);
}

.ec-ai__compare-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ec-ai__compare-item--before .ec-ai__compare-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.ec-ai__compare-item--after .ec-ai__compare-icon {
  background: rgba(37, 211, 102, 0.2);
  color: var(--ec-green);
}

.ec-ai__compare-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ec-ai__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ec-ai__stat-box {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ec-radius-md);
}

.ec-ai__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ec-green);
  margin-bottom: 4px;
}

.ec-ai__stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* AI Visual */
.ec-ai__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ec-ai__flow-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ec-radius-lg);
  transition: var(--ec-transition);
}

.ec-ai__flow-item:hover {
  background: rgba(37, 211, 102, 0.06);
  border-color: rgba(37, 211, 102, 0.2);
}

.ec-ai__flow-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.12);
  border-radius: var(--ec-radius-md);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ec-ai__flow-title {
  font-weight: 600;
  color: var(--ec-white);
  font-size: 0.95rem;
}

.ec-ai__flow-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.ec-pricing {
  padding: var(--ec-section-padding);
  background: var(--ec-white);
}

.ec-pricing__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.ec-pricing__subtitle {
  color: var(--ec-gray-500);
  font-size: 1.05rem;
  margin-top: 16px;
}

.ec-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.ec-price-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-gray-200);
  border-radius: var(--ec-radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: var(--ec-transition);
}

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

.ec-price-card--featured {
  border: 2px solid var(--ec-green);
  box-shadow: var(--ec-shadow-green);
  transform: scale(1.03);
}

.ec-price-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.ec-price-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--ec-green);
  color: var(--ec-white);
  border-radius: var(--ec-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.ec-price-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ec-dark);
  margin-bottom: 6px;
}

.ec-price-card__desc {
  color: var(--ec-gray-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.ec-price-card__price {
  margin-bottom: 24px;
}

.ec-price-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ec-dark);
  line-height: 1;
}

.ec-price-card__old {
  font-size: 1.2rem;
  color: var(--ec-gray-400);
  text-decoration: line-through;
  margin-right: 8px;
  font-weight: 400;
}

.ec-price-card__period {
  color: var(--ec-gray-500);
  font-size: 0.9rem;
}

.ec-price-card__features {
  margin-bottom: 32px;
}

.ec-price-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--ec-gray-600);
}

.ec-price-card__check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ec-green-light);
  color: var(--ec-green);
  border-radius: 50%;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ec-price-card__btn {
  width: 100%;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.ec-testimonials {
  padding: var(--ec-section-padding);
  background: var(--ec-off-white);
}

.ec-testimonials__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.ec-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ec-testimonial-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-gray-200);
  border-radius: var(--ec-radius-lg);
  padding: 32px;
  transition: var(--ec-transition);
}

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

.ec-testimonial-card__stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 16px;
}

.ec-testimonial-card__text {
  color: var(--ec-gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.ec-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ec-testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-green), #00e676);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-white);
  font-weight: 700;
  font-size: 0.85rem;
}

.ec-testimonial-card__name {
  font-weight: 600;
  color: var(--ec-dark);
  font-size: 0.9rem;
}

.ec-testimonial-card__role {
  color: var(--ec-gray-500);
  font-size: 0.8rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.ec-faq {
  padding: var(--ec-section-padding);
  background: var(--ec-white);
}

.ec-faq__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.ec-faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.ec-faq__item {
  border-bottom: 1px solid var(--ec-gray-200);
}

.ec-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ec-font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ec-dark);
  transition: var(--ec-transition);
}

.ec-faq__question:hover {
  color: var(--ec-green);
}

.ec-faq__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ec-gray-100);
  transition: var(--ec-transition);
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--ec-gray-500);
}

.ec-faq__item.active .ec-faq__icon {
  background: var(--ec-green);
  color: var(--ec-white);
  transform: rotate(45deg);
}

.ec-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.ec-faq__item.active .ec-faq__answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.ec-faq__answer p {
  color: var(--ec-gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.ec-cta {
  padding: 80px 0;
  background: linear-gradient(160deg, #0a0a0a 0%, #0d1f12 100%);
  position: relative;
  overflow: hidden;
}

.ec-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ec-cta__inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.ec-cta__title {
  color: var(--ec-white);
  margin-bottom: 16px;
}

.ec-cta__desc {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ec-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ec-cta__perks {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ec-cta__perk {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.ec-cta__perk-icon {
  color: var(--ec-green);
}

/* ============================================
   FOOTER
   ============================================ */
.ec-footer {
  padding: 60px 0 30px;
  background: var(--ec-dark);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ec-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.ec-footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 300px;
}

.ec-footer__heading {
  color: var(--ec-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ec-footer__links li { margin-bottom: 10px; }

.ec-footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.ec-footer__links a:hover {
  color: var(--ec-green);
}

.ec-footer__bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ec-footer__copy {
  font-size: 0.85rem;
}

.ec-footer__socials {
  display: flex;
  gap: 12px;
}

.ec-footer__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--ec-transition);
}

.ec-footer__social:hover {
  background: var(--ec-green);
  color: var(--ec-white);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.ec-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .ec-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ec-hero__mockup {
    order: -1;
  }

  .ec-chat {
    max-width: 380px;
    margin: 0 auto;
  }

  .ec-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ec-ai__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ec-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .ec-price-card--featured {
    transform: none;
  }

  .ec-testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .ec-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --ec-section-padding: 60px 0;
  }

  .ec-header__nav {
    display: none;
  }

  .ec-header__toggle {
    display: flex;
  }

  .ec-header__nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .ec-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .ec-hero__stats {
    flex-direction: column;
    gap: 10px;
  }

  .ec-hero__buttons {
    flex-direction: column;
  }

  .ec-hero__buttons .ec-btn {
    width: 100%;
  }

  .ec-problem__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ec-features__grid {
    grid-template-columns: 1fr;
  }

  .ec-ai__stats {
    grid-template-columns: 1fr;
  }

  .ec-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ec-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .ec-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .ec-cta__perks {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-post-content { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.entry-content h2 { margin: 32px 0 16px; }
.entry-content p { margin-bottom: 16px; line-height: 1.8; }
.entry-content img { border-radius: var(--ec-radius-md); margin: 24px 0; }

/* WordPress alignment classes */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { text-align: center; }

/* ============================================
   MANUALE & FAQ PLUGIN COMPATIBILITY
   ============================================ */

/* Guide cards hover from plugin archive */
.ec-feature-card:hover img {
  transform: scale(1.05);
}

/* FAQ accordion items from plugin */
.ecm-faq-item {
  transition: background-color 0.2s ease;
}

.ecm-faq-item:hover {
  background-color: rgba(37, 211, 102, 0.02);
}

.ecm-faq-toggle:hover {
  color: var(--ec-green) !important;
}

/* Guide article body styling */
.wp-block-post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ec-dark);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ec-green);
  display: inline-block;
}

.wp-block-post-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ec-dark);
  margin: 32px 0 12px;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.wp-block-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--ec-gray-600);
}

.wp-block-post-content a {
  color: var(--ec-green);
  text-decoration: none;
  font-weight: 500;
  transition: var(--ec-transition);
}

.wp-block-post-content a:hover {
  color: var(--ec-green-dark);
  text-decoration: underline;
}

.wp-block-post-content blockquote {
  border-left: 4px solid var(--ec-green);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--ec-green-light);
  border-radius: 0 var(--ec-radius-md) var(--ec-radius-md) 0;
  font-style: italic;
  color: var(--ec-gray-700);
}

.wp-block-post-content code {
  background: var(--ec-gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--ec-green-dark);
}

.wp-block-post-content pre {
  background: var(--ec-dark);
  color: #e5e7eb;
  padding: 24px;
  border-radius: var(--ec-radius-md);
  overflow-x: auto;
  margin: 24px 0;
}

.wp-block-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Search results styling */
#ecm-search-results a:hover {
  background: rgba(37, 211, 102, 0.08) !important;
}

/* Pagination for guide archive */
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ec-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--ec-transition);
}

.nav-links a {
  background: var(--ec-white);
  border: 1px solid var(--ec-gray-200);
  color: var(--ec-gray-600);
}

.nav-links a:hover {
  border-color: var(--ec-green);
  color: var(--ec-green);
}

.nav-links .current {
  background: var(--ec-green);
  color: var(--ec-white);
  border: 1px solid var(--ec-green);
}
