/*
Theme Name: Energia Piemonte
Theme URI: https://energiafotovoltaicapiemonte.it/
Author: Energia Fotovoltaica Piemonte
Description: Tema leggero per Energia Fotovoltaica Piemonte, compatibile con Gutenberg, Yoast SEO, Site Kit, Fluent Forms e LiteSpeed Cache.
Version: 1.6.6
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: energia-piemonte
*/

:root {
  --efp-ink: #10243a;
  --efp-blue: #0b5f95;
  --efp-blue-dark: #063f68;
  --efp-green: #138a59;
  --efp-yellow: #f3b428;
  --efp-red: #d93636;
  --efp-muted: #5d6b79;
  --efp-line: #d9e2e9;
  --efp-soft: #f3f7f9;
  --efp-white: #ffffff;
  --efp-content: 1180px;
}

/* 1.5.3: proporzioni piu compatte e pagine editoriali. */
.efp-service-page { overflow: hidden; }
.efp-service-hero { width: min(100% - 40px, 1280px); min-height: 0; margin: 24px auto 0; padding: clamp(56px, 7vw, 88px) 0; border-radius: 8px; }
.efp-service-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(36px, 6vw, 72px); }
.efp-service-hero-copy h1 { font-size: clamp(46px, 6vw, 76px); line-height: 1.03; }
.efp-service-lead { max-width: 760px; font-size: clamp(19px, 2vw, 25px); line-height: 1.5; }
.efp-service-offer { padding: 34px; }
.efp-service-body, .efp-service-why, .efp-service-faq { padding-top: clamp(54px, 7vw, 84px); padding-bottom: clamp(54px, 7vw, 84px); }
.efp-service-related h2 { font-size: clamp(34px, 4vw, 54px); }
.efp-emergency-strip { width: min(100% - 40px, 1280px); margin: 0 auto; }
.efp-emergency-strip-inner { min-height: 180px; padding: 38px 48px; }
.efp-emergency-strip h2 { font-size: clamp(30px, 3.5vw, 48px); }

.efp-editorial-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 7vw, 86px); padding: clamp(54px, 7vw, 90px) max(24px, calc((100vw - 1200px) / 2)); background: #e8f2f7; }
.efp-editorial-hero h1 { margin: 10px 0 20px; color: #082f59; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; }
.efp-editorial-hero-copy > p:last-child { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.efp-editorial-hero figure { margin: 0; overflow: hidden; border-radius: 8px; box-shadow: 0 20px 50px rgba(8,47,89,.16); }
.efp-editorial-hero img { display: block; width: 100%; height: clamp(260px, 34vw, 430px); object-fit: cover; }
.efp-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; width: min(100% - 40px, 1200px) !important; max-width: 1200px !important; padding: clamp(54px, 7vw, 84px) 0; }
.efp-editorial-card { padding: 32px; border: 1px solid #cad9e4; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(8,47,89,.07); }
.efp-editorial-card h2 { margin-top: 0; color: #082f59; font-size: 26px; }
.efp-editorial-card a { color: #087a4e; font-weight: 800; }
.efp-editorial-cta { padding: clamp(52px, 7vw, 80px) max(24px, calc((100vw - 1200px) / 2)); color: #fff; background: #082f59; }
.efp-editorial-cta h2, .efp-editorial-cta p { color: #fff; }
.efp-editorial-detail { width: min(100% - 40px, 920px) !important; max-width: 920px !important; margin: 0 auto clamp(54px, 7vw, 84px); padding: clamp(32px, 5vw, 54px); border-left: 5px solid #159360; background: #f1f6f9; }
.efp-editorial-detail h2 { margin-top: 0; color: #082f59; font-size: clamp(30px, 4vw, 44px); }
.efp-editorial-detail h3 { margin-top: 32px; color: #082f59; }
.efp-editorial-posts-title { width: min(100% - 40px, 1200px) !important; max-width: 1200px !important; margin: 0 auto 28px; color: #082f59; }
.efp-editorial-posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; width: min(100% - 40px, 1200px); margin: 0 auto clamp(54px, 7vw, 84px); padding: 0; list-style: none; }
.efp-editorial-posts li { padding: 24px; border: 1px solid #cad9e4; border-radius: 8px; background: #fff; }
.efp-editorial-posts img { width: 100%; height: 190px; object-fit: cover; border-radius: 5px; }

@media (max-width: 980px) {
  .efp-service-hero-grid, .efp-editorial-hero { grid-template-columns: 1fr; }
  .efp-service-offer { max-width: 620px; }
  .efp-editorial-grid { grid-template-columns: 1fr; }
  .efp-editorial-posts { grid-template-columns: 1fr; }
  .efp-emergency-strip-inner { padding: 34px 28px; }
}

@media (max-width: 600px) {
  .efp-service-hero, .efp-emergency-strip { width: 100%; margin-top: 0; border-radius: 0; }
  .efp-service-hero { padding-block: 46px; }
  .efp-service-actions { align-items: stretch; }
  .efp-service-actions .efp-button { width: 100%; text-align: center; }
  .efp-editorial-hero { padding-inline: 20px; }
}

/* Regole definitive 1.5.6. */
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club { position: relative; }
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club > ul { top: 0 !important; right: auto !important; left: 100% !important; min-width: 230px; }
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club:hover > ul,
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club:focus-within > ul { display: block; opacity: 1; visibility: visible; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-site-header { display: block !important; position: relative !important; z-index: 999999 !important; isolation: isolate; background: #fff !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row { display: block !important; position: relative !important; z-index: 999999 !important; height: 62px !important; min-height: 62px !important; overflow: visible !important; background: #faf6ed !important; border-top: 1px solid #d7e0e6 !important; border-bottom: 1px solid #d7e0e6 !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row > .efp-container,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav > ul { height: 62px !important; min-height: 62px !important; margin-top: 0 !important; margin-bottom: 0 !important; background: #faf6ed !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-main { clear: both; display: block; position: relative; z-index: 1; margin-top: 0 !important; padding-top: 0 !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-guasti-page { position: relative !important; z-index: 0 !important; margin-top: 0 !important; }
@media (max-width: 980px) {
  .efp-primary-nav .efp-menu-about > ul > .efp-menu-club > ul { position: static !important; margin: 0; padding-left: 18px; }
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row,
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row > .efp-container,
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav { height: auto !important; min-height: 0 !important; }
}

/* Fix conclusivo per Contatti e Preventivo guasti. */
body.efp-page-contatti .efp-contact-form-section { padding: clamp(54px, 7vw, 92px) 20px; background: linear-gradient(180deg, #eef5f8 0%, #fff 100%); }
body.efp-page-contatti .efp-contact-form-grid { width: min(100%, 1240px); padding: clamp(22px, 3vw, 40px); gap: clamp(36px, 6vw, 76px); border: 1px solid #d4e0e7; border-radius: 12px; background: #fff; box-shadow: 0 22px 60px rgba(8,47,89,.1); }
body.efp-page-contatti .efp-contact-form-media { min-height: 560px; border-radius: 9px; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-site-header { position: relative !important; z-index: 9999 !important; background: #fff !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav { position: relative !important; z-index: 9999 !important; background: #faf6ed !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-main,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-content,
body.efp-page-preventivo-istantaneo-guasti-elettrici [data-voltquote-app],
body.efp-page-preventivo-istantaneo-guasti-elettrici .voltquote-app,
body.efp-page-preventivo-istantaneo-guasti-elettrici #voltquote-app { margin-top: 0 !important; padding-top: 0 !important; transform: none !important; }
@media (max-width: 980px) { body.efp-page-contatti .efp-contact-form-media { min-height: 360px; } }

/* Menu Chi siamo > Club. */
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club { position: relative; }
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club > ul { top: 0; right: auto; left: 100%; min-width: 230px; }
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club:hover > ul,
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club:focus-within > ul { display: block; opacity: 1; visibility: visible; }

/* Preventivo guasti: riga menu realmente separata dalla hero. */
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-site-header { display: block !important; isolation: isolate; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row { display: block !important; height: 62px !important; min-height: 62px !important; overflow: visible !important; border-top: 1px solid #d7e0e6 !important; border-bottom: 1px solid #d7e0e6 !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row > .efp-container { height: 62px !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav > ul { height: 62px !important; min-height: 62px !important; margin: 0 !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-main { clear: both; display: block; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-guasti-page { position: relative !important; z-index: 0 !important; }

@media (max-width: 980px) {
  .efp-primary-nav .efp-menu-about > ul > .efp-menu-club > ul { position: static; margin: 0; padding-left: 18px; }
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row,
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row > .efp-container,
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav { height: auto !important; min-height: 0 !important; }
}

/* Contatti 1.5.5 */
body.efp-page-contatti { background: #f5f8fa; }
body.efp-page-contatti .efp-contact-form-section { padding: clamp(54px, 7vw, 92px) 20px; background: linear-gradient(180deg, #eef5f8 0%, #fff 100%); }
body.efp-page-contatti .efp-contact-form-grid { width: min(100%, 1240px); padding: clamp(22px, 3vw, 40px); gap: clamp(36px, 6vw, 76px); border: 1px solid #d4e0e7; border-radius: 12px; background: #fff; box-shadow: 0 22px 60px rgba(8,47,89,.1); }
body.efp-page-contatti .efp-contact-form-media { min-height: 560px; border-radius: 9px; }
body.efp-page-contatti .efp-contact-form-copy { align-self: center; padding: 18px 0; }
body.efp-page-contatti .efp-contact-form-copy h1 { font-size: clamp(40px, 5vw, 64px); }
body.efp-page-contatti .efp-contact-form .ff-el-form-control { border-color: #b9ccd8; border-radius: 6px; background: #f9fbfc; }
body.efp-page-contatti .efp-contact-form .ff-btn-submit { width: 100%; padding: 15px 24px; border-radius: 6px; }
body.efp-page-contatti .efp-contact-existing-content { padding-bottom: 70px; }

/* L'app Preventivo guasti deve iniziare sempre sotto la testata. */
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-site-header { position: relative !important; z-index: 9999 !important; background: #fff !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row { position: relative !important; z-index: 9999 !important; background: #faf6ed !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav { background: #faf6ed !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-main,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-content { position: relative; z-index: 1; margin-top: 0 !important; padding-top: 0 !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici [data-voltquote-app],
body.efp-page-preventivo-istantaneo-guasti-elettrici .voltquote-app,
body.efp-page-preventivo-istantaneo-guasti-elettrici #voltquote-app { margin-top: 0 !important; transform: none !important; }

@media (max-width: 980px) {
  body.efp-page-contatti .efp-contact-form-media { min-height: 360px; }
}

/* Priorita assoluta alla testata della web app guasti. */
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-site-header { position: relative !important; z-index: 9999 !important; background: #fff !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav { position: relative !important; z-index: 9999 !important; background: #faf6ed !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-main,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-content,
body.efp-page-preventivo-istantaneo-guasti-elettrici [data-voltquote-app],
body.efp-page-preventivo-istantaneo-guasti-elettrici .voltquote-app,
body.efp-page-preventivo-istantaneo-guasti-elettrici #voltquote-app { margin-top: 0 !important; padding-top: 0 !important; transform: none !important; }

/* The previous site customization injects this fallback header at runtime. */
.efp-fallback-menu-shell,
.efp-template-menu-shell,
.efp-guasti-hard-header {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--efp-ink);
  background: var(--efp-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.efp-container {
  width: min(calc(100% - 40px), var(--efp-content));
  margin-inline: auto;
}

.efp-topbar {
  color: var(--efp-white);
  background: var(--efp-blue-dark);
  font-size: 14px;
}

.efp-topbar .efp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 20px;
}

.efp-topbar a {
  color: var(--efp-white);
  font-weight: 700;
  text-decoration: none;
}

.efp-topbar a:first-child span {
  color: #ffd02f;
  letter-spacing: 2px;
}

.efp-site-header {
  position: relative;
  z-index: 30;
  background: var(--efp-white);
  border-bottom: 1px solid var(--efp-line);
}

.efp-brand-row {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) auto auto;
  align-items: center;
  min-height: 88px;
  gap: 20px;
}

.efp-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.efp-brand img,
.efp-brand .custom-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 62px;
}

.efp-brand-name {
  display: block;
  color: #0b4778;
  font-family: "Segoe UI Variable Display", "Aptos Display", Bahnschrift, Arial, sans-serif;
  font-size: clamp(23px, 1.95vw, 31px);
  font-weight: 720;
  line-height: 1.02;
}

.efp-brand-copy {
  display: block;
  min-width: 0;
}

.efp-brand-tagline {
  display: block;
  margin-top: 6px;
  color: #8b3a3a;
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.efp-brand-tagline b {
  color: #8b3a3a;
  font-weight: 500;
}

.efp-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.efp-phone-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--efp-white);
  background: var(--efp-red);
  border-radius: 50%;
}

.efp-booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  color: var(--efp-white);
  background: var(--efp-red);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.efp-navigation-row {
  border-top: 1px solid var(--efp-line);
  background: #f8f4eb;
}

.efp-navigation-row .efp-container {
  width: min(calc(100% - 32px), 1560px);
}

.efp-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--efp-ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.efp-nav-toggle-lines {
  font-size: 27px;
  line-height: 1;
}

.efp-primary-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0px, 0.18vw, 3px);
  min-height: 52px;
  margin: 0;
  padding: 4px clamp(8px, 1.2vw, 20px) 4px 0;
  list-style: none;
}

.efp-primary-nav {
  width: 100%;
}

.efp-primary-nav > ul,
.efp-primary-nav > .menu {
  margin-left: auto;
}

.efp-context-links {
  color: var(--efp-ink);
  background: #f2f6f8;
  border-top: 1px solid #d7e0e6;
  border-bottom: 1px solid #d7e0e6;
}

.efp-home-context-links {
  padding: clamp(40px, 5vw, 66px) 0;
}

.efp-global-context-links {
  padding: clamp(36px, 4vw, 58px) 0;
}

.efp-context-links-page {
  margin-top: clamp(36px, 5vw, 62px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 4px;
}

.efp-context-links h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 38px);
}

.efp-context-links p {
  max-width: 980px;
  margin: 0 0 14px;
  line-height: 1.75;
}

.efp-context-links p:last-child {
  margin-bottom: 0;
}

.efp-context-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.efp-primary-nav li {
  position: relative;
}

.efp-primary-nav a {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 7px clamp(4px, 0.35vw, 7px);
  color: #10243a;
  border-radius: 4px;
  font-size: clamp(12px, 0.82vw, 14px);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.efp-menu-icon {
  display: none;
}

.efp-primary-nav a:hover,
.efp-primary-nav a:focus-visible,
.efp-primary-nav .current-menu-item > a,
.efp-primary-nav .current_page_item > a {
  color: #10243a;
  background: #e4eee9;
}

.efp-primary-nav .menu-item-has-children > ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 270px;
  min-height: 0;
  padding: 8px;
  background: #123f72;
  border: 0;
  box-shadow: 0 14px 30px rgba(10, 35, 55, 0.14);
  z-index: 50;
}

.efp-primary-nav .menu-item-has-children > ul a {
  color: var(--efp-white) !important;
  border-radius: 0;
  padding: 9px 12px;
  font-size: 14px;
  background: transparent;
  white-space: normal;
}

.efp-primary-nav .menu-item-has-children > ul a:hover,
.efp-primary-nav .menu-item-has-children > ul a:focus-visible,
.efp-primary-nav .menu-item-has-children > ul .current-menu-item > a {
  color: var(--efp-white) !important;
  background: #0a2f58 !important;
}

.efp-primary-nav .menu-item-has-children:hover > ul,
.efp-primary-nav .menu-item-has-children:focus-within > ul {
  display: block;
}

.efp-primary-nav .efp-emergency-menu > a {
  color: var(--efp-white);
  background: #ef7518;
}

.efp-page-main {
  min-height: 55vh;
}

/* Il vecchio contenuto Elementor contiene una seconda testata dentro la Home. */
body.home .elementor-element-4c97567a {
  display: none !important;
}

.efp-page-content .elementor-location-header,
.efp-page-content .efp-legacy-embedded-header,
.efp-page-content .efp-template-menu-shell,
.efp-page-content .efp-fallback-menu-shell,
.efp-page-content .efp-guasti-hard-header {
  display: none !important;
}

.efp-page-hero {
  position: relative;
  min-height: 610px;
  color: var(--efp-white);
  background: #0b3d66 var(--efp-page-hero-image) center / cover no-repeat;
  isolation: isolate;
}

.efp-page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 35, 62, 0.94) 0%, rgba(4, 35, 62, 0.72) 54%, rgba(4, 35, 62, 0.28) 100%);
  content: "";
}

.efp-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  min-height: 610px;
  padding-block: 70px;
}

.efp-page-hero-copy { max-width: 800px; }
.efp-page-hero-copy .efp-section-kicker,
.efp-page-hero-copy h1 { color: var(--efp-white); }
.efp-page-hero-copy h1 { margin-bottom: 24px; font-size: clamp(48px, 6vw, 82px); line-height: 1.02; }
.efp-page-hero-copy > p:not(.efp-section-kicker) { max-width: 760px; font-size: 22px; }

.efp-page-offer {
  padding: 34px;
  color: var(--efp-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(3, 25, 48, 0.25);
}

.efp-page-offer-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 22px; color: #082f59; background: #ffbd2e; border-radius: 50%; font-size: 23px; font-weight: 900; }
.efp-page-offer h2 { margin: 8px 0 12px; color: var(--efp-ink); font-size: 32px; }
.efp-page-offer a { color: #073e69; font-weight: 900; }

.efp-page-article { padding-block: 72px; }
.efp-page-article > :first-child { margin-top: 0; }
.efp-page-article h2 { margin-top: 48px; }

.efp-page-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; border-top: 1px solid var(--efp-line); border-left: 1px solid var(--efp-line); }
.efp-page-related-grid a { display: grid; gap: 8px; min-height: 180px; padding: 28px; color: var(--efp-ink); text-decoration: none !important; border-right: 1px solid var(--efp-line); border-bottom: 1px solid var(--efp-line); }
.efp-page-related-grid a > span { color: #159360; font-weight: 900; }
.efp-page-related-grid strong { font-size: 22px; }
.efp-page-related-grid small { color: #58697b; }

.efp-emergency-band { color: #fff; background: #bf3030; }
.efp-emergency-band .efp-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 42px; }
.efp-emergency-band .efp-section-kicker, .efp-emergency-band h2 { margin: 0; color: #fff; }

.efp-page-value-grid, .efp-page-saving-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.efp-page-value figure, .efp-page-saving figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.efp-page-value img, .efp-page-saving img { width: 100%; height: 100%; object-fit: cover; }
.efp-page-saving { background: #dcecf6; }
.efp-page-saving-grid { grid-template-columns: 1.1fr 0.9fr; }

.efp-page-faq details { border-top: 1px solid #b9c7d4; }
.efp-page-faq details:last-child { border-bottom: 1px solid #b9c7d4; }
.efp-page-faq summary { padding: 24px 8px; cursor: pointer; color: #0b3864; font-size: 21px; font-weight: 800; }
.efp-page-faq details p { max-width: 900px; padding: 0 8px 24px; }

body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-content,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-content > *,
body.efp-page-preventivo-istantaneo-guasti-elettrici .elementor,
body.efp-page-preventivo-istantaneo-guasti-elettrici .elementor-page,
body.efp-page-preventivo-istantaneo-guasti-elettrici .elementor-section-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-content { overflow: clip; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-site-header { position: relative; z-index: 100; background: #fff; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row { background: #faf6ed; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav > ul > li > a { color: #173b70 !important; }

.efp-page-content > *:not(.alignfull):not(.efp-page-hero):not(.efp-page-related):not(.efp-emergency-band):not(.efp-page-value):not(.efp-page-saving):not(.efp-page-faq) {
  max-width: var(--efp-content);
  margin-left: auto;
  margin-right: auto;
}

.efp-page-content > p,
.efp-page-content > h1,
.efp-page-content > h2,
.efp-page-content > h3,
.efp-page-content > ul,
.efp-page-content > ol,
.efp-page-content > form,
.efp-page-content > .wp-block-group:not(.alignfull) {
  width: min(calc(100% - 40px), var(--efp-content));
}

.efp-page-content a:not(.wp-element-button):not(.elementor-button) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.efp-site-footer {
  color: var(--efp-white);
  background: #071c2c;
}

.efp-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 50px 36px;
}

.efp-footer-title {
  margin: 0 0 12px;
  color: var(--efp-white);
  font-size: 20px;
}

.efp-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--efp-white);
  text-decoration: none;
}

.efp-footer-brand img {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  object-fit: contain;
  background: #fff;
}

.efp-footer-brand-copy {
  display: block;
  min-width: 0;
}

.efp-footer-brand-name {
  display: block;
  font-family: "Segoe UI Variable Display", "Aptos Display", Bahnschrift, Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
}

.efp-footer-brand-tagline {
  display: block;
  margin-top: 9px;
  color: #d6a4a4;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.efp-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.efp-footer-links a {
  color: var(--efp-white);
  text-decoration: none;
}

.efp-footer-links a:hover,
.efp-footer-links a:focus-visible {
  text-decoration: underline;
}

.efp-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.efp-home h1,
.efp-home h2,
.efp-home h3,
.efp-editorial-page h1,
.efp-editorial-page h2 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.efp-home h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 4vw, 54px);
}

.efp-home h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.efp-section {
  padding-block: 86px;
}

.efp-section-kicker,
.efp-eyebrow {
  margin: 0 0 10px;
  color: var(--efp-blue-dark);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.efp-hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 150px));
  align-items: center;
  color: var(--efp-white);
  background-color: #173b51;
  background-image: url("/wp-content/uploads/2026/05/pannelli-solari-hero.webp");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.efp-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(4, 25, 42, 0.62);
  content: "";
}

.efp-hero-content {
  padding-block: 70px;
}

.efp-hero-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

/* Gutenberg/WordPress 7 aggiunge un wrapper interno ai Gruppi. */
.efp-hero-heading-row > .wp-block-group__inner-container,
.efp-offer-track > .wp-block-group__inner-container,
.efp-brand-track > .wp-block-group__inner-container,
.efp-map-section > .wp-block-group__inner-container {
  display: contents;
}

.efp-calculator-cta {
  display: grid;
  min-height: 180px;
  padding: 28px;
  align-content: center;
  justify-items: start;
  color: var(--efp-ink);
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(3, 20, 34, 0.26);
  text-decoration: none;
}

.efp-calculator-cta > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  place-items: center;
  color: #092f51;
  color: #082f4f;
  background: linear-gradient(145deg, #ffd85c, var(--efp-yellow));
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(243, 180, 40, 0.3);
}

.efp-calculator-icon .efp-ui-icon {
  width: 25px;
  height: 25px;
}

.efp-calculator-cta strong {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.1;
}

.efp-calculator-cta small {
  margin-top: 8px;
  color: #4c6072;
  font-size: 15px;
}

.efp-hero .efp-eyebrow {
  color: #bdebd5;
}

.efp-hero h1 {
  max-width: 880px;
  margin-bottom: 24px;
  color: var(--efp-white);
  font-size: clamp(42px, 6vw, 78px);
}

.efp-contact-form-section {
  padding: clamp(60px, 7vw, 100px) 0;
  background: var(--efp-white);
}

.efp-contact-form-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}

.efp-contact-form-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.efp-contact-form-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.efp-contact-form-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 54px);
}

.efp-contact-form-copy > p:not(.efp-section-kicker) {
  margin-bottom: 30px;
  font-size: 19px;
  line-height: 1.65;
}

.efp-contact-form .ff-el-group {
  margin-bottom: 20px;
}

.efp-contact-form .ff-el-form-control {
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #cbd6df;
  border-radius: 4px;
  font: inherit;
}

.efp-contact-form textarea.ff-el-form-control {
  min-height: 130px;
}

.efp-contact-form .ff-btn-submit {
  min-height: 52px;
  padding: 12px 28px;
  color: var(--efp-white);
  background: var(--efp-blue-dark);
  border: 0;
  border-radius: 4px;
  font-weight: 800;
}

.efp-contact-existing-content {
  padding-bottom: clamp(50px, 7vw, 90px);
}

.efp-hero-content > p:not(.efp-eyebrow) {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: clamp(19px, 2.1vw, 25px);
}

.efp-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.efp-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.efp-button-primary {
  color: #082237;
  background: var(--efp-yellow);
}

.efp-hero .efp-button-primary .wp-block-button__link {
  color: #082237;
  background: var(--efp-yellow);
  border: 2px solid var(--efp-yellow);
  border-radius: 4px;
}

.efp-hero .is-style-outline .wp-block-button__link {
  color: var(--efp-blue-dark);
  background: var(--efp-white);
  border: 2px solid var(--efp-white);
  border-radius: 4px;
}

.efp-button-light {
  color: var(--efp-blue-dark);
  background: var(--efp-white);
}

.efp-button-dark {
  color: var(--efp-white);
  background: var(--efp-blue-dark);
}

.efp-button-outline {
  color: var(--efp-blue-dark);
  border-color: var(--efp-blue-dark);
  background: transparent;
}

.efp-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.efp-hero-points li::before {
  margin-right: 8px;
  color: #8ce0b8;
  content: "✓";
}

.efp-service-band {
  padding-block: 74px;
  background: var(--efp-white);
}

.efp-service-band h2 {
  max-width: 780px;
}

.efp-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--efp-line);
  border-left: 1px solid var(--efp-line);
}

/* WordPress 7 avvolge il contenuto del blocco Gruppo in un contenitore interno.
 * Lo rendiamo trasparente al layout per mantenere le schede nella griglia. */
.efp-service-grid > .wp-block-group__inner-container {
  display: contents;
}

.efp-service-item > .wp-block-group__inner-container {
  display: flex;
  width: 100%;
  gap: 16px;
}

.efp-service-item {
  display: flex;
  min-height: 190px;
  gap: 16px;
  padding: 26px 22px;
  color: var(--efp-ink);
  border-right: 1px solid var(--efp-line);
  border-bottom: 1px solid var(--efp-line);
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.efp-service-item:hover,
.efp-service-item:focus-visible {
  background: #f3f8f5;
  box-shadow: inset 0 0 0 2px rgba(19, 138, 89, 0.2);
}

.efp-service-item h3 {
  margin-top: 0;
}

.efp-service-item h3 a {
  color: inherit;
  text-decoration: none;
}

.efp-service-item p {
  margin: 0;
  color: var(--efp-muted);
  font-size: 15px;
  line-height: 1.5;
}

.efp-service-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: var(--efp-white);
  background: linear-gradient(145deg, #1ca46d, #08754a);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.efp-ui-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.efp-service-mark .efp-ui-icon {
  width: 25px;
  height: 25px;
}

.efp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
}

.efp-split-reverse .efp-copy {
  order: 2;
}

.efp-copy p {
  font-size: 18px;
}

.efp-copy a:not(.efp-button) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.efp-text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--efp-blue-dark);
  font-weight: 900;
}

.efp-framed-media {
  position: relative;
  margin: 0;
}

.efp-framed-media::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 5px solid var(--efp-red);
  border-radius: 6px;
  content: "";
}

.efp-framed-media-blue::before {
  border-color: #80b4d3;
}

.efp-framed-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  border-radius: 6px;
}

.efp-offers {
  color: var(--efp-white);
  background: #163c70;
}

.efp-offers .efp-section-kicker,
.efp-offers h2 {
  color: var(--efp-white);
}

.efp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.efp-carousel-controls {
  display: flex;
  gap: 8px;
  padding-bottom: 24px;
}

.efp-carousel-controls button {
  width: 44px;
  height: 44px;
  color: var(--efp-white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.efp-offer-track {
  display: grid;
  grid-auto-columns: minmax(290px, 32%);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.efp-offer-card {
  min-height: 350px;
  padding: 34px;
  color: var(--efp-ink);
  background: var(--efp-white);
  border: 3px solid #7eb5d5;
  border-radius: 6px;
  scroll-snap-align: start;
}

.efp-offer-card > .wp-block-group__inner-container {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.efp-offer-card > span,
.efp-offer-card .efp-offer-label {
  margin: 0;
  color: var(--efp-green);
  font-size: 13px;
  font-weight: 900;
}

.efp-offer-card h3 {
  margin-top: 50px;
  font-size: 30px;
}

.efp-offer-card a {
  display: inline-block;
  margin-top: 24px;
  color: var(--efp-blue-dark);
  font-weight: 900;
}

.efp-offer-card > .wp-block-group__inner-container > p:last-child {
  margin-top: auto;
}

.efp-offer-note,
.efp-brand-note {
  margin: 18px 0 0;
  font-size: 14px;
}

.efp-why {
  background: #f7f1e7;
}

.efp-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.efp-reason-grid article {
  min-height: 210px;
  padding: 28px;
  background: var(--efp-white);
  border-radius: 6px;
}

.efp-reason-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--efp-blue);
  font-size: 30px;
}

.efp-reason-grid p {
  margin: 0;
  color: var(--efp-muted);
}

.efp-finance-band {
  padding-block: 42px;
  background: #83b2ce;
}

.efp-finance-band > .wp-block-group__inner-container {
  width: 100%;
}

.efp-finance-band .efp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.efp-finance-band h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.5vw, 44px);
}

.efp-finance-band .wp-block-buttons {
  flex: 0 0 auto;
  margin: 0;
}

.efp-finance-band .efp-button-dark .wp-block-button__link {
  color: var(--efp-white);
  background: var(--efp-ink);
  border: 2px solid var(--efp-ink);
  border-radius: 4px;
}

.efp-review {
  background: #f2f7f9;
}

.efp-review-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.efp-review-layout figure {
  margin: 0;
}

.efp-review-layout figure img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border: 8px solid var(--efp-white);
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(9, 36, 56, 0.14);
  image-rendering: auto;
}

.efp-stars {
  color: #e6ad17;
  letter-spacing: 5px;
}

.efp-review blockquote {
  max-width: 800px;
  margin: 18px 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
}

.efp-check-list {
  padding-left: 22px;
}

.efp-brand-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  margin-top: 32px;
  border-top: 1px solid var(--efp-line);
  border-left: 1px solid var(--efp-line);
}

.efp-brand-track span,
.efp-brand-track .efp-brand-item {
  display: grid;
  min-height: 110px;
  place-items: center;
  margin: 0;
  padding: 20px;
  border-right: 1px solid var(--efp-line);
  border-bottom: 1px solid var(--efp-line);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.efp-map-section {
  position: relative;
  min-height: 570px;
}

.efp-map-section iframe {
  display: block;
  width: 100%;
  height: 570px;
  border: 0;
}

.efp-map-panel .efp-button-light .wp-block-button__link {
  color: var(--efp-blue-dark);
  background: var(--efp-white);
  border: 2px solid var(--efp-white);
  border-radius: 4px;
}

.efp-map-panel {
  position: absolute;
  top: 50%;
  left: max(20px, calc((100% - var(--efp-content)) / 2));
  width: min(560px, calc(100% - 40px));
  padding: 42px;
  color: var(--efp-white);
  background: #163c70;
  border-radius: 6px;
  transform: translateY(-50%);
}

.efp-map-panel .efp-section-kicker,
.efp-map-panel h2 {
  color: var(--efp-white);
}

.efp-map-panel h2 {
  font-size: clamp(30px, 3.5vw, 48px);
}

.efp-request {
  position: relative;
  padding-block: 90px;
  color: var(--efp-white);
  background-color: #173b51;
  background-image: url("assets/images/service-request.webp");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.efp-request::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(5, 35, 62, 0.86);
  content: "";
}

.efp-request .efp-container {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(500px, 1.3fr);
  gap: clamp(40px, 6vw, 80px);
}

.efp-request .efp-section-kicker,
.efp-request h2 {
  color: var(--efp-white);
}

.efp-form-shell {
  padding: 30px;
  color: var(--efp-ink);
  background: var(--efp-white);
  border-radius: 6px;
}

.efp-editorial-page {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
  padding-block: 70px 90px;
}

.efp-editorial-page h1 {
  font-size: clamp(40px, 5vw, 66px);
}

.efp-editorial-page h2 {
  margin-top: 45px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.efp-editorial-page .wp-element-button {
  display: inline-flex;
  padding: 12px 20px;
  color: var(--efp-white);
  background: var(--efp-blue-dark);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none !important;
}

.efp-article-header {
  padding-block: 70px 46px;
  background: #f2f7f9;
}

.efp-article-header h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
}

.efp-article-date {
  margin: 0;
  color: var(--efp-muted);
}

.efp-article-cover {
  width: min(calc(100% - 40px), var(--efp-content));
  margin: 40px auto 0;
}

.efp-article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2.25;
  object-fit: cover;
  border-radius: 6px;
}

.efp-article-body {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
  padding-block: 54px 90px;
}

.efp-article-body h2 {
  margin-top: 48px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
}

.efp-article-body p,
.efp-article-body li {
  font-size: 18px;
}

.efp-article-cta {
  margin-top: 60px;
  padding: 34px;
  color: var(--efp-white);
  background: var(--efp-blue-dark);
  border-radius: 6px;
}

.efp-article-cta h2 {
  margin-top: 0;
  color: var(--efp-white);
}

@media (max-width: 1180px) {
  .efp-page-hero,
  .efp-page-hero-grid {
    min-height: 0;
  }

  .efp-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .efp-page-offer {
    max-width: 560px;
  }

  .efp-page-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .efp-page-value-grid,
  .efp-page-saving-grid {
    grid-template-columns: 1fr;
  }

  .efp-hero-heading-row,
  .efp-contact-form-grid {
    grid-template-columns: 1fr;
  }

  .efp-calculator-cta {
    width: min(100%, 420px);
    min-height: 0;
  }

  .efp-contact-form-media {
    width: min(100%, 650px);
  }

  .efp-brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 92px;
  }

  .efp-booking-link {
    display: none;
  }

  .efp-nav-toggle {
    display: inline-flex;
  }

  .efp-navigation-row .efp-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
  }

  .efp-primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 8px 16px 18px;
    background: var(--efp-white);
    border: 1px solid var(--efp-line);
    box-shadow: 0 18px 36px rgba(10, 35, 55, 0.18);
  }

  .efp-primary-nav.is-open {
    display: block;
  }

  .efp-primary-nav ul {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .efp-primary-nav a {
    padding: 11px 8px;
    font-size: 16px;
    text-align: center;
    white-space: normal;
  }

  .efp-primary-nav .menu-item-has-children > ul {
    position: static;
    display: block;
    width: auto;
    padding: 0 18px;
    background: #123f72;
    border: 0;
    box-shadow: none;
  }

  .efp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .efp-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .efp-split,
  .efp-request .efp-container {
    grid-template-columns: 1fr;
  }

  .efp-split-reverse .efp-copy {
    order: 0;
  }

  .efp-framed-media {
    max-width: 760px;
  }

  .efp-offer-track {
    grid-auto-columns: minmax(300px, 55%);
  }

  .efp-reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .efp-brand-track {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .efp-request-intro {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .efp-page-hero-grid {
    padding-block: 48px;
  }

  .efp-page-hero-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .efp-page-hero-copy > p:not(.efp-section-kicker) {
    font-size: 18px;
  }

  .efp-page-related-grid {
    grid-template-columns: 1fr;
  }

  .efp-emergency-band .efp-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .efp-container {
    width: min(calc(100% - 28px), var(--efp-content));
  }

  .efp-topbar .efp-container {
    justify-content: center;
  }

  .efp-topbar a:nth-child(2) {
    display: none;
  }

  .efp-topbar a {
    font-size: 12px;
  }

  .efp-brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .efp-brand img,
  .efp-brand .custom-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .efp-brand-name {
    font-size: 19px;
  }

  .efp-brand-tagline {
    max-width: 190px;
    font-size: 8px;
    text-align: left;
    white-space: normal;
  }

  .efp-phone {
    display: none;
  }

  .efp-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .efp-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .efp-section {
    padding-block: 58px;
  }

  .efp-hero {
    min-height: 650px;
    background-image: url("/wp-content/uploads/2026/05/pannelli-solari-hero-mobile.webp");
  }

  .efp-hero h1 {
    font-size: 42px;
  }

  .efp-hero-heading-row {
    gap: 22px;
  }

  .efp-calculator-cta {
    min-height: 0;
    padding: 20px;
  }

  .efp-contact-form-section {
    padding: 44px 0;
  }

  .efp-contact-form-grid {
    gap: 30px;
  }

  .efp-contact-form-media {
    aspect-ratio: 4 / 3;
  }

  .efp-hero-points {
    display: grid;
    gap: 8px;
  }

  .efp-button-row .efp-button {
    width: 100%;
  }

  .efp-service-grid,
  .efp-reason-grid,
  .efp-brand-track {
    grid-template-columns: 1fr;
  }

  .efp-service-item {
    min-height: 0;
  }

  .efp-framed-media::before {
    inset: 10px -8px -10px 8px;
    border-width: 3px;
  }

  .efp-section-head {
    align-items: flex-start;
  }

  .efp-carousel-controls {
    padding-bottom: 18px;
  }

  .efp-offer-track {
    grid-auto-columns: 88%;
  }

  .efp-offer-card {
    min-height: 330px;
    padding: 26px;
  }

  .efp-finance-band .efp-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .efp-review-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .efp-review-layout figure img {
    width: 150px;
    height: 150px;
  }

  .efp-map-section,
  .efp-map-section iframe {
    min-height: 640px;
    height: 640px;
  }

  .efp-map-panel {
    top: auto;
    right: 14px;
    bottom: 16px;
    left: 14px;
    width: auto;
    padding: 26px;
    transform: none;
  }

  .efp-form-shell {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .efp-offer-track {
    scroll-behavior: auto;
  }
}
/* Service experience v1.4.4: isolated from the embedded guasti application. */
.efp-service-page {
    color: var(--efp-ink);
    overflow: clip;
}

.efp-service-hero {
    width: 100vw;
    min-height: 610px;
    margin-left: calc(50% - 50vw);
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(8, 43, 74, .92) 0%, rgba(8, 43, 74, .78) 49%, rgba(8, 43, 74, .22) 100%),
        var(--efp-service-image) center / cover no-repeat;
}

.efp-service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(36px, 7vw, 120px);
    align-items: center;
    padding-block: 76px;
}

.efp-service-hero-copy {
    max-width: 860px;
    color: #fff;
}

.efp-service-hero h1 {
    max-width: 900px;
    margin: 12px 0 24px;
    color: #fff;
    font-size: clamp(46px, 5.4vw, 84px);
    line-height: 1.02;
    letter-spacing: 0;
}

.efp-service-hero .efp-section-kicker {
    color: #8ef0c1;
}

.efp-service-lead {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(19px, 1.7vw, 25px);
    line-height: 1.55;
}

.efp-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.efp-service-offer {
    display: flex;
    min-height: 310px;
    padding: 34px;
    flex-direction: column;
    justify-content: center;
    color: var(--efp-ink);
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0,0,0,.2);
    text-decoration: none;
}

.efp-service-offer span {
    color: var(--efp-green);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.efp-service-offer strong {
    margin-top: 13px;
    font-size: 32px;
    line-height: 1.08;
}

.efp-service-offer small {
    margin-top: 16px;
    color: #536579;
    font-size: 17px;
    line-height: 1.45;
}

.efp-service-offer b {
    margin-top: 24px;
    color: var(--efp-blue);
}

.efp-service-body {
    padding-block: 74px;
}

.efp-service-original {
    max-width: 1050px;
    font-size: 19px;
    line-height: 1.7;
}

.efp-service-original > :first-child {
    margin-top: 0;
}

.efp-service-original h2 {
    margin-top: 48px;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.1;
}

.efp-service-original h3 {
    margin-top: 30px;
    font-size: 27px;
}

.efp-service-original img {
    max-width: 100%;
    height: auto;
}

.efp-service-original a:not(.wp-element-button) {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.efp-service-related {
    margin-top: 64px;
    padding: 42px;
    background: #f1f5f8;
    border-top: 3px solid var(--efp-green);
}

.efp-service-related h2,
.efp-service-section-heading h2,
.efp-service-saving h2,
.efp-service-faq h2,
.efp-service-final-cta h2 {
    margin: 7px 0 24px;
    font-size: clamp(31px, 4vw, 52px);
    line-height: 1.1;
}

.efp-service-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #cad6e0;
    border: 1px solid #cad6e0;
}

.efp-service-related-grid a {
    display: flex;
    min-height: 86px;
    padding: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--efp-ink);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
}

.efp-service-related-grid a:hover,
.efp-service-related-grid a:focus-visible {
    color: #fff;
    background: var(--efp-blue);
}

.efp-emergency-strip {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    color: #fff;
    background: #b92f34;
}

.efp-emergency-strip-inner {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.efp-emergency-strip p {
    margin: 0 0 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.efp-emergency-strip h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 44px);
}

.efp-service-why {
    padding-block: 78px;
}

.efp-service-section-heading {
    max-width: 900px;
}

.efp-service-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.efp-service-why-grid > div {
    min-height: 190px;
    padding: 30px;
    border: 1px solid #cdd9e3;
    border-top: 5px solid var(--efp-green);
}

.efp-service-why-grid strong {
    font-size: 23px;
}

.efp-service-why-grid p {
    color: #536579;
    line-height: 1.6;
}

.efp-text-link {
    color: var(--efp-blue-dark);
    font-weight: 800;
    text-underline-offset: 4px;
}

.efp-service-saving {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-block: 72px;
    background: #d8eaf5;
}

.efp-service-saving-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: clamp(38px, 6vw, 92px);
    align-items: center;
}

.efp-service-saving figure {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 8px;
}

.efp-service-saving img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.efp-service-saving p:not(.efp-section-kicker) {
    color: #31485d;
    font-size: 19px;
    line-height: 1.7;
}

.efp-service-faq {
    padding-block: 78px;
}

.efp-service-faq-list {
    max-width: 1180px;
    border-top: 1px solid #cdd9e3;
}

.efp-service-faq details {
    border-bottom: 1px solid #cdd9e3;
}

.efp-service-faq summary {
    padding: 24px 44px 24px 0;
    cursor: pointer;
    font-size: 21px;
    font-weight: 800;
}

.efp-service-faq details p {
    max-width: 900px;
    padding: 0 0 25px;
    color: #536579;
    line-height: 1.65;
}

.efp-service-final-cta {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-block: 72px;
    color: #fff;
    background: var(--efp-blue-dark);
}

.efp-service-final-cta .efp-container {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.efp-service-final-cta h2,
.efp-service-final-cta p {
    color: #fff;
}

.efp-service-final-cta p:not(.efp-section-kicker) {
    font-size: 19px;
}

@media (max-width: 1000px) {
    .efp-service-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .efp-service-offer {
        min-height: 0;
        max-width: 600px;
    }

    .efp-service-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .efp-service-saving-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .efp-service-hero {
        min-height: auto;
        background:
            linear-gradient(rgba(8,43,74,.86), rgba(8,43,74,.88)),
            var(--efp-service-image) center / cover no-repeat;
    }

    .efp-service-hero-grid {
        padding-block: 50px;
    }

    .efp-service-hero h1 {
        font-size: 42px;
    }

    .efp-service-offer {
        padding: 25px;
    }

    .efp-service-offer strong {
        font-size: 27px;
    }

    .efp-service-body,
    .efp-service-why,
    .efp-service-faq {
        padding-block: 52px;
    }

    .efp-service-related {
        padding: 24px;
    }

    .efp-service-related-grid,
    .efp-service-why-grid {
        grid-template-columns: 1fr;
    }

    .efp-emergency-strip-inner {
        padding-block: 35px;
        align-items: flex-start;
        flex-direction: column;
    }

    .efp-service-saving {
        padding-block: 50px;
    }
}

/* Regole definitive 1.5.6 dopo gli stili storici. */
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club { position: relative; }
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club > ul { top: 0 !important; right: auto !important; left: 100% !important; min-width: 230px; }
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club:hover > ul,
.efp-primary-nav .efp-menu-about > ul > .efp-menu-club:focus-within > ul { display: block; opacity: 1; visibility: visible; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-site-header { display: block !important; position: relative !important; z-index: 999999 !important; isolation: isolate; background: #fff !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row { display: block !important; position: relative !important; z-index: 999999 !important; height: 62px !important; min-height: 62px !important; overflow: visible !important; background: #faf6ed !important; border-top: 1px solid #d7e0e6 !important; border-bottom: 1px solid #d7e0e6 !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row > .efp-container,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav,
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav > ul { height: 62px !important; min-height: 62px !important; margin: 0 !important; background: #faf6ed !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-page-main { clear: both; display: block; position: relative; z-index: 1; margin-top: 0 !important; padding-top: 0 !important; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-guasti-page { position: relative !important; z-index: 0 !important; margin-top: 0 !important; }
@media (max-width: 980px) {
  .efp-primary-nav .efp-menu-about > ul > .efp-menu-club > ul { position: static !important; margin: 0; padding-left: 18px; }
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row,
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-navigation-row > .efp-container,
  body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-primary-nav { height: auto !important; min-height: 0 !important; }
}

/* Testata dedicata e stabile del Preventivo guasti. */
.efp-guasti-safe-nav { position: relative; z-index: 999999; min-height: 58px; background: #faf6ed; border-top: 1px solid #d7e0e6; border-bottom: 1px solid #d7e0e6; }
.efp-guasti-safe-nav .efp-container { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2.4vw, 34px); min-height: 58px; }
.efp-guasti-safe-nav a { color: #173b70; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.efp-guasti-safe-nav a:hover, .efp-guasti-safe-nav a:focus-visible { color: #087a4e; }
.efp-guasti-safe-current { padding: 8px 12px; color: #fff !important; background: #0f5e91; border-radius: 5px; }
body.efp-page-preventivo-istantaneo-guasti-elettrici .efp-guasti-page { margin-top: 0 !important; }

/* Nuova landing Contatti. */
.efp-contact-hero { padding: clamp(62px, 8vw, 108px) 20px; color: #fff; background: linear-gradient(120deg, rgba(5,45,78,.82), rgba(8,104,107,.68)), url('assets/images/solar-installation.webp') center/cover; }
.efp-contact-hero .efp-container { max-width: 1120px; }
.efp-contact-hero .efp-section-kicker { color: #8ef0c8 !important; }
.efp-contact-hero h1 { max-width: 820px; margin: 10px 0 22px; color: #fff; font-size: clamp(46px, 6vw, 76px); line-height: 1.03; }
.efp-contact-hero > .efp-container > p:not(.efp-section-kicker) { max-width: 820px; color: #eef8fb; font-size: clamp(19px, 2vw, 24px); line-height: 1.55; }
.efp-contact-trust { display: flex !important; flex-flow: row wrap !important; align-items: center; gap: 12px !important; margin-top: 30px; }
.efp-contact-trust span, .efp-contact-trust p { flex: 0 0 auto; width: auto !important; margin: 0 !important; padding: 9px 14px; color: #07385c; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 800; }
.efp-contact-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; padding: 0 20px clamp(60px, 8vw, 96px); }
.efp-contact-options > a { display: grid; gap: 7px; min-height: 180px; padding: 30px; color: #0b2c49 !important; text-decoration: none !important; border: 1px solid #d3e0e8; border-radius: 9px; background: #fff; box-shadow: 0 12px 34px rgba(8,47,89,.08); }
.efp-contact-options > .wp-block-group { display: grid; gap: 7px; min-height: 180px; padding: 30px; color: #0b2c49; border: 1px solid #d3e0e8; border-radius: 9px; background: #fff; box-shadow: 0 12px 34px rgba(8,47,89,.08); }
.efp-contact-options > .wp-block-group p { margin: 0; color: #526777; font-size: 15px; line-height: 1.5; }
.efp-contact-options > .wp-block-group p:first-child { color: #159360; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.efp-contact-options > .wp-block-group h3 { margin: 0; font-size: 25px; }
.efp-contact-options span { color: #159360; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.efp-contact-options strong { font-size: 25px; }
.efp-contact-options small { color: #526777; font-size: 15px; line-height: 1.5; }
.efp-contact-options > a:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(8,47,89,.13); }
.efp-service-original > .efp-service-intro { color: #123a5d; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.55; }

@media (max-width: 980px) {
  .efp-guasti-safe-nav .efp-container { justify-content: flex-start; overflow-x: auto; padding-block: 8px; }
  .efp-contact-options { grid-template-columns: 1fr; }
}

/* Contatti 1.5.9: colonne indipendenti senza sovrapposizioni. */
body.efp-page-contatti .efp-contact-form-section { padding: clamp(56px, 7vw, 92px) 20px; }
body.efp-page-contatti .efp-contact-form-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important; align-items: start !important; gap: clamp(32px, 5vw, 68px) !important; box-sizing: border-box; width: min(100%, 1240px) !important; max-width: 1240px !important; padding: clamp(20px, 3vw, 36px) !important; }
body.efp-page-contatti .efp-contact-form-media { position: sticky; top: 24px; width: 100% !important; min-width: 0 !important; height: clamp(520px, 58vw, 760px) !important; min-height: 0 !important; aspect-ratio: auto !important; align-self: start; }
body.efp-page-contatti .efp-contact-form-media img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
body.efp-page-contatti .efp-contact-form-copy { position: relative; z-index: 2; box-sizing: border-box; min-width: 0; width: 100%; padding: clamp(24px, 3vw, 38px) !important; border: 1px solid #d6e2e9; border-radius: 9px; background: #fff; box-shadow: 0 14px 38px rgba(8,47,89,.08); }
body.efp-page-contatti .efp-contact-form,
body.efp-page-contatti .efp-contact-form form,
body.efp-page-contatti .efp-contact-form .fluentform,
body.efp-page-contatti .efp-contact-form .frm-fluent-form { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
body.efp-page-contatti .efp-contact-form input,
body.efp-page-contatti .efp-contact-form select,
body.efp-page-contatti .efp-contact-form textarea { box-sizing: border-box; max-width: 100% !important; }
@media (max-width: 980px) {
  body.efp-page-contatti .efp-contact-form-grid { grid-template-columns: 1fr !important; }
  body.efp-page-contatti .efp-contact-form-media { position: relative; top: auto; height: clamp(300px, 60vw, 480px) !important; }
}

/* Correzioni finali 1.5.3: prevalgono sulle regole storiche. */
.efp-service-page { overflow: hidden; }
.efp-service-hero { width: min(100% - 40px, 1280px); min-height: 0; margin: 24px auto 0; padding: clamp(56px, 7vw, 88px) 0; border-radius: 8px; }
.efp-service-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(36px, 6vw, 72px); }
.efp-service-hero-copy h1 { font-size: clamp(46px, 6vw, 76px); line-height: 1.03; }
.efp-service-lead { max-width: 760px; font-size: clamp(19px, 2vw, 25px); line-height: 1.5; }
.efp-service-offer { padding: 34px; }
.efp-service-body, .efp-service-why, .efp-service-faq { padding-top: clamp(54px, 7vw, 84px); padding-bottom: clamp(54px, 7vw, 84px); }
.efp-service-related h2 { font-size: clamp(34px, 4vw, 54px); }
.efp-emergency-strip { width: min(100% - 40px, 1280px); margin: 0 auto; }
.efp-emergency-strip-inner { min-height: 180px; padding: 38px 48px; }
.efp-emergency-strip h2 { font-size: clamp(30px, 3.5vw, 48px); }
.efp-editorial-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 7vw, 86px); padding: clamp(54px, 7vw, 90px) max(24px, calc((100vw - 1200px) / 2)); background: #e8f2f7; }
.efp-editorial-hero h1 { margin: 10px 0 20px; color: #082f59; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; }
.efp-editorial-hero-copy > p:last-child { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.efp-editorial-hero figure { margin: 0; overflow: hidden; border-radius: 8px; box-shadow: 0 20px 50px rgba(8,47,89,.16); }
.efp-editorial-hero img { display: block; width: 100%; height: clamp(260px, 34vw, 430px); object-fit: cover; }
.efp-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; width: min(100% - 40px, 1200px) !important; max-width: 1200px !important; padding: clamp(54px, 7vw, 84px) 0; }
.efp-editorial-card { padding: 32px; border: 1px solid #cad9e4; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(8,47,89,.07); }
.efp-editorial-card h2 { margin-top: 0; color: #082f59; font-size: 26px; }
.efp-editorial-card a { color: #087a4e; font-weight: 800; }
.efp-editorial-cta { padding: clamp(52px, 7vw, 80px) max(24px, calc((100vw - 1200px) / 2)); color: #fff; background: #082f59; }
.efp-editorial-cta h2, .efp-editorial-cta p { color: #fff; }
@media (max-width: 980px) {
  .efp-service-hero-grid, .efp-editorial-hero { grid-template-columns: 1fr; }
  .efp-service-offer { max-width: 620px; }
  .efp-editorial-grid { grid-template-columns: 1fr; }
  .efp-emergency-strip-inner { padding: 34px 28px; }
}
@media (max-width: 600px) {
  .efp-service-hero, .efp-emergency-strip { width: 100%; margin-top: 0; border-radius: 0; }
  .efp-service-hero { padding-block: 46px; }
  .efp-service-actions { align-items: stretch; }
  .efp-service-actions .efp-button { width: 100%; text-align: center; }
  .efp-editorial-hero { padding-inline: 20px; }
}
