/*
Theme Name: Edilfima WOW
Author: Anthilla AI
Author URI: https://anthilla.com
Description: Custom theme for Edilfima - edilizia e ristrutturazioni. Warm copper palette, WCAG AA+ compliant, full ARIA accessibility.
Version: 2.5.0
License: GPLv2+
Text Domain: edilfima-wow
*/

/* ================================================================
   EDILFIMA WOW v2.5.0 - Warm Copper Palette (canonico AGENTS.md)
   Copper/terracotta accent, warm off-white bg, construction-grade
   ================================================================ */

:root {
  /* ================================================================
     EDILFIMA WOW v2.5 - Warm neutral copper palette (canonico AGENTS.md)
     Construction-grade: copper/terracotta accent, warm off-white bg
     ================================================================ */

  /* Background - warm neutral layers */
  --ef-bg: #faf8f5;                 /* warm off-white, main bg */
  --ef-bg-alt: #f5f1ec;             /* soft warm, alternate sections */
  --ef-bg-elevated: #ffffff;        /* pure white, cards */
  --ef-bg-soft: #efe9e1;            /* deeper warm, elevated blocks */
  --ef-bg-dark: #2a2520;            /* warm dark, footer */

  /* Accent - copper/terracotta (costruzione, calore, fiducia) */
  --ef-accent: #b87333;             /* copper, 4.5:1 on white = AA */
  --ef-accent-hover: #8f5a26;       /* deep copper hover */
  --ef-accent-bright: #d4915a;      /* bright copper, highlights */
  --ef-accent-light: #f0e4d6;       /* warm tint, background only */
  --ef-accent-border: #d4b896;      /* subtle copper border */

  /* Text - warm dark scale */
  --ef-text: #2a2520;               /* warm dark, 12:1 on white = AAA */
  --ef-text-secondary: #6b6358;     /* warm dim, 7:1 on white = AAA */
  --ef-text-muted: #9a9088;         /* warm muted, 4.5:1 = AA */
  --ef-text-on-dark: #faf8f5;       /* warm off-white on dark bg */
  --ef-text-on-dark-muted: #c4b8a8; /* warm muted on dark */
  --ef-on-accent: #ffffff;          /* white on copper */

  /* Borders - warm scale */
  --ef-border: #d4c9b8;             /* warm border */
  --ef-border-strong: #b8a890;      /* strong warm border */
  --ef-border-subtle: #e8e0d4;      /* subtle warm border */

  /* Focus - visible ring (WCAG 2.4.7) */
  --ef-focus: #b87333;              /* copper focus */
  --ef-focus-offset: 3px;
  --ef-focus-width: 3px;

  /* Shadows - soft warm elevation */
  --ef-shadow-1: 0 1px 3px rgba(42, 37, 32, 0.08);
  --ef-shadow-2: 0 4px 12px rgba(42, 37, 32, 0.12);
  --ef-shadow-3: 0 12px 32px rgba(42, 37, 32, 0.16);

  /* Spacing scale */
  --ef-space-xs: 0.5rem;
  --ef-space-sm: 1rem;
  --ef-space-md: 2rem;
  --ef-space-lg: 4rem;
  --ef-space-xl: 6rem;

  /* Layout */
  --ef-max-width: 1200px;
  --ef-radius: 8px;
  --ef-radius-sm: 4px;

  /* Transition */
  --ef-transition: 200ms ease-out;

  /* Font scale (rem-based, 16px root) */
  --ef-font-body: 1.125rem;         /* 18px body */
  --ef-font-small: 1rem;            /* 16px small */
  --ef-font-h1: clamp(2rem, 5vw, 3rem);
  --ef-font-h2: clamp(1.5rem, 4vw, 2.25rem);
  --ef-font-h3: 1.5rem;
}

/* ================================================================
   RESET + BASE
   ================================================================ */

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

/* Global list reset - no default bullets/numbers */
ul, ol { list-style: none; }

/* Re-enable list style for explicit content lists (editor blocks) */
.entry-content ul:not([class]),
.entry-content ol:not([class]) {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.entry-content ol:not([class]) { list-style: decimal; }
.entry-content li:not([class]) { margin-bottom: 0.3rem; }

html {
  scroll-behavior: smooth;
  font-size: 100%;                   /* 16px root, respect user setting */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--ef-font-body);
  line-height: 1.7;                  /* WCAG 1.4.12: 1.5+ for text blocks */
  color: var(--ef-text);
  background: var(--ef-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;                 /* offset for fixed header (all pages) */
}

/* ================================================================
   SKIP LINK (WCAG 2.4.1)
   ================================================================ */

.ef-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  padding: var(--ef-space-sm) var(--ef-space-md);
  background: var(--ef-accent);
  color: var(--ef-on-accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--ef-radius-sm) 0;
  transition: top var(--ef-transition);
}

.ef-skip-link:focus {
  top: 0;
  outline: var(--ef-focus-width) solid var(--ef-focus);
  outline-offset: var(--ef-focus-offset);
}

/* ================================================================
   WIP BANNER (avviso sito in allestimento, come MVP Anthilla)
   WCAG AAA: amber bg + dark text, role=status, aria-label
   ================================================================ */

.ef-wip-banner {
  background: #fef3c7;              /* amber-100, soft warning bg */
  border-bottom: 2px solid #f59e0b; /* amber-500, accent border */
  padding: 0.625rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ef-text);                   /* slate-900, 16:1 on amber-100 = AAA */
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ef-wip-banner__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ef-wip-banner__text {
  flex: 1 1 auto;
  max-width: 80ch;
}

.ef-wip-banner__text a {
  color: var(--ef-accent);                   /* blue-800, 8.6:1 on amber-100 = AAA */
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.ef-wip-banner__text a:hover {
  color: var(--ef-accent-hover);                   /* blue-900, 10:1 on amber-100 = AAA */
}

.ef-wip-banner__text a:focus-visible {
  outline: 3px solid var(--ef-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .ef-wip-banner {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    text-align: left;
  }
}

/* ================================================================
   FOCUS VISIBLE (WCAG 2.4.7 + 2.4.11)
   ================================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: var(--ef-focus-width) solid var(--ef-focus);
  outline-offset: var(--ef-focus-offset);
  border-radius: var(--ef-radius-sm);
}

/* Remove outline only for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ================================================================
   TYPOGRAPHY (WCAG 1.3.1 heading hierarchy)
   ================================================================ */

h1, h2, h3, h2, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--ef-text);
}

h1 { font-size: var(--ef-font-h1); }
h2 { font-size: var(--ef-font-h2); }
h3 { font-size: var(--ef-font-h3); }

p { margin-bottom: var(--ef-space-sm); }

a {
  color: var(--ef-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ef-transition);
}

a:hover {
  color: var(--ef-accent-hover);
  text-decoration-thickness: 2px;
}

a:visited {
  color: var(--ef-accent-hover);
}

/* ================================================================
   SCREEN READER ONLY (WCAG 1.3.1)
   ================================================================ */

.ef-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================================================
   HEADER / NAV (ARIA landmark: banner)
   ================================================================ */

.ef-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ef-border-subtle);
}

.ef-nav {
  max-width: var(--ef-max-width);
  margin: 0 auto;
  padding: var(--ef-space-sm) var(--ef-space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ef-space-md);
}

.ef-nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ef-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.ef-nav-logo span {
  color: var(--ef-accent);
}

.ef-nav-logo:hover {
  color: var(--ef-accent-hover);
}

.ef-nav-menu {
  list-style: none;
  display: flex;
  gap: var(--ef-space-md);
  margin: 0;
}

.ef-nav-menu li { margin: 0; }

.ef-nav-menu a {
  color: var(--ef-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: var(--ef-space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--ef-transition), border-color var(--ef-transition);
}

.ef-nav-menu a:hover,
.ef-nav-menu a:focus-visible {
  color: var(--ef-accent);
  border-bottom-color: var(--ef-accent);
}

.ef-nav-menu a[aria-current="page"] {
  color: var(--ef-accent);
  border-bottom-color: var(--ef-accent);
}

/* ================================================================
   MAIN (ARIA landmark: main)
   ================================================================ */

main {
  display: block;
}

/* ================================================================
   HERO
   ================================================================ */

.ef-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--ef-space-xl) var(--ef-space-md) var(--ef-space-lg);
  max-width: var(--ef-max-width);
  margin: 0 auto;
  padding-top: var(--ef-space-lg);   /* body already offsets fixed header */
}

/* Hero con immagine di sfondo + overlay scuro per leggibilità */
.ef-hero-with-bg {
  max-width: none;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
}
.ef-hero-with-bg .ef-hero-content {
  max-width: var(--ef-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--ef-space-md);
  /* S45-35: sposta il blocco più in basso nella hero per liberare la faccia dei fratelli */
  margin-top: 120px;
}
/* Card contenuto hero: sfondo colorato trasparente 20%, allineato a sinistra
   S45-35 (2026-08-30): +56% larghezza (640→1000px) e -40% altezza (padding top/bottom 4rem→2.4rem) */
.ef-hero-with-bg .ef-hero-text-card {
  background: rgba(184, 115, 51, 0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 4px solid var(--ef-accent);
  padding: 2.4rem var(--ef-space-lg) 2.4rem var(--ef-space-md);
  max-width: 1000px;
  border-radius: 0 var(--ef-radius) var(--ef-radius) 0;
  text-align: left;
}
.ef-hero-with-bg .ef-hero-eyebrow,
.ef-hero-with-bg .ef-hero-title,
.ef-hero-with-bg .ef-hero-subtitle {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.ef-hero-with-bg .ef-hero-title em {
  color: var(--ef-accent-bright, #d4915a);
}
.ef-hero-with-bg .ef-hero-cta {
  background: var(--ef-accent);
  color: #fff;
  border: 2px solid var(--ef-accent);
}
.ef-hero-with-bg .ef-hero-cta:hover,
.ef-hero-with-bg .ef-hero-cta:focus-visible {
  background: #fff;
  color: var(--ef-text);
  border-color: #fff;
}
@media (max-width: 768px) {
  .ef-hero-with-bg .ef-hero-text-card {
    max-width: 100%;
    padding: var(--ef-space-md);
    border-radius: var(--ef-radius);
    border-left-width: 4px;
  }
}

.ef-hero-eyebrow {
  font-size: var(--ef-font-small);
  font-weight: 600;
  color: var(--ef-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ef-space-sm);
}

.ef-hero-title {
  font-size: var(--ef-font-h1);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--ef-space-md);
  max-width: 800px;
}

.ef-hero-title em {
  color: var(--ef-accent);
  font-style: normal;
  font-weight: 800;
}

.ef-hero-subtitle {
  font-size: var(--ef-font-body);
  color: var(--ef-text-secondary);
  max-width: 900px;
  margin-bottom: var(--ef-space-lg);
}

.ef-hero-cta {
  padding: var(--ef-space-sm) var(--ef-space-lg);
  background: var(--ef-btn-blue);
  color: #fff;
  font-size: 1.125rem;
  border-radius: var(--ef-radius);
  border: 2px solid var(--ef-btn-blue);
  box-shadow: 0 4px 14px rgba(29, 78, 214, 0.4), 0 2px 6px rgba(0,0,0,0.18);
}

.ef-hero-cta:hover {
  background: var(--ef-btn-blue-hover);
  border-color: var(--ef-btn-blue-hover);
  color: #fff;
  box-shadow: 0 0 24px rgba(29, 78, 214, 0.85), 0 6px 18px rgba(29, 78, 214, 0.55);
}

.ef-hero-cta svg {
  flex-shrink: 0;
}

/* ================================================================
   SECTIONS (shared)
   ================================================================ */

.ef-section {
  padding: var(--ef-space-xl) var(--ef-space-lg);
  max-width: var(--ef-max-width);
  margin: 0 auto;
}

.ef-section-alt {
  background: var(--ef-bg-alt);
  padding: var(--ef-space-xl) var(--ef-space-lg);
}

.ef-section-alt-inner {
  max-width: var(--ef-max-width);
  margin: 0 auto;
}

.ef-section-label {
  font-size: var(--ef-font-small);
  font-weight: 600;
  color: var(--ef-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ef-space-xs);
}

.ef-section-title {
  font-size: var(--ef-font-h2);
  font-weight: 800;
  margin-bottom: var(--ef-space-md);
}

.ef-section-text {
  font-size: var(--ef-font-body);
  color: var(--ef-text-secondary);
  max-width: 720px;
}

/* ================================================================
   PAGE CONTENT - tipografia per il content delle pagine statiche
   (chi-siamo, servizi, etc.) - più respiro tra paragrafi e heading
   ================================================================ */
.ef-section .ef-reveal > p,
.ef-section .ef-reveal > ul,
.ef-section .ef-reveal > ol {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ef-text);
  max-width: 1100px;
  margin-bottom: 1.75rem;
}
.ef-section .ef-reveal > p:last-child {
  margin-bottom: 0;
}
.ef-section .ef-reveal > h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--ef-text);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.ef-section .ef-reveal > h2:first-child {
  margin-top: 0;
}
.ef-section .ef-reveal > h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ef-text);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.ef-section .ef-reveal > ul,
.ef-section .ef-reveal > ol {
  padding-left: 1.5rem;
  list-style: disc;
}
.ef-section .ef-reveal > ol {
  list-style: decimal;
}
.ef-section .ef-reveal > ul li,
.ef-section .ef-reveal > ol li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}
.ef-section .ef-reveal > ul li:last-child,
.ef-section .ef-reveal > ol li:last-child {
  margin-bottom: 0;
}
.ef-section .ef-reveal > p strong {
  color: var(--ef-text);
  font-weight: 700;
}
.ef-section .ef-reveal > p a:not(.ef-btn) {
  color: var(--ef-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ================================================================
   SERVICES GRID
   ================================================================ */

.ef-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--ef-space-md);
  margin-top: var(--ef-space-lg);
}

.ef-service-card {
  background: var(--ef-bg-elevated);
  border: 1px solid var(--ef-border-subtle);
  border-radius: var(--ef-radius);
  padding: var(--ef-space-md);
  box-shadow: var(--ef-shadow-1);
  transition: box-shadow var(--ef-transition), border-color var(--ef-transition), transform var(--ef-transition);
}

.ef-service-card:hover {
  box-shadow: var(--ef-shadow-2);
  border-color: var(--ef-accent-border);
  transform: translateY(-2px);
}

.ef-service-icon {
  font-size: 2rem;
  color: var(--ef-accent);
  margin-bottom: var(--ef-space-sm);
  line-height: 1;
}

.ef-service-title {
  font-size: var(--ef-font-h3);
  font-weight: 700;
  margin-bottom: var(--ef-space-xs);
}

.ef-service-desc {
  font-size: var(--ef-font-small);
  color: var(--ef-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   PROJECTS GRID
   ================================================================ */

.ef-project-card {
  background: var(--ef-bg);
  border: 1px solid var(--ef-border-subtle);
  border-radius: var(--ef-radius);
  overflow: hidden;
  transition: box-shadow var(--ef-transition), border-color var(--ef-transition);
}

.ef-project-card:hover {
  box-shadow: var(--ef-shadow-2);
  border-color: var(--ef-accent-border);
}

.ef-project-image {
  height: 240px;
  background: var(--ef-bg-elevated);
  background-size: cover;
  background-position: center;
}

.ef-project-placeholder {
  height: 240px;
  background: var(--ef-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-project-placeholder span {
  font-size: 3rem;
  color: var(--ef-accent);
  opacity: 0.3;
}

.ef-project-body {
  padding: var(--ef-space-md);
}

.ef-project-title {
  font-size: var(--ef-font-h3);
  font-weight: 700;
  margin-bottom: var(--ef-space-xs);
}

.ef-project-desc {
  font-size: var(--ef-font-small);
  color: var(--ef-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ================================================================
   CONTACT
   ================================================================ */

.ef-contact {
  background: var(--ef-bg-alt);
  padding: var(--ef-space-xl) var(--ef-space-lg);
}

.ef-contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Center section-text inside contact (it has max-width 720px without auto margins) */
.ef-contact-inner .ef-section-text {
  margin-left: auto;
  margin-right: auto;
}

.ef-contact-title {
  font-size: var(--ef-font-h2);
  font-weight: 800;
  margin-bottom: var(--ef-space-md);
}

.ef-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--ef-space-md);
  margin-top: var(--ef-space-lg);
  text-align: left;
}

.ef-contact-item {
  background: var(--ef-bg-elevated);
  border: 1px solid var(--ef-border-subtle);
  border-radius: var(--ef-radius);
  padding: var(--ef-space-md);
}

.ef-contact-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ef-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ef-space-xs);
}

.ef-contact-value {
  font-size: var(--ef-font-body);
  color: var(--ef-text);
  font-weight: 500;
}

.ef-contact-value a:not(.ef-btn) {
  color: var(--ef-accent);
  font-weight: 600;
}

/* ================================================================
   FOOTER (ARIA landmark: contentinfo)
   ================================================================ */

/* ================================================================
   FOOTER - bottom bar orizzontale compatta (v2.1.1)
   Layout: 3 colonne flex (brand | contacts | links) su una riga
   + copyright su riga sotto. Padding ridotto, align-items center.
   Mobile: stack verticale.
   ================================================================ */

.ef-footer {
  background: var(--ef-bg-dark);
  color: var(--ef-text-on-dark);
  padding: 1.5rem var(--ef-space-md) 0.75rem;
}

/* Footer CTA bar - pre-footer call to action */
.ef-footer-cta {
  background: var(--ef-bg-soft);
  padding: var(--ef-space-xl) var(--ef-space-md);
  text-align: center;
  border-top: 1px solid var(--ef-border-subtle);
  border-bottom: 1px solid var(--ef-border-subtle);
}
.ef-footer-cta-inner {
  max-width: var(--ef-max-width);
  margin: 0 auto;
}
.ef-footer-cta-title {
  font-size: var(--ef-font-h2);
  font-weight: 800;
  color: var(--ef-text);
  margin: 0 0 var(--ef-space-sm);
  letter-spacing: -0.02em;
}
.ef-footer-cta-text {
  font-size: 1.05rem;
  color: var(--ef-text-secondary);
  margin: 0 0 var(--ef-space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ef-footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ef-space-sm);
}
.ef-footer-cta-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--ef-radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--ef-transition);
  border: 2px solid transparent;
}
.ef-footer-cta-buttons a.ef-cta-primary {
  background: var(--ef-accent);
  color: var(--ef-on-accent);
  border-color: var(--ef-accent);
}
.ef-footer-cta-buttons a.ef-cta-primary:hover {
  background: var(--ef-accent-hover);
  border-color: var(--ef-accent-hover);
}
.ef-footer-cta-buttons a.ef-cta-secondary {
  background: transparent;
  color: var(--ef-text);
  border-color: var(--ef-border-strong);
}
.ef-footer-cta-buttons a.ef-cta-secondary:hover {
  border-color: var(--ef-accent);
  color: var(--ef-accent);
}
@media (max-width: 768px) {
  .ef-footer-cta {
    padding: var(--ef-space-lg) var(--ef-space-md);
  }
  .ef-footer-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .ef-footer-cta-buttons a {
    justify-content: center;
  }
}

.ef-footer-inner {
  max-width: var(--ef-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--ef-space-md);
  flex-wrap: wrap;
}

.ef-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Brand column */
.ef-footer-brand {
  flex-shrink: 0;
}
.ef-footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ef-text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ef-footer-logo span { color: var(--ef-accent); }
.ef-footer-logo-img {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 0 0.75rem 0;
  opacity: 0.95;
}

.ef-footer-tagline {
  font-size: 0.75rem;
  color: var(--ef-text-on-dark-muted);
  letter-spacing: 0.02em;
}

/* Contacts column - inline items, compact */
.ef-footer-contacts {
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ef-text-on-dark-muted);
  justify-content: center;
}
.ef-footer-contacts a:not(.ef-btn) {
  color: var(--ef-text-on-dark);
  text-decoration: none;
  font-weight: 600;
}
.ef-footer-contacts a:not(.ef-btn):hover,
.ef-footer-contacts a:not(.ef-btn):focus-visible {
  color: var(--ef-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ef-footer-contacts a:not(.ef-btn):focus-visible {
  outline: 3px solid var(--ef-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.ef-footer-addr,
.ef-footer-piva {
  font-size: 0.75rem;
  color: var(--ef-text-on-dark-muted);
}

/* Nav column */
.ef-footer-nav { flex-shrink: 0; }
.ef-footer-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--ef-space-sm);
  margin: 0;
  padding: 0;
}
.ef-footer-links a {
  color: var(--ef-text-on-dark-muted);
  text-decoration: none;
  font-size: 0.8125rem;
}
.ef-footer-links a:hover,
.ef-footer-links a:focus-visible {
  color: var(--ef-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ef-footer-links a:focus-visible {
  outline: 3px solid var(--ef-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Copyright - riga sotto, centrata */
.ef-footer-copy {
  max-width: var(--ef-max-width);
  margin: 0.5rem auto 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.75rem;
  color: var(--ef-text-on-dark-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Mobile: stack verticale */
@media (max-width: 768px) {
  .ef-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ef-space-sm);
  }
  .ef-footer-contacts {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .ef-footer-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ================================================================
   REVEAL ANIMATION (respects reduced-motion)
   ================================================================ */

.ef-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.ef-reveal.ef-revealed,
.ef-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   REDUCED MOTION (WCAG 2.3.3)
   ================================================================ */

@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-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  .ef-nav-menu {
    display: none;                   /* hide full menu on mobile, actions suffice */
  }

  .ef-nav {
    flex-wrap: wrap;
    gap: var(--ef-space-xs);
    padding: 0.5rem var(--ef-space-md);
  }

  .ef-nav-logo {
    font-size: 1.25rem;
  }

  .ef-nav-actions {
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .ef-nav-tel span,
  .ef-nav-whatsapp span {
    display: none;                   /* icon-only on mobile */
  }

  .ef-nav-cta {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .ef-lang-current {
    padding: 0.35rem 0.5rem;
  }

  .ef-hero {
    padding-top: var(--ef-space-md);
    min-height: auto;
    padding-bottom: var(--ef-space-xl);
  }

  .ef-section,
  .ef-section-alt,
  .ef-contact {
    padding-left: var(--ef-space-md);
    padding-right: var(--ef-space-md);
  }

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

  .ef-contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ef-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .ef-nav-actions {
    gap: 0.3rem;
  }

  .ef-nav-cta {
    display: none;                   /* CTA hidden on very small, tel+WA suffice */
  }
}

/* ================================================================
   HIGH CONTRAST MODE (Windows/Accessibility tools)
   ================================================================ */

@media (forced-colors: active) {
  .ef-service-card,
  .ef-project-card,
  .ef-contact-item {
    border: 1px solid CanvasText;
  }

  .ef-hero-cta {
    border: 2px solid CanvasText;
  }
}

/* ================================================================
   PRINT
   ================================================================ */

@media print {
  .ef-header,
  .ef-hero-cta,
  .ef-footer-links,
  .ef-footer-cta,
  .ef-wa-float {
    display: none;
  }

  .ef-reveal {
    opacity: 1;
    transform: none;
  }

  body {
    color: #000;
    background: var(--ef-bg-elevated);
    font-size: 12pt;
  }
}

/* ================================================================
   v2.2 - Header actions (tel + WhatsApp + CTA + lang switcher)
   ================================================================ */

.ef-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ================================================================
   BUTTON SYSTEM v5 - stili unificati coerenti (S45-35, 2026-08-30)
   Regole colore:
   - Bottoni bianchi → testo nero neutro #1a1a1a (no warm/marrone)
   - Bottoni verdi (WhatsApp) → testo bianco
   - Bottoni blu (CTA/primary/hero) → testo bianco
   - Bottoni share colorati → testo bianco
   - Hover: testo SEMPRE bianco (eccetto bianchi che restano scuri),
     glow colore brand, lift -2px
   - Mai testo marrone, mai testo stesso colore del bottone
   ================================================================
   Standardizzazione effetti (S45-35):
   - Ogni variante definisce --ef-btn-accent (colore glow) e
     --ef-btn-accent-rgb (canali RGB per rgba())
   - Hover: lift -2px + glow 0 0 20px rgba(accent,0.7) + shadow 0 6px 16px rgba(0,0,0,0.22)
   - Focus-visible: lift -2px + outline 3px white + 5px accent + glow 0 0 24px rgba(accent,0.9)
   - Active: scale 0.97 + glow 0 0 28px rgba(accent,1) + inset 0 0 12px rgba(255,255,255,0.3)
   - Tutti i parametri (size, opacity, shadow, timing) IDENTICI tra varianti
   ================================================================ */
:root {
  --ef-btn-blue: #1d4ed6;       /* blu CTA principale (blue-700) */
  --ef-btn-blue-hover: #1e40af; /* blu hover (blue-800) */
  --ef-btn-dark: #1a1a1a;       /* nero neutro per testo su bianco */
}

/* Base: tutte le varianti condividono struttura + transitions identiche */
.ef-nav-tel,
.ef-nav-whatsapp,
.ef-nav-cta,
.ef-btn,
.ef-btn-sm,
.ef-share-btn,
.ef-hero-cta,
.ef-wa-float,
.ef-faq-cta .ef-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.1;
}

/* Base padding/font (override per variant) */
.ef-nav-tel,
.ef-nav-whatsapp,
.ef-nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.12);
}

/* Hover comune: lift -2px (parametro identico per tutte le varianti) */
.ef-nav-tel:hover,
.ef-nav-whatsapp:hover,
.ef-nav-cta:hover,
.ef-btn:hover,
.ef-btn-phone:hover,
.ef-btn-whatsapp:hover,
.ef-btn-primary:hover,
.ef-btn-email:hover,
.ef-share-btn:hover,
.ef-hero-cta:hover {
  transform: translateY(-2px);
}

/* Variant: tel/phone/email (bianco -> hover blu, testo scuro -> bianco)
   Accent: blu #1d4ed6 (RGB 29, 78, 214) */
.ef-nav-tel,
.ef-btn-phone,
.ef-btn-email {
  --ef-btn-accent: var(--ef-btn-blue);
  --ef-btn-accent-rgb: 29, 78, 214;
  color: var(--ef-btn-dark);
  background: #fff;
  border-color: rgba(29, 78, 214, 0.35);
}
.ef-nav-tel:hover,
.ef-btn-phone:hover,
.ef-btn-email:hover {
  background: var(--ef-btn-blue);
  border-color: var(--ef-btn-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--ef-btn-accent-rgb), 0.7), 0 6px 16px rgba(0,0,0,0.22);
}

/* Variant: WhatsApp (verde brand, testo nero -> hover bianco)
   Accent: verde #25d366 (RGB 37, 211, 102) */
.ef-nav-whatsapp,
.ef-btn-whatsapp {
  --ef-btn-accent: #25d366;
  --ef-btn-accent-rgb: 37, 211, 102;
  color: #1a1a1a;
  background: #25d366;
  border-color: #25d366;
}
.ef-nav-whatsapp:hover,
.ef-btn-whatsapp:hover {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--ef-btn-accent-rgb), 0.7), 0 6px 16px rgba(0,0,0,0.22);
}

/* Variant: CTA/primary/hero (blu, testo bianco)
   Accent: blu #1d4ed6 (RGB 29, 78, 214) */
.ef-nav-cta,
.ef-btn-primary,
.ef-hero-cta {
  --ef-btn-accent: var(--ef-btn-blue);
  --ef-btn-accent-rgb: 29, 78, 214;
  color: #fff;
  background: var(--ef-btn-blue);
  border-color: var(--ef-btn-blue);
}
.ef-nav-cta:hover,
.ef-btn-primary:hover,
.ef-hero-cta:hover {
  background: var(--ef-btn-blue-hover);
  border-color: var(--ef-btn-blue-hover);
  color: #fff;
  box-shadow: 0 0 20px rgba(var(--ef-btn-accent-rgb), 0.7), 0 6px 16px rgba(0,0,0,0.22);
}
.ef-nav-cta {
  color: #fff !important;
  background: var(--ef-btn-blue) !important;
}
.ef-nav-cta:hover {
  color: #fff !important;
  background: var(--ef-btn-blue-hover) !important;
}

/* ================================================================
   NEON LED GLOW - stati :focus-visible e :active per tutti i bottoni
   Effetto bordo illuminato neon su hover, focus keyboard, active
   Parametri IDENTICI per tutte le varianti (cambia solo il colore)
   ================================================================ */
.ef-nav-tel:focus-visible,
.ef-nav-whatsapp:focus-visible,
.ef-nav-cta:focus-visible,
.ef-btn:focus-visible,
.ef-btn-phone:focus-visible,
.ef-btn-whatsapp:focus-visible,
.ef-btn-primary:focus-visible,
.ef-btn-email:focus-visible,
.ef-hero-cta:focus-visible,
.ef-share-btn:focus-visible,
.ef-wa-float:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

/* Focus-visible: glow neon forte + outline doppio per accessibilità
   Parametri standard: 3px white + 5px accent + 24px glow 0.9 */
.ef-nav-tel:focus-visible,
.ef-btn-phone:focus-visible,
.ef-btn-email:focus-visible {
  background: var(--ef-btn-accent);
  color: #fff;
  border-color: var(--ef-btn-accent);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 5px var(--ef-btn-accent), 0 0 24px rgba(var(--ef-btn-accent-rgb), 0.9);
}
.ef-nav-whatsapp:focus-visible,
.ef-btn-whatsapp:focus-visible {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 5px var(--ef-btn-accent), 0 0 24px rgba(var(--ef-btn-accent-rgb), 0.9);
}
.ef-nav-cta:focus-visible,
.ef-btn-primary:focus-visible,
.ef-hero-cta:focus-visible {
  background: var(--ef-btn-blue-hover);
  color: #fff;
  border-color: var(--ef-btn-blue-hover);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 5px var(--ef-btn-accent), 0 0 24px rgba(var(--ef-btn-accent-rgb), 0.9);
}
.ef-share-btn:focus-visible {
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 5px currentColor, 0 0 24px currentColor;
  filter: brightness(1.15);
}
.ef-wa-float:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 5px #25d366, 0 0 24px rgba(37, 211, 102, 0.9);
  transform: scale(1.12);
}

/* Active: glow neon massimo + scale 0.97 (feedback pressione)
   Parametri standard: 28px glow 1.0 + inset 12px white 0.3 */
.ef-nav-tel:active,
.ef-nav-whatsapp:active,
.ef-nav-cta:active,
.ef-btn:active,
.ef-btn-phone:active,
.ef-btn-whatsapp:active,
.ef-btn-primary:active,
.ef-btn-email:active,
.ef-hero-cta:active,
.ef-share-btn:active {
  transform: translateY(0) scale(0.97);
  transition: transform 0.08s ease;
}
.ef-nav-tel:active,
.ef-btn-phone:active,
.ef-btn-email:active {
  background: var(--ef-btn-blue-hover);
  color: #fff;
  box-shadow: 0 0 28px rgba(var(--ef-btn-accent-rgb), 1), inset 0 0 12px rgba(255,255,255,0.3);
}
.ef-nav-whatsapp:active,
.ef-btn-whatsapp:active {
  background: #166534;
  color: #fff;
  box-shadow: 0 0 28px rgba(var(--ef-btn-accent-rgb), 1), inset 0 0 12px rgba(255,255,255,0.3);
}
.ef-nav-cta:active,
.ef-btn-primary:active,
.ef-hero-cta:active {
  background: #1a3a9c;
  color: #fff;
  box-shadow: 0 0 28px rgba(var(--ef-btn-accent-rgb), 1), inset 0 0 12px rgba(255,255,255,0.3);
}
.ef-share-btn:active {
  color: #fff;
  box-shadow: 0 0 28px currentColor, inset 0 0 12px rgba(255,255,255,0.3);
  filter: brightness(0.95);
}
.ef-wa-float:active {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(37, 211, 102, 1), inset 0 0 12px rgba(255,255,255,0.3);
}

/* Polylang language switcher in nav */
.ef-nav-actions .pll-parent-menu-item,
.ef-nav-actions ul.pll-lang-list {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}
.ef-nav-actions .pll-lang-item a {
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
}
.ef-nav-actions .pll-lang-item.current-lang a {
  border-color: var(--ef-accent);
  font-weight: 700;
}

/* ================================================================
   v2.4 - Custom language switcher dropdown with flag
   ================================================================ */

.ef-lang-switcher {
  position: relative;
  display: inline-block;
}

.ef-lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  background: var(--ef-bg-elevated);
  border: 1px solid var(--ef-border);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ef-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.ef-lang-current:hover,
.ef-lang-current:focus-visible {
  border-color: var(--ef-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.15);
}
.ef-lang-current[aria-expanded="true"] {
  border-color: var(--ef-accent);
  box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.15);
}

.ef-lang-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ef-lang-flag img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
}

.ef-lang-code {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.ef-lang-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
  opacity: 0.6;
}
.ef-lang-current[aria-expanded="true"] .ef-lang-arrow {
  transform: rotate(180deg);
}

.ef-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  background: var(--ef-bg-elevated);
  border: 1px solid var(--ef-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(42, 37, 32, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.ef-lang-dropdown.ef-lang-dropdown-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ef-lang-option {
  margin: 0;
}
.ef-lang-option a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  color: var(--ef-text);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.ef-lang-option a:hover,
.ef-lang-option a:focus-visible {
  background: var(--ef-bg-alt);
  color: var(--ef-accent);
  outline: none;
}
.ef-lang-option-current a {
  background: rgba(184, 115, 51, 0.08);
  color: var(--ef-accent);
  font-weight: 700;
}
.ef-lang-option-current a::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--ef-accent);
}

.ef-lang-name {
  flex: 1;
}

.ef-lang-code-small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ef-text-muted);
  letter-spacing: 0.02em;
}
.ef-lang-option-current .ef-lang-code-small {
  color: var(--ef-accent);
}

@media (max-width: 768px) {
  .ef-lang-dropdown {
    right: 0;
    min-width: 160px;
  }
  .ef-lang-current {
    padding: 0.4rem 0.55rem;
  }
}

@media (max-width: 768px) {
  .ef-nav-actions {
    gap: 0.4rem;
  }
  .ef-nav-tel span,
  .ef-nav-whatsapp span {
    display: none;
  }
  .ef-nav-cta {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ================================================================
   v2.2 - Footer CTA bar
   ================================================================ */

.ef-footer-cta {
  background: var(--ef-text);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.ef-footer-cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.ef-footer-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.ef-footer-cta-text {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Base padding/font per .ef-btn (le variant colors sono nel BUTTON SYSTEM v5 sopra) */
.ef-btn {
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12);
}

/* Bottone piccolo (inline in liste contatti/footer) */
.ef-btn.ef-btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1);
}

/* NOTE: Le variant .ef-btn-phone, .ef-btn-email, .ef-btn-whatsapp, .ef-btn-primary
   con i relativi hover/focus/active sono definite nel BUTTON SYSTEM v5 (sezione sopra).
   Non duplicare qui le regole colore/hover per evitare override e inconsistenza. */

/* ================================================================
   v2.2 - Footer tagline extra
   ================================================================ */

.ef-footer-tagline-2 {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* ================================================================
   v2.2 - FAQ section
   ================================================================ */

.ef-faq-section {
  background: rgba(184, 115, 51,0.04);
}

.ef-faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.ef-faq-item {
  border: 1px solid rgba(42, 37, 32,0.12);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: var(--ef-bg-elevated);
  overflow: hidden;
}

.ef-faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ef-faq-q::-webkit-details-marker { display: none; }
.ef-faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ef-accent);
  transition: transform 0.2s;
}
.ef-faq-item[open] .ef-faq-q::after {
  transform: rotate(45deg);
}

.ef-faq-a {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  line-height: 1.6;
  color: rgba(42, 37, 32,0.8);
}

.ef-faq-cta {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.ef-faq-cta p {
  width: 100%;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

/* ================================================================
   v2.2 - Breadcrumb
   ================================================================ */

.ef-breadcrumb {
  padding: var(--ef-space-sm) 1.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}
.ef-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}
.ef-breadcrumb li {
  color: rgba(42, 37, 32,0.6);
}
.ef-breadcrumb li::after {
  content: '›';
  margin-left: 0.5rem;
  color: rgba(42, 37, 32,0.3);
}
.ef-breadcrumb li:last-child::after { content: ''; }
.ef-breadcrumb a {
  color: var(--ef-accent);
  text-decoration: none;
}
.ef-breadcrumb a:hover { text-decoration: underline; }

/* ================================================================
   v2.2 - Contact form
   ================================================================ */

.ef-contact-form {
  margin-top: 2rem;
}

.ef-form-row {
  margin: 0 0 1.25rem;
}
.ef-form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.ef-form-row input,
.ef-form-row select,
.ef-form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(42, 37, 32,0.2);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--ef-bg-elevated);
}
.ef-form-row input:focus,
.ef-form-row select:focus,
.ef-form-row textarea:focus {
  outline: 2px solid var(--ef-accent);
  outline-offset: 1px;
  border-color: var(--ef-accent);
}

.ef-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .ef-form-row-2 { grid-template-columns: 1fr; }
}

.ef-form-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
}
.ef-form-checkbox input {
  width: auto;
}

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

.ef-form-privacy {
  font-size: 0.85rem;
  color: rgba(42, 37, 32,0.6);
  margin-top: 1rem;
}
.ef-form-privacy a {
  color: var(--ef-accent);
}

.ef-form-success,
.ef-form-error {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.ef-form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.ef-form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact info grid */
.ef-contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ================================================================
   v2.2 - WhatsApp floating button
   ================================================================ */

.ef-wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,0.5), 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9998;
  transition: all 0.25s ease;
  text-decoration: none;
  animation: ef-wa-pulse 2.5s ease-in-out infinite;
}
.ef-wa-float:hover {
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 28px rgba(37,211,102,0.9), 0 6px 22px rgba(37,211,102,0.6);
}
@keyframes ef-wa-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(37,211,102,0.5), 0 2px 6px rgba(0,0,0,0.2); }
  50%      { box-shadow: 0 4px 14px rgba(37,211,102,0.5), 0 0 22px rgba(37,211,102,0.65); }
}
.ef-wa-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .ef-wa-float {
    width: 48px;
    height: 48px;
    bottom: 1rem;
    right: 1rem;
  }
  .ef-wa-float svg {
    width: 24px;
    height: 24px;
  }
}

/* ================================================================
   v2.2 - AI mode section styling
   ================================================================ */

#ef-ai-mode .ef-section-text strong {
  color: var(--ef-text);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* ================================================================
   v2.3 - Edilfima Contact Block (Bauhaus / Frank Lloyd Wright)
   Multi-layer geometric design: circles, squares, triangles, bars
   Colors: gold (var(--ef-accent)), dark (var(--ef-text)), white, Bauhaus primaries
   ================================================================ */

.ef-cb-section {
  position: relative;
  background: var(--ef-bg-alt);
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  font-family: inherit;
  border-top: 3px solid var(--ef-accent);
}

/* Bauhaus geometric layers - decorative, behind content */
.ef-cb-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ef-cb-geo-circle,
.ef-cb-geo-square,
.ef-cb-geo-triangle,
.ef-cb-geo-bar {
  position: absolute;
  opacity: 0.08;
}

.ef-cb-geo-circle {
  border-radius: 50%;
  background: var(--ef-accent);
}
.ef-cb-geo-1 {
  width: 320px; height: 320px;
  top: -80px; right: -60px;
  opacity: 0.06;
}
.ef-cb-geo-2 {
  width: 180px; height: 180px;
  bottom: 20px; left: 10%;
  background: var(--ef-accent-hover);
  opacity: 0.05;
}

.ef-cb-geo-square {
  background: var(--ef-text);
}
.ef-cb-geo-3 {
  width: 140px; height: 140px;
  top: 30%; left: -40px;
  transform: rotate(15deg);
  opacity: 0.07;
}

.ef-cb-geo-triangle {
  width: 0; height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 170px solid var(--ef-accent-bright);
  background: transparent;
  bottom: -40px; right: 15%;
  transform: rotate(-10deg);
  opacity: 0.05;
}

.ef-cb-geo-bar {
  background: var(--ef-accent);
  height: 6px;
}
.ef-cb-geo-5 {
  width: 200px;
  top: 15%; left: 50%;
  transform: rotate(-3deg);
  opacity: 0.15;
}
.ef-cb-geo-6 {
  width: 120px;
  bottom: 25%; right: 30%;
  height: 4px;
  background: var(--ef-accent-hover);
  transform: rotate(8deg);
  opacity: 0.12;
}

/* Bauhaus grid pattern overlay */
.ef-cb-geo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 37, 32,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 37, 32,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.ef-cb-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.ef-cb-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.ef-cb-header-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ef-cb-mark-circle {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ef-accent);
  display: inline-block;
}
.ef-cb-mark-square {
  width: 18px; height: 18px;
  background: var(--ef-text);
  display: inline-block;
}
.ef-cb-mark-triangle {
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid var(--ef-accent-hover);
  display: inline-block;
}

.ef-cb-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ef-accent);
  margin: 0 0 0.5rem;
}

.ef-cb-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ef-text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.ef-cb-subtitle {
  font-size: 1rem;
  color: rgba(42, 37, 32,0.65);
  margin: 0;
}

/* Grid layout: 3 columns on desktop */
.ef-cb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .ef-cb-grid {
    grid-template-columns: 1fr;
  }
}

/* Panels - Bauhaus card style */
.ef-cb-panel {
  background: var(--ef-bg-elevated);
  border: 2px solid var(--ef-text);
  position: relative;
  padding: 1.75rem;
  /* Bauhaus offset shadow */
  box-shadow: 6px 6px 0 var(--ef-accent);
  transition: box-shadow 0.3s, transform 0.3s;
}
.ef-cb-panel:hover {
  box-shadow: 8px 8px 0 var(--ef-accent);
  transform: translate(-2px, -2px);
}

/* Panel header */
.ef-cb-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ef-text);
}
.ef-cb-panel-icon {
  color: var(--ef-accent);
  display: flex;
  align-items: center;
}
.ef-cb-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ef-text);
  margin: 0;
  letter-spacing: -0.01em;
}

/* QR code grid */
.ef-cb-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ef-cb-qr-item {
  text-align: center;
  padding: 0.75rem;
  border: 1px solid rgba(42, 37, 32,0.15);
  background: var(--ef-bg-elevated);
  position: relative;
}
.ef-cb-qr-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-top: 2px solid var(--ef-accent);
  border-left: 2px solid var(--ef-accent);
}
.ef-cb-qr-item::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  border-bottom: 2px solid var(--ef-text);
  border-right: 2px solid var(--ef-text);
}
.ef-cb-qr-item img {
  display: block;
  margin: 0 auto 0.5rem;
  width: 110px; height: 110px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.ef-cb-qr-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ef-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact channels */
.ef-cb-channels {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ef-cb-channel {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(42, 37, 32,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ef-cb-channel:last-child {
  border-bottom: none;
}
.ef-cb-channel-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ef-accent);
}
.ef-cb-channel-link,
.ef-cb-channel-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ef-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.4;
}
.ef-cb-channel-link:hover {
  color: var(--ef-accent);
}
.ef-cb-channel-value {
  font-weight: 400;
}
.ef-cb-channel-whatsapp .ef-cb-channel-link {
  color: #25d366;
}
.ef-cb-channel-whatsapp .ef-cb-channel-link:hover {
  color: #1da851;
}

/* Form */
.ef-cb-form-row {
  margin: 0 0 1rem;
}
.ef-cb-form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ef-text);
  margin-bottom: 0.3rem;
}
.ef-cb-form-row input,
.ef-cb-form-row select,
.ef-cb-form-row textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--ef-text);
  border-radius: 0;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--ef-bg-elevated);
  transition: border-color 0.2s, background 0.2s;
}
.ef-cb-form-row input:focus,
.ef-cb-form-row select:focus,
.ef-cb-form-row textarea:focus {
  outline: none;
  border-color: var(--ef-accent);
  background: var(--ef-bg-elevated);
}
.ef-cb-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 500px) {
  .ef-cb-form-row-2 { grid-template-columns: 1fr; }
}

.ef-cb-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.ef-cb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 2px solid;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.ef-cb-btn-primary {
  background: var(--ef-text);
  color: #fff;
  border-color: var(--ef-text);
}
.ef-cb-btn-primary:hover {
  background: var(--ef-accent);
  border-color: var(--ef-accent);
}
.ef-cb-btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.ef-cb-btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

.ef-cb-form-privacy {
  font-size: 0.75rem;
  color: rgba(42, 37, 32,0.55);
  margin-top: 0.75rem;
}
.ef-cb-form-privacy a {
  color: var(--ef-accent);
}

.ef-cb-form-success,
.ef-cb-form-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid;
}
.ef-cb-form-success {
  background: #d4edda;
  color: #155724;
  border-color: #155724;
}
.ef-cb-form-error {
  background: #f8d7da;
  color: #721c24;
  border-color: #721c24;
}

/* Social sharing bar */
.ef-cb-share {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 2px solid var(--ef-text);
}

.ef-cb-share-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ef-cb-share-line {
  flex: 1;
  height: 2px;
  background: var(--ef-accent);
}
.ef-cb-share-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ef-text);
  margin: 0;
  white-space: nowrap;
}

.ef-cb-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.ef-cb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ef-text);
  background: var(--ef-bg-elevated);
  color: var(--ef-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 0;
}
.ef-cb-share-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ef-accent);
}
.ef-cb-share-fb:hover { color: #1877f2; border-color: #1877f2; }
.ef-cb-share-li:hover { color: #0a66c2; border-color: #0a66c2; }
.ef-cb-share-x:hover { color: #000; border-color: #000; }
.ef-cb-share-wa:hover { color: #25d366; border-color: #25d366; }
.ef-cb-share-email:hover { color: var(--ef-accent); border-color: var(--ef-accent); }

/* Responsive adjustments */
@media (max-width: 768px) {
  .ef-cb-section {
    padding: 3.5rem 1rem 3rem;
  }
  .ef-cb-title {
    font-size: 1.6rem;
  }
  .ef-cb-panel {
    padding: 1.25rem;
    box-shadow: 4px 4px 0 var(--ef-accent);
  }
  .ef-cb-qr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .ef-cb-qr-item img {
    width: 90px; height: 90px;
  }
  .ef-cb-share-btn span {
    display: none;
  }
}

/* Print: hide QR (can't scan from paper) and decorative elements */
@media print {
  .ef-cb-section,
  .ef-cb-geo {
    display: none;
  }
}

/* ================================================================
   Footer language switcher (flags right of menu)
   ================================================================ */
.ef-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--ef-space-sm);
}
.ef-footer-lang {
  margin-top: var(--ef-space-xs);
}
.ef-footer-lang-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.ef-footer-lang-list li {
  margin: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ef-footer-lang-list li:hover,
.ef-footer-lang-list li.ef-lang-active {
  opacity: 1;
}
.ef-footer-lang-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}
.ef-footer-lang-list .ef-lang-flag img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
}
.ef-footer-lang-list .ef-lang-code {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(250, 248, 245, 0.25);
  border-radius: 4px;
  color: var(--ef-text-on-dark-muted);
  transition: all 0.2s;
}
.ef-footer-lang-list li:hover .ef-lang-code,
.ef-footer-lang-list li.ef-lang-active .ef-lang-code {
  color: #fff;
  border-color: var(--ef-accent);
  background: rgba(201, 169, 110, 0.15);
}

/* ================================================================
   Contact page: 2-column layout (info left, form right)
   ================================================================ */
.ef-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ef-space-xl);
  margin-top: var(--ef-space-lg);
  align-items: start;
}
@media (max-width: 900px) {
  .ef-contact-layout {
    grid-template-columns: 1fr;
    gap: var(--ef-space-lg);
  }
}

/* Contact intro: testo sinistra + logo destra */
.ef-contact-intro-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--ef-space-xl);
  align-items: center;
  max-width: var(--ef-max-width);
  margin: 0 auto;
}
.ef-contact-intro-text {
  /* testo a sinistra */
}
.ef-contact-intro-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ef-contact-logo-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  opacity: 0.9;
}
@media (max-width: 900px) {
  .ef-contact-intro-layout {
    grid-template-columns: 1fr;
    gap: var(--ef-space-md);
  }
  .ef-contact-intro-logo {
    order: -1;
    margin-bottom: var(--ef-space-sm);
  }
  .ef-contact-logo-img {
    max-width: 220px;
  }
}

/* Info column - vertical list, not cards */
.ef-contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ef-space-md);
}
.ef-contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--ef-space-sm);
  padding: var(--ef-space-sm) 0;
  border-bottom: 1px solid var(--ef-border-subtle);
}
.ef-contact-row:last-child {
  border-bottom: none;
}
.ef-contact-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ef-accent);
  width: 2rem;
  text-align: center;
  margin-top: 0.15rem;
}
.ef-contact-text {
  flex: 1;
  min-width: 0;
}
.ef-contact-text .ef-contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ef-text-muted);
  margin: 0 0 0.2rem 0;
}
.ef-contact-text .ef-contact-value {
  font-size: 1rem;
  color: var(--ef-text);
  margin: 0;
  line-height: 1.5;
}
.ef-contact-text .ef-contact-value a:not(.ef-btn) {
  color: var(--ef-accent);
  text-decoration: none;
  font-weight: 500;
}
.ef-contact-text .ef-contact-value a:not(.ef-btn):hover {
  text-decoration: underline;
}
.ef-area-detail {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ef-text-secondary);
  line-height: 1.6;
}

/* Form column */
.ef-contact-form-col {
  background: var(--ef-bg-elevated);
  border: 1px solid var(--ef-border-subtle);
  border-radius: var(--ef-radius);
  padding: var(--ef-space-lg);
  box-shadow: var(--ef-shadow-1);
}
.ef-contact-form-col .ef-section-title {
  font-size: var(--ef-font-h3);
  margin: 0 0 var(--ef-space-xs);
}
.ef-contact-form-col .ef-section-text {
  font-size: 0.9rem;
  color: var(--ef-text-secondary);
  margin: 0 0 var(--ef-space-md);
}

/* ================================================================
   Bottom bar: riduci margine superiore, attacca al footer
   ================================================================ */
.anth-bottom-bar {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.ef-footer-copy {
  margin-bottom: 0 !important;
}

/* ================================================================
   Portfolio grid - card immagini cantiere
   ================================================================ */
.ef-portfolio-grid {
  list-style: none;
  margin: var(--ef-space-lg) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--ef-space-md);
}
.ef-portfolio-card {
  background: var(--ef-bg-elevated);
  border-radius: var(--ef-radius, 10px);
  overflow: hidden;
  box-shadow: var(--ef-shadow-1, 0 2px 8px rgba(42,37,32,0.08));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ef-portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(42,37,32,0.18), 0 4px 10px rgba(42,37,32,0.12);
}
.ef-portfolio-figure {
  margin: 0;
  position: relative;
}
.ef-portfolio-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--ef-bg-soft, #efe9e1);
}

/* ================================================================
   Page image - 1 foto contestuale per pagina (contenuto grafico centrale)
   ================================================================ */
.ef-page-image-wrap {
  max-width: 720px;
  margin: 3rem auto 1rem;
  text-align: center;
}
.ef-page-image-figure {
  margin: 0;
  border-radius: var(--ef-radius, 10px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(42,37,32,0.12), 0 1px 4px rgba(42,37,32,0.08);
}
.ef-page-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 768px) {
  .ef-page-image-wrap {
    margin: 1.5rem auto;
    max-width: 100%;
  }
}
.ef-portfolio-caption {
  padding: var(--ef-space-sm) var(--ef-space-md);
  background: var(--ef-bg-elevated);
  border-top: 3px solid var(--ef-accent);
}
.ef-portfolio-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--ef-text);
}
.ef-portfolio-desc {
  font-size: 0.88rem;
  color: var(--ef-text-secondary, #6b6358);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .ef-portfolio-grid {
    grid-template-columns: 1fr;
  }
  .ef-portfolio-img {
    height: 200px;
  }
}

/* ================================================================
   Unified Contact Block (ef-cb) - landing page style
   QR + info + form + social sharing su tutte le pagine
   ================================================================ */
.ef-cb-section {
  background: var(--ef-bg-alt, #f7f6f3);
  padding: var(--ef-space-xl) 0;
}
.ef-cb-inner {
  max-width: var(--ef-container, 1200px);
  margin: 0 auto;
  padding: 0 var(--ef-space-md);
}
.ef-cb-header {
  text-align: center;
  margin-bottom: var(--ef-space-lg);
}
.ef-cb-header .ef-section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ef-accent);
  margin: 0 0 0.5rem 0;
}
.ef-cb-header .ef-section-title {
  font-size: var(--ef-font-h2, 2rem);
  margin: 0 0 0.5rem 0;
}
.ef-cb-header .ef-section-text {
  font-size: 1rem;
  color: var(--ef-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Layout 2 colonne uguale a pagina contatti */
.ef-cb-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ef-space-xl);
  margin-top: var(--ef-space-lg);
  align-items: start;
}
@media (max-width: 900px) {
  .ef-cb-layout {
    grid-template-columns: 1fr;
    gap: var(--ef-space-lg);
  }
}

/* Colonna sinistra: QR + info + social */
.ef-cb-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--ef-space-lg);
}

/* QR codes group */
.ef-cb-qr-group {
  background: var(--ef-bg-elevated, #fff);
  border: 1px solid var(--ef-border-subtle, #e5e3df);
  border-radius: var(--ef-radius, 8px);
  padding: var(--ef-space-md);
}
.ef-cb-qr-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ef-text-muted, #6b6b6b);
  margin: 0 0 var(--ef-space-sm) 0;
  text-align: center;
}
.ef-cb-qr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--ef-space-sm);
  flex-wrap: wrap;
}
.ef-cb-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.ef-cb-qr-item img {
  width: 110px;
  height: 110px;
  display: block;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--ef-border-subtle, #e5e3df);
  border-radius: 6px;
}
.ef-cb-qr-text {
  font-size: 0.78rem;
  color: var(--ef-text-secondary, #555);
  text-align: center;
  font-weight: 500;
}

/* Info contatti - riusa ef-contact-info-list esistente */
.ef-cb-info-title {
  font-size: var(--ef-font-h3, 1.4rem);
  margin: 0 0 var(--ef-space-sm) 0;
  color: var(--ef-text, #1a2332);
}

/* Social sharing */
.ef-cb-share-group {
  background: var(--ef-bg-elevated, #fff);
  border: 1px solid var(--ef-border-subtle, #e5e3df);
  border-radius: var(--ef-radius, 8px);
  padding: var(--ef-space-md);
}
.ef-cb-share-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ef-text-muted, #6b6b6b);
  margin: 0 0 var(--ef-space-sm) 0;
}
.ef-cb-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.ef-share-btn {
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.12);
}
.ef-share-btn:hover {
  color: #fff;
  box-shadow: 0 0 16px currentColor, 0 4px 12px rgba(0,0,0,0.3);
  filter: brightness(1.12);
}
.ef-share-btn svg {
  flex-shrink: 0;
}
.ef-share-fb    { background: #0d5fc2; }   /* AA 6.12:1 */
.ef-share-li    { background: #0a66c2; }   /* AA 5.69:1 */
.ef-share-x     { background: #000; }      /* AAA 21:1 */
.ef-share-wa    { background: #15803d; }   /* AA 5.02:1 */
.ef-share-tg    { background: #006699; }   /* AA 6.25:1 */
.ef-share-reddit{ background: #cc3700; }   /* AA 5.10:1 */
.ef-share-pin   { background: #bd081c; }   /* AA 6.53:1 */
.ef-share-email { background: #6b7280; }   /* AA 4.83:1 */

/* Form colonna destra - riusa ef-contact-form-col esistente */
.ef-cb-form-col .ef-cb-form-title {
  font-size: var(--ef-font-h3, 1.4rem);
  margin: 0 0 var(--ef-space-xs) 0;
}

/* Anchor per CTA hero */
.ef-anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

/* Mobile: QR più piccoli */
@media (max-width: 600px) {
  .ef-cb-qr-item img {
    width: 90px;
    height: 90px;
  }
  .ef-cb-share-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .ef-share-btn span {
    font-size: 0.75rem;
  }
}
