/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Logo Styles */
.logo-img {
    height: 55px;
    width: auto;
}

.footer-logo {
    max-height: 65px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo-center {
    max-height: 65px;
    width: auto;
    margin: 0 auto;
}

/* Header Styles */
.navbar.bg-dark {
    background-color: #000 !important; /* Override Bootstrap's bg-dark with pure black */
}

.navbar .navbar-brand h2 {
    color: #fff;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: inline-block;
    cursor: pointer;
    margin-left: 15px;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.hamburger-icon.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #3a3b3b;
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 20px;
}

.offcanvas-menu.open {
    right: 0;
}

.offcanvas-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.offcanvas-menu-overlay.open {
    display: block;
}

.offcanvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.offcanvas-menu ul li {
    margin-bottom: 15px;
}

.offcanvas-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.offcanvas-menu ul li a:hover {
    color: #0d6efd;
}

.offcanvas-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Mobile styles for buttons */
@media (max-width: 992px) {
    .col-lg-6 .btn-outline-dark {
        display: block;
        margin: 0 auto;
        max-width: 80%;
    }
}
.btn-outline-dark {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-outline-primary {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-banner img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Mobile text centering for hero section */
@media (max-width: 767.98px) {
    .hero-overlay .col-md-8 {
        text-align: center;
    }
    
    .hero-overlay h1 {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-overlay .btn {
        margin: 0 auto;
        display: block;
    }
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
}

/* Card Styles */
.card-img-top {
    max-height: 430px;
    object-fit: cover;
}

/* Color Samples */
.color-sample {
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-banner {
        height: 60vh;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h1 .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 50vh;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h1 .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }
}

/* Stili per l'header in modalità mobile */
@media (max-width: 576px) {
    .navbar .container {
        padding: 0 15px;
    }
    
    .navbar-brand h2 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .navbar .fa-envelope, 
    .navbar .fa-phone {
        font-size: 1.2rem;
    }
    
    .navbar .d-flex.align-items-center {
        position: relative;
        top: 0;
        right: 0;
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .navbar .d-flex.align-items-center {
        font-size: 0.9rem;
    }
}


/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #3b3b3b;
    z-index: 1000;
    height: 70px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    transform: translateY(0) !important; /* Forza la visibilità */
}

.btn-action {
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for sticky bar */
@media (max-width: 768px) {
    .sticky-action-bar {
        height: 50px;
        background-color: rgba(59, 59, 59, 0.95);
    }
    
    .btn-action {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem !important;
    }
    
    /* Add padding to the bottom of the body to prevent content from being hidden behind the sticky bar */
    body {
        padding-bottom: 50px;
    }
}

@media (min-width: 769px) {
    /* Add padding to the bottom of the body to prevent content from being hidden behind the sticky bar */
    body {
        padding-bottom: 70px;
    }
}

/* Go to top button */
.go-top-container {
    position: fixed;
    bottom: 86px; /* Posizionato sopra l'icona WhatsApp */
    right: 20px;
    z-index: 1000;
}

.go-top-btn {
    width: 45px;
    height: 45px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.go-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.go-top-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Sticky animated icon */
.sticky-animated-icon {
    position: fixed;
    bottom: 12px; /* Posizionato in basso */
    right: 20px;
    z-index: 1000;
}

.icon-pulse {
    width: 50px;
    height: 50px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.icon-pulse i {
    font-size: 24px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Responsive adjustments for sticky elements */
@media (max-width: 768px) {
    .go-top-container {
        bottom: 125px;
        right: 17px;
    }
    
    .go-top-btn {
        width: 40px;
        height: 40px;
    }
    
    .sticky-animated-icon {
        bottom: 60px;
        right: 15px;
    }
    
    .icon-pulse {
        width: 45px;
        height: 45px;
    }
    
    .icon-pulse i {
        font-size: 20px;
    }
}

/* Realizations Carousel Styling */
#realizationsCarousel .realization-item {
    width: 160px;
    transition: opacity 0.3s ease;
    margin-bottom: 15px;
}

#realizationsCarousel .realization-item img {
    width: 160px;
    height: 160px;
    object-fit: cover;
}

#realizationsCarousel h6 {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive adjustments for realizations carousel */
@media (max-width: 992px) {
    #realizationsCarousel .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile view for realizations carousel */
@media (max-width: 992px) {
    #realizationsCarousel .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #realizationsCarousel .realization-item {
        width: 120px;
        margin: 0 10px 15px;
    }
    
    #realizationsCarousel .realization-item img {
        width: 120px;
        height: 120px;
    }
    
    #realizationsCarousel .realization-item:nth-child(n+5) {
        display: none !important;
    }
    
    #realizationsCarousel .carousel-control-prev {
        left: 5px;
    }
    
    #realizationsCarousel .carousel-control-next {
        right: 5px;
    }
}


/* Carousel Styles - Moved from script.js */
/* Fade transition for carousel */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: .6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
    transform: translate3d(0, 0, 0);
}

/* Custom navigation buttons styling */
.custom-carousel-control {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.custom-carousel-control:hover {
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev {
    left: -10px;
}

.carousel-control-next {
    right: -10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100%);
    width: 20px;
    height: 20px;
}

/* Image styling */
#projectsCarousel .carousel-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

#projectsCarousel .mx-1 {
    width: 300px;
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #projectsCarousel .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #projectsCarousel .mx-1 {
        margin-bottom: 20px;
    }
    
    .custom-carousel-control {
        width: 35px;
        height: 35px;
    }
}

/* Mobile view - show only one image */
@media (max-width: 768px) {
    #projectsCarousel .project-item:not(:first-child) {
        display: none !important;
    }
    
    #projectsCarousel .project-item:first-child {
        margin: 0 auto !important;
    }
    
    #projectsCarousel .carousel-control-prev {
        left: 5px;
    }
    
    #projectsCarousel .carousel-control-next {
        right: 5px;
    }
}

/* Button pulse animation */
.btn-pulse {
    animation: btnPulse 2s infinite;
    box-shadow: 0 0 0 rgba(13, 110, 253, 0.4);
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Add hover effect to stop animation */
.btn-pulse:hover {
    animation: none;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Form message styles */
#formMessage {
    transition: all 0.3s ease;
}

#formMessage.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#formMessage.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Spinner per il pulsante di invio */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    margin-right: 0.5rem;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 15px;
    right: 100px;
    z-index: 1030;
}

/* Language Selector in Header */
.language-selector-header .btn {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    padding: 3px 8px;
    font-size: 0.8rem;
}

.language-selector-header .dropdown-menu {
    min-width: 5rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.language-selector-header .dropdown-item {
    color: white;
    text-align: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.language-selector-header .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-selector-header .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
    .language-selector-header {
        margin-left: -10px;
    }
}

.language-selector .btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    padding: 5px 10px;
}

.language-selector .dropdown-menu {
    min-width: 5rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.language-selector .dropdown-item {
    color: white;
    text-align: center;
    padding: 0.25rem 0.5rem;
}

.language-selector .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-selector .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .language-selector {
        right: 70px;
    }
}

/* Container Full Width */
.container-fluid-dark {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
    background-color: #212529;
}

.container-fluid-dark .row {
    margin: 0;
    padding: 2rem 5%;
}

.container-fluid-dark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stile per la sezione scura con rivestimenti in alluminio - margini desktop */
@media (min-width: 992px) {
  .container-fluid-dark {
    padding-left: 8%;
    padding-right: 8%;
  }
  
  .container-fluid-dark .col-lg-8 {
    padding-right: 5%;
  }
  
  .container-fluid-dark .col-lg-4 {
    padding-left: 2%;
    position: relative;
    min-height: 500px; /* Altezza minima fissa */
  }
  
  .container-fluid-dark .col-lg-4 img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    max-height: 450px; /* Limita l'altezza massima */
  }
}

/* Stile per la sezione scura - immagine a piena altezza */
.bg-dark .row.align-items-center {
  position: relative;
  min-height: 500px;
}