/*---------------------------*/
/*---- global styles ----*/
/*---------------------------*/

body {
    font-family: 'Jost', sans-serif;
}

/* Smooth scroll per anchor */
html {
    scroll-behavior: smooth;
}

/* Offset per scroll verso section con id */
section[id] {
    scroll-margin-top: 4rem;
}

.lobster-font {
    font-family: 'Lobster', display;
}

.text-grey {
    color: #111827be;
}

.bg-custom {
    background-color: #BA1817;
}

.z-20 {
    z-index: 20;
}

.g-1 {
    gap: 1rem;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
}

@media (min-width: 280px) and (max-width: 991px) {
    .d-xs-none {
        display: none !important;
    }
    .mt-xs-1 {
        margin-top: 1rem !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
}

/* variabili globali */

.btn-custom {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-family: ;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: var(--bs-border-width);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: var(--bs-border-radius);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-primary-custom {
    --bs-btn-color: #fff;
    --bs-btn-bg: #BA1817;
    --bs-btn-border-color: #BA1817;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ba1717d0;
    --bs-btn-hover-border-color: #ba1717d0;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ba1717d0;
    --bs-btn-active-border-color: #ba1717d0;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #ff4d4d;
    --bs-btn-disabled-border-color: #ff4d4d;
}

.btn-custom:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

/* variabili globali end*/

/*---------------------------*/
/*---- global styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- header styles ----*/
/*---------------------------*/

#primary-header {
    background-color: #BA1817;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease-in-out;
    color: #fff !important;
}

.nav-link:focus, .nav-link:active, .active {
    color: #fff !important;
}

.nav-link::before {
    content: ''; 
    position: absolute; 
    height: 2px; 
    bottom: -1px; 
    background-color: #ffffff; 
    transition: width 0.3s ease-in-out; 
    left: 0; 
    width: 0; 
    margin-left: 0.5rem;
}

.nav-link:hover::before, .nav-link:active::before, .nav-link:focus::before {
    width: calc(100% - 1rem); 
}

a#privacy:active::before, a#privacy:focus::before, a#cookie:active::before, a#cookie:focus::before {
    width: 100%;
}

.navbar-toggler, .navbar-toggler:hover, .navbar-toggler:focus, .navbar-toggler:active {
    border: 0;
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {    
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;

}

.btn-close {
    opacity: 1;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' stroke='rgba%28255, 255, 255, 1%29' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .nav-link::before {
        margin-left: 0;
    }
}

@media (max-width: 280px) {
    .navbar-brand img {
        max-width: 100px;
    }
}

/*---------------------------*/
/*---- header styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- Carousel styles ----*/
/*---------------------------*/

#carouselExampleCaptions, .carousel-item {
    height: 550px;
}

.carousel-item img {
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Colore bianco con opacità 0.5 */
    z-index: 10; /* Assicura che l'overlay sia sopra l'immagine */
}

.carousel-caption {        
    z-index: 20; /* Assicura che il testo sia sopra l'overlay */ 
    width: 100%;
    right: 0;
    left: 0;
    bottom: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;  
    background-color: rgba(45, 44, 44, 0.618);
}

.carousel-caption h1, .carousel-caption h2, .carousel-caption p {
    max-width: 1320px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.carousel-control-prev, .carousel-control-next {
    z-index: 20;
}

#subServicesContainer > div > div.col-md-8.z-20.aos-init.aos-animate > figure img {
    box-shadow: 25px 25px 10px 0 rgb(0, 0, 0, 0.2);
}

@media (max-width: 767px) and (orientation: landscape) {
    .justify-content-end-xs {        
        justify-content: flex-end !important;    
    }

    .fs-xs {        
        font-size: 16px !important;    
    }

    #carouselExampleCaptions, .carousel-item {
        height: 350px;
    }

    #primary-footer {
        padding-top: 5rem !important;
    }    
}

@media (max-width: 767px) and (orientation: portrait) {

    #carouselExampleCaptions > div.carousel-inner > div:nth-child(3) > img {
        object-position: left;
    }

    .justify-content-end-xs {        
        justify-content: flex-end !important;    
    }

    .fs-xs {        
        font-size: 16px !important;    
    }

    #carouselExampleCaptions, .carousel-item {
        height: 450px;
    }

    #subServicesContainer > div > div.col-md-8.z-20.aos-init.aos-animate > figure img {
        box-shadow: 10px 14px 10px 0 rgb(0, 0, 0, 0.2);
    }

    #highlightsContainer > div:nth-child(3) , #highlightsContainer > div:nth-child(5) {
        flex-direction: column-reverse;
    }

    #highlightsContainer > div:nth-child(3) span , #highlightsContainer > div:nth-child(5) span {
        margin-top: 1rem;
    }

    #primary-footer {
        margin-top: 3rem;
    }
}

/*---------------------------*/
/*---- Carousel styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- Our services styles ----*/
/*---------------------------*/



/*---------------------------*/
/*---- Our services end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- Sub services styles ----*/
/*---------------------------*/

#subServices {
    min-height: 700px;
    max-height: 700px;
}

#sectionBG {
    right: 0;
    top: 0;
    width: 1000px;
    transform: translate(50%, -15%) rotate(45deg);
}

#pieceBG {
    top: 0;    
    left: 0;
    width: 1000px;
    transform: translate(-59%, -25%) rotate(45deg);
}

@media (min-width: 280px) and (max-width: 767px) {
    #sectionBG {
        right: 0;
        top: -1rem;
        width: 200px;
    }

    #pieceBG {
        width: 200px;
    }
}

@media (min-width: 768px) and (max-width: 912px) {
    #sectionBG {
        width: 510px;
    }

    #pieceBG {
        width: 510px;
    }
}

/*---------------------------*/
/*---- Sub services styles end ----*/
/*---------------------------*/



/*---------------------------*/
/*---- Offcanvas menu styles ----*/
/*---------------------------*/

.offcanvas-body a {
    color: #fff;
    text-align: left;
}

#offCanvasBG {
    right: 0;
    bottom: 0;
    width: 350px;    
    transform: translate(50%, 10%) rotate(45deg);
}

/*---------------------------*/
/*---- Offcanvas menu styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- Features section styles ----*/
/*---------------------------*/

#features {
    min-height: 700px;
}

#popUp {
    bottom: 0;
    right: 3rem;
    box-shadow: 25px 20px 0px #c0272f5c;
    position: fixed;
    opacity: 0;
  }

#popUp.animate {
    animation: fadeUp 1s ease-in-out forwards;
  }

@keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(50%); 
    }
    to {
      opacity: 1;
      transform: translateY(0); 
    }
  }

@media (min-width: 280px) and (max-width: 767px) {
    #popUp {
        bottom: -7rem;
        right: 3rem;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #popUp {
        bottom: -5rem;
        right: 0.5rem;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .col-custom-md {
        flex: 0 0 auto;
        width: 100%;
    }
}

/*---------------------------*/
/*---- Features section styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- Go to FAQ section styles ----*/
/*---------------------------*/

#goToFAQ {
    min-height: 400px;
}

@keyframes upAndDown {
    0% {transform: translateY(0);}

    50% {transform: translateY(10%);}

    100% {transform: translateY(0);}
}

#Layer_1 {
    animation: upAndDown 1s infinite;
}

/*---------------------------*/
/*---- Go to FAQ section styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- Footer styles ----*/
/*---------------------------*/

#footerContainer {
    min-height: 300px;
}

#footerContainer .nav-link::before {
    margin-left: 0;
}

#footerContainer .nav-link:hover::before {
    width: 100%;
}

#socialContainer a {
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

#socialContainer a::after {
    content: '';
    position: absolute;
    height: 2px;
    bottom: -5px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
    left: 0;
    width: 0;
}

#socialContainer a:hover::after {
    width: 100%;
}

#socialContainer a:hover {
    transform: translateY(-5px);
}

/* LinkedIn Box Styles */
.linkedin-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    max-width: 600px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.linkedin-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

.linkedin-icon {
    font-size: 3.5rem;
    color: #0077B5;
    transition: all 0.3s ease-in-out;
}

.linkedin-box:hover .linkedin-icon {
    transform: scale(1.1);
    color: #005885;
}

.linkedin-text h3 {
    color: #BA1817 !important;
    transition: color 0.3s ease-in-out;
}

.linkedin-box:hover .linkedin-text h3 {
    color: #8B1110 !important;
}

.linkedin-arrow {
    transition: transform 0.3s ease-in-out;
    color: #BA1817 !important;
}

.linkedin-box:hover .linkedin-arrow {
    transform: translateX(10px);
}

@media (max-width: 540px) {
    footer#primary-footer .navbar-brand img {
        max-width: 200px;
    }

    .justify-content-center-sm {
        justify-content: center !important;
    }

    .text-center-sm {
        text-align: center;
    }

    .g-sm-3 {
        gap: 3rem;
    }

    /* LinkedIn Box responsive */
    .linkedin-box {
        padding: 1.5rem 1rem;
        max-width: 90%;
    }

    .linkedin-icon {
        font-size: 2.5rem;
    }

    .linkedin-text h3 {
        font-size: 1.1rem !important;
    }

    .linkedin-text p {
        font-size: 0.8rem !important;
    }

    .linkedin-arrow {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 740px) and (orientation: landscape) {
    footer#primary-footer .navbar-brand img {
        max-width: 200px;
    }

    .justify-content-center-sm {
        justify-content: center !important;
    }

    .text-center-sm {
        text-align: center;
    }

    .g-sm-3 {
        gap: 3rem;
    }

    /* LinkedIn Box responsive landscape */
    .linkedin-box {
        padding: 1.2rem 1.5rem;
        max-width: 90%;
    }

    .linkedin-icon {
        font-size: 2.5rem;
    }

    .linkedin-text h3 {
        font-size: 1.1rem !important;
    }

    .linkedin-text p {
        font-size: 0.8rem !important;
    }

    .linkedin-arrow {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 541px) {
    .justify-content-center-md {
        justify-content: center !important;
    } 
}

@media (min-width: 1024px) {
    .justify-content-end-lg {
        justify-content: end !important;
    } 
}

/*---------------------------*/
/*---- Footer styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- Form styles ----*/
/*---------------------------*/

#contact {
    min-height: 700px;
}

#contactContainer {
    position: fixed;
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

#contactContainer.animate {
    animation: fadeUpContact 1s ease-in-out forwards;
}

@keyframes fadeUpContact {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(15%); 
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0); 
    }
}

.form-control, .form-check-input {
    border-color: #ced4da;
}

.form-control:valid {
    border-color: #198754;
}
.form-text {
    color: #6c757d;
}

.invalid-feedback {
    display: none;
}
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:valid ~ .valid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-feedback,
.was-validated .form-check-input:valid ~ .valid-feedback {
    display: block;
}

@media (max-width: 414px) {
    .p-xs-1 {
        padding: 1rem !important;
    }
}

/* Fix sovrapposizione numeri testimonianze con form su mobile */
@media (max-width: 767px) {
    #testimonials {
        padding-bottom: 18rem !important;
    }
}

/*---------------------------*/
/*---- Form styles end ----*/
/*---------------------------*/


/*---------------------------*/
/*---- FAQ styles ----*/
/*---------------------------*/

.faq-item {
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}

.faq-answer {
    display: none;
    overflow: hidden; 
    padding: 0 1rem;
    max-height: 0;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.faq-answer.open {
    padding: 0 1rem 2rem 1rem; 
}

.faq-chevron {
    transition: transform 0.3s ease-in-out;
}

.faq-chevron.rotated {
    transform: rotate(180deg);
}

/*---------------------------*/
/*---- FAQ styles end ----*/
/*---------------------------*/

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    z-index: 1000;
}

.cookie-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-left: 10px;
}

.cookie-button:hover {
    background-color: #45a049;
}