/* Homepage: native Divi modules, presentation matched to the static mockup. */
.ep-home-section{font-family:Inter,Arial,sans-serif;color:#6170b1;padding:9rem 0!important;background:#fff}
.ep-home-section .ep-home-row{width:min(calc(100% - 3rem),1440px)!important;max-width:1440px!important;padding:0!important;margin:0 auto!important}
.ep-home-section .ep-home-row-wide{width:100%!important;max-width:none!important}
.ep-home-section .ep-home-column{width:100%!important;margin:0!important;gap:0!important}
.ep-home-section .et_pb_module{margin-bottom:0!important}
.ep-home-section .et_pb_group{gap:0!important}
.ep-home-section p{padding:0;font-weight:300}
.ep-home-section h1,.ep-home-section h2,.ep-home-section h3{font-family:Inter,Arial,sans-serif;color:#243672;padding:0;letter-spacing:-.04em}
.ep-home-heading h2{font-size:clamp(2.75rem,4.6vw,4rem)!important;line-height:1!important;font-weight:300!important}
.ep-home-heading h3{font-size:1.3rem!important;line-height:1.3!important;font-weight:500!important}
.ep-home-eyebrow{font-size:.72rem!important;line-height:1.4;letter-spacing:.22em;text-transform:uppercase;margin-bottom:1.85rem!important;color:#44519b}
.ep-home-eyebrow p{font-weight:500!important}
.ep-home-body{font-size:1.04rem!important;line-height:1.82!important;margin-top:1.5rem!important;max-width:48rem}
.ep-home-section .et_pb_button.ep-home-button{border:1px solid #243672!important;border-radius:999px!important;background:#243672!important;color:#fff!important;font:500 .82rem/1.4 Inter,Arial,sans-serif!important;letter-spacing:.05em;text-transform:uppercase;padding:.95rem 1.5rem!important;margin-top:1.9rem!important}
.ep-home-section .et_pb_button.ep-home-button-light{background:#fff!important;color:#243672!important;border-color:#fff!important}
.ep-home-button:after{display:none!important}.ep-home-button:focus-visible{outline:3px solid #6170b1;outline-offset:5px}
.ep-home-hero{padding:0!important;background:#131d3e}
.ep-home-hero-carousel{width:100%!important;max-width:none!important}
.ep-home-slide{min-height:calc(100svh - 80px);position:relative;overflow:hidden;justify-content:flex-end!important;padding:8rem max(1.5rem,calc((100vw - 1440px)/2)) 6rem!important;isolation:isolate}
.ep-home-hero-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:-2!important}
.ep-home-hero-image .et_pb_image_wrap,.ep-home-hero-image img{width:100%!important;height:100%!important;object-fit:cover;object-position:var(--ep-hero-image-position,76% center)}
.ep-home-slide:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(19,29,62,.08),rgba(19,29,62,.2)),linear-gradient(90deg,rgba(19,29,62,.42),rgba(19,29,62,.14) 35%,transparent 65%);z-index:-1;pointer-events:none}
.ep-home-hero-copy{max-width:45rem!important;width:100%!important;position:relative;z-index:2}
.ep-home-hero-title h1,.ep-home-hero-title h2{font-size:clamp(2.6rem,4.5vw,4.7rem)!important;font-weight:300!important;line-height:.98!important;color:#fff!important;max-width:15ch}
.ep-home-hero-lead{font-size:1.03rem!important;line-height:1.75!important;max-width:33rem;margin-top:1.5rem!important;color:rgba(255,255,255,.9)}
.ep-home-hero .ep-home-eyebrow{color:rgba(255,255,255,.8)}
.ep-home-slide-1 .et_pb_section_video_bg{z-index:-1!important}
.ep-home-slide-1 .ep-home-hero-image{z-index:-3!important}
.ep-home-intro-grid{display:grid!important;grid-template-columns:1.05fr .95fr!important;gap:4rem!important;align-items:start}
.ep-home-intro-heading{border-left:1px solid #aeb5d3;padding-left:2rem!important}
.ep-home-intro-heading h2{font-size:clamp(3.15rem,4.8vw,4.75rem)!important;line-height:.95!important;max-width:13.5ch}
.ep-home-intro-copy{max-width:30rem!important;justify-self:end}
.ep-home-editorial-slide .ep-home-image img{width:100%;aspect-ratio:1.25;object-fit:cover}
.ep-home-intro-copy>.ep-home-heading{margin-top:1.75rem!important;max-width:24rem}
.ep-home-solutions{background:linear-gradient(180deg,#131d3e,#1b2855);padding:10rem 0!important}
.ep-home-solutions-grid{display:grid!important;grid-template-columns:1.2fr .8fr!important;gap:3rem!important;align-items:center}
.ep-home-solutions-image img{width:100%;min-height:unset;max-height:unset;object-fit:cover}
.ep-home-solutions .ep-home-eyebrow,.ep-home-solutions h2{color:#fff!important}
.ep-home-solutions .ep-home-body{color:rgba(255,255,255,.8)}
.ep-home-realizations>.ep-home-row>.ep-home-column>.ep-home-heading{max-width:58rem}
.ep-home-realizations-grid{display:grid!important;grid-template-columns:1.05fr .95fr!important;gap:2rem!important;margin-top:3rem!important;align-items:start}
.ep-home-project-card .ep-home-image img{width:100%;height:25rem;object-fit:cover}
.ep-home-featured .ep-home-image img{height:36rem}
.ep-home-project-card .ep-home-eyebrow{margin:1.5rem 0 .7rem!important}
.ep-home-project-card h3{font-size:clamp(1.35rem,2vw,2rem)!important;line-height:1.15!important;font-weight:300!important;max-width:26ch}
.ep-home-world{background:#f3f6fe;text-align:center}
.ep-home-world .ep-home-body{margin:1.5rem auto 0!important}
.ep-home-world-map{margin-top:3rem!important;width:100%!important}
.ep-home-world-map img{width:100%;max-height:40rem;object-fit:contain}
.ep-home-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:2rem!important;margin-top:2.5rem!important}
.ep-home-stat .percent p{font:300 clamp(3rem,5vw,5rem)/1.1 Inter,Arial,sans-serif!important;letter-spacing:-.05em;color:#243672!important}
.ep-home-stat .title{font:400 .9rem/1.5 Inter,Arial,sans-serif!important;color:#6170b1!important;letter-spacing:0}
.ep-home-stat-plus .percent-value:after{content:'+'}
.ep-home-final{text-align:center;background:linear-gradient(135deg,#e9edf9,#f8faff)}
.ep-home-final .ep-home-heading{max-width:58rem;margin:auto!important}
.ep-home-final .ep-home-body{margin:1.5rem auto 0!important;max-width:45rem}
.ep-home-final-buttons{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap;gap:1rem!important}
@media(max-width:980px){.ep-home-section{padding:5rem 0!important}.ep-home-hero{padding:0!important}.ep-home-intro-grid,.ep-home-solutions-grid{grid-template-columns:1fr!important;gap:2.5rem!important}.ep-home-intro-copy{justify-self:start;max-width:none!important}.ep-home-intro-heading h2{max-width:20ch}.ep-home-realizations-grid{grid-template-columns:1fr 1fr!important}.ep-home-featured .ep-home-image img{height:29rem}.ep-home-solutions-image img{min-height:unset;max-height:unset}.ep-home-slide{min-height:46rem;padding-top:7rem!important}.ep-home-hero-title h1,.ep-home-hero-title h2{font-size:3.5rem!important}}
@media(max-width:600px){.ep-home-section .ep-home-row{width:calc(100% - 2rem)!important}.ep-home-section .ep-home-row-wide{width:100%!important}.ep-home-section{padding:4rem 0!important}.ep-home-hero{padding:0!important}.ep-home-slide{min-height:calc(100svh - 70px);padding:6rem 1rem 5rem!important}.ep-home-hero-title h1,.ep-home-hero-title h2{font-size:2.65rem!important}.ep-home-hero-lead{font-size:.95rem!important;line-height:1.65!important}.ep-home-hero-image img{object-position:84% center}.ep-home-slide:after{background:linear-gradient(90deg,rgba(19,29,62,.65),rgba(19,29,62,.15))}.ep-home-heading h2,.ep-home-intro-heading h2{font-size:2.6rem!important}.ep-home-intro-heading{padding-left:1.2rem!important}.ep-home-realizations-grid{grid-template-columns:1fr!important;gap:2.5rem!important}.ep-home-featured .ep-home-image img,.ep-home-project-card .ep-home-image img{height:24rem}.ep-home-stats{grid-template-columns:1fr!important;gap:2.5rem!important}.ep-home-final-buttons{flex-direction:column!important;align-items:center}.ep-home-final-buttons .et_pb_button_module_wrapper{width:auto!important}.ep-home-final-buttons .et_pb_button{margin-top:1rem!important}}
@media(prefers-reduced-motion:reduce){.ep-home-section *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Override Divi's default group spacing and text alignment. */
.ep-home-section .ep-home-intro-grid{gap:4rem!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important}
.ep-home-section .ep-home-solutions-grid{gap:3rem!important;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important}
.ep-home-section .ep-home-realizations-grid{gap:2rem!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important}
.ep-home-section .ep-home-stats{gap:2rem!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ep-home-section .ep-home-final-buttons{gap:1rem!important}
.ep-home-world .et_pb_text,.ep-home-final .et_pb_text{text-align:center!important;width:100%!important}
.ep-home-section .et_pb_group-carousel{min-width:0!important}
@media(max-width:980px){.ep-home-section .ep-home-intro-grid,.ep-home-section .ep-home-solutions-grid{grid-template-columns:minmax(0,1fr)!important;gap:2.5rem!important}}
@media(max-width:600px){.ep-home-section .ep-home-realizations-grid,.ep-home-section .ep-home-stats{grid-template-columns:minmax(0,1fr)!important;gap:2.5rem!important}}
/* Realizzazioni: the original two-card row followed by three cards, no carousel. */
.ep-home-section .ep-realizations-static{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:1.5rem!important;margin-top:2.5rem!important}
.ep-home-realizations .ep-realization-row{display:grid!important;align-items:stretch!important;gap:1.5rem!important;width:100%!important;min-width:0!important}
.ep-home-realizations .ep-realization-row-two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.ep-home-realizations .ep-realization-row-three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ep-home-realizations .ep-realization-card{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;overflow:hidden;border:1px solid #dfe6f7;border-radius:4px;background:#fff;transition:transform .26s,border-color .26s}
.ep-home-realizations .ep-realization-card:hover{transform:translateY(-2px);border-color:rgba(68,81,155,.45)}
.ep-home-realizations .ep-realization-card .ep-home-image{width:100%!important;line-height:0}
.ep-home-realizations .ep-realization-card .et_pb_image_wrap{display:block;width:100%}
.ep-home-realizations .ep-realization-card .ep-home-image img{display:block;width:100%!important;height:340px!important;object-fit:cover}
.ep-home-realizations .ep-realization-copy{padding:1.5rem!important;width:100%!important;flex:1 1 auto;gap:0!important}
.ep-home-realizations .ep-realization-copy .ep-home-eyebrow{margin:0 0 .7rem!important;color:#44519b}
.ep-home-realizations .ep-realization-card h3{font-size:2rem!important;font-weight:400!important;line-height:1.02!important;letter-spacing:-.03em;max-width:none;margin:0 0 .7rem!important}
@media(max-width:720px){.ep-home-realizations .ep-realization-row-two,.ep-home-realizations .ep-realization-row-three{grid-template-columns:minmax(0,1fr)!important}.ep-home-section .ep-realizations-static{margin-top:2rem!important;gap:1rem!important}.ep-home-realizations .ep-realization-row{gap:1rem!important}.ep-home-realizations .ep-realization-card .ep-home-image img{height:256px!important}.ep-home-realizations .ep-realization-copy{padding:1.25rem 1.2rem!important}.ep-home-realizations .ep-realization-card h3{font-size:1.6rem!important;line-height:1.1!important}}
@media(prefers-reduced-motion:reduce){.ep-home-realizations .ep-realization-card{transition:none}}
/* Native hero carousel: whole image above the dark copy panel on tablet/phone. */
@media(max-width:980px){
 .ep-home-section.ep-home-hero.ep-home-hero-mobile-split{padding-top:64px!important;padding-bottom:0!important}
 .ep-home-hero-mobile-split .ep-home-slide{min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;row-gap:normal!important;padding:0!important;background:#131d3e!important}
 .ep-home-hero-mobile-split .ep-home-slide:after{display:none}
 .ep-home-hero-mobile-split .ep-home-hero-image{position:relative!important;inset:auto!important;height:auto!important;z-index:auto!important;flex:0 0 auto}
 .ep-home-hero-mobile-split .ep-home-hero-image .et_pb_image_wrap,.ep-home-hero-mobile-split .ep-home-hero-image img{display:block;width:100%!important;height:auto!important;aspect-ratio:auto;object-fit:contain;object-position:center}
 .ep-home-hero-mobile-split .ep-home-hero-copy{max-width:unset!important;background:#131d3e;flex:1 1 auto}
 /* Divi 5 uses et-pb-background-video; hide its media layer throughout slide transitions. */
 .ep-home-hero-mobile-split .et_pb_section_video_bg,
 .ep-home-hero-mobile-split .et-pb-background-video,
 .ep-home-hero-mobile-split video{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
 .ep-home-hero-mobile-split .ep-home-hero-title h1,.ep-home-hero-mobile-split .ep-home-hero-title h2{max-width:unset;font-size:clamp(2.1rem,7vw,3.5rem)!important;line-height:1.08!important}
 .ep-home-hero-mobile-split .ep-home-hero-lead{max-width:unset}
}
