/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

#header .elementor-widget-nav-menu:not(.language-switcher) .elementor-nav-menu--main li {
	border: 1px solid #fff;
	border-radius: 30px;
	margin: 0px 10px;
}

#header .elementor-widget-nav-menu:not(.language-switcher) .elementor-nav-menu--main li a {
	border-radius: 30px;
}

/* Stato iniziale - header trasparente */
.navigation {
    background-color: transparent;
    transition: background-color 0.4s ease;
}

/* Stato sticky - header nero */
.navigation.elementor-sticky--effects {
    background-color: #11294C;
}

/* Base bullet style - stretched pill shape, white with blue border */
#slider-chi-siamo .swiper-pagination-bullet, #slider-servizi .swiper-pagination-bullet {
  width: 28px !important;
  height: 8px !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
  border: 1px solid #2C67AB !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

/* Active bullet - filled blue, slightly wider */
#slider-chi-siamo .swiper-pagination-bullet-active, #slider-servizi .swiper-pagination-bullet-active  {
  background-color: #2C67AB !important;
  border-color: #2C67AB !important;
}

#slider-servizi .slide-number .elementor-heading-title {
	color: transparent;
  -webkit-text-stroke: 1px #2C67AB;
  text-stroke: 1px #2C67AB;
}

.box-settore-intervento .elementor-flip-box__front, .box-settore-intervento .elementor-flip-box__back, .box-settore-intervento .elementor-flip-box__layer__overlay {
	border-radius: 30px;
}

.box-settore-intervento.high-speed .elementor-flip-box__front .elementor-flip-box__layer__description img {
	padding-top: 5px;
	margin-bottom: -5px;
}

.box-settore-intervento.high-speed .elementor-flip-box__front .elementor-flip-box__layer__description img {
	width: 125px;
}

.box-settore-intervento .elementor-flip-box__front .elementor-flip-box__layer__description img {
	width: 110px;
}

.big-number .elementor-counter-number {
  color: transparent;
  -webkit-text-stroke: 1px white;
  text-stroke: 1px white;
}

div.partners img {
    height: 110px;
	width: 100%;
    object-fit: contain;
    object-position: 50% 50%;
    padding: 0px 36px;
    background-color: #fff;
}


/* =============================================
   SPAZIO AMBIENTE – HOMEPAGE STYLES
   Add these rules to your theme's style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@500;600;700;800&display=swap');

:root {
    --sa-navy:          #0d1f3c;
    --sa-blue:          #1a3a6e;
    --sa-accent:        #2a5fcf;
    --sa-accent-light:  #4a7fe0;
    --sa-white:         #ffffff;
    --sa-off-white:     #f4f6fa;
    --sa-text:          #1a1a2e;
    --sa-text-mid:      #3a3a5a;
    --sa-text-light:    #7a7a9a;
    --sa-border:        #dde2ef;
    --sa-font-display:  'Barlow Condensed', sans-serif;
    --sa-font-body:     'Barlow', sans-serif;
}

/* =============================================
   HERO
   ============================================= */
.sa-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--sa-navy);
}

.sa-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    opacity: .45;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}
.sa-hero:hover .sa-hero__bg { transform: scale(1); }

.sa-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,20,50,.55) 0%,
        rgba(10,20,50,.30) 55%,
        rgba(10,20,50,.70) 100%
    );
}

.sa-hero__inner {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    max-width: 860px;
}

.sa-hero__eyebrow {
    font-family: var(--sa-font-body);
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.sa-hero__title {
    font-family: var(--sa-font-display);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--sa-white);
    margin-bottom: 2.5rem;
}

.sa-hero__title em {
    font-style: normal;
    color: #a8c4ff;
}

.sa-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--sa-font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sa-white);
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: .3rem;
    transition: border-color .3s, gap .3s;
    text-decoration: none;
}
.sa-hero__cta:hover { border-color: var(--sa-white); gap: .85rem; }
.sa-hero__cta svg { width: 16px; height: 16px; }

/* =============================================
   SHARED UTILITIES
   ============================================= */
.sa-section {
    padding: 6rem 2rem;
}

.sa-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sa-section-label {
    font-family: var(--sa-font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sa-accent);
    margin-bottom: .75rem;
}

.sa-section-title {
    font-family: var(--sa-font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--sa-navy);
}

.sa-section-title--center { text-align: center; }

.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--sa-font-display);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sa-accent);
    text-decoration: none;
    transition: gap .25s, color .25s;
}
.sa-btn:hover { gap: .85rem; color: var(--sa-navy); }
.sa-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.sa-rule {
    width: 38px;
    height: 2px;
    background: var(--sa-accent);
    margin-top: 1rem;
}
.sa-rule--center { margin: 1rem auto 0; }

/* =============================================
   ABOUT
   ============================================= */
.sa-about {
    background: var(--sa-white);
}

.sa-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.sa-about__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.sa-about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter .5s;
}
.sa-about__image:hover img { filter: grayscale(0%); }

.sa-about__image::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    border-left: 3px solid var(--sa-accent);
    border-bottom: 3px solid var(--sa-accent);
    z-index: 2;
    pointer-events: none;
}

.sa-about__text p {
    font-size: .97rem;
    line-height: 1.78;
    color: var(--sa-text-mid);
    margin-bottom: 1.8rem;
}

.sa-about__text p:first-of-type { margin-top: 2rem; }

.sa-about__text p strong {
    color: var(--sa-navy);
    font-weight: 600;
}

/* =============================================
   SETTORI DI INTERVENTO
   ============================================= */
.sa-sectors {
    background: var(--sa-off-white);
}

.sa-sectors__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.sa-sector-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid var(--sa-border);
    background: var(--sa-white);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color .3s;
    text-decoration: none;
}
.sa-sector-card:hover { border-color: var(--sa-accent); }

.sa-sector-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .5s ease, transform .6s ease;
}
.sa-sector-card:hover .sa-sector-card__bg {
    opacity: 1;
    transform: scale(1);
}

.sa-sector-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,50,.75) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .5s;
}
.sa-sector-card:hover .sa-sector-card__overlay { opacity: 1; }

.sa-sector-card__label {
    position: relative;
    z-index: 2;
    font-family: var(--sa-font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sa-text-light);
    text-align: center;
    width: 100%;
    transition: color .3s;
}
.sa-sector-card:hover .sa-sector-card__label { color: var(--sa-white); }

/* =============================================
   NUMBERS BAR
   ============================================= */
.sa-numbers {
    background: var(--sa-navy);
    padding: 5rem 2rem;
}

.sa-numbers__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sa-number-item__value {
    font-family: var(--sa-font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--sa-white);
    line-height: 1;
    opacity: .22;
    display: block;
}

.sa-number-item__label {
    font-family: var(--sa-font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sa-white);
    margin-top: .3rem;
    display: block;
}

.sa-number-item__sub {
    font-family: var(--sa-font-body);
    font-size: .8rem;
    color: rgba(255,255,255,.45);
    font-style: italic;
    margin-top: .1rem;
    display: block;
}

.sa-numbers__map {
    position: relative;
    width: 220px;
    height: 180px;
    flex-shrink: 0;
}
.sa-numbers__map svg {
    width: 100%;
    height: 100%;
    opacity: .55;
}

/* =============================================
   PARTNER LOGOS
   ============================================= */
.sa-partners {
    background: var(--sa-white);
    padding: 4rem 2rem;
    border-top: 1px solid var(--sa-border);
    border-bottom: 1px solid var(--sa-border);
}

.sa-partners__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.sa-partner-logo {
    filter: grayscale(1);
    opacity: .6;
    transition: filter .3s, opacity .3s;
    text-decoration: none;
}
.sa-partner-logo:hover { filter: grayscale(0); opacity: 1; }

.sa-partner-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* text fallback if no logo image */
.sa-partner-logo--text {
    font-family: var(--sa-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--sa-text-light);
    text-transform: uppercase;
}

/* =============================================
   SERVIZI SLIDER
   ============================================= */
.sa-services {
    background: var(--sa-white);
}

.sa-services__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.sa-services__intro {
    max-width: 480px;
    font-size: .95rem;
    line-height: 1.75;
    color: var(--sa-text-mid);
    margin-top: .6rem;
    font-family: var(--sa-font-body);
}

/* Hexagonal pagination dots */
.sa-slider-pagination {
    display: flex;
    gap: .6rem;
    margin-top: 2.5rem;
    align-items: center;
}

.sa-slider-pagination__dot {
    width: 10px;
    height: 10px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--sa-border);
    cursor: pointer;
    transition: background .25s, transform .25s;
    border: none;
    padding: 0;
    flex-shrink: 0;
    appearance: none;
}
.sa-slider-pagination__dot.is-active {
    background: var(--sa-accent);
    transform: scale(1.3);
}
.sa-slider-pagination__dot:hover:not(.is-active) {
    background: var(--sa-accent-light);
}

/* Slides */
.sa-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.sa-slide.is-active { display: grid; }

.sa-slide__number {
    font-family: var(--sa-font-display);
    font-size: 6rem;
    font-weight: 800;
    color: var(--sa-off-white);
    line-height: 1;
    margin-bottom: -1.5rem;
}

.sa-slide__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.sa-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}
.sa-slide__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 70%, var(--sa-white) 100%);
    pointer-events: none;
}

.sa-slide__title {
    font-family: var(--sa-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--sa-navy);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.sa-slide__text {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--sa-text-mid);
    margin-bottom: 2rem;
    font-family: var(--sa-font-body);
}

/* =============================================
   BOTTOM RAIL STRIP
   ============================================= */
.sa-rail-strip {
    height: 280px;
    overflow: hidden;
}
.sa-rail-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    filter: grayscale(60%);
    display: block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .sa-sectors__grid       { grid-template-columns: repeat(2, 1fr); }
    .sa-numbers__inner      { grid-template-columns: repeat(2, 1fr); }
    .sa-numbers__map        { display: none; }
    .sa-services__header    { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .sa-about__grid         { grid-template-columns: 1fr; gap: 3rem; }
    .sa-slide.is-active     { display: flex; flex-direction: column; }
}

@media (max-width: 480px) {
    .sa-sectors__grid       { grid-template-columns: 1fr; }
    .sa-numbers__inner      { grid-template-columns: 1fr; }
    .sa-section             { padding: 4rem 1.25rem; }
}