:root {
  --primary: #0d6efd;
  --dark: #1c1c1c;
}


@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url("../font/poppins.woff2");
    unicode-range: U +0900 -097F, U +1CD0 -1CF9, U +200C -200D, U +20A8, U +20B9, U +20F0, U +25CC, U + A830-A839, U + A8E0-A8FF, U +11B00 -11B09;
}


/* HEADER E NAV DINAMICI */


body {
  font-family: 'Poppins';
  min-width:320px ;
  
}



.top-bar {
  background: var(--dark);
}



.hero-section {
  min-height: 100svh; 
  padding: 4rem 1rem;
}


.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}


@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

.centerItem{
    justify-content: center;
}
.header1{
  height: calc(70vh + 10px) !important;
  margin-top: 100px;
}
.titolopr{
  padding-bottom: calc(21vh - 30px);
}



/* SERVICES */
.service-card {
  border: 1px solid #eee;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fff;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}


.cta {
  background: var(--primary);
}


.footer {
  background: #111;
  color: #a13333;
}

/***********************
   NAV
************************/

.navCernita {
  height: fit-content;
}

.logoCernita {
  width: 8.5%;
  height: auto;
  content: url("../img/cernita-assemblaggi-logo498c6098-1920w.webp");
}



.menuCernita .linkCernita {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.0em;
    padding-left: 12px;
    padding-right: 12px;
}


#menucernita{
  padding-right: 40px;
}



.Boxlingue{
  display: flex;
  flex-direction: row;
}

.linAttivo{
 background-color: #c7c7c7;
}


@media (max-width: 1200px) {

   div .container-fluid.px-4 {
      background-color: #1B3789;
  }

  .logoCernita {
    content: url("../img/cernita-assemblaggi-logo-bianco-180w.webp");
  }

  .menuCernita .linkCernita {
    color: white !important;
}

}



@media (max-height: 400px){
.menuCernita .linkCernita {
    font-size: 0.6rem;
    font-weight: 100;
    padding-left: 12px;
    padding-right: 12px;
    padding: 5px;
}


}


.linkServizi{
  text-decoration: underline;     
  color: #5BBDC8;        
  font-weight: 1000 !important;   
}



.navbar .nav-link.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: 600;
}



.menuCernita .linkCernita {
    color: #000;
    transition: color 0.3s ease;
}

.menuCernita .linkCernita:hover {
    color: #d71920;
}




.linkCernita {
  position: relative;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #298AFF !important;

}


.linkCernita::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #0d6efd; 
  transition: width 0.3s ease;
  left: 50%;
  transform: translateX(-50%);
}


.centratosuldiv{
   padding-left: 10vw;
    padding-right: 10vw;
    text-align: center;
}





.linkCernita:hover::after {
  width: 100%;
}

.bottoneMenu{
    color: black !important;
}


/* MAIL */

.custom-toggler {
  border: none;
  background: transparent;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
}

.custom-toggler span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #000; 
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transition: all 0.3s ease;
}


.custom-toggler span:nth-child(1) {
  top: 0;
}

.custom-toggler span:nth-child(2) {
  top: 10px;
}

.custom-toggler span:nth-child(3) {
  top: 20px;
}


.custom-toggler:not(.collapsed) span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.custom-toggler:not(.collapsed) span:nth-child(2) {
  opacity: 0;
}

.custom-toggler:not(.collapsed) span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}


/* IMMAGINI */

.img-hero {
  max-width: 1424px;
  width: 100%;
}

.img-thumb {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.img-thumb:hover {
  transform: scale(1.05);
}


.img-crop {
  width: 100%;
  height: 100%;            
  overflow: hidden;
  border-radius: 8px;
}

.img-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;       
}


.img-crop img {
  object-fit: cover;
  object-position: center;      
}



/* SLIDESHOW */
.carousel-item {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


.img-fullscreen {
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
  margin: auto;
}

.carousel-no-animation .carousel-item {
  transition: none !important;
}


.carousel.carousel-fade .carousel-item {
  transition: opacity 0.25s ease-in-out;
}


.video-2c {    
  height: 300px;
  overflow: hidden;    
  position: relative;
}

.video-2c video {
  width: 100%;
  height: 100%;
  object-fit: cover;   
  object-position: center;
}


.video-container {
  width: 400px;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  inset: 0;                    
  display: flex;
  align-items: center;          
  justify-content: center;      
  color: black;
   font-size: calc(25px + 0.35vw);
  font-weight: bold;
  text-align: center;
  pointer-events: none;       
}


.coloreBlu{
  background-color: #1B3789 !important;
}

.serviziHome {
   margin-top: 12px;
    max-width: 99vw;
}

.testocentrato{
  text-align: center;
   font-family: Poppins, "Poppins Fallback" !important;
   width: 100%;
  height: 100%;

}

.l-centrata{
   display: inline-block;
   text-align: left;
   font-size: calc(13px + 0.35vw);
   font-family: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
   font-weight: 100 !important;
}

.sottolineato {                
  text-decoration: underline;     
  color: #5BBDC8;        
  font-weight: 1000 !important;   
}

.TitoloPuntiForza{
  font-size: calc(20px + 0.35vw);
  height: 10vh;
  padding: 2vh;
  text-align: center;
}

.carousel-item{
  min-height: 22vh !important;
}

.trattini{
 letter-spacing: 0.2em;  
 color: red;
}

.titoliforza{
  color: #ADADAD;
  direction: ltr;
    font-family: "BOOKOSB";
    font-weight: 800;
    font-style: normal;
}

.trasp{
  background-color: transparent !important;
}

.fontforza{
 font-family: "BOOKOSB" !important;
}

.c-nero{
  color: #000;
}

.boxpuntoforza{
  min-width: 320px !important;
}

/* ANIMAZIONI TICK */



.tick-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.tick {
  width: 50px;
  height: 50px;
  stroke: #2ecc71;
  fill: none;
  stroke-width: 2;
}

.tick-circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: circleDraw 4.5s infinite;
}

.tick-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDraw 4.5s infinite;
}


@keyframes circleDraw {
  0% { stroke-dashoffset: 157; opacity: 0; }
  20% { opacity: 1; }
  50% { stroke-dashoffset: 0; }
  80%  { stroke-dashoffset: 0; }
  100% { opacity: 1; }
}


@keyframes checkDraw {
  0%, 40% { stroke-dashoffset: 48; }
  70% { stroke-dashoffset: 0; }
  80% { stroke-dashoffset: 0; }
  100% { opacity: 1; }
}


.boxcontatti{
  width: 100%;
  height: auto;
/*   padding-bottom: 6vh; */
}

.solotestocentrato{
  text-align: center;
}

.icon-mail {
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  margin-top: 9px;
}

.icon-mail:hover {
  transform: translateY(-15px);
}


.icon-round {
  border-radius: 50%;
}

.logoCernitaContatti{
    padding-bottom: 15px;
    padding-top: 41px;
}

.contatto{
 max-width: 98% !important;
 min-width: 225px;
}

.videocontatti{
  height: 100% !important;
}
.textcontatti{
  font-weight: 800;
}

.infocontatti{
  font-family: Poppins;
  font-size:15px;
  font-style: normal;
  font-weight:200;
  padding-right: 16px;
  padding-left: 16px;
}

.btnall{
    justify-content: space-between !important;
    gap: 10px;
}

.ratio-thin {
  --bs-aspect-ratio: 25%;
}


@media (min-width: 992px) {
  .map-crop {
    height: 600px;      
    overflow: hidden;
  }

  .map-crop iframe {
    height: 520px;     
    margin-top: -110px; 
    border: 0;
  }







}

@media (max-width: 1100px) {

.logoCernita {
  width: 10rem;
  height: auto;
}


}






.text-highlight{
 color: gainsboro;
}


/* STORIA */

.boxstoria p{
    font-family: Poppins, "Poppins Fallback";
    font-size: 17px;
    font-style: normal;
    font-weight: 200;
    color: rgb(51, 51, 51);
    line-height: 30px;
    overflow-wrap: break-word;
}

.fontalign{
    padding-top: 7px;
    font-weight: bold;
}


#history-timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #222;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-year {
    font-weight: 700;
    font-size: 1.6rem;
    position: relative;
}

.timeline-year::after,
.timeline-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    color: rgba(229, 4, 26, 1) !important;
    border: none !important;
    background: linear-gradient(to right, currentColor, transparent) !important;
    height: 2px !important;
    margin-top: 6px;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.senzamargine{
    margin-left: 0px !important;
}

@media (max-width: 767px) {
    .timeline-line {
        left: 0;
    }

    .timeline-item .col-md-6 {
        padding-left: 0.5rem !important;
        text-align: left !important;
    }

    .sm-inverti{
     flex-direction: column-reverse;
    }
    .marg-basso{
        margin-bottom: 4px;
    }
}

/* CERNITA */

.cernita{
    padding-left: 30px;
    padding-right: 30px;
}


.lista1{
    padding-left: 1.1rem;
}



.mb-a4{
    font-size: 1.15rem;
}





/*  SERVIZI */

.servizi{
    padding-left: 30px;
    padding-right: 30px;
}














/*******************

AGGIUSTAMENTI TITOLI SU SMARTPHONE
*/

.header1Rid{

  height: calc(10vh + 30px);

}

.titolo1{
    font-family: "Bookman Old Style Bold";
    font-weight: 900; 
 font-size: clamp(1.6rem, 7vw, 3.6rem);
  white-space: nowrap;
    color: #4D4D4D;
}

.titolo2{
    font-family: "Bookman Old Style Bold";
    color: red;
    font-weight: 600;
}

.titolo3{
    font-family: "Bookman Old Style Bold";
    font-weight: 900; 
    font-size: clamp(1rem, 2vw, 2rem);
    white-space: nowrap;
    color: #4D4D4D;
    font-weight: 800;
}




.videtitolo{
  height: calc(16% + 10px);
  width: 100%;
}


/* 
@media (orientation: landscape) {
   
    .videtitolo{
        height: calc(27% + 10px);
    }

    .video-section {

    margin: 6.5rem 0 !important;
   }

}
 */

/* @media (max-width: 770px) {

.titolo1{
    font-size: 2.7rem
}

}


@media (max-width: 600px) {

.titolo1{
    font-size: 2.5rem;
}

}


@media (max-width: 400px) {
  
.titolo1{
    font-size: 1.7rem;
}


} */




.box{
    font-family: Poppins, "Poppins Fallback";
    font-size: 17px;
    font-style: normal;
    font-weight: 200;
    color: rgb(51, 51, 51);
    line-height: 30px;
    overflow-wrap: break-word;
}

.video-section {
    position: relative;
    overflow: hidden;
     margin: 2.5rem 0;
}

.background-video {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.20);
}


.content-over-video {
    position: relative;
    z-index: 2;
}

video.background-video {
  z-index: -1;
  opacity: 0.2;
}

.paddingcontenuto{
    padding-left: 30px;
    padding-right: 30px;
}

.GrassettoBold{
  font-weight: 800;
}


.titoloservizio{
    padding-top: 28px;
}


/* .ridotti{
    display: flex;
    justify-content: center;
}


.w27p{
    width: 27%;
} */


.titoloP1{
    font-family: Poppins, "Poppins Fallback";
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
}
.marginesotto{
    margin-bottom: 20px;
}

ul {
  list-style-position: inside;
  text-align: center;
}

li::marker {
  text-align: center;
}

.mh-300{
    max-height: 300px;
}




/***
CONTATTI
*/


.contattibox{
  max-height: 300px;
}

.titcentrover{
  margin-top: 17vh;
}


/* CONTATTI */

.marginilat{
  margin-left: 13vw;
  margin-right: 13vw;
}

.contattiform{
  background-color: #1B3789;
  padding: 2rem;
}
.boxinfoform{
  display: flex;
  flex-wrap: wrap;

}
.infobox{
  padding: 4rem 0px 0px 24px;
}

.etichetta{
    color: rgba(255, 255, 255, .5) !important;
}


/* MODALE PRIVACY */


.iol-form {
    max-width: 700px;
    margin: 0 auto;
    font-family: sans-serif;
}

.iol-row {
    margin-bottom: 18px;
}


.iol-label,
.iol-note {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin-bottom: 6px;
}


.iol-input,
.iol-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    font-size: 15px;
}

.iol-textarea {
    min-height: 130px;
}


.iol-privacy-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
}

    .iol-privacy-label .rteBlock {
        margin: 0;
    }

    .iol-privacy-label a {
        color: inherit !important;
        text-decoration: underline;
    }

.iol-button {
    background: #1d7ddc;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

    .iol-button:hover {
        background: #0e5ca6;
    }

.iol-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


.iol-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    animation: slideDown 0.25s ease-out;
}


@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.iol-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #dcdcdc;
}


.iol-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}


.iol-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}


.iol-modal-content {
    padding: 20px 25px;
}

    .iol-modal-content h2 {
        margin-top: 0;
    }

    .iol-modal-content p {
        margin-bottom: 16px;
        line-height: 1.55;
    }


.modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal__container {
    background: #fff;
    max-width: 600px;
    width: 90%;
    padding: 20px;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal__title {
    font-size: 18px;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}


.modal__content {
    width: 100%;
}


    .modal__content form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .modal__content label {
        font-weight: bold;
        font-size: 14px;
    }

    .modal__content input,
    .modal__content textarea {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .modal__content textarea {
        resize: vertical;
        min-height: 80px;
    }

    .modal__content button {
        margin-top: 10px;
        padding: 10px;
        font-size: 15px;
        cursor: pointer;
    }
.modal__close {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

