/* =====================================================================
   Elia Faratro – personalizzazioni sopra il template Frisk
   Riproduce l'aspetto del sito WordPress/Elementor originale.
   ===================================================================== */

:root {
  --ef-blue: #086EF4;
  --ef-blue-dark: #0659c7;
  --ef-yellow: #DCDC04;
  --ef-yellow-dark: #c4c403;
  --ef-light: #F3F3F9;
  --ef-violet: #4255DA;
  --ef-gray: #54595F;
  --ef-navy: #1B2F57;
  --ef-sky: #6EC1E4;
  --ef-text: #0A0C00;

  --theme-color: var(--ef-yellow);
  --text-font: "Montserrat", sans-serif;
  --card-font: "Roboto", sans-serif;
  --section-space: 100px;
  --section-space-mobile: 64px;
}

body {
  font-family: var(--text-font);
  color: var(--ef-text);
}

p,
li {
  font-family: var(--text-font);
}

p {
  font-size: 16px;
  line-height: 1.66;
}

a {
  color: inherit;
}

a.text-link {
  color: var(--ef-blue);
  font-weight: 600;
}

a.text-link:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

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

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Sezioni ---------- */
.ef-section {
  padding: var(--section-space) 0;
}

.ef-section-sm {
  padding: 60px 0;
}

.bg-ef-light {
  background-color: var(--ef-light);
}

.bg-ef-smoke {
  background-color: var(--smoke-color);
}

.ef-title {
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.ef-title-lg {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ef-title-xl {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.ef-title-roboto {
  font-family: var(--card-font);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: 0;
}

.ef-subtitle {
  font-family: var(--text-font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 30px;
}

.ef-lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.66;
}

.ef-badge {
  display: inline-block;
  background: var(--ef-navy);
  color: #fff;
  font-family: var(--card-font);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 7px 34px;
  border-radius: 6px;
  margin-bottom: 26px;
}

/* ---------- Bottoni ---------- */
.btn {
  text-transform: uppercase;
}

.btn.btn-blue {
  background-color: var(--ef-blue);
  color: #fff;
}

.btn.btn-gray {
  background-color: var(--ef-gray);
  color: #fff;
}

.btn.btn-yellow {
  background-color: var(--ef-yellow);
  color: #fff;
}

.btn.btn-dark {
  background-color: var(--title-color);
  color: #fff;
}

.btn.btn-blue:hover,
.btn.btn-gray:hover,
.btn.btn-dark:hover {
  color: #fff;
}

.btn.btn-yellow:hover {
  color: var(--title-color);
}

.btn.btn-sm {
  padding: 14px 26px;
  font-size: 13px;
}

.ef-btn-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.ef-btn-group .btn {
  white-space: nowrap;
}

@media (max-width: 575px) {
  .ef-btn-group {
    grid-template-columns: 1fr;
  }
}

/* ---------- Header ---------- */
.site-header .header-logo {
  padding: 12px 0;
}

.site-header .header-logo img {
  width: 78px;
  height: 78px;
}

.site-header .main-menu > ul > li > a {
  padding: 41px 20px;
  font-size: 14px;
  color: var(--title-color);
}

/* sottomenu come su WordPress: grigio scuro, testo bianco */
.site-header .main-menu ul.sub-menu {
  background-color: var(--ef-gray);
  box-shadow: 0 10px 30px rgba(10, 12, 0, 0.12);
  padding: 16px 0;
  min-width: 280px;
  left: -20px;
}

.site-header .main-menu ul.sub-menu li {
  margin: 0;
}

.site-header .main-menu ul.sub-menu li a {
  color: #fff;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  padding: 7px 27px;
  display: block;
}

.site-header .main-menu ul.sub-menu li a::before {
  display: none;
}

.site-header .main-menu ul.sub-menu li a:hover {
  color: var(--ef-yellow);
}

.site-header .header-button {
  margin-left: 50px;
}

.site-header .header-button .btn {
  padding: 21px 40px;
}

/* il template sposta in basso il primo blocco perché l'header è fixed */
main > :first-child.ef-first {
  margin-top: 102px;
}

.breadcumb-wrapper {
  margin-top: 102px;
  padding: 150px 0;
}

.breadcumb-wrapper.show-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.breadcumb-title {
  font-size: 72px;
}

.mobile-menu-area .mobile-logo img {
  width: 70px;
}

.mobile-menu-area .mobile-menu {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.mobile-menu-cta {
  padding: 0 0 26px;
  border-bottom: 2px solid var(--title-color);
}

.mobile-menu-cta .btn {
  padding: 16px 25px;
}

.sidemenu-wrapper-contact {
  padding: 26px 0 40px;
}

.sidemenu-wrapper-contact p {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--smoke-color);
}

.site-footer .widget-area {
  padding-bottom: 50px;
}

.site-footer .widget_title {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.site-footer .newsletter-label {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px 10px;
}

.site-footer .newsletter-form .form-control {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--title-color);
  border-radius: 0;
  height: 64px;
  padding: 0 50px 0 10px;
  font-size: 24px;
  font-family: var(--body-font);
  font-weight: 300;
}

.site-footer .newsletter-form .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  padding: 10px;
}

.site-footer .widget-newsletter p {
  font-size: 16px;
  margin-top: 30px;
}

.site-footer .widget-newsletter .form-message {
  margin: 10px 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 40px;
  border-top: 2px solid var(--title-color);
  border-bottom: 2px solid var(--title-color);
  padding: 24px 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 14px;
  color: var(--title-color);
}

.footer-nav a:hover {
  color: var(--ef-blue);
}

.site-footer .copyright-text {
  font-family: var(--title-font);
  font-weight: 600;
  color: var(--ef-blue);
  margin: 0;
  font-size: 15px;
}

.footer-social {
  display: flex;
  gap: 18px;
  font-size: 22px;
}

.footer-social a:hover {
  color: var(--ef-blue);
}

/* ---------- Chat WhatsApp ---------- */
.wa-chat {
  position: fixed;
  right: 30px;
  bottom: 110px;
  z-index: 99;
}

.wa-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: #0DC143;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.wa-chat-btn::after {
  content: "1";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f00;
  color: #fff;
  font: 600 11px/18px var(--text-font);
}

.wa-chat.is-open .wa-chat-btn::after {
  display: none;
}

.wa-chat-box {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.wa-chat-head {
  background: #0DC143;
  color: #fff;
  padding: 18px 20px;
}

.wa-chat-head strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.wa-chat-head span {
  font-size: 13px;
  line-height: 1.4;
  display: block;
}

.wa-chat-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--title-color);
}

.wa-chat-agent i {
  font-size: 34px;
  color: #0DC143;
}

.wa-chat-agent strong,
.wa-chat-agent small {
  display: block;
}

.wa-chat-agent:hover {
  background: var(--ef-light);
}

/* ---------- Home: hero (fluido WebGL, vedi assets/js/hero-fluid.js) ---------- */
.ef-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: #f5f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 160px 0 100px;
}

.ef-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.ef-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  pointer-events: none;
}

.ef-hero-title {
  color: #1a1a1a;
  font-family: "Archivo Black", var(--title-font);
  font-size: clamp(34px, 5.6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: ef-hero-in 0.9s cubic-bezier(.2, .7, .2, 1) 0.9s forwards;
}

.ef-hero-title + .ef-hero-title {
  margin-top: 0.9em;
  animation-delay: 1.1s;
}

@keyframes ef-hero-in {
  to { opacity: 1; transform: none; }
}

/* pannello scuro che si apre all'avvio, come nell'animazione originale */
.ef-hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #1a1a1a;
  transform-origin: top center;
  animation: ef-hero-reveal 1s cubic-bezier(.77, 0, .18, 1) 0.2s forwards;
  pointer-events: none;
}

@keyframes ef-hero-reveal {
  to { transform: scaleY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ef-hero-intro { display: none; }
  .ef-hero-title { animation: none; opacity: 1; transform: none; }
}

.ef-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  color: #1a1a1a;
  font-size: 22px;
  z-index: 2;
  animation: ef-bounce 2s infinite;
}

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

/* ---------- Home: presentazione Elia ---------- */
.ef-intro {
  background: var(--ef-light);
  padding: 70px 0 60px;
}

.ef-intro .portrait {
  text-align: center;
}

.ef-intro .portrait img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.ef-intro .portrait-name {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 26px 0 0;
}

.ef-intro h1 {
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.05em;
  margin-bottom: 40px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--title-color);
  border-bottom: 2px solid var(--title-color);
  padding-bottom: 4px;
  margin-top: 50px;
}

.link-btn img {
  width: 13px;
}

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

/* ---------- Card con icona (pilastri) ---------- */
.icon-card {
  background: var(--ef-light);
  border-radius: 13px;
  padding: 22px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  height: 100%;
}

.icon-card .icon {
  flex: 0 0 90px;
  color: var(--ef-blue);
  font-size: 72px;
  text-align: center;
}

.icon-card .icon svg {
  width: 90px;
  height: 90px;
}

.icon-card h3 {
  font-family: var(--card-font);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.icon-card p {
  font-weight: 500;
  margin: 0;
}

/* ---------- Step con linea (tre costanti / 6 step) ---------- */
.step-line {
  position: relative;
  padding-top: 0;
}

.step-line .step-num {
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.step-line .step-dot {
  position: relative;
  display: block;
  height: 24px;
  margin-bottom: 36px;
}

.step-line .step-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border: 3px solid var(--title-color);
  border-radius: 50%;
  background: inherit;
  z-index: 1;
}

.step-line .step-dot::after {
  content: "";
  position: absolute;
  left: 24px;
  right: -12px;
  top: 11px;
  height: 1px;
  background: rgba(10, 12, 0, 0.08);
}

.step-line h4 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.33;
  margin-bottom: 16px;
}

.step-line p {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.66;
}

.step-line.sm h4 {
  font-size: 19px;
}

.step-line.sm p {
  font-family: var(--text-font);
  font-size: 16px;
}

/* ---------- Split immagine/testo ---------- */
.split-img img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.round-img img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ---------- Loghi partner ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 50px 50px;
  align-items: center;
}

.logo-grid a,
.logo-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-grid img {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.review-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

.review-logos img {
  max-width: 220px;
}

/* ---------- Banda statistiche ---------- */
.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-item i {
  font-size: 40px;
  color: var(--ef-blue);
}

.stat-item p {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.2;
  color: #383838;
  margin: 0;
}

/* ---------- Card target (chi sono) ---------- */
.target-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin-bottom: 30px;
}

.target-card h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.target-card p {
  font-weight: 500;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ef-blue);
  font-weight: 600;
  font-size: 15px;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 8px;
}

.more-link:hover {
  text-decoration: underline;
}

.ef-modal .modal-content {
  border: 0;
  border-radius: 10px;
  padding: 20px;
}

.ef-modal .modal-title {
  font-size: 26px;
  letter-spacing: -0.02em;
}

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

/* ---------- Banda viola (come lavoro) ---------- */
.band-violet {
  background: var(--ef-violet);
  padding: 50px 0;
}

.band-violet .band-left {
  font-size: 36px;
  letter-spacing: -0.05em;
  margin: 0;
}

.band-violet .band-right {
  color: #fff;
  font-family: "Archivo Black", var(--title-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.band-violet a.band-right:hover {
  color: var(--ef-yellow);
}

.ef-text-roboto {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0;
}

/* ---------- Box CTA giallo ---------- */
.cta-yellow {
  background: var(--ef-yellow);
  padding: 70px 50px;
}

.cta-yellow h2 {
  font-size: 36px;
  letter-spacing: -0.05em;
  margin: 0;
}

.cta-yellow p {
  font-weight: 700;
  font-size: 16px;
}

/* ---------- Contatti ---------- */
.contact-card {
  background: var(--smoke-color);
  padding: 40px 36px;
  height: 100%;
}

.contact-card .icon img {
  height: 40px;
  width: auto;
  margin-bottom: 70px;
}

.contact-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-card p {
  font-family: var(--body-font);
  margin-bottom: 26px;
}

.contact-card .link-btn {
  margin-top: 0;
  font-size: 13px;
}

.lavoriamo-title {
  font-family: "Archivo Black", var(--title-font);
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  margin: 0;
}

.contact-copy h2 {
  font-size: 34px;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.contact-copy p {
  font-family: var(--body-font);
  font-size: 17px;
  margin-bottom: 6px;
}

/* ---------- FAQ / accordion ---------- */
.ef-accordion .accordion-card {
  display: block;
  padding: 0;
  border-bottom: 2px solid var(--title-color);
}

.ef-accordion .accordion-card:first-child {
  border-top: 2px solid var(--title-color);
}

.ef-accordion .accordion-header {
  margin: 0;
}

.ef-accordion .accordion-button {
  display: block;
  width: 100%;
  position: relative;
  white-space: normal;
  font-family: var(--title-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--title-color);
  background: transparent;
  padding: 26px 44px 26px 0;
  box-shadow: none;
  text-align: left;
}

.ef-accordion .accordion-button::after {
  content: "\f067";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 15px;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  line-height: 1;
  display: block;
  background: none;
}

.ef-accordion .accordion-button:not(.collapsed)::after {
  content: "\f068";
  transform: translateY(-50%);
}

.ef-accordion .accordion-body {
  padding: 0 0 26px;
  max-width: none;
}

.ef-accordion .accordion-body p {
  margin-bottom: 12px;
}

/* ---------- Presentazione: card problemi ---------- */
.problem-card {
  background: var(--ef-blue);
  color: #fff;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.problem-card i {
  font-size: 40px;
}

.problem-card h3 {
  color: #fff;
  font-family: var(--card-font);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
}

.pill-list li {
  background: var(--ef-navy);
  color: #fff;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: 15px;
  min-width: 160px;
  text-align: center;
  padding: 4px 18px;
  border-radius: 2px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.feature-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}

.feature-list .ico {
  flex: 0 0 48px;
  height: 48px;
  border: 2px solid var(--ef-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ef-blue);
  font-size: 20px;
}

.feature-list h3 {
  font-family: var(--card-font);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0;
  margin: 0 0 2px;
}

.feature-list p {
  margin: 0;
}

.usecase-card {
  border: 3px solid #f0f0f4;
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 116px;
}

.usecase-card i {
  font-size: 34px;
  color: var(--ef-blue);
  flex: 0 0 auto;
}

.usecase-card h3 {
  font-family: var(--text-font);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0;
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 50px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-weight: 500;
}

.check-list li::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--ef-blue);
  font-size: 15px;
}

.check-list.sky li::before {
  color: var(--ef-sky);
  font-size: 20px;
  top: -2px;
}

.check-list.lg li {
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 17px;
  padding-left: 40px;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.quote-title {
  font-family: var(--title-font);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Processo a 4 step con cerchi */
.process-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.process-4 .p-step {
  position: relative;
}

.process-4 .p-circle {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #E8EAEE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--title-color);
}

.process-4 .p-circle .p-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ef-sky);
  color: #fff;
  font-family: var(--card-font);
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 2px 8px;
  border: 2px solid #fff;
}

.process-4 .p-step:not(:last-child)::after {
  content: "\f061";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 40px;
  right: -40px;
  width: 80px;
  text-align: center;
  font-size: 18px;
  color: var(--title-color);
}

.process-4.line .p-step:not(:last-child)::after {
  content: "";
  top: 54px;
  height: 2px;
  background: var(--title-color);
  right: -38px;
  width: 64px;
}

.process-4 h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.process-4 p {
  font-size: 14px;
  line-height: 1.5;
}

.service-card img {
  width: 100%;
  aspect-ratio: 665 / 444;
  object-fit: cover;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--card-font);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.service-card p {
  font-size: 14px;
}

.audience-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 46px;
  justify-content: center;
}

.audience-icons div {
  text-align: center;
  color: var(--ef-blue);
}

.audience-icons i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.audience-icons span {
  font-family: var(--card-font);
  font-weight: 500;
  font-size: 16px;
}

.blue-box {
  background: var(--ef-blue);
  color: #fff;
  border-radius: 6px;
  padding: 34px 40px;
  text-align: center;
}

.blue-box h2 {
  color: #fff;
  font-family: var(--card-font);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0;
}

.lead-form {
  max-width: 420px;
  margin-top: 60px;
}

.lead-form .form-control {
  border: 1px solid #ccc;
  border-radius: 2px;
  height: 38px;
  font-size: 14px;
  margin-bottom: 20px;
}

.lead-form .btn {
  background: var(--ef-blue);
  color: #fff;
  text-transform: none;
  font-family: var(--text-font);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 3px;
}

/* Slider immagini */
.ef-slider {
  position: relative;
}

.ef-slider img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ef-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--ef-sky);
  color: #fff;
}

.ef-slider-arrow.prev { left: -20px; }
.ef-slider-arrow.next { right: -20px; }

/* ---------- Moduli ---------- */
.ef-form .form-control,
.ef-form .form-select {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  height: 54px;
  font-size: 15px;
  margin-bottom: 20px;
}

.ef-form textarea.form-control {
  height: 120px;
}

.ef-form .form-select {
  border: 0;
  border-bottom: 2px solid var(--title-color);
  color: var(--title-color);
  font-weight: 500;
}

.form-message {
  font-weight: 600;
  margin-top: 16px;
}

.form-message.is-ok { color: #198754; }
.form-message.is-error { color: #d0021b; }

.js-form.is-sending button[type=submit] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Pagine testuali ---------- */
.prose h2 { font-size: 32px; margin-top: 10px; }
.prose h3 { font-size: 24px; margin-top: 34px; }
.prose h4 { font-size: 19px; margin-top: 28px; }
.prose ul { margin-bottom: 20px; }
.prose li { margin-bottom: 6px; }

.empty-state {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.empty-state i {
  font-size: 48px;
  color: var(--ef-blue);
  margin-bottom: 24px;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1399px) {
  .site-header .main-menu > ul > li > a { padding: 41px 14px; }
  .site-header .header-button { margin-left: 24px; }
}

@media (max-width: 1199px) {
  .ef-title-xl { font-size: 46px; }
  .ef-title-lg { font-size: 40px; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .process-4 { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process-4 .p-step::after { display: none; }
}

@media (max-width: 991px) {
  :root { --section-space: 70px; }
  main > :first-child.ef-first,
  .breadcumb-wrapper { margin-top: 92px; }
  .site-header .header-logo img { width: 68px; height: 68px; }
  .breadcumb-wrapper { padding: 100px 0; }
  .breadcumb-title { font-size: 52px; }
  .ef-title, .ef-intro h1, .cta-yellow h2, .band-violet .band-left { font-size: 30px; }
  .ef-title-roboto { font-size: 38px; }
  .band-violet .band-right { font-size: 26px; margin-top: 20px; }
  .split-img { margin-top: 40px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .lavoriamo-title { font-size: 42px; margin-bottom: 30px; }
  .pill-list { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .ef-title-xl { font-size: 36px; }
  .ef-title-lg { font-size: 32px; }
  .ef-title, .ef-intro h1 { font-size: 26px; }
  .ef-title-roboto { font-size: 32px; }
  .ef-subtitle { font-size: 20px; }
  .ef-intro .portrait img { max-width: 320px; }
  .ef-intro .portrait-name { font-size: 30px; }
  .footer-nav { flex-direction: column; }
  .footer-nav ul { gap: 14px 24px; }
  .site-footer .newsletter-form .form-control { font-size: 18px; }
  .process-4 { grid-template-columns: 1fr; }
  .cta-yellow { padding: 44px 24px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .wa-chat { right: 16px; bottom: 90px; }
  .step-line .step-dot::after { display: none; }
  .ef-accordion .accordion-button { font-size: 16px; }
  .usecase-card { padding: 16px 12px; gap: 8px; min-height: 90px; border-radius: 14px; }
  .usecase-card i { font-size: 24px; }
  .usecase-card h3 { font-size: 15px; word-break: break-word; }
  .problem-card h3 { font-size: 16px; }
  .ef-slider-arrow.prev { left: 6px; }
  .ef-slider-arrow.next { right: 6px; }
  .ef-section, .ef-section-sm { overflow-x: hidden; }
}

/* Home: header trasparente sopra l'hero (diventa bianco quando si scorre) */
.home .site-header.bg-white {
  background-color: transparent !important;
}

/* Margini laterali più ampi (contenuto max 1240px) */
:root {
  --ef-gutter: 48px;
}

.container {
  padding-left: var(--ef-gutter);
  padding-right: var(--ef-gutter);
}

@media (min-width: 1400px) {
  .container {
    max-width: calc(1240px + 2 * var(--ef-gutter));
  }
}

.site-header .container-fluid {
  padding-left: var(--ef-gutter);
  padding-right: var(--ef-gutter);
}

@media (max-width: 1199px) {
  :root { --ef-gutter: 36px; }
}

@media (max-width: 767px) {
  :root { --ef-gutter: 22px; }
}
