/* ==========================================================================
      CSS Reset & Global Settings
   ========================================================================== */

/*-------------- Variabili CSS --------------------*/
:root {
  /* Azzurro */
  --azzurro: #2CA5D7;
  --blue: #001e57;

  /* Colori del testo */
  --colore-testo: #555555;
  --colore-testo-grigio: #afafaf;

  /* Altri colori */
  --nero: #222;
  --bianco: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  color: var(--colore-testo);
  line-height:1.6em;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  background-color:#ffffff;
}

a {
    text-decoration: none;
    color: var(--azzurro);
}
a:hover,
a:focus,
a:visited {
    outline: none;
}

/* Form elements */
input, button, textarea, select {
  font: inherit;
}


/* ==========================================================================
   Typography
   ========================================================================== */
   h1, h2, h3, h4, h5, h6 {
     font-weight: 600;
     line-height: 1.2em;
    }
    p {
      line-height: 1.6em;
    }
    .par-18{
      font-size: 18px;
      line-height: 30px;
    }
    .titoletto{
    font-size: 18px;
    line-height: 24px;
    color: var(--colore-testo-grigio);
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 10px;
    }
    .titolo-44{
      font-size: 44px;
      font-weight: 700;
      line-height: 1.2em;
      padding-bottom: 25px;
    }
    .titolo-22{
      font-size: 22px;
      font-weight: 700;
      line-height: 1.4em;
      
      margin-bottom: 10px;
    }
    .titolo-22:hover{
      color: var(--azzurro);
    }
    .titolo-20{
      font-weight: 700;
      color: rgb(255, 255, 255);
      font-size: 20px;
      line-height: 1.2em;
      padding-bottom: 14px;
      text-transform: capitalize;
    }
    .titolo-underline::after {
      content: '';
      display: block;
      width: 100px; /* linea sotto al titolo */
      height: 1px; 
      background-color: var(--azzurro);
      margin-top:25px;
    }
    .titolo-underline-bianco::after {
      content: '';
      display: block;
      width: 50px; /* linea sotto al titolo */
      height: 1px; 
      background-color: #fff;
      margin-top:15px;
    }
    .titolo-32{
      font-size: 32px;
      font-weight: 400;
      line-height: 1.3em;
      margin-bottom: 20px;
    }
    .titolo-52{
      font-size: 52px;
      font-weight: 400;
      line-height: 1.2em;
      margin-bottom: 20px;
    }
    .weight-700 {
      font-weight: 700;
    }

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn-stile-chiaro{
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 30px;
	text-transform: uppercase;
	color:var(--azzurro);
	background-color: #ffffff;
	padding: 10px 30px;
	font-weight: 700;
	overflow: hidden;
  border: none;
	border-radius: 4px;
	letter-spacing:1px;
  transition: all 300ms ease;
}
.btn-stile-chiaro:hover{
	color: #ffffff;
	background-color: var(--blue);
  transform: scale(1.05);
}
.btn-stile-scuro{
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 30px;
	color: #ffffff;
	background-color: var(--azzurro);
	padding: 15px 39px;
	font-weight: 700;
	overflow: hidden;
  border: none;
	border-radius: 4px;
	letter-spacing:1px;
	text-transform: uppercase;
	transition: all 300ms ease;
}

.btn-stile-scuro:hover{
  border: 1px solid var(--azzurro);
	color: var(--azzurro);
	background-color: #ffffff;
	transform: scale(1.05);
}

.btn-stile-trasparente {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 30px;
	color: #ffffff;
	padding: 10px 26px;
	overflow: hidden;
	border-radius: 3px;
	letter-spacing: 1px;
	background: none;
	border: 1px solid #ffffff;
	text-transform: capitalize;
	transition: all 300ms ease;
}

.btn-stile-trasparente:hover {
	background-color: #fff;
	color:var(--azzurro);
}

/*  Link stile testo */
.testo-link {  
  display: inline-block;  
  font-size:14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  transition: all 300ms ease;
}
.testo-link:hover {
  transform: scale(1.2);
  color: var(--azzurro);
}

a.testo-link .bi{
  font-size: 12px;
  -webkit-text-stroke: 1px currentColor;
  vertical-align: top;
}


/* ==========================================================================
   Layout - Container & Breakpoints
   ========================================================================== */
/*  Breakpoint:
    - Desktop:     ≥ 1024px (default)
    - Tablet:      768px - 1023px
    - Mobile:      < 768px
*/

/* Container - Desktop First */
.container {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;/* per compensare bootstrap */
    padding-right: 15px;/* per compensare bootstrap */
}

/* Tablet */
@media (max-width: 1023px) {
  .container {
    max-width: 720px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/*==========================================================================*/
/*   UTILITY CLASSES
/*==========================================================================*/
/* Scroll to Top */
.scroll-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	color: #ffffff;
	font-size: 24px;
	line-height: 60px;
	text-align: center;
	z-index: 100;
	cursor: pointer;
	background: var(--blue);
	display: none;
	border-radius: 0;
	transition: all 300ms ease;
}

.scroll-to-top:hover {
	background: var(--blue);
}
/* Colors */
.bg-azzurro {
  background-color: var(--azzurro);
}
.bg-white {
  background-color: #fff;
}
.white {
  color: #fff;
}
.azzurro {
  color: var(--azzurro);
}
.blue{
  color: var(--blue);
}
.nero {
  color: var(--nero);
}
.colore-testo {
  color: var(--colore-testo);
}
/* Spacing */
.p100-50{
  padding-top: 100px;
  padding-bottom: 50px;
}
.p100-100{
  padding-top: 100px;
  padding-bottom: 100px;
}
.p-50{
  padding: 50px;
}
/* Linea Orizzontale */
/* .lineetta {
  width: 100px;
  height: 1px;
  background-color: var(--azzurro);
  border: none;
} */

/* Images */
.img-fit {
  max-width: 100%;
  height: auto;
  display: block;
}
/*larghezza*/
.wide-90{
  max-width: 90%;
}
/*bordo grigio*/
.bordo-grigio{
  border: 4px solid #dcdcdc;
}


/* ==========================================================================
   Custom Image Hover Effects Library
   ========================================================================== */

/* Hover Effect: Overlay Slide Down + Zoom
   Usage: Add class "hover-overlay-slide-down" to the image container
   ---------------------------------------------------------------- */
.hover-overlay-slide-down {
  position: relative;
  overflow: hidden;
  display: block;
}

.hover-overlay-slide-down a {
  display: block;
  position: relative;
  overflow: hidden;
}

.hover-overlay-slide-down img {
  transition: transform 0.5s ease;
  display: block;
  width: 100%;
}

.hover-overlay-slide-down a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Blu con trasparenza */
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
  z-index: 1;
}

.hover-overlay-slide-down:hover img {
  transform: scale(1.1);
}

.hover-overlay-slide-down:hover a::before {
  transform: translateY(0);
  opacity: 1;
}

/* End Custom Image Hover Effects Library */
/* ========================================================================== */



/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header-logo img {
  max-width: 325px;
  width: 100%;
  height: auto;
}

/* Navbar */
.navbar-custom {
  padding: 30px 0;
}

.navbar-custom.navbar-expand-lg a.nav-link {
  padding: 20px 0px 20px 30px;
  font-size: 15px;
  font-weight: 700;
  line-height: 30px;
  transition: all 300ms ease;
}

.navbar-custom.navbar-expand-lg a.nav-link:hover,
.navbar-custom.navbar-expand-lg a.nav-link.active {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  color: var(--azzurro);
}

/* Dropdown */
.navbar-custom .dropdown-menu {
  background-color: var(--blue);
  border: none;
  border-radius: 0;
}

.navbar-custom.navbar-expand-lg .dropdown-item {
  color: #ffffff;
  padding: 10px 20px;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;

  transition: all 300ms ease;
}

.navbar-custom.navbar-expand-lg .dropdown-item:hover {
  background-color: var(--azzurro);
  color: #ffffff;
}

/* ==========================================================================
   Home Slider
   ========================================================================== */

.swiper.home-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.swiper.home-slider .swiper-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.home-slider .swiper-slide .container {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: left;
}

/* Animazione fade/scale - stato iniziale */
.home-slider .swiper-slide h2,
.home-slider .swiper-slide p {
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  transition: all 800ms ease;
}

/* Stili h2 */
.home-slider .swiper-slide h2 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.14em;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Stili p */
.home-slider .swiper-slide p {
  font-size: 34px;
  font-weight: 300;
  line-height: 1.6em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Animazione fade/scale - stato attivo */
.home-slider .swiper-slide-active h2,
.home-slider .swiper-slide-active p {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delay animazione */
.home-slider .swiper-slide-active h2 {
  transition-delay: 400ms;
}

.home-slider .swiper-slide-active p {
  transition-delay: 600ms;
}

/* Background images per ogni slide */
.home-slider .swiper-slide.slide-1 {
  background-image: url('../images/home/slider/home-slider-01.webp');
}

.home-slider .swiper-slide.slide-2 {
  background-image: url('../images/home/slider/home-slider-02.webp');
}
.home-slider .swiper-slide.slide-2 {
  background-image: url('../images/home/slider/home-slider-02.webp');
}

.home-slider .swiper-slide.slide-3 {
  background-image: url('../images/home/slider/home-slider-03.webp');
}

/* Overlay scuro */
.home-slider .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Personalizzazione frecce navigazione */
.home-slider .swiper-button-prev{ left: 0;}
.home-slider .swiper-button-next{ right: 0;}

.home-slider .swiper-button-prev,
.home-slider .swiper-button-next {
  color: var(--blue);
  background: #ffffff;
  width:60px;
  height: 60px;
  transition: all 300ms ease;
}

.home-slider .swiper-button-prev:hover,
.home-slider .swiper-button-next:hover {
  color: #ffffff;
  background: var(--blue);
}
.swiper-button-next svg, .swiper-button-prev svg{
  height: 50%;
}

/* Responsive */
@media (max-width: 767px) {
  .swiper.home-slider {
    height: 400px;
  }
  
  .home-slider .swiper-slide h2 {
    font-size: 32px;
  }
  
  .home-slider .swiper-slide p {
    font-size: 18px;
  }
}
/* ==========================================================================
   Home Content
   ========================================================================== */
  /* Home - Chi Siamo - Immagini */
  .col-lg-6 img {
    width: 100%;
    height: auto;
    display: block;
  }
  .col-fluida{
    width: 100%;
    max-width: 600px;
    padding: 25px 15px 80px 80px;
}
  .prodotti-box{
    padding: 115px 0 80px;
    margin: -30px 30px 0px;
    background-color: var(--blue);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
    z-index: -10;
  }
  .prodotti-box * {
    color: #ffffff;
  } 
  .home-cta-text{
    font-size: 18px;
    line-height: 1.8em;
    color: rgba(255, 255, 255, 0.60);
  }
  .prodotti-cta{
    color: #ffffff;
    background-color: var(--azzurro);
    padding: 48px 60px 40px;
    margin-top: -30px;
    margin-bottom: 10px;
  }
  .box-azzurro{
    background-color: var(--azzurro);
    padding: 40px 35px;
    border-radius: 8px;
    color: #ffffff;
  }



/* ==========================================================================
   Page Banner
   ========================================================================== */
.page-banner {
  position: relative;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.page-banner.banner-chi-siamo{
  background-image: url('/images/chi-siamo/banner-chi-siamo.webp');
} 
.page-banner.banner-contatti{
  background-image: url('/images/contatti/banner-contatti.webp');
} 
.page-banner.banner-trasformatori-elettrici{
  background-image: url('/images/trasformatori-elettrici/banner-trasf-elettrici.webp');
} 

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: #ffffff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.3em;
  text-align: left;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  .page-banner {
    height: 200px;
  }
  
  .page-banner h1 {
    font-size: 32px;
  }
}

/* ==========================================================================
   Chi Siamo 
   ========================================================================== */

 .referenze-section {
  position: relative;
  background-image: url('/images/chi-siamo/referenze-bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 100px 0;
  margin-top: 100px;
}

.referenze-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue);
  opacity: .90;
  z-index: 1;
}

.referenze-section .container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Contatti
   ========================================================================== */
.contatti-info {
  color: #ffffff;
  background-color: var(--azzurro);
  padding: 50px 35px 40px;
}
.contact-form-elettromec .form-group {
    position: relative;
    margin-bottom: 22px;
}
.contact-form-elettromec .form-group input[type="text"], 
.contact-form-elettromec .form-group input[type="password"], 
.contact-form-elettromec .form-group input[type="tel"], 
.contact-form-elettromec .form-group input[type="email"], 
.contact-form-elettromec .form-group select {
    position: relative;
    display: block;
    width: 100%;
    color: #a5a5a5;
    line-height: 26px;
    padding: 10px 28px;
    height: 60px;
    font-size: 14px;
    border-radius: 4px;
    background: #f3f5f9;
    border: 1px solid transparent;
    transition: all 300ms ease;
}

.contact-form-elettromec .form-group input[type="text"]:focus, 
.contact-form-elettromec .form-group input[type="password"]:focus, 
.contact-form-elettromec .form-group input[type="tel"]:focus, 
.contact-form-elettromec .form-group input[type="email"]:focus, 
.contact-form-elettromec .form-group select:focus, 
.contact-form-elettromec .form-group textarea:focus {
    border-color: var(--azzurro);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(44, 165, 215, 0.25);
}
.contact-form-elettromec .form-group textarea {
    position: relative;
    display: block;
    width: 100%;
    line-height: 26px;
    padding: 10px 28px;
    color: #a5a5a5;
    height: 200px;
    font-size: 14px;
    resize: none;
    border-radius: 4px;
    background: #f3f5f9;
    border: 1px solid transparent;
    transition: all 300ms ease;
}



/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color:var(--azzurro);
  color: #ffffff;
  padding: 50px 0 20px;
}
.widget-footer img {
  max-width: 220px;
  margin-bottom: 20px;
}
footer hr {
  height: 1px;  
  border: none;  /* Rimuove il bordo di default */
  background-color: #ffffff;
  margin: 0 0 20px 0;
}
footer a.white:hover {
  color: var(--blue);
  text-decoration: underline;
}
footer .bi-facebook,
footer .bi-linkedin {
  color: #ffffff;
}