

/* css class per schermi superiori a 1920px */
.site-wrapper {
    max-width: 1920px;
    margin: 0 auto !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06); /* bordo fake per risoluzioni superiori a 1920px */
}

@media (min-width: 1921px) {
  
  header .container-fluid {
    max-width: 1920px;
    padding-left: 0px;
    padding-right: 0px;
  }

  .container, 
  .container-lg, 
  .container-md, 
  .container-sm, 
  .container-xl, 
  .container-xxl {
	  max-width: 1570px;
  }  

}


/* TIPOGRAFIA */

h3, .h3 {
	font-size: 2.375 rem;
	line-height: 3.125rem;
}

h4, .h4 {
  font-size: 2.25rem;
  line-height: 3rem;
}

p {
  margin-bottom: 15px;
}

.text-content ul li {
  list-style: disc; 
}

.text-content ul {
  padding-left: 1rem;
}

/* MARGINI - PADDING */

.bottom-minus-200px {
  bottom: -200px;
}

.bottom-minus-250px {
  bottom: -250px;
}

/* IMMAGINI */

img.img-no-responsive {
  max-width: none !important;
}

/* SEZIONI */

.mt-section {
  margin-top: 110px; /* equivalente al padding top di default della sezione */
}

.mb-section {
  margin-bottom: 110px; /* equivalente al padding bottom di default della sezione */
}


/* HEADER */

header .widget-text {
	color: var(--dark-gray);
}

header nav {
  background-color: #fff;
  box-shadow: 0 4px 8px -6px rgba(0, 0, 0, 0.25);
}

.semi-transparent-bg {
  background-color: rgba(255,255,255, 0.5) !important;
}

.navbar.semi-transparent-bg:hover {
  background-color: rgba(255,255,255, 1) !important;
}

.navbar .navbar-nav .nav-link {
  color: var(--dark-gray);
  font-size: 17px;
  font-weight: 600;
  width: 100%;
}

.navbar .navbar-nav .nav-item:hover .nav-link, 
.navbar .navbar-nav .nav-item.active .nav-link {
	opacity: 1;
}

.navbar .navbar-nav .nav-item:hover > .nav-link, 
.navbar .navbar-nav .nav-item.active > .nav-link {
	opacity: 1;
  color: var(--base-color);
}


.navbar .navbar-nav .simple-dropdown .dropdown-menu li {
	padding: 0px;
}

.navbar .navbar-nav .dropdown .dropdown-menu {
	padding: 0;
  width: max-content;
  max-width: 320px;
}

.navbar .navbar-nav .dropdown .dropdown-menu a {
  font-size: 16px;
  line-height: 28px;
  color: var(--dark-gray);
}


.navbar .navbar-nav .dropdown .dropdown-menu li a {
  padding: 10px 20px;
  border-bottom: 1px solid var(--light-medium-gray);
}

.navbar .navbar-nav .dropdown .dropdown-menu li a:hover,
.navbar .navbar-nav .dropdown .dropdown-menu li.active a {
	padding-left: 20px;
  opacity: 1;
  color: var(--base-color);
}

.navbar .navbar-nav .dropdown .dropdown-menu li:last-child a {
  border: 0;
  padding: 10px 20px;
}

/* MODALE */
button.mfp-close {
  background-color: var(--white);
}

button.mfp-close::before, button.mfp-close:active::before {
	color: var(--black);
	font-size: 16px;
	font-weight: 900;
}

.mfp-bottom-bar {
	margin-top: -30px;
	font-size: 14px;
}

/* INDEX */

/* Circle Slideshow */
.widgets {
  /* position: fixed; */
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* height: 100vh; */
  overflow: hidden;
}

.widget-preview-img {
  position: absolute;
  width: 100%;
  height: 100%;

}

.widget-preview-img img {
  position: absolute;
  top: 0;
  left: 0;

  object-fit: cover;
  object-position: center center; /* valore di default ma può venire manipolato dentro il js */
 
  /*
  display: none;
  background-color: #fff !important;
  */
  
  /* will-change: opacity;
  filter: saturate(0); */

  width: 100%;
  height: 100%;

}

.widget-title {
  position: absolute;

  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.25rem;

  /* font e padding responsive */
  font-size: clamp(16px, 2.5vw, 32px);
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1rem, 3vw, 2rem);

  font-weight: bold;
  text-align: center;
  line-height: normal;

  display: inline-flex;             /* centraggio verticale con flex */
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  max-width: none;

  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;

  transition: left 0.25s ease, top 0.25s ease, background-color 0.3s ease;
}

.widget-title a {
  display: inline-flex;            /* ereditano centraggio del genitore */
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff !important;
  text-decoration: none;
}

/* Desktop: testo multilinea e wrap se necessario */
.widget-title:not(.is-mobile) {
  text-align: left;
  white-space: normal;
}

/* Mobile: comportamento attuale */
.widget-title.is-mobile {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  max-width: 90vw;

  font-size: clamp(14px, 4vw, 24px);
  padding: clamp(0.4rem, 2vw, 0.8rem) clamp(0.8rem, 4vw, 1.5rem);
}

#widget-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#widget-indicator {
  stroke: var(--light);
  stroke-width: 3;
  stroke-linecap: round;
}

.logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* così non interferisce con il drag dello spinner */
  
  width: clamp(180px, 20vw, 320px);
  height: clamp(180px, 20vw, 320px);

  /* 
  background: rgba(255, 255, 255, 0.8); 
  border-radius: 50%; */

  display: flex;
  flex-direction: column; /* Logo sopra, testo sotto */
  align-items: center;
  justify-content: center;

  gap: 0.5rem; /* Spazio tra logo e testo */
  z-index: 3;
}

.logo-center img {
  width: 90%;   /* proporzione rispetto al div */
  height: auto; /* mantiene proporzioni */
}

.logo-text {
  font-size: clamp(12px, 1.5vw, 24px);
  font-weight: bold;
  color: var(--dark-gray);
  text-align: center;
  line-height: 1.2;
}

.segment {
  cursor: pointer; /* se attivo il link sul segmento */
}


/* bordo bianco dei segmenti con glow leggero */
.segment path {
  stroke: #fff;
  stroke-width: 3px;
  /* glow leggero */
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  transition: filter 0.2s ease, stroke-width 0.2s ease;
}

/* evidenziazione al passaggio del mouse */
.segment:hover path {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
  stroke-width: 3px;
}

/* CON SEGMENTI AL POSTO DELLE IMMAGINI */

.segment path {
  transition: fill 0.3s ease, stroke 0.3s ease;
  stroke-linejoin: round;
}

.segment text {
  pointer-events: none;
  transition: fill 0.3s ease;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.5px;
}

/*
.segment:hover path {
  fill: #00adef;
}
  */

.segment:hover text {
  fill: #ffffff;
}

.segment.active path {
  fill: #00adef;
}

.segment.active text {
  fill: #ffffff;
}


/* sezione carousel soluzioni */

.text-gradient-light-blue-white {
	background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #00adee 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* GALLERIE */

.no-button-contatti .button-contatti {
  display: none;
}



/* CONTATTI */ 

input, select, textarea, .form-control, .form-select {
	color: var(--dark-gray);
}

input:focus, select:focus, textarea:focus, .form-control:focus {
	color: var(--dark-gray);
}

input::placeholder,
textarea::placeholder {
    color: var(--medium-gray);
    opacity: 1; /* importante su Firefox */
}

/* Reset checkbox e radio */
input[type="checkbox"],
input[type="radio"] {
    display: inline-block;  /* affianca il testo */
    width: auto;            /* non full-width */
    margin: 0 8px 2px 0;      /* piccolo margine a destra */
    padding: 0;             /* nessun padding */
    line-height: normal;    /* reset line-height */
    vertical-align: middle; /* allinea al centro del testo */
    cursor: pointer;        /* mano al passaggio */
}

/* Colore normale */
.checkbox-label span {
    color: var(--medium-gray);
    transition: color 0.3s;
}

/* Checkbox selezionato */
.checkbox-label.selected span {
    color: var(--dark-gray);
}

.error {
  color: red !important;
}



/* footer */

footer {
  border-top: 2px solid #00adef;
}

footer .footer-logo img {
	max-height: 80px;
}

.footer-light a, footer-dark p {
  color: var(--dark-gray);
}


/* RESPONSIVE MEDIA QUERIES */

@media (min-width: 1200px) and (max-width: 1399px) {

  body {
    font-size: 16px;
    line-height: 24px;
  }  
  
  .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
  }

  h3, .h3 {
    font-size: 2rem;
    line-height: 2.15rem;
  }

  h4, .h4 {
    font-size: 1.8rem;
    line-height: 1.95rem;
  }

}


@media (min-width: 992px) and (max-width: 1199px) {

  body {
    font-size: 16px;
    line-height: 22px;
  }  

  .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
  }

  h3, .h3 {
    font-size: 1.8rem;
    line-height: 1.95rem;
  }

  h4, .h4 {
    font-size: 1.7rem;
    line-height: 1.85rem;
  }  

  /* index */
  .segment text {
    font-size: 9px !important;
  }

}


@media (min-width: 768px) and (max-width: 991px) {

  body {
    font-size: 16px;
    line-height: 24px;
  }  

  .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
  }

  h3, .h3 {
    font-size: 2rem;
    line-height: 2.15rem;
  }

  h4, .h4 {
    font-size: 1.8rem;
    line-height: 1.95rem;
  }

  /* index */

  
  .segment text {
    font-size: 9px !important;
  }

  .widget-title.is-mobile {
    bottom: 20px;
  }  

  .bottom-minus-250px {
	  bottom: -100px;
  }

  .lg-fs-130 {
    font-size: 6.125rem;
    line-height: 7.125rem;
  }

  /* chi siamo */
  .titolo-slogan-chi-siamo {
    text-align: center !important;
  }

  .order-mobile-first {
    order: -1;
  }

  .order-mobile-second {
    order: 1;
  }  

  /* galleria prodotti (sticky) */
  .galleria-prodotti-sticky {
    width: 100%;
  }



}

@media (max-width: 767px) {

  body {
    font-size: 16px;
    line-height: 24px;
  }  

  .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
  }

  h3, .h3 {
    font-size: 2rem;
    line-height: 2.15rem;
  }

  h4, .h4 {
    font-size: 1.8rem;
    line-height: 1.95rem;  
  }

  .text-sm-start {
    text-align: left !important;
  }

  /* index */

  .segment text {
    font-size: 10px !important;
  }

  .widget-title.is-mobile {
    bottom: 10px;
  }  

  .bottom-minus-250px {
	  bottom: -50px;
  }

  .lg-fs-130 {
    font-size: 4.125rem;
    line-height: 5.125rem;
  }  

  .sm-bottom-minus-10 {
    bottom: -10px !important;
  }

  /* chi siamo */
  .titolo-slogan-chi-siamo {
    text-align: center !important;
  }

  .order-mobile-first {
    order: -1;
  }

  .order-mobile-second {
    order: 1;
  }  

  /* galleria prodotti (sticky) */
  .galleria-prodotti-sticky {
    width: 100%;
  }

}





@media (max-width: 575px) {

  /* index */

  .segment text {
    font-size: 7px !important;
  }

}
