/*
====================================================================
ETRUSCAFORM - NUOVO DESIGN SYSTEM
====================================================================
Versione: 3.0 - Radical Redesign
Ispirazione: Arkadia Agency aesthetic

STRUTTURA:
1. CSS Variables & Reset
2. Typography System
3. Header & Navigation
4. Hero Section
5. Section Components
6. Service Cards (Numbered)
7. About Section
8. Partners/Logos
9. CTA Sections
10. Footer
11. WooCommerce Integration
12. LearnDash Integration
13. WPBakery Compatibility
14. Utilities & Animations
15. Responsive
====================================================================
*/

/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */

:root {
  /* Brand Colors */
  --color-primary: #39110e;
  --color-primary-light: #5a1b17;
  --color-primary-dark: #1a0908;
  --color-secondary: #d07c39;
  --color-secondary-dark: #b86a2d;
  --color-secondary-light: #e8a066;
  --color-gold: #c9a86c;
  
  /* Neutrals */
  --color-cream: #faf6f1;
  --color-warm-white: #fffcf8;
  --color-soft-brown: #8b5a3c;
  --color-text-dark: #2a1810;
  --color-text-light: #f5ebe0;
  --color-text-muted: rgba(250, 246, 241, 0.7);
  
  /* Functional */
  --color-success: #4a7c59;
  --color-error: #c44536;
  --color-info: #3d5a80;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(57, 17, 14, 0.08);
  --shadow-md: 0 4px 20px rgba(57, 17, 14, 0.12);
  --shadow-lg: 0 8px 40px rgba(57, 17, 14, 0.16);
  --shadow-xl: 0 20px 60px rgba(57, 17, 14, 0.2);
  --shadow-glow: 0 0 40px rgba(208, 124, 57, 0.3);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
  
  /* Layout */
  --container-width: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 50px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-warm-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-secondary-dark);
}

/* Remove default focus styles, add custom */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ============================================
   2. TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

h1, .h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h4, .h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h5, .h5 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

h6, .h6 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-soft-brown);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-soft-brown);
}

/* Section Labels */
.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-label--light {
  color: var(--color-gold);
}

/* Italic emphasis for titles */
.text-italic,
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--color-secondary);
}

/* ============================================
   3. HEADER & NAVIGATION (v1.1)
   ============================================ */

/* Hide default theme header on homepage */
.page-template-template-homepage .site-header,
.page-template-template-homepage .business-heading,
.page-template-template-homepage .woo-heading,
.page-template-template-homepage .top-header {
  display: none !important;
}

/* New Custom Header */
.ef-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.25rem 3rem;
  transition: all var(--transition-base);
}

.ef-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(57, 17, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
  z-index: -1;
}

/* Header trasparente SOLO su homepage */
.ef-header--transparent::before {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ef-header--transparent.ef-header--scrolled::before,
.ef-header--scrolled::before {
  background: rgba(57, 17, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.ef-header--scrolled {
  padding: 0.75rem 3rem;
}

.ef-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.ef-header__brand {
  flex-shrink: 0;
}

.ef-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.ef-logo:hover {
  color: var(--color-cream);
  transform: scale(1.02);
}

.ef-logo img,
.ef-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all var(--transition-base);
}

.ef-header--scrolled .ef-logo img,
.ef-header--scrolled .ef-logo-img {
  height: 40px;
}

/* Desktop Navigation */
.ef-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ef-nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ef-nav-menu li {
  position: relative;
}

.ef-nav-menu > li > a {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color var(--transition-base);
}

/* Animated underline */
.ef-nav-menu > li > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ef-nav-menu > li > a:hover::before,
.ef-nav-menu > li.current-menu-item > a::before {
  transform: scaleX(1);
  transform-origin: left;
}

.ef-nav-menu > li > a:hover {
  color: var(--color-secondary);
}

/* Submenu */
.ef-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-primary);
  min-width: 220px;
  padding: 1rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.ef-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ef-nav-menu .sub-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-cream);
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.ef-nav-menu .sub-menu a:hover {
  background: rgba(208, 124, 57, 0.15);
  color: var(--color-secondary);
  padding-left: 2rem;
}

/* Header Actions */
.ef-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* CTA Button in Header */
.ef-header__cta {
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
}

/* Cart Toggle */
.ef-header__cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-cream);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.ef-header__cart-toggle:hover {
  color: var(--color-secondary);
  transform: scale(1.1);
}

.ef-header__cart-toggle svg {
  width: 24px;
  height: 24px;
}

.ef-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-secondary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition-bounce);
}

.ef-cart-count.has-items {
  transform: scale(1);
}

/* Account Link */
.ef-header__account {
  color: var(--color-cream);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.ef-header__account:hover {
  color: var(--color-secondary);
  transform: scale(1.1);
}

.ef-header__account svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   3.1 HAMBURGER MENU (Animated SVG)
   ============================================ */

.ef-hamburger {
  cursor: pointer;
  display: none; /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.ef-hamburger input {
  display: none;
}

.ef-hamburger svg {
  height: 2.5rem;
  width: 2.5rem;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ef-hamburger .line {
  fill: none;
  stroke: var(--color-secondary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
              stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ef-hamburger .line-top-bottom {
  stroke-dasharray: 12 63;
}

.ef-hamburger input:checked + svg {
  transform: rotate(-45deg);
}

.ef-hamburger input:checked + svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

/* ============================================
   3.2 MOBILE NAVIGATION OVERLAY
   ============================================ */

.ef-mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ef-mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.ef-mobile-nav__inner {
  text-align: center;
  padding: 2rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.ef-mobile-nav.is-open .ef-mobile-nav__inner {
  transform: translateY(0);
  opacity: 1;
}

.ef-mobile-nav__menu {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.ef-mobile-nav__menu li {
  margin-bottom: 0;
  overflow: hidden;
}

.ef-mobile-nav__menu > li > a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  color: var(--color-cream);
  padding: 0.75rem 0;
  position: relative;
  transition: all var(--transition-base);
}

.ef-mobile-nav__menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--color-secondary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ef-mobile-nav__menu > li > a:hover {
  color: var(--color-secondary);
}

.ef-mobile-nav__menu > li > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile submenu */
.ef-mobile-nav__menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ef-mobile-nav__menu li:hover .sub-menu {
  max-height: 300px;
}

.ef-mobile-nav__menu .sub-menu a {
  display: block;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
}

.ef-mobile-nav__footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 241, 0.1);
}

.ef-mobile-nav__social {
  margin-top: 2rem;
  justify-content: center;
}

/* ============================================
   3.3 CART SIDEBAR (Slide-in)
   ============================================ */

.ef-cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--color-warm-white);
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
}

.ef-cart-sidebar.is-open {
  transform: translateX(0);
}

.ef-cart-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(57, 17, 14, 0.1);
  background: var(--color-cream);
}

.ef-cart-sidebar__header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

.ef-cart-sidebar__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
  transition: all var(--transition-base);
  border-radius: 50%;
}

.ef-cart-sidebar__close:hover {
  background: rgba(57, 17, 14, 0.1);
  color: var(--color-secondary);
  transform: rotate(90deg);
}

.ef-cart-sidebar__content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}

/* Style WooCommerce mini cart inside sidebar */
.ef-cart-sidebar .woocommerce-mini-cart {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ef-cart-sidebar .woocommerce-mini-cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(57, 17, 14, 0.08);
}

.ef-cart-sidebar .woocommerce-mini-cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.ef-cart-sidebar .woocommerce-mini-cart-item .quantity {
  color: var(--color-soft-brown);
  font-size: 0.9rem;
}

.ef-cart-sidebar .woocommerce-mini-cart-item .amount {
  color: var(--color-primary);
  font-weight: 600;
}

.ef-cart-sidebar .woocommerce-mini-cart-item .remove {
  color: var(--color-error);
  font-size: 1.25rem;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.ef-cart-sidebar .woocommerce-mini-cart-item .remove:hover {
  opacity: 1;
}

.ef-cart-sidebar .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  margin-top: 1rem;
  border-top: 2px solid var(--color-primary);
  font-size: 1.1rem;
}

.ef-cart-sidebar .woocommerce-mini-cart__total strong {
  color: var(--color-primary);
}

.ef-cart-sidebar .woocommerce-mini-cart__total .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.ef-cart-sidebar .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

.ef-cart-sidebar .woocommerce-mini-cart__buttons a {
  display: block;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.ef-cart-sidebar .woocommerce-mini-cart__buttons .wc-forward:first-child {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.ef-cart-sidebar .woocommerce-mini-cart__buttons .wc-forward:first-child:hover {
  background: var(--color-primary);
  color: var(--color-cream);
}

.ef-cart-sidebar .woocommerce-mini-cart__buttons .checkout {
  background: var(--color-secondary);
  color: white;
}

.ef-cart-sidebar .woocommerce-mini-cart__buttons .checkout:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

/* Empty cart */
.ef-cart-sidebar .woocommerce-mini-cart__empty-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-soft-brown);
}

/* Cart Overlay */
.ef-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.ef-cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Body lock when cart/menu is open */
body.cart-open,
body.menu-open {
  overflow: hidden;
}

/* ============================================
   4. HERO SECTION
   ============================================ */

.ef-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, #0d0504 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-lg);
}

/* Noise texture overlay */
.ef-hero::before {
  content: '';
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Decorative dot pattern */
.ef-hero__pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.05;
  background-image: 
    radial-gradient(circle at 30% 20%, var(--color-secondary) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, var(--color-gold) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, var(--color-secondary) 0.5px, transparent 0.5px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
  pointer-events: none;
}

.ef-hero__content {
  text-align: center;
  z-index: 10;
  max-width: 900px;
}

.ef-hero__badge {
  display: inline-block;
  background: rgba(208, 124, 57, 0.15);
  border: 1px solid rgba(208, 124, 57, 0.3);
  color: var(--color-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.ef-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  color: var(--color-cream);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.ef-hero__title em {
  display: block;
  font-style: italic;
  color: var(--color-secondary);
}

.ef-hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-weight: 300;
}

.ef-hero__ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.ef-hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: ef-bounce 2s infinite;
}

.ef-hero__scroll span {
  font-size: 0.75rem;
  color: rgba(250, 246, 241, 0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ef-hero__scroll svg {
  width: 24px;
  height: 24px;
  stroke: rgba(250, 246, 241, 0.5);
}

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

/* ============================================
   5. SECTION COMPONENTS
   ============================================ */

.ef-section {
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}

.ef-section--dark {
  background: var(--color-primary);
  color: var(--color-cream);
}

.ef-section--dark h2,
.ef-section--dark h3,
.ef-section--dark h4 {
  color: var(--color-cream);
}

.ef-section--dark p {
  color: var(--color-text-muted);
}

.ef-section--cream {
  background: var(--color-cream);
}

.ef-section--gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a0d0a 100%);
}

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

.ef-container--narrow {
  max-width: var(--container-narrow);
}

.ef-container--wide {
  max-width: var(--container-wide);
}

.ef-section__header {
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-xl);
}

/* Grid layouts */
.ef-grid {
  display: grid;
  gap: var(--space-md);
}

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

.ef-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ef-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.ef-grid--asymmetric {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* ============================================
   6. SERVICE CARDS (Numbered - Arkadia Style)
   ============================================ */

.ef-services {
  background: var(--color-primary);
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.ef-services::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 124, 57, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ef-service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 2rem;
  position: relative;
  transition: all var(--transition-slow);
  overflow: hidden;
}

.ef-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.ef-service-card:hover::before {
  transform: scaleX(1);
}

.ef-service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-8px);
}

.ef-service-card__number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--color-secondary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.ef-service-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-cream);
  margin-bottom: 1rem;
}

.ef-service-card__desc {
  font-size: 0.95rem;
  color: rgba(250, 246, 241, 0.6);
  line-height: 1.7;
  margin-bottom: 0;
}

.ef-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 2rem;
  transition: gap var(--transition-base);
}

.ef-service-card__link:hover {
  gap: 1rem;
  color: var(--color-secondary);
}

.ef-service-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ============================================
   7. ABOUT SECTION
   ============================================ */

.ef-about {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-warm-white);
}

.ef-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.ef-about__visual {
  position: relative;
}

.ef-about__image {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
  position: relative;
  overflow: hidden;
}

.ef-about__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d07c39' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ef-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ef-about__accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  height: 250px;
  background: var(--color-secondary);
  z-index: -1;
}

.ef-about__stats {
  position: absolute;
  bottom: 2rem;
  left: -3rem;
  background: var(--color-warm-white);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.ef-about__stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.ef-about__stat-label {
  font-size: 0.85rem;
  color: var(--color-soft-brown);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ef-about__content {
  padding: var(--space-md) 0;
}

/* Features grid */
.ef-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.ef-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ef-feature__icon {
  width: 48px;
  height: 48px;
  background: rgba(208, 124, 57, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ef-feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-secondary);
}

.ef-feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.ef-feature__desc {
  font-size: 0.9rem;
  color: var(--color-soft-brown);
  margin: 0;
}

/* ============================================
   8. PARTNERS / LOGOS SECTION
   ============================================ */

.ef-partners {
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-cream);
}

.ef-partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.ef-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.ef-partner:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.ef-partner img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}

/* ============================================
   9. CTA SECTIONS
   ============================================ */

.ef-cta {
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a0d0a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ef-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(208, 124, 57, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 108, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.ef-cta__content {
  position: relative;
  z-index: 10;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.ef-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--color-cream);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.ef-cta__title em {
  font-style: italic;
  color: var(--color-secondary);
}

.ef-cta__text {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.ef-cta__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   10. BUTTONS
   ============================================ */

.ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.ef-btn--primary {
  background: var(--color-secondary);
  color: var(--color-warm-white);
}

.ef-btn--primary:hover {
  background: var(--color-gold);
  color: var(--color-warm-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.ef-btn--secondary {
  background: transparent;
  color: var(--color-cream);
  border: 1px solid rgba(250, 246, 241, 0.3);
}

.ef-btn--secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.ef-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.ef-btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-cream);
}

.ef-btn--small {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

.ef-btn--large {
  padding: 1.25rem 3rem;
  font-size: 1rem;
}

/* ============================================
   11. FOOTER
   ============================================ */

.ef-footer {
  background: #0d0504;
}

.ef-footer__main {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.ef-footer__grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.ef-footer__brand .ef-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-cream);
  text-decoration: none;
  margin-bottom: 1rem;
}

.ef-footer__brand .ef-logo img {
  max-height: 50px;
  width: auto;
}

.ef-footer__brand p {
  color: rgba(250, 246, 241, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
  margin-top: 1rem;
}

/* Social Links Component - v1.4.1 Branded Hover FIXED */
.ef-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.ef-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.ef-social__link svg {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
  fill: currentColor;
}

/* LinkedIn - Blu */
.ef-social__linkedin:hover {
  color: #0077b5 !important;
}

.ef-social__linkedin:hover svg {
  transform: scale(1.2);
  fill: #0077b5 !important;
}

/* Facebook - Blu */
.ef-social__facebook:hover {
  color: #1877f2 !important;
}

.ef-social__facebook:hover svg {
  transform: scale(1.2);
  fill: #1877f2 !important;
}

/* Instagram - Rosa/Magenta */
.ef-social__instagram:hover {
  color: #e1306c !important;
}

.ef-social__instagram:hover svg {
  transform: scale(1.2);
  fill: #e1306c !important;
}

/* Twitter/X - Nero */
.ef-social__twitter:hover {
  color: #000000 !important;
}

.ef-social__twitter:hover svg {
  transform: scale(1.2);
  fill: #000000 !important;
}

/* YouTube - Rosso */
.ef-social__youtube:hover {
  color: #ff0000 !important;
}

.ef-social__youtube:hover svg {
  transform: scale(1.2);
  fill: #ff0000 !important;
}

/* Footer social - colore chiaro di default */
.ef-footer__social .ef-social__link {
  color: var(--color-cream);
}

.ef-footer__social .ef-social__link svg {
  fill: var(--color-cream);
}

.ef-footer__social {
  margin-top: 1.5rem;
}

/* Responsive social */
@media (max-width: 768px) {
  .ef-social {
    gap: 0.75rem;
  }
  
  .ef-social__link svg {
    width: 24px;
    height: 24px;
  }
}

.ef-footer__column h4 {
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.ef-footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ef-footer__column li {
  margin-bottom: 0.75rem;
}

.ef-footer__column a {
  color: rgba(250, 246, 241, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.ef-footer__column a:hover {
  color: var(--color-secondary);
}

.ef-footer__bottom {
  border-top: 1px solid rgba(250, 246, 241, 0.1);
  padding: var(--space-md) var(--space-lg);
}

.ef-footer__bottom-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ef-footer__copyright,
.ef-footer__links {
  color: rgba(250, 246, 241, 0.4);
  font-size: 0.85rem;
  margin: 0;
}

.ef-footer__links a {
  color: rgba(250, 246, 241, 0.4);
  text-decoration: none;
  transition: color var(--transition-base);
}

.ef-footer__links a:hover {
  color: var(--color-secondary);
}

.ef-footer__links .sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Hide theme's default footer on homepage */
.page-template-template-homepage #content-footer-section,
.page-template-template-homepage .site-footer,
.page-template-template-homepage footer:not(.ef-footer) {
  display: none !important;
}

/* ============================================
   12. WOOCOMMERCE INTEGRATION (v1.2)
   ============================================ */

/* Products Grid - Uniform Cards */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products[class*="columns-4"] {
  grid-template-columns: repeat(4, 1fr);
}

.woocommerce ul.products[class*="columns-2"] {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
  .woocommerce ul.products,
  .woocommerce ul.products[class*="columns-4"],
  .woocommerce ul.products[class*="columns-3"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .woocommerce ul.products,
  .woocommerce ul.products[class*="columns-4"],
  .woocommerce ul.products[class*="columns-3"],
  .woocommerce ul.products[class*="columns-2"] {
    grid-template-columns: 1fr;
  }
}

/* Product Card - Uniform Height */
.woocommerce .products .product,
.woocommerce-page .products .product {
  display: flex !important;
  flex-direction: column;
  background: var(--color-warm-white);
  border: 1px solid rgba(57, 17, 14, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce .products .product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Product Image - Fixed Aspect Ratio */
.woocommerce .products .product .woocommerce-loop-product__link {
  display: block;
}

.woocommerce .products .product img,
.woocommerce .products .product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin: 0 !important;
  display: block;
}

/* Product Content */
.woocommerce .products .product .woocommerce-loop-product__title,
.woocommerce .products .product h2 {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: var(--color-primary) !important;
  padding: 1.25rem 1.25rem 0.5rem !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  min-height: 3.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce .products .product .price {
  padding: 0 1.25rem !important;
  margin: 0 0 1rem !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--color-secondary) !important;
}

.woocommerce .products .product .price del {
  color: var(--color-soft-brown);
  font-size: 0.9rem;
  opacity: 0.7;
}

.woocommerce .products .product .price ins {
  text-decoration: none;
  color: var(--color-secondary);
}

/* Add to Cart Button */
.woocommerce .products .product .button,
.woocommerce .products .product a.add_to_cart_button {
  margin: auto 1.25rem 1.25rem !important;
  padding: 0.85rem 1.5rem !important;
  font-size: 0.85rem !important;
  text-align: center;
  display: block;
  width: calc(100% - 2.5rem) !important;
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all var(--transition-base) !important;
}

.woocommerce .products .product .button:hover,
.woocommerce .products .product a.add_to_cart_button:hover {
  background: var(--color-primary) !important;
  color: var(--color-cream) !important;
  transform: none !important;
}

/* Sale Badge */
.woocommerce .products .product .onsale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-secondary);
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  z-index: 10;
}

/* Out of Stock */
.woocommerce .products .product.outofstock .woocommerce-loop-product__link::after {
  content: 'Esaurito';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(57, 17, 14, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* Star Rating */
.woocommerce .products .product .star-rating {
  margin: 0 1.25rem 0.5rem !important;
  font-size: 0.85rem;
}

/* General WooCommerce Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--color-secondary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.85rem 1.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.9rem !important;
  transition: all var(--transition-base) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-secondary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--color-primary) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--color-primary-light) !important;
}

/* Price Display */
.woocommerce .price {
  color: var(--color-primary) !important;
  font-weight: 700;
  font-size: 1.1rem;
}

.woocommerce .price ins {
  text-decoration: none;
  color: var(--color-secondary);
}

/* Cart & Checkout styling */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  padding: var(--space-lg) 0;
}

/* Shop Page Header */
.woocommerce-products-header {
  text-align: center;
  padding: var(--space-lg) 0;
}

.woocommerce-products-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
}

/* Result Count & Ordering */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 2rem;
}

.woocommerce .woocommerce-ordering select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid rgba(57, 17, 14, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
  margin-top: var(--space-lg);
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  background: var(--color-cream);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--color-secondary);
  color: white;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--color-primary);
  color: white;
}

/* Single Product */
.woocommerce div.product {
  padding: var(--space-lg) 0;
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.woocommerce div.product .summary {
  padding-left: 2rem;
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: var(--space-lg);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid rgba(57, 17, 14, 0.1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-soft-brown);
  font-weight: 500;
  position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--color-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
  transform: scaleX(1);
}

/* ============================================
   13. LEARNDASH INTEGRATION
   ============================================ */

/* LearnDash courses list */
.ld-course-list-items .ld-course-list-item,
.learndash-wrapper .ld-item-list .ld-item-list-item {
  background: var(--color-warm-white);
  border: 1px solid rgba(57, 17, 14, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  margin-bottom: var(--space-sm);
}

.ld-course-list-items .ld-course-list-item:hover,
.learndash-wrapper .ld-item-list .ld-item-list-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* LearnDash buttons */
.learndash-wrapper .ld-button,
.learndash-wrapper input[type="submit"] {
  background: var(--color-secondary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  transition: all var(--transition-base) !important;
}

.learndash-wrapper .ld-button:hover {
  background: var(--color-secondary-dark) !important;
  transform: translateY(-2px);
}

/* Progress bar */
.learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage {
  background: var(--color-secondary);
}

/* ============================================
   14. WPBAKERY COMPATIBILITY
   ============================================ */

/* Override WPBakery defaults while keeping functionality */
.vc_row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.vc_column_container > .vc_column-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* WPBakery buttons with new style */
.vc_general.vc_btn3,
.vc_btn3-container a.vc_general {
  background: var(--color-secondary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all var(--transition-base) !important;
  box-shadow: none !important;
}

.vc_general.vc_btn3:hover {
  background: var(--color-secondary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Text blocks */
.wpb_text_column {
  color: var(--color-soft-brown);
}

.wpb_text_column h1,
.wpb_text_column h2,
.wpb_text_column h3,
.wpb_text_column h4 {
  color: var(--color-primary);
}

/* ============================================
   15. UTILITIES & ANIMATIONS (v1.2)
   ============================================ */

/* Page Loading Animation */
.site {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded .site {
  opacity: 1;
}

/* Page Loader */
.ef-page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-warm-white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.loaded .ef-page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ef-page-loader__spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(57, 17, 14, 0.1);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade in animation */
.ef-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ef-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in up */
.ef-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

body.loaded .ef-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children */
.ef-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.ef-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.ef-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.ef-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.ef-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.ef-stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* Stagger fade up */
body.loaded .ef-stagger-up > *:nth-child(1) { animation-delay: 0.1s; }
body.loaded .ef-stagger-up > *:nth-child(2) { animation-delay: 0.15s; }
body.loaded .ef-stagger-up > *:nth-child(3) { animation-delay: 0.2s; }
body.loaded .ef-stagger-up > *:nth-child(4) { animation-delay: 0.25s; }
body.loaded .ef-stagger-up > *:nth-child(5) { animation-delay: 0.3s; }
body.loaded .ef-stagger-up > *:nth-child(6) { animation-delay: 0.35s; }

.ef-stagger-up > * {
  opacity: 0;
  transform: translateY(30px);
}

body.loaded .ef-stagger-up > * {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scale in */
.ef-scale-in {
  opacity: 0;
  transform: scale(0.95);
}

body.loaded .ef-scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide in from left */
.ef-slide-left {
  opacity: 0;
  transform: translateX(-30px);
}

body.loaded .ef-slide-left {
  animation: slideLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
.ef-slide-right {
  opacity: 0;
  transform: translateX(30px);
}

body.loaded .ef-slide-right {
  animation: slideRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Skeleton loading effect */
.ef-skeleton {
  background: linear-gradient(90deg, 
    rgba(57, 17, 14, 0.05) 25%, 
    rgba(57, 17, 14, 0.1) 50%, 
    rgba(57, 17, 14, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Image lazy load effect */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox */
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Colors */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-cream { color: var(--color-cream); }
.text-muted { color: var(--color-soft-brown); }
.bg-primary { background-color: var(--color-primary); }
.bg-cream { background-color: var(--color-cream); }

/* Back to top button */
.ef-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 9998;
}

.ef-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ef-back-to-top:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ef-back-to-top::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ============================================
   16. RESPONSIVE (v1.1)
   ============================================ */

/* Large Desktop */
@media (max-width: 1400px) {
  .ef-header {
    padding: 1.25rem 2rem;
  }
  
  .ef-header--scrolled {
    padding: 0.75rem 2rem;
  }
  
  .ef-nav-menu {
    gap: 2rem;
  }
}

@media (max-width: 1200px) {
  .ef-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ef-partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet - Show hamburger, hide desktop nav */
@media (max-width: 992px) {
  :root {
    --space-2xl: 6rem;
    --space-xl: 4rem;
  }
  
  .ef-header {
    padding: 1rem 1.5rem;
  }
  
  .ef-header--scrolled {
    padding: 0.75rem 1.5rem;
  }
  
  /* Hide desktop nav */
  .ef-header__nav {
    display: none;
  }
  
  /* Show hamburger */
  .ef-hamburger {
    display: flex;
  }
  
  /* Hide CTA on tablet */
  .ef-header__cta {
    display: none;
  }
  
  .ef-about__grid,
  .ef-grid--asymmetric {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .ef-about__visual {
    order: -1;
  }
  
  .ef-about__stats {
    left: 1rem;
    bottom: 1rem;
  }
  
  .ef-about__accent {
    display: none;
  }
  
  .ef-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Cart sidebar full width on tablet */
  .ef-cart-sidebar {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
    --space-xl: 3rem;
    --space-lg: 2rem;
  }
  
  .ef-header {
    padding: 1rem;
  }
  
  .ef-header--scrolled {
    padding: 0.75rem 1rem;
  }
  
  .ef-section {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .ef-hero {
    padding: var(--space-md);
    min-height: 100svh;
  }
  
  .ef-hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .ef-btn {
    width: 100%;
    text-align: center;
  }
  
  .ef-grid--2,
  .ef-grid--3,
  .ef-grid--4 {
    grid-template-columns: 1fr;
  }
  
  .ef-features {
    grid-template-columns: 1fr;
  }
  
  .ef-partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .ef-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .ef-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .ef-back-to-top {
    width: 45px;
    height: 45px;
    bottom: 90px;
    right: 20px;
  }
  
  /* Mobile nav adjustments */
  .ef-mobile-nav__menu > li > a {
    font-size: 2rem;
    padding: 0.5rem 0;
  }
  
  /* Cart sidebar full width on mobile */
  .ef-cart-sidebar {
    max-width: 100%;
  }
  
  .ef-cart-sidebar__header {
    padding: 1.25rem 1.5rem;
  }
  
  .ef-cart-sidebar__content {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .ef-header {
    padding: 0.75rem 1rem;
  }
  
  .ef-logo {
    font-size: 1.3rem;
  }
  
  .ef-logo img,
  .ef-logo-img {
    height: 36px;
  }
  
  .ef-hamburger svg {
    height: 2rem;
    width: 2rem;
  }
  
  .ef-header__cart-toggle svg,
  .ef-header__account svg {
    width: 20px;
    height: 20px;
  }
  
  .ef-header__actions {
    gap: 0.5rem;
  }
  
  .ef-hero__badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  
  .ef-service-card {
    padding: 2rem 1.5rem;
  }
  
  .ef-service-card__number {
    font-size: 3rem;
  }
  
  .ef-mobile-nav__menu > li > a {
    font-size: 1.75rem;
  }
}

/* ============================================
   17. PRINT STYLES
   ============================================ */

@media print {
  .ef-header,
  .ef-back-to-top,
  .ef-hero__scroll {
    display: none !important;
  }
  
  .ef-hero {
    min-height: auto;
    padding: 2rem;
    background: white !important;
  }
  
  .ef-hero__title,
  .ef-hero__subtitle {
    color: black !important;
  }
  
  .ef-section--dark {
    background: white !important;
    color: black !important;
  }
}

/* ============================================
   18. SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-dark);
}

/* ============================================
   19. SELECTION
   ============================================ */

::selection {
  background-color: var(--color-secondary);
  color: white;
}

::-moz-selection {
  background-color: var(--color-secondary);
  color: white;
}

/* ============================================
   20. THEME STANDALONE STYLES
   ============================================ */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Page Header */
.ef-page-header {
  background: var(--color-primary);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.ef-page-title {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  margin: 0;
}

.archive-description {
  color: rgba(250, 246, 241, 0.7);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Content Area */
.ef-content-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.ef-content-area.has-sidebar {
  grid-template-columns: 1fr 320px;
}

@media (max-width: 992px) {
  .ef-content-area.has-sidebar {
    grid-template-columns: 1fr;
  }
}

.ef-content--page .entry-content,
.ef-content--single .entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.ef-content--page .entry-content p,
.ef-content--single .entry-content p {
  margin-bottom: 1.5rem;
}

.ef-content--page .entry-content h2,
.ef-content--single .entry-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.ef-content--page .entry-content h3,
.ef-content--single .entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.ef-content--page .entry-content img,
.ef-content--single .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.ef-content--page .entry-content blockquote,
.ef-content--single .entry-content blockquote {
  border-left: 4px solid var(--color-secondary);
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: rgba(208, 124, 57, 0.05);
  font-style: italic;
}

/* Posts Grid */
.ef-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

/* Post Card */
.ef-post-card {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(57, 17, 14, 0.08);
  transition: all var(--transition-base);
}

.ef-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Image wrapper for countdown and wishlist positioning */
.ef-post-card__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.ef-post-card__image-wrapper .ef-countdown {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.ef-post-card__image-wrapper .ef-wishlist-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
}

.ef-post-card__image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.ef-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ef-post-card:hover .ef-post-card__image img {
  transform: scale(1.05);
}

.ef-post-card__content {
  padding: 1.5rem;
}

.ef-post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-soft-brown);
  margin-bottom: 0.75rem;
}

.ef-post-card__meta .sep {
  opacity: 0.5;
}

/* Hide the updated date when it's not also the published date (fix duplicate dates) */
.ef-post-card__meta .posted-on time.updated:not(.published) {
  display: none;
}

.ef-post-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.ef-post-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.ef-post-card__title a:hover {
  color: var(--color-secondary);
}

.ef-post-card__excerpt {
  color: var(--color-soft-brown);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ef-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: gap var(--transition-base);
}

.ef-post-card__link:hover {
  gap: 0.75rem;
}

/* Single Post */
.ef-single-post__header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.ef-single-post__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ef-single-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ef-single-post__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(57, 17, 14, 0.9), transparent);
}

.ef-single-post__image--placeholder {
  background: var(--color-primary);
}

.ef-single-post__header-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-lg) 0;
}

.ef-single-post__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(250, 246, 241, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ef-single-post__meta a {
  color: rgba(250, 246, 241, 0.7);
  text-decoration: none;
}

.ef-single-post__meta a:hover {
  color: var(--color-secondary);
}

.ef-single-post__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--color-cream);
  margin: 0;
  max-width: 900px;
}

.entry-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(57, 17, 14, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-soft-brown);
}

.entry-footer a {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Post Navigation */
.ef-post-navigation {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(57, 17, 14, 0.1);
}

.ef-post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.ef-post-navigation .nav-previous,
.ef-post-navigation .nav-next {
  padding: 1.5rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.ef-post-navigation .nav-previous:hover,
.ef-post-navigation .nav-next:hover {
  background: var(--color-primary);
}

.ef-post-navigation .nav-previous:hover *,
.ef-post-navigation .nav-next:hover * {
  color: var(--color-cream);
}

.ef-post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-soft-brown);
  margin-bottom: 0.5rem;
}

.ef-post-navigation .nav-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
}

.ef-post-navigation .nav-next {
  text-align: right;
}

@media (max-width: 768px) {
  .ef-post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.ef-sidebar {
  background: var(--color-cream);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  height: fit-content;
}

.ef-sidebar .widget {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(57, 17, 14, 0.1);
}

.ef-sidebar .widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ef-sidebar .widget-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.ef-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ef-sidebar li {
  margin-bottom: 0.5rem;
}

.ef-sidebar a {
  color: var(--color-soft-brown);
  text-decoration: none;
  transition: color var(--transition-base);
}

.ef-sidebar a:hover {
  color: var(--color-secondary);
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(57, 17, 14, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-base);
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.search-form .search-submit {
  padding: 0.75rem 1.25rem;
  background: var(--color-secondary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-base);
}

.search-form .search-submit:hover {
  background: var(--color-secondary-dark);
}

/* Search Results */
.ef-search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-warm-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 17, 14, 0.08);
  margin-bottom: var(--space-sm);
}

.ef-search-result__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.ef-search-result__title a {
  color: var(--color-primary);
  text-decoration: none;
}

.ef-search-result__title a:hover {
  color: var(--color-secondary);
}

.ef-search-result__meta {
  font-size: 0.85rem;
  color: var(--color-soft-brown);
  margin-bottom: 0.75rem;
}

.ef-search-result__excerpt {
  color: var(--color-soft-brown);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ef-search-result__image {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ef-search-result__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No Results */
.ef-no-results {
  text-align: center;
  padding: var(--space-xl);
}

.ef-no-results__title {
  font-family: var(--font-display);
  color: var(--color-primary);
}

/* 404 Page */
.ef-error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.ef-error-404__code {
  display: block;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  opacity: 0.3;
}

.ef-error-404__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 1rem 0;
}

.ef-error-404__desc {
  color: var(--color-soft-brown);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.ef-error-404__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ef-error-404__search {
  max-width: 400px;
  margin: 0 auto;
}

.ef-error-404__search p {
  color: var(--color-soft-brown);
  margin-bottom: 1rem;
}

/* Comments */
.ef-comments {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(57, 17, 14, 0.1);
}

.ef-comments__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.ef-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ef-comment-list .comment-body {
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.ef-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ef-comment-list .comment-author img {
  border-radius: 50%;
}

.ef-comment-list .comment-author .fn {
  font-weight: 600;
  color: var(--color-primary);
}

.ef-comment-list .comment-metadata {
  font-size: 0.85rem;
  color: var(--color-soft-brown);
  margin-bottom: 1rem;
}

.ef-comment-list .comment-content {
  color: var(--color-soft-brown);
  line-height: 1.7;
}

.ef-comment-list .reply a {
  font-size: 0.85rem;
  color: var(--color-secondary);
  text-decoration: none;
}

.ef-comment-list .children {
  list-style: none;
  padding-left: var(--space-md);
  margin-top: var(--space-sm);
}

.ef-comments__closed {
  color: var(--color-soft-brown);
  font-style: italic;
}

/* Comment Form */
.ef-comment-respond {
  margin-top: var(--space-md);
}

.ef-comment-form label {
  display: block;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-comment-form input[type="text"],
.ef-comment-form input[type="email"],
.ef-comment-form input[type="url"],
.ef-comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(57, 17, 14, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition-base);
}

.ef-comment-form input:focus,
.ef-comment-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.ef-comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  background: var(--color-cream);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  background: var(--color-secondary);
  color: white;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--color-primary);
  color: white;
}

/* Post Thumbnail */
.post-thumbnail {
  margin-bottom: var(--space-md);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Page Links (multi-page posts) */
.page-links {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(57, 17, 14, 0.1);
}

/* Edit Link */
.edit-link a {
  color: var(--color-secondary);
  font-size: 0.85rem;
}

/* WooCommerce Main Area */
.woocommerce-main {
  padding: var(--space-lg) 0;
}

.woocommerce-main .ef-container {
  max-width: var(--container-default);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Breadcrumb */
.ef-breadcrumb {
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--color-soft-brown);
}

.ef-breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/*
====================================================================
ETRUSCAFORM v1.2 FIXES
====================================================================
*/

/* ============================================
   v1.2 FIX: Header sempre visibile
   Il menu deve avere sfondo scuro su TUTTE le pagine
   ============================================ */

/* Default: header con sfondo scuro */
.ef-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(57, 17, 14, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  transition: all var(--transition-base);
}

/* SOLO su homepage con classe transparent: header trasparente inizialmente */
.ef-header--transparent::before {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Quando si scrolla O su pagine non-homepage: sfondo scuro */
.ef-header--scrolled::before,
.ef-header--transparent.ef-header--scrolled::before {
  background: rgba(57, 17, 14, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   v1.2 FIX: Product Grid Uniforme
   Card con altezze consistenti
   ============================================ */

/* ============================================
   v1.3 FIX: Product Grid 4 Colonne
   ============================================ */

/* Grid sistema - 4 colonne su desktop */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

/* Card prodotto - Flexbox per allineamento */
.woocommerce ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--color-warm-white);
  border: 1px solid rgba(57, 17, 14, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Immagine prodotto - Aspect ratio fisso */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block;
}

/* Titolo prodotto - Altezza fissa con troncamento */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--color-primary) !important;
  line-height: 1.4 !important;
  padding: 1.25rem 1.25rem 0.5rem !important;
  margin: 0 !important;
  /* Altezza fissa con 3 righe massimo */
  min-height: 4.5rem;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Prezzo - Sempre in basso */
.woocommerce ul.products li.product .price {
  padding: 0 1.25rem !important;
  margin: 0 0 auto !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--color-secondary) !important;
}

/* Pulsante - Sempre in fondo alla card */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.button {
  margin: auto 1.25rem 1.25rem 1.25rem !important;
  padding: 0.85rem 1.5rem !important;
  font-size: 0.8rem !important;
  text-align: center !important;
  display: block !important;
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all var(--transition-base) !important;
  width: calc(100% - 2.5rem) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover,
.woocommerce ul.products li.product a.button:hover {
  background: var(--color-primary) !important;
  color: var(--color-cream) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Responsive Grid - 4 colonne */
@media (max-width: 1200px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
  
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product h2 {
    min-height: auto;
    -webkit-line-clamp: 2 !important;
  }
}

/* ============================================
   v1.3 FIX: WPBakery Product Grid 4 Colonne
   Per griglie create con WPBakery
   ============================================ */

.vc_row .products,
.wpb_wrapper .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

@media (max-width: 1200px) {
  .vc_row .products,
  .wpb_wrapper .products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .vc_row .products,
  .wpb_wrapper .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .vc_row .products,
  .wpb_wrapper .products {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   v1.2 FIX: Categorie Corsi Sidebar
   ============================================ */

.widget_product_categories ul,
.woocommerce-widget-layered-nav ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget_product_categories li,
.woocommerce-widget-layered-nav li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(57, 17, 14, 0.08);
}

.widget_product_categories li:last-child,
.woocommerce-widget-layered-nav li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget_product_categories a,
.woocommerce-widget-layered-nav a {
  color: var(--color-soft-brown);
  text-decoration: none;
  transition: color var(--transition-base);
}

.widget_product_categories a:hover,
.woocommerce-widget-layered-nav a:hover {
  color: var(--color-secondary);
}

.widget_product_categories .count,
.woocommerce-widget-layered-nav .count {
  float: right;
  color: var(--color-soft-brown);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* ============================================
   v1.2: Page Load Animation
   ============================================ */

.site {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.loaded .site {
  opacity: 1;
}

/* Page Loader */
.ef-page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-warm-white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.loaded .ef-page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ef-page-loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(57, 17, 14, 0.1);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   v1.2: Lazy Load Images
   ============================================ */

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/*
====================================================================
ETRUSCAFORM v1.3 - NEW FEATURES
====================================================================
*/

/* ============================================
   v1.3: Hide residual WooCommerce elements
   ============================================ */

/* On single product, hide any duplicate/default WooCommerce elements */
.single-product .woocommerce-product-gallery,
.single-product .summary.entry-summary,
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .upsells.products,
.single-product section.products {
  display: none !important;
}

/* But show our custom elements */
.single-product .ef-product__container,
.single-product .ef-product-page {
  display: block !important;
}

/* Hide any duplicate add-to-cart forms that might appear */
.ef-product__payment-options .single_add_to_cart_button,
.ef-product__payment-options .quantity,
.ef-product__payment-options form.cart {
  display: none !important;
}

/* Only show PayPal messaging */
.ef-product__payment-options .ppcp-messages-container,
.ef-product__payment-options [data-pp-message],
.ef-product__payment-options .ppc-button-wrapper {
  display: block !important;
  margin-top: 1rem;
}

/* ============================================
   v1.3: Category Filter Bar
   ============================================ */

.ef-category-filter {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(57, 17, 14, 0.08);
}

.ef-category-filter__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.ef-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-soft-brown);
  background: transparent;
  border: 1px solid rgba(57, 17, 14, 0.15);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.ef-filter-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(57, 17, 14, 0.03);
}

.ef-filter-btn.active {
  color: var(--color-cream);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.ef-filter-btn.active:hover {
  background: var(--color-primary-light);
}

.ef-filter-count {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  opacity: 0.8;
}

.ef-filter-btn.active .ef-filter-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive Filter */
@media (max-width: 768px) {
  .ef-category-filter__inner {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  
  .ef-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .ef-category-filter {
    overflow-x: auto;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .ef-category-filter__inner {
    flex-wrap: nowrap;
    min-width: max-content;
  }
}

/* ============================================
   v1.3: Hide PayPal Banner on Shop
   ============================================ */

.woocommerce-shop .ppcp-messages-container,
.woocommerce-shop [class*="ppcp-"],
.post-type-archive-product .ppcp-messages-container,
.post-type-archive-product [class*="ppcp-"],
.tax-product_cat .ppcp-messages-container,
.tax-product_cat [class*="ppcp-"],
body.woocommerce-shop .ppc-button-wrapper,
body.woocommerce-shop [data-pp-message] {
  display: none !important;
}

/* ============================================
   v1.3: Single Product - Complete Redesign
   ============================================ */

/* Page wrapper */
.ef-product-page {
  padding-top: 100px;
  background: var(--color-warm-white);
}

.ef-product__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-md);
}

/* Breadcrumb */
.ef-product__breadcrumb {
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
}

.ef-product__breadcrumb a {
  color: var(--color-soft-brown);
  text-decoration: none;
  transition: color var(--transition-base);
}

.ef-product__breadcrumb a:hover {
  color: var(--color-secondary);
}

.ef-product__breadcrumb .sep {
  margin: 0 0.5rem;
  color: var(--color-soft-brown);
  opacity: 0.5;
}

/* Layout 2 colonne */
.ef-product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-xl);
}

/* MEDIA / IMMAGINE */
.ef-product__media {
  position: sticky;
  top: 120px;
}

.ef-product__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream);
  aspect-ratio: 4 / 3;
  max-height: 400px;
}

.ef-product__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.ef-product__image-wrapper:hover .ef-product__image {
  transform: scale(1.03);
}

.ef-product__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

/* Gallery thumbnails */
.ef-product__gallery {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ef-gallery-thumb {
  width: 60px;
  height: 45px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: all var(--transition-base);
}

.ef-gallery-thumb:hover {
  border-color: var(--color-soft-brown);
}

.ef-gallery-thumb.active {
  border-color: var(--color-secondary);
}

.ef-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* INFO COLONNA */
.ef-product__info {
  padding-top: 0.5rem;
}

/* Categorie */
.ef-product__cats {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.ef-product__cats a {
  color: inherit;
  text-decoration: none;
}

.ef-product__cats a:hover {
  text-decoration: underline;
}

.ef-product__cats .sep {
  margin: 0 0.3rem;
  opacity: 0.6;
}

/* Titolo */
.ef-product__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

/* Prezzo */
.ef-product__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.ef-product__price del {
  color: var(--color-soft-brown);
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.6;
  margin-right: 0.5rem;
}

.ef-product__price ins {
  text-decoration: none;
  color: var(--color-secondary);
}

/* Excerpt */
.ef-product__excerpt {
  font-size: 0.95rem;
  color: var(--color-soft-brown);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ef-product__excerpt p {
  margin: 0;
}

/* Divider */
.ef-product__divider {
  border: none;
  height: 1px;
  background: rgba(57, 17, 14, 0.1);
  margin: 1.5rem 0;
}

/* Form acquisto */
.ef-product__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ef-product__qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ef-product__qty-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-soft-brown);
}

.ef-product__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(57, 17, 14, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ef-qty-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.ef-qty-btn:hover {
  background: rgba(57, 17, 14, 0.05);
}

.ef-qty-btn:active {
  background: rgba(57, 17, 14, 0.1);
}

.ef-qty-input {
  width: 50px;
  height: 36px;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(57, 17, 14, 0.1);
  border-right: 1px solid rgba(57, 17, 14, 0.1);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  background: transparent;
  -moz-appearance: textfield;
}

.ef-qty-input::-webkit-outer-spin-button,
.ef-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Bottone aggiungi carrello */
.ef-product__add-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-cream);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
}

.ef-product__add-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ef-product__add-btn:active {
  transform: translateY(0);
}

.ef-product__add-price {
  opacity: 0.85;
  font-weight: 500;
}

/* Unavailable */
.ef-product__unavailable {
  padding: 1rem;
  background: rgba(196, 69, 54, 0.08);
  color: var(--color-error);
  border-radius: var(--radius-sm);
  text-align: center;
}

.ef-product__unavailable p {
  margin: 0;
}

/* Payment options (PayPal) */
.ef-product__payment-options {
  margin-top: 1rem;
}

/* Meta */
.ef-product__meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 17, 14, 0.08);
}

.ef-product__sku {
  font-size: 0.85rem;
  color: var(--color-soft-brown);
}

/* ============================================
   ACCORDION - Descrizione
   ============================================ */

.ef-product__details {
  margin-bottom: var(--space-xl);
}

.ef-accordion {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ef-accordion__trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.ef-accordion__trigger:hover {
  background: rgba(57, 17, 14, 0.03);
}

.ef-accordion__icon {
  transition: transform var(--transition-base);
}

.ef-accordion__trigger.active .ef-accordion__icon {
  transform: rotate(180deg);
}

.ef-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ef-accordion__content.open {
  max-height: 2000px;
}

.ef-accordion__inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-soft-brown);
  line-height: 1.8;
}

.ef-accordion__inner p {
  margin-bottom: 1rem;
}

.ef-accordion__inner p:last-child {
  margin-bottom: 0;
}

.ef-accordion__inner ul,
.ef-accordion__inner ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.ef-accordion__inner li {
  margin-bottom: 0.5rem;
}

/* ============================================
   PRODOTTI CORRELATI
   ============================================ */

.ef-product__related {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(57, 17, 14, 0.08);
}

.ef-product__related-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.ef-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ef-related-item {
  display: block;
  text-decoration: none;
  background: white;
  border: 1px solid rgba(57, 17, 14, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.ef-related-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.ef-related-item__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ef-related-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ef-related-item:hover .ef-related-item__img img {
  transform: scale(1.05);
}

.ef-related-item__info {
  padding: 1rem;
}

.ef-related-item__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ef-related-item__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
}

/* ============================================
   SINGLE PRODUCT - Responsive
   ============================================ */

@media (max-width: 992px) {
  .ef-product__layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .ef-product__media {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .ef-product__image-wrapper {
    max-height: 350px;
  }
  
  .ef-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ef-product__container {
    padding: var(--space-sm);
  }
  
  .ef-product__title {
    font-size: 1.35rem;
  }
  
  .ef-product__price {
    font-size: 1.25rem;
  }
  
  .ef-product__image-wrapper {
    max-height: 280px;
  }
  
  .ef-related-grid {
    grid-template-columns: 1fr;
  }
  
  .ef-product__add-btn {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .ef-accordion__trigger {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  .ef-accordion__inner {
    padding: 0 1rem 1rem;
  }
}

/* ============================================
   v1.4: E-learning Page Banner
   ============================================ */

/* Shop/E-learning page header banner */
.woocommerce-shop .woocommerce-products-header,
.post-type-archive-product .woocommerce-products-header,
.tax-product_cat .woocommerce-products-header {
  background: var(--color-primary);
  padding: var(--space-xl) var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: center;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.woocommerce-shop .woocommerce-products-header__title,
.post-type-archive-product .woocommerce-products-header__title,
.tax-product_cat .woocommerce-products-header__title,
.woocommerce-shop .page-title,
.post-type-archive-product .page-title,
.tax-product_cat .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  color: var(--color-cream) !important;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Hide the term-description on shop pages if not needed */
.woocommerce-shop .term-description,
.post-type-archive-product .term-description {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--color-text-muted);
}

/* Category page banner */
.tax-product_cat .woocommerce-products-header__title {
  text-transform: capitalize;
}

/* ============================================
   v1.4.1: Homepage Fixes
   ============================================ */

/* Homepage image - contain instead of cover */
.page-id-138 .wpb_single_image img,
.page-id-138 .vc_single_image-img,
.home .wpb_single_image img,
.home .vc_single_image-img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
}

/* Fix for the about section image specifically */
.page-id-138 .vc_column_container .wpb_single_image .vc_single_image-wrapper img {
  object-fit: contain !important;
  max-height: 600px !important;
}

/* "I NOSTRI SERVIZI" and other section titles - MUCH larger */
.page-id-138 .vc_custom_heading h2,
.page-id-138 .vc_custom_heading h3,
.page-id-138 .vc_custom_heading h4,
.home .vc_custom_heading h2,
.home .vc_custom_heading h3,
.home .vc_custom_heading h4 {
  font-family: var(--font-display) !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 500 !important;
  color: var(--color-primary) !important;
  line-height: 1.15 !important;
}

/* Smaller subtitle/tagline text */
.page-id-138 .vc_custom_heading[style*="letter-spacing"] h2,
.page-id-138 .vc_custom_heading[style*="letter-spacing"] h3,
.page-id-138 .vc_custom_heading[style*="letter-spacing"] h4,
.home .vc_custom_heading[style*="letter-spacing"] h2 {
  font-size: clamp(0.85rem, 1.5vw, 1rem) !important;
  text-transform: uppercase;
  letter-spacing: 0.2em !important;
  font-weight: 500 !important;
  color: var(--color-secondary) !important;
}

/* Section titles on dark backgrounds */
.vc_row[data-vc-full-width-init="true"] .vc_custom_heading h2,
.vc_row.ef-dark-section .vc_custom_heading h2 {
  color: var(--color-cream) !important;
}

/* ============================================
   v1.4: Homepage Uniform Grid
   ============================================ */

/* WPBakery product grid - uniform cards */
.vc_row .products,
.wpb_wrapper .products,
.vc_grid-container .vc_grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

/* Uniform card heights in WPBakery grids */
.vc_row .products li.product,
.wpb_wrapper .products li.product,
.vc_grid-item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 420px !important;
}

/* Card inner content fills space */
.vc_row .products li.product > a,
.wpb_wrapper .products li.product > a,
.vc_gitem-zone-c {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Image container - fixed aspect ratio */
.vc_row .products li.product img,
.wpb_wrapper .products li.product img,
.vc_gitem-zone-a img,
.vc_gitem_row .vc_single_image-img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
}

/* Title area - fixed height with ellipsis */
.vc_row .products li.product .woocommerce-loop-product__title,
.wpb_wrapper .products li.product h2,
.vc_gitem-post-data-source-post_title {
  min-height: 3.5rem !important;
  max-height: 4.5rem !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  margin: 1rem 0 0.5rem !important;
}

/* Price - consistent positioning */
.vc_row .products li.product .price,
.wpb_wrapper .products li.product .price {
  margin-top: auto !important;
  padding-top: 0.5rem !important;
}

/* Button - always at bottom */
.vc_row .products li.product .button,
.wpb_wrapper .products li.product .button,
.vc_gitem_row .vc_btn3 {
  margin-top: auto !important;
}

/* VC Grid specific fixes */
.vc_grid-item-mini {
  height: 100% !important;
}

.vc_gitem-zone {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.vc_gitem-zone-c {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Responsive uniform grid */
@media (max-width: 992px) {
  .vc_row .products,
  .wpb_wrapper .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .vc_row .products li.product,
  .wpb_wrapper .products li.product {
    min-height: 380px !important;
  }
}

@media (max-width: 576px) {
  .vc_row .products,
  .wpb_wrapper .products {
    grid-template-columns: 1fr !important;
  }
  
  .vc_row .products li.product,
  .wpb_wrapper .products li.product {
    min-height: auto !important;
  }
}

/* ============================================
   v1.4.1: Chi Siamo Page Template
   ============================================ */

/* Hero Section */
.ef-about-hero {
  background: var(--color-primary);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  margin-top: -1px;
}

.ef-about-hero__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.ef-about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto var(--space-md);
}

.ef-about-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 253, 245, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Stats Section */
.ef-about-stats {
  background: var(--color-cream);
  padding: var(--space-xl) var(--space-md);
  margin-top: -1px;
}

.ef-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.ef-stat-item {
  text-align: center;
}

.ef-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1;
}

.ef-stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-soft-brown);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Tag */
.ef-section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

/* Mission Section */
.ef-about-mission {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-warm-white);
}

.ef-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ef-mission-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.ef-mission-content p {
  color: var(--color-soft-brown);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ef-mission-content p:last-child {
  margin-bottom: 0;
}

.ef-mission-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.ef-mission-placeholder {
  background: var(--color-primary);
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 3rem;
  opacity: 0.9;
}

.ef-mission-placeholder span:last-child {
  color: var(--color-cream);
}

/* Guidelines Section */
.ef-about-guidelines {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-cream);
}

.ef-guidelines-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.ef-guidelines-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.15;
}

/* COMPACT GUIDELINES - v1.5 */
.ef-about-guidelines-compact {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-cream);
}

.ef-guidelines-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}

.ef-guideline-tile {
  background: var(--color-warm-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.ef-guideline-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ef-guideline-tile.active {
  background: var(--color-primary);
}

.ef-guideline-tile.active h3,
.ef-guideline-tile.active .ef-guideline-tile__hint {
  color: var(--color-cream);
}

.ef-guideline-tile.active .ef-guideline-tile__icon {
  background: rgba(255,255,255,0.15);
  color: var(--color-secondary);
}

.ef-guideline-tile__icon {
  width: 70px;
  height: 70px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--color-secondary);
  transition: all var(--transition-base);
}

.ef-guideline-tile h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0 0 0.25rem;
  transition: color var(--transition-base);
}

.ef-guideline-tile__hint {
  font-size: 0.75rem;
  color: var(--color-soft-brown);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.ef-guideline-tile__expand,
.ef-guideline-tile__content {
  display: none; /* Hidden, using panel below instead */
}

/* Guideline Detail Panel */
.ef-guideline-detail {
  max-width: 700px;
  margin: var(--space-md) auto 0;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: var(--color-cream);
  display: none;
  position: relative;
  animation: slideDown 0.3s ease;
}

.ef-guideline-detail.active {
  display: block;
}

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

.ef-guideline-detail__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  transition: all var(--transition-base);
}

.ef-guideline-detail__close:hover {
  background: rgba(255,255,255,0.2);
}

.ef-guideline-detail__content h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.ef-guideline-detail__content p {
  line-height: 1.8;
  opacity: 0.9;
}

/* TEAM SECTION - v1.5 */
.ef-about-team {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-warm-white);
}

.ef-team-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.ef-team-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-team-header p {
  color: var(--color-soft-brown);
  font-size: 1.1rem;
}

.ef-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.ef-team-member {
  text-align: center;
}

.ef-team-member__photo {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.ef-team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ef-team-member:hover .ef-team-member__photo img {
  transform: scale(1.1);
}

.ef-team-member__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.ef-team-member__info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.ef-team-member__role {
  font-size: 0.85rem;
  color: var(--color-soft-brown);
  display: block;
  margin-bottom: 0.5rem;
}

.ef-team-member__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-cream);
  border-radius: 50%;
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.ef-team-member__social:hover {
  background: #0077b5;
  color: white;
  transform: translateY(-2px);
}

/* Team placeholder message */
.ef-team-placeholder-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  color: var(--color-soft-brown);
}

/* ============================================
   CONTACT PAGE TEMPLATE (v1.6)
   ============================================ */

.ef-contact-page {
  padding-top: 100px;
}

.ef-contact-hero {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.ef-contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.ef-contact-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.ef-contact-main {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-warm-white);
}

.ef-contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.ef-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.ef-contact-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.ef-contact-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--color-secondary);
}

.ef-contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-contact-card a,
.ef-contact-card span {
  display: block;
  color: var(--color-soft-brown);
  font-size: 1rem;
}

.ef-contact-card a:hover {
  color: var(--color-secondary);
}

.ef-contact-card__note {
  font-size: 0.85rem !important;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.ef-contact-form-wrapper {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ef-contact-form-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.ef-contact-form-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-contact-form-header p {
  color: var(--color-soft-brown);
}

/* Contact Map Section */
.ef-contact-map {
  position: relative;
  height: 400px;
}

.ef-contact-map .ef-map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ef-contact-map .ef-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ef-map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(57, 17, 14, 0.95), transparent);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.ef-map-info {
  max-width: 400px;
  color: var(--color-cream);
}

.ef-map-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ef-map-info p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Contact CTA */
.ef-contact-cta {
  background: var(--color-cream);
  padding: var(--space-xl) var(--space-md);
}

.ef-contact-cta .ef-cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.ef-contact-cta h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-contact-cta p {
  color: var(--color-soft-brown);
  margin-bottom: 1.5rem;
}

/* Contact Responsive */
@media (max-width: 768px) {
  .ef-contact-cards {
    grid-template-columns: 1fr;
  }
  
  .ef-contact-form-wrapper {
    padding: var(--space-lg);
  }
  
  .ef-contact-map {
    height: 300px;
  }
}

/* ============================================
   SERVICES PAGE TEMPLATE (v1.6)
   ============================================ */

.ef-services-page {
  padding-top: 100px;
}

.ef-services-hero {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.ef-services-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.ef-services-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.ef-services-main {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-warm-white);
}

.ef-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

/* Services Page specific cards - do not override homepage cards */
.ef-services-main .ef-service-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
  border: none;
}

.ef-services-main .ef-service-card::before {
  display: none;
}

.ef-services-main .ef-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.ef-services-main .ef-service-card__number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1;
  opacity: 1;
  margin-bottom: 0;
}

.ef-services-main .ef-service-card__icon {
  width: 80px;
  height: 80px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

.ef-services-main .ef-service-card h3,
.ef-services-main .ef-service-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.ef-services-main .ef-service-card > p,
.ef-services-main .ef-service-card__desc {
  color: var(--color-soft-brown);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.ef-service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.ef-service-features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-soft-brown);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.ef-service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 600;
}

.ef-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: all var(--transition-base);
}

.ef-service-link:hover {
  color: var(--color-secondary);
  gap: 0.75rem;
}

/* Services Why Section */
.ef-services-why {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-cream);
}

.ef-why-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.ef-why-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
}

.ef-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.ef-why-item {
  text-align: center;
}

.ef-why-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--color-secondary);
}

.ef-why-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-why-item p {
  font-size: 0.9rem;
  color: var(--color-soft-brown);
}

/* Services CTA Section */
.ef-services-cta {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-warm-white);
}

.ef-cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-primary);
  color: var(--color-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
}

.ef-cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.ef-cta-box p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.ef-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ef-cta-box .ef-btn--outline {
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.ef-cta-box .ef-btn--outline:hover {
  background: var(--color-cream);
  color: var(--color-primary);
}

/* Services Responsive */
@media (max-width: 992px) {
  .ef-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ef-services-grid {
    grid-template-columns: 1fr;
  }
  
  .ef-why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* Team Responsive */
@media (max-width: 992px) {
  .ef-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ef-guidelines-grid-compact {
    grid-template-columns: 1fr;
  }
  
  .ef-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .ef-team-member__photo {
    width: 100px;
    height: 100px;
  }
}

/* Accreditations Section */
.ef-about-accreditations {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-warm-white);
}

.ef-accred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.ef-accred-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.ef-accred-content p {
  color: var(--color-soft-brown);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ef-accred-badges {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.ef-accred-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.ef-accred-badge svg {
  color: var(--color-secondary);
}

.ef-accred-badge span {
  font-size: 0.9rem;
  font-weight: 500;
}

.ef-accred-card {
  background: var(--color-primary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
}

.ef-accred-card__icon {
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  display: block;
}

.ef-accred-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}

.ef-accred-card p {
  color: rgba(255, 253, 245, 0.8);
  line-height: 1.6;
}

/* Contact Section */
.ef-about-contact {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-cream);
}

.ef-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.ef-contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.ef-contact-info > p {
  color: var(--color-soft-brown);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.ef-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ef-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-soft-brown);
}

.ef-contact-item svg {
  color: var(--color-secondary);
  flex-shrink: 0;
}

.ef-contact-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

.ef-contact-item a:hover {
  color: var(--color-secondary);
}

/* Contact Form */
.ef-contact-form {
  background: var(--color-warm-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.ef-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ef-form-group {
  margin-bottom: 1.25rem;
}

.ef-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-form-group input,
.ef-form-group select,
.ef-form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(57, 17, 14, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  background: white;
  transition: all var(--transition-base);
}

.ef-form-group input:focus,
.ef-form-group select:focus,
.ef-form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(208, 124, 57, 0.1);
}

.ef-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.ef-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ef-form-checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.ef-form-checkbox label {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.5;
}

.ef-form-checkbox a {
  color: var(--color-secondary);
}

.ef-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: var(--color-cream);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.ef-form-submit:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ef-form-response {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.ef-form-response.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.ef-form-response.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

/* Chi Siamo Responsive */
@media (max-width: 992px) {
  .ef-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ef-mission-grid,
  .ef-accred-grid,
  .ef-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .ef-guidelines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ef-mission-image {
    order: -1;
  }
}

@media (max-width: 576px) {
  .ef-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .ef-guidelines-grid {
    grid-template-columns: 1fr;
  }
  
  .ef-form-row {
    grid-template-columns: 1fr;
  }
  
  .ef-accred-badges {
    flex-direction: column;
  }
}

/* ============================================
   v1.4.1: Contact Modal
   ============================================ */

.ef-contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(57, 17, 14, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: var(--space-md);
}

.ef-contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.ef-contact-modal__content {
  background: var(--color-warm-white);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.ef-contact-modal.active .ef-contact-modal__content {
  transform: translateY(0);
}

.ef-contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--color-cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.ef-contact-modal__close:hover {
  background: var(--color-secondary);
  color: white;
}

.ef-contact-modal__header {
  margin-bottom: var(--space-md);
  padding-right: 2rem;
}

.ef-contact-modal__header h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.ef-contact-modal__header p {
  color: var(--color-soft-brown);
}

/* ============================================
   v1.4.1: Corsi in Partenza Shortcode
   ============================================ */

.ef-corsi-partenza {
  padding: var(--space-2xl) var(--space-md);
  background: var(--color-warm-white);
}

.ef-corsi-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.ef-corsi-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--color-primary);
  margin: 0.5rem 0;
  line-height: 1.1;
}

.ef-corsi-header p {
  color: var(--color-soft-brown);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.ef-corsi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.ef-corso-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.ef-corso-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.ef-corso-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.ef-corso-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ef-corso-card:hover .ef-corso-card__image img {
  transform: scale(1.05);
}

.ef-corso-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-align: center;
  text-decoration: none;
}

.ef-corso-card__date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-secondary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.1;
}

.ef-corso-card__date .day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.ef-corso-card__date .month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ef-corso-card__content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ef-corso-card__cats {
  font-size: 0.75rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.ef-corso-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  flex: 1;
}

.ef-corso-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.ef-corso-card__title a:hover {
  color: var(--color-secondary);
}

.ef-corso-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ef-corso-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-soft-brown);
}

.ef-corso-meta-item svg {
  color: var(--color-secondary);
}

.ef-corso-price {
  font-weight: 700;
  color: var(--color-primary) !important;
}

.ef-corso-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Buttons */
.ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

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

.ef-btn--primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.ef-btn--secondary {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

.ef-btn--secondary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
}

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

.ef-btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-cream);
}

.ef-corsi-cta {
  text-align: center;
}

/* Corsi Responsive */
@media (max-width: 1200px) {
  .ef-corsi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .ef-corsi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ef-corsi-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .ef-corso-card__actions {
    flex-direction: column;
  }
  
  .ef-corso-card__actions .ef-btn {
    width: 100%;
  }
}

/*
====================================================================
VERSION 1.8 FIXES AND OVERRIDES
====================================================================
*/

/* ============================================
   FIX: Homepage Service Cards (dark theme)
   Force original styling on homepage
   ============================================ */

.ef-services .ef-service-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 3rem 2rem !important;
}

.ef-services .ef-service-card::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background: var(--color-secondary) !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform var(--transition-slow) !important;
}

.ef-services .ef-service-card:hover::before {
  transform: scaleX(1) !important;
}

.ef-services .ef-service-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-8px) !important;
  box-shadow: none !important;
}

.ef-services .ef-service-card__number {
  position: static !important;
  font-family: var(--font-display) !important;
  font-size: 4rem !important;
  font-weight: 300 !important;
  color: var(--color-secondary) !important;
  opacity: 0.4 !important;
  line-height: 1 !important;
  margin-bottom: 1.5rem !important;
}

.ef-services .ef-service-card__title {
  font-family: var(--font-display) !important;
  font-size: 1.75rem !important;
  font-weight: 500 !important;
  color: var(--color-cream) !important;
  margin-bottom: 1rem !important;
}

.ef-services .ef-service-card__desc {
  font-size: 0.95rem !important;
  color: rgba(250, 246, 241, 0.6) !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

.ef-services .ef-service-card__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--color-secondary) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-top: 2rem !important;
}

.ef-services .ef-service-card__link:hover {
  gap: 1rem !important;
  color: var(--color-secondary) !important;
}

/* ============================================
   FIX: Hide duplicate dates in post cards
   ============================================ */

.ef-post-card__meta .posted-on time.updated:not(.published),
.posted-on time.updated:not(.published),
time.updated:not(.published) {
  display: none !important;
}

/* ============================================
   FIX: Button hover - text becomes brown
   ============================================ */

.ef-btn--primary:hover,
.ef-btn--secondary:hover,
a.ef-btn:hover,
button.ef-btn:hover {
  color: var(--color-primary) !important;
}

.ef-hero__cta a:hover,
.ef-service-card__link:hover,
.ef-course-card__link:hover,
.ef-post-card__link:hover {
  color: var(--color-primary) !important;
}

/* Ensure arrow/icon also changes */
.ef-btn--primary:hover svg,
.ef-btn--secondary:hover svg {
  stroke: var(--color-primary) !important;
}

/* ============================================
   Course Card Styles for Posts (v1.8)
   ============================================ */

.ef-course-card__date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.ef-course-card__cat {
  background: var(--color-cream);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ef-course-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-soft-brown);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ef-course-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.ef-course-card__link:hover {
  gap: 0.75rem;
  color: var(--color-primary);
}

.ef-course-card__link svg {
  transition: transform var(--transition-base);
}

.ef-course-card__link:hover svg {
  transform: translateX(4px);
}

.ef-no-courses {
  text-align: center;
  color: var(--color-soft-brown);
  font-size: 1.1rem;
  padding: 3rem;
}

/* Block Patterns Styles */
.ef-service-card-pattern {
  transition: all var(--transition-base);
}

.ef-service-card-pattern:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.2) !important;
}

.ef-card-number {
  opacity: 0.4;
}

.ef-corso-card-gutenberg {
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.ef-corso-card-gutenberg:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   CORSI GRID V2 - Uniform Cards (v1.9)
   ============================================ */

.ef-section--corsi {
  background: var(--color-warm-white);
}

.ef-corsi-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ef-corso-card-v2 {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(57, 17, 14, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.ef-corso-card-v2:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(57, 17, 14, 0.15);
}

/* Image Wrapper */
.ef-corso-card-v2__image-wrapper {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-cream) 0%, #e8ddd4 100%);
}

.ef-corso-card-v2__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ef-corso-card-v2:hover .ef-corso-card-v2__image {
  transform: scale(1.08);
}

/* Placeholder for missing images */
.ef-corso-card-v2__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, #e8ddd4 100%);
  color: var(--color-secondary);
}

/* Category Badge */
.ef-corso-card-v2__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-secondary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(208, 124, 57, 0.4);
  transition: all 0.3s ease;
}

.ef-corso-card-v2:hover .ef-corso-card-v2__badge {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(208, 124, 57, 0.5);
}

/* Content */
.ef-corso-card-v2__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

/* Meta (date) */
.ef-corso-card-v2__meta {
  margin-bottom: 0.75rem;
}

.ef-corso-card-v2__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-soft-brown);
  font-weight: 500;
}

.ef-corso-card-v2__date svg {
  color: var(--color-secondary);
}

/* Title */
.ef-corso-card-v2__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ef-corso-card-v2__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.ef-corso-card-v2__title a:hover {
  color: var(--color-secondary);
}

/* Excerpt */
.ef-corso-card-v2__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-soft-brown);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Link */
.ef-corso-card-v2__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 17, 14, 0.08);
  transition: all 0.3s ease;
}

.ef-corso-card-v2__link:hover {
  color: var(--color-primary);
  gap: 0.75rem;
}

.ef-corso-card-v2__link svg {
  transition: transform 0.3s ease;
}

.ef-corso-card-v2__link:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
  .ef-corsi-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .ef-corsi-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .ef-corso-card-v2__content {
    padding: 1.25rem;
  }
  
  .ef-corso-card-v2__title {
    font-size: 1.1rem;
  }
}

/*
====================================================================
VERSION 1.9.1 - Mobile Fixes
====================================================================
*/

/* ============================================
   FIX: Mobile Header - Hamburger & CTA
   ============================================ */

/* Ensure hamburger is visible on tablet and mobile */
@media (max-width: 992px) {
  .ef-hamburger {
    display: flex !important;
    order: 4;
  }
  
  /* Hide CTA button on tablet/mobile */
  .ef-header__cta {
    display: none !important;
  }
  
  /* Ensure header actions are properly aligned */
  .ef-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Extra small screens - tighter spacing */
@media (max-width: 480px) {
  .ef-header__actions {
    gap: 0.5rem;
  }
  
  .ef-hamburger svg {
    width: 2rem !important;
    height: 2rem !important;
  }
}

/* ============================================
   FIX: Mobile Nav Social Links
   ============================================ */

/* Social links in mobile nav - make them visible */
.ef-mobile-nav__social {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 241, 0.15);
}

.ef-mobile-nav__social .ef-social {
  display: flex !important;
  gap: 1.25rem;
}

.ef-mobile-nav__social .ef-social__link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-cream) !important;
  transition: all 0.3s ease;
}

.ef-mobile-nav__social .ef-social__link svg {
  width: 24px;
  height: 24px;
  fill: var(--color-cream) !important;
}

.ef-mobile-nav__social .ef-social__link:hover {
  background: var(--color-secondary);
  transform: translateY(-4px);
}

.ef-mobile-nav__social .ef-social__link:hover svg {
  fill: #ffffff !important;
}

/*
====================================================================
VERSION 2.0.0 - Major Update
====================================================================
*/

/* ============================================
   2.0: DARK MODE
   ============================================ */

/* CSS Variables for Dark Mode */
[data-theme="dark"] {
  --color-primary: #faf6f1;
  --color-secondary: #e8944a;
  --color-cream: #1a0a08;
  --color-warm-white: #0d0504;
  --color-soft-brown: #c4b8ad;
  
  --bg-primary: #0d0504;
  --bg-secondary: #1a0a08;
  --bg-card: #241210;
  --text-primary: #faf6f1;
  --text-secondary: #c4b8ad;
}

/* Body dark mode */
[data-theme="dark"] body,
[data-theme="dark"] .ef-section,
[data-theme="dark"] .ef-section--corsi {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Header dark mode */
[data-theme="dark"] .ef-header {
  background: rgba(13, 5, 4, 0.95);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .ef-header--scrolled {
  background: rgba(13, 5, 4, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ef-header__nav a {
  color: var(--text-primary);
}

/* Cards dark mode */
[data-theme="dark"] .ef-corso-card-v2,
[data-theme="dark"] .ef-course-card,
[data-theme="dark"] .ef-post-card {
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ef-corso-card-v2__title a,
[data-theme="dark"] .ef-course-card__title a,
[data-theme="dark"] .ef-post-card__title a {
  color: var(--text-primary);
}

[data-theme="dark"] .ef-corso-card-v2__excerpt,
[data-theme="dark"] .ef-course-card__excerpt,
[data-theme="dark"] .ef-post-card__excerpt {
  color: var(--text-secondary);
}

[data-theme="dark"] .ef-corso-card-v2__link {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Section headers dark mode */
[data-theme="dark"] .ef-section__header h2,
[data-theme="dark"] .section-label {
  color: var(--text-primary);
}

/* Footer dark mode */
[data-theme="dark"] .ef-footer {
  background: var(--bg-secondary);
}

[data-theme="dark"] .ef-footer__bottom {
  background: rgba(0, 0, 0, 0.3);
}

/* Dark Mode Toggle Button */
.ef-dark-mode-toggle {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 9990;
}

.ef-dark-mode-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ef-dark-mode-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.ef-dark-mode-toggle:hover svg {
  transform: rotate(15deg);
}

/* Hide/show icons based on theme */
.ef-dark-mode-toggle .icon-sun {
  display: none;
}

.ef-dark-mode-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .ef-dark-mode-toggle {
  background: var(--color-secondary);
  color: #ffffff;
}

[data-theme="dark"] .ef-dark-mode-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .ef-dark-mode-toggle .icon-moon {
  display: none;
}

@media (max-width: 768px) {
  .ef-dark-mode-toggle {
    width: 44px;
    height: 44px;
    bottom: 160px;
    right: 20px;
  }
}

/* ============================================
   2.0: COURSE COUNTDOWN
   ============================================ */

.ef-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  white-space: nowrap;
}

.ef-countdown--urgent {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  animation: pulse-urgent 2s ease-in-out infinite;
}

.ef-countdown--expired {
  background: #95a5a6;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.ef-countdown svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ef-countdown__text {
  white-space: nowrap;
}

/* Countdown positioned in card image */
.ef-corso-card-v2 .ef-countdown {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

/* ============================================
   2.0: WISHLIST HEART BUTTON
   ============================================ */

.ef-wishlist-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 2;
}

.ef-wishlist-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ef-wishlist-btn svg {
  width: 20px;
  height: 20px;
  color: #ccc;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.ef-wishlist-btn:hover svg {
  color: #e74c3c;
}

.ef-wishlist-btn.is-wishlisted svg {
  color: #e74c3c;
  fill: #e74c3c;
}

.ef-wishlist-btn.is-wishlisted {
  animation: heart-pop 0.3s ease;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.1); }
}

/* ============================================
   2.0: AJAX FILTERS
   ============================================ */

.ef-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.ef-filter-btn {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--color-secondary);
  border-radius: 50px;
  background: transparent;
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ef-filter-btn:hover,
.ef-filter-btn.is-active {
  background: var(--color-secondary);
  color: #ffffff;
}

.ef-filter-btn.is-active {
  box-shadow: 0 4px 12px rgba(208, 124, 57, 0.4);
}

/* Loading state */
.ef-corsi-grid-v2.is-loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
  min-height: 300px;
}

.ef-corsi-grid-v2.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--color-cream);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .ef-filters {
    gap: 0.5rem;
  }
  
  .ef-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/*
====================================================================
VERSION 2.0.1 - Bug Fixes
====================================================================
*/

/* ============================================
   2.0.1 FIX: About Image with Padding
   ============================================ */

.ef-about__image {
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
}

.ef-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ============================================
   2.0.1 FIX: Improved Dark Mode Contrast
   ============================================ */

[data-theme="dark"] {
  /* Override with better contrasts */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #333333;
}

/* Body and sections */
[data-theme="dark"] body {
  background-color: #121212;
  color: #ffffff;
}

[data-theme="dark"] .ef-section,
[data-theme="dark"] .ef-section--cream,
[data-theme="dark"] .ef-about {
  background-color: #121212;
}

[data-theme="dark"] .ef-section--corsi {
  background-color: #1a1a1a;
}

/* Hero sections */
[data-theme="dark"] .ef-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
}

[data-theme="dark"] .ef-contact-hero,
[data-theme="dark"] .ef-about-hero,
[data-theme="dark"] .ef-services-hero {
  background-color: #1a1a1a;
}

/* Header */
[data-theme="dark"] .ef-header {
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .ef-header--scrolled {
  background: rgba(18, 18, 18, 0.99);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .ef-header__nav a,
[data-theme="dark"] .ef-nav-menu > li > a {
  color: #ffffff;
}

[data-theme="dark"] .ef-nav-menu > li > a:hover {
  color: var(--color-secondary);
}

/* Cards */
[data-theme="dark"] .ef-corso-card-v2,
[data-theme="dark"] .ef-course-card,
[data-theme="dark"] .ef-post-card,
[data-theme="dark"] .ef-service-card {
  background: #252525;
  border: 1px solid #333333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ef-corso-card-v2:hover,
[data-theme="dark"] .ef-course-card:hover,
[data-theme="dark"] .ef-post-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--color-secondary);
}

[data-theme="dark"] .ef-corso-card-v2__title a,
[data-theme="dark"] .ef-course-card__title a,
[data-theme="dark"] .ef-post-card__title a,
[data-theme="dark"] .ef-service-card__title {
  color: #ffffff;
}

[data-theme="dark"] .ef-corso-card-v2__excerpt,
[data-theme="dark"] .ef-course-card__excerpt,
[data-theme="dark"] .ef-post-card__excerpt,
[data-theme="dark"] .ef-service-card__desc {
  color: #b0b0b0;
}

[data-theme="dark"] .ef-corso-card-v2__link {
  border-top-color: #333333;
  color: var(--color-secondary);
}

[data-theme="dark"] .ef-corso-card-v2__date {
  color: #888888;
}

/* Text colors */
[data-theme="dark"] .section-label,
[data-theme="dark"] .section-label--light,
[data-theme="dark"] .ef-section-tag,
[data-theme="dark"] .ef-about-hero__tag {
  color: var(--color-secondary);
}

[data-theme="dark"] .ef-section__header h2,
[data-theme="dark"] .ef-about h2,
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3 {
  color: #ffffff;
}

[data-theme="dark"] .ef-section__header p,
[data-theme="dark"] .ef-about p,
[data-theme="dark"] p {
  color: #b0b0b0;
}

[data-theme="dark"] .lead {
  color: #cccccc;
}

/* About section */
[data-theme="dark"] .ef-about__image {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

[data-theme="dark"] .ef-about__stats {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid #333333;
}

[data-theme="dark"] .ef-about__stat-number {
  color: var(--color-secondary);
}

[data-theme="dark"] .ef-about__stat-label {
  color: #888888;
}

/* Features */
[data-theme="dark"] .ef-feature__icon {
  background: rgba(208, 124, 57, 0.15);
  color: var(--color-secondary);
}

[data-theme="dark"] .ef-feature__title {
  color: #ffffff;
}

[data-theme="dark"] .ef-feature__desc {
  color: #888888;
}

/* Services section */
[data-theme="dark"] .ef-services {
  background-color: #1a1a1a;
}

[data-theme="dark"] .ef-service-card {
  background: rgba(37, 37, 37, 0.8);
  border: 1px solid #333333;
}

[data-theme="dark"] .ef-service-card:hover {
  background: rgba(45, 45, 45, 0.9);
  border-color: var(--color-secondary);
}

/* Footer */
[data-theme="dark"] .ef-footer {
  background: #1a1a1a;
}

[data-theme="dark"] .ef-footer__bottom {
  background: #121212;
  border-top: 1px solid #333333;
}

[data-theme="dark"] .ef-footer h4 {
  color: #ffffff;
}

[data-theme="dark"] .ef-footer p,
[data-theme="dark"] .ef-footer a,
[data-theme="dark"] .ef-footer__column ul li a {
  color: #b0b0b0;
}

[data-theme="dark"] .ef-footer__column ul li a:hover {
  color: var(--color-secondary);
}

/* Buttons */
[data-theme="dark"] .ef-btn--secondary {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

[data-theme="dark"] .ef-btn--secondary:hover {
  background: #ffffff;
  color: #121212;
}

/* Filter buttons */
[data-theme="dark"] .ef-filter-btn {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

[data-theme="dark"] .ef-filter-btn:hover,
[data-theme="dark"] .ef-filter-btn.is-active {
  background: var(--color-secondary);
  color: #ffffff;
}

/* Contact page */
[data-theme="dark"] .ef-contact-card {
  background: #252525;
  border: 1px solid #333333;
}

[data-theme="dark"] .ef-contact-card h3 {
  color: #ffffff;
}

[data-theme="dark"] .ef-contact-card a,
[data-theme="dark"] .ef-contact-card span {
  color: #b0b0b0;
}

[data-theme="dark"] .ef-contact-form-wrapper {
  background: #252525;
  border: 1px solid #333333;
}

[data-theme="dark"] .ef-contact-form input,
[data-theme="dark"] .ef-contact-form textarea,
[data-theme="dark"] .ef-contact-form select {
  background: #1e1e1e;
  border-color: #333333;
  color: #ffffff;
}

[data-theme="dark"] .ef-contact-form input:focus,
[data-theme="dark"] .ef-contact-form textarea:focus {
  border-color: var(--color-secondary);
}

/* Mobile nav */
[data-theme="dark"] .ef-mobile-nav {
  background: #121212;
}

/* Back to top */
[data-theme="dark"] .ef-back-to-top {
  background: #252525;
  border: 1px solid #333333;
}

[data-theme="dark"] .ef-back-to-top:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Dark mode toggle improved */
[data-theme="dark"] .ef-dark-mode-toggle {
  background: #252525;
  border: 1px solid #444444;
  color: var(--color-secondary);
}

[data-theme="dark"] .ef-dark-mode-toggle:hover {
  background: var(--color-secondary);
  color: #ffffff;
  border-color: var(--color-secondary);
}

/* ============================================
   2.0.1: Wishlist Page for Account
   ============================================ */

.ef-wishlist-section {
  margin-bottom: 3rem;
}

.ef-wishlist-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ef-wishlist-section h3 svg {
  color: #e74c3c;
}

.ef-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ef-wishlist-empty {
  text-align: center;
  padding: 3rem;
  background: var(--color-cream);
  border-radius: 12px;
}

.ef-wishlist-empty svg {
  width: 48px;
  height: 48px;
  color: #cccccc;
  margin-bottom: 1rem;
}

.ef-wishlist-empty p {
  color: #666666;
  margin-bottom: 1rem;
}

[data-theme="dark"] .ef-wishlist-section h3 {
  color: #ffffff;
}

[data-theme="dark"] .ef-wishlist-empty {
  background: #252525;
}

[data-theme="dark"] .ef-wishlist-empty p {
  color: #888888;
}

/* ============================================
   2.0.1: Countdown in Archive and Single
   ============================================ */

/* Archive page cards */
.ef-archive-card .ef-countdown {
  margin-bottom: 0.75rem;
}

/* Single post countdown */
.ef-single-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.ef-single-countdown--urgent {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  animation: pulse-urgent 2s ease-in-out infinite;
}

.ef-single-countdown svg {
  width: 16px;
  height: 16px;
}

/* Entry header countdown */
.entry-header .ef-single-countdown {
  margin-top: 0.5rem;
}

/*
====================================================================
VERSION 2.0.1 FIXES
====================================================================
*/

/* ============================================
   FIX: About Image Margin/Padding
   ============================================ */

.ef-about__image {
  padding: 1.5rem;
  box-sizing: border-box;
}

.ef-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .ef-about__image {
    padding: 1rem;
  }
}

/* ============================================
   FIX: Dark Mode - Improved Contrasts
   ============================================ */

/* Override previous dark mode with better contrasts */
[data-theme="dark"] {
  --color-secondary: #f0a050;
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --border-color: #2a2a2a;
}

/* Body */
[data-theme="dark"] body {
  background-color: #0a0a0a !important;
  color: #f5f5f5 !important;
}

/* All Sections */
[data-theme="dark"] .ef-section,
[data-theme="dark"] .ef-section--cream,
[data-theme="dark"] .ef-section--corsi,
[data-theme="dark"] .ef-about,
[data-theme="dark"] .ef-services {
  background-color: #0a0a0a !important;
}

/* Services section - keep dark background */
[data-theme="dark"] .ef-services {
  background-color: #0f0f0f !important;
}

/* Hero sections */
[data-theme="dark"] .ef-hero,
[data-theme="dark"] .ef-contact-hero,
[data-theme="dark"] .ef-about-hero,
[data-theme="dark"] .ef-services-hero {
  background-color: #0f0f0f !important;
}

/* Header */
[data-theme="dark"] .ef-header {
  background: rgba(10, 10, 10, 0.95) !important;
}

[data-theme="dark"] .ef-header--scrolled {
  background: rgba(10, 10, 10, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .ef-header__nav a,
[data-theme="dark"] .ef-nav-menu > li > a,
[data-theme="dark"] .ef-header__cart-toggle,
[data-theme="dark"] .ef-header__account {
  color: #f5f5f5 !important;
}

/* Cards */
[data-theme="dark"] .ef-corso-card-v2,
[data-theme="dark"] .ef-course-card,
[data-theme="dark"] .ef-post-card,
[data-theme="dark"] .ef-service-card {
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .ef-corso-card-v2:hover,
[data-theme="dark"] .ef-course-card:hover,
[data-theme="dark"] .ef-post-card:hover,
[data-theme="dark"] .ef-service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
  border-color: var(--color-secondary) !important;
}

/* Card text */
[data-theme="dark"] .ef-corso-card-v2__title a,
[data-theme="dark"] .ef-course-card__title a,
[data-theme="dark"] .ef-post-card__title a,
[data-theme="dark"] .ef-service-card__title {
  color: #f5f5f5 !important;
}

[data-theme="dark"] .ef-corso-card-v2__excerpt,
[data-theme="dark"] .ef-course-card__excerpt,
[data-theme="dark"] .ef-post-card__excerpt,
[data-theme="dark"] .ef-service-card__desc {
  color: #a0a0a0 !important;
}

[data-theme="dark"] .ef-corso-card-v2__link,
[data-theme="dark"] .ef-post-card__link {
  border-top-color: #2a2a2a !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-corso-card-v2__date,
[data-theme="dark"] .ef-post-card__meta {
  color: #808080 !important;
}

/* Section labels and headings */
[data-theme="dark"] .section-label,
[data-theme="dark"] .section-label--light,
[data-theme="dark"] .ef-section-tag {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-section__header h2,
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .ef-about h2 {
  color: #f5f5f5 !important;
}

[data-theme="dark"] .ef-section__header p,
[data-theme="dark"] p,
[data-theme="dark"] .ef-about p,
[data-theme="dark"] .lead {
  color: #c0c0c0 !important;
}

/* Footer */
[data-theme="dark"] .ef-footer {
  background: #0f0f0f !important;
}

[data-theme="dark"] .ef-footer__bottom {
  background: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .ef-footer p,
[data-theme="dark"] .ef-footer a,
[data-theme="dark"] .ef-footer__column ul li a {
  color: #a0a0a0 !important;
}

[data-theme="dark"] .ef-footer__column h4 {
  color: #f5f5f5 !important;
}

/* About section specific */
[data-theme="dark"] .ef-about__image {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f) !important;
}

[data-theme="dark"] .ef-about__stats {
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
}

[data-theme="dark"] .ef-about__stat-number {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-about__stat-label {
  color: #a0a0a0 !important;
}

/* Features */
[data-theme="dark"] .ef-feature__icon {
  background: rgba(240, 160, 80, 0.1) !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-feature__title {
  color: #f5f5f5 !important;
}

[data-theme="dark"] .ef-feature__desc {
  color: #a0a0a0 !important;
}

/* Buttons */
[data-theme="dark"] .ef-btn--primary {
  background: var(--color-secondary) !important;
  color: #0a0a0a !important;
}

[data-theme="dark"] .ef-btn--primary:hover {
  background: #f5b060 !important;
}

[data-theme="dark"] .ef-btn--outline {
  border-color: #f5f5f5 !important;
  color: #f5f5f5 !important;
}

/* Contact page */
[data-theme="dark"] .ef-contact-card {
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
}

[data-theme="dark"] .ef-contact-card h3 {
  color: #f5f5f5 !important;
}

[data-theme="dark"] .ef-contact-card p,
[data-theme="dark"] .ef-contact-card a {
  color: #a0a0a0 !important;
}

/* Form elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1a1a1a !important;
  border-color: #2a2a2a !important;
  color: #f5f5f5 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--color-secondary) !important;
}

/* Filter buttons */
[data-theme="dark"] .ef-filter-btn {
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-filter-btn:hover,
[data-theme="dark"] .ef-filter-btn.is-active {
  background: var(--color-secondary) !important;
  color: #0a0a0a !important;
}

/* Wishlist button in dark mode */
[data-theme="dark"] .ef-wishlist-btn {
  background: rgba(26, 26, 26, 0.95) !important;
}

/* Mobile nav */
[data-theme="dark"] .ef-mobile-nav {
  background: #0a0a0a !important;
}

[data-theme="dark"] .ef-mobile-nav__menu > li > a {
  color: #f5f5f5 !important;
}

/* Back to top */
[data-theme="dark"] .ef-back-to-top {
  background: var(--color-secondary) !important;
  color: #0a0a0a !important;
}

/* Cart sidebar */
[data-theme="dark"] .ef-cart-sidebar {
  background: #141414 !important;
}

[data-theme="dark"] .ef-cart-sidebar__header {
  background: #1a1a1a !important;
  border-bottom-color: #2a2a2a !important;
}

[data-theme="dark"] .ef-cart-sidebar__header h3 {
  color: #f5f5f5 !important;
}

/*
====================================================================
VERSION 2.1.0
====================================================================
*/

/* ============================================
   2.1: FIX About Image - Contained with margin
   ============================================ */

.ef-about__image {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.ef-about__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .ef-about__image {
    padding: 1.5rem;
  }
}

/* ============================================
   2.1: Header CTA Button - Orange in both modes
   ============================================ */

.ef-header__cta {
  background: var(--color-secondary) !important;
  color: #ffffff !important;
  border: none !important;
}

.ef-header__cta:hover {
  background: #e8944a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(208, 124, 57, 0.4);
}

/* ============================================
   2.1: Single Post CTA Box
   ============================================ */

.ef-single-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  margin: 2.5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #4a1a15 100%);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(57, 17, 14, 0.2);
}

.ef-single-cta__content {
  flex: 1;
  min-width: 250px;
}

.ef-single-cta__content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-cream);
  margin: 0 0 0.5rem 0;
}

.ef-single-cta__content p {
  font-size: 1rem;
  color: rgba(250, 246, 241, 0.8);
  margin: 0;
}

.ef-single-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ef-btn--cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem !important;
  font-weight: 600;
}

.ef-btn--cta svg {
  flex-shrink: 0;
}

.ef-single-cta .ef-btn--primary {
  background: var(--color-secondary);
  color: #ffffff;
}

.ef-single-cta .ef-btn--primary:hover {
  background: #e8944a;
}

.ef-single-cta .ef-btn--outline {
  border: 2px solid var(--color-cream);
  color: var(--color-cream);
  background: transparent;
}

.ef-single-cta .ef-btn--outline:hover {
  background: var(--color-cream);
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .ef-single-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .ef-single-cta__actions {
    width: 100%;
    justify-content: center;
  }
  
  .ef-btn--cta {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode CTA */
[data-theme="dark"] .ef-single-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  border: 1px solid #333;
}

/* ============================================
   2.1: Social Icons - Better Dark Mode Contrast
   ============================================ */

[data-theme="dark"] .ef-footer__social .ef-social__link {
  color: #f5f5f5 !important;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .ef-footer__social .ef-social__link svg {
  fill: #f5f5f5 !important;
  width: 22px;
  height: 22px;
}

[data-theme="dark"] .ef-footer__social .ef-social__link:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

[data-theme="dark"] .ef-footer__social .ef-social__link:hover svg {
  fill: #ffffff !important;
}

/* Mobile nav social dark mode */
[data-theme="dark"] .ef-mobile-nav__social .ef-social__link {
  background: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .ef-mobile-nav__social .ef-social__link svg {
  fill: #f5f5f5 !important;
}

/* ============================================
   2.1: ACCESSIBILITY
   ============================================ */

/* Skip Link - Visibile solo con focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-cream);
  padding: 1rem 2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Improved Focus Visible - Better keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--color-secondary) !important;
  outline-offset: 3px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-secondary) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

/* Remove outline on mouse click */
*:focus:not(:focus-visible) {
  outline: none !important;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .ef-fade-in,
  .ef-fade-up,
  .ef-scale-in,
  .ef-stagger > *,
  .ef-stagger-up > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  .ef-corso-card-v2:hover,
  .ef-service-card:hover,
  .ef-post-card:hover {
    transform: none !important;
  }
  
  .ef-corso-card-v2__image,
  .ef-post-card__image img {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #ff6600;
    --color-cream: #ffffff;
  }
  
  .ef-btn--primary {
    border: 2px solid currentColor;
  }
  
  .ef-corso-card-v2,
  .ef-service-card,
  .ef-post-card {
    border: 2px solid var(--color-primary);
  }
}

/* Screen reader only class */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-cream);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--color-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/*
====================================================================
END ETRUSCAFORM THEME v2.1.0
====================================================================
*/
