/* Stili specifici per la homepage completa */

/* General Section Styles */
.section {
    padding: 60px 0;
    position: relative;
}

.section + .section {
    padding-top: 30px;
}

/* Overlappable Section */
.overlappable-section {
    position: relative;
    margin-top: -100px;
    z-index: 10;
}

.overlappable-section .row {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
}

.overlappable-section .shadow {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Feature Boxes */
.feature-box {
    padding: 40px 20px;
}

.feature-icon {
    font-size: 3rem;
    color: #1487B1;
    margin-bottom: 30px;
}

.feature-icon i.large {
    font-size: 4rem;
}

.feature-icon i.color11 {
    color: #1487B1;
}

.feature-content h4 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Section headings */
.section h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.section h5 {
    margin: 30px 0 20px;
}

.section p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Section Header Blue */
.section-header-blue {
    background-color: #f5fafd;
    padding: 30px 0;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.section-header-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/uploads/2022/11/BEEP-PARKING-BANNER-230x1300-1.jpg');
    background-size: cover;
    background-position: center center;
    opacity: 0.1;
    z-index: 0;
}

.section-header-blue .gridContainer {
    position: relative;
    z-index: 1;
}

.section-header-blue h2 {
    color: #1487B1;
    border-bottom: 3px solid #1487B1;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* Green Background Sections */
.section-green-bg {
    background-color: #daf2eb;
    padding: 60px 0;
}

.section-green-bg + .section-green-bg {
    padding-top: 0;
}

/* Middle Alignment */
.middle-sm {
    align-items: center;
}

.content-left-sm {
    text-align: left;
}

@media (max-width: 768px) {
    .content-left-sm {
        text-align: center;
    }
}

/* Highlight Text */
.highlight {
    font-weight: 600;
    color: #1487B1;
}

.highlight-blue {
    font-weight: 600;
    color: #1f4e79;
}

.highlight-green {
    font-weight: 600;
    color: #44be9b;
}

.highlight-lime {
    font-weight: 600;
    color: #9cb833;
}

.highlight-orange {
    font-weight: 600;
    color: #f98634;
}

.highlight-dark-orange {
    font-weight: 600;
    color: #db5f06;
}

/* Image Group Side */
.image-group-side {
    position: relative;
    height: 500px;
}

.image-group-side .topimg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    border-radius: 6px;
    z-index: 3;
}

.image-group-side .rightimg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    border-radius: 6px;
    z-index: 2;
}

.image-group-side .leftimg {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 45%;
}

.image-group-side .leftimg img {
    width: 100%;
    border-radius: 6px;
    z-index: 1;
}

/* Business Model Image */
.business-model-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

/* Shadow Large */
.shadow-large {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Cards */
.card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 30px 20px;
}

/* Company Section Card Icons */
.card i.fa {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.card i.fa-rocket {
    color: #44be9b;
}

.card i.fa-eye {
    color: #9cb833;
}

.card i.fa-check-circle {
    color: #1487B1;
}

.card.no-padding {
    padding: 0;
}

.card.bordered {
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card .face {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 30px;
}

/* Team Section */
.spaced-cols {
    margin-left: -15px;
    margin-right: -15px;
}

.spaced-cols > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

.content-center-sm {
    justify-content: center;
}

.card.y-move {
    position: relative;
    transition: transform 0.3s ease;
}

.card.y-move:hover {
    transform: translateY(-5px);
}

.card.no-padding {
    padding: 0;
}

.card.bordered {
    border: 1px solid #e0e0e0;
}

.col-padding-small {
    padding: 20px;
}

.col-padding-small-xs {
    padding: 15px;
}

.description-container {
    text-align: center;
}

.description-container h4 {
    margin-bottom: 10px;
}

.description-container .small {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.social-icons-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons-group a {
    color: #999;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons-group a:hover {
    color: var(--primary-color);
}

.social-icons-group i {
    font-size: 1.3rem;
}

.font-500 {
    font-weight: 500;
}

.gray {
    color: #999;
}

.icon {
    display: inline-block;
}

/* Icon specific styling for Font Awesome 4 */
.fa-facebook-square::before {
    content: "\f082";
}

.fa-twitter-square::before {
    content: "\f081";
}

.fa-linkedin-square::before {
    content: "\f08c";
}

.fa-instagram::before {
    content: "\f16d";
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.news-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-item h3 {
    padding: 20px 20px 10px;
}

.news-item h3 a {
    color: var(--dark-color);
    text-decoration: none;
}

.news-item h3 a:hover {
    color: var(--primary-color);
}

.news-item p {
    padding: 0 20px 20px;
}

/* Contact Section */
.contact-section {
    position: relative;
    color: #fff;
    overflow: hidden;
    min-height: 500px;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.contact-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.contact-section .gridContainer {
    position: relative;
    z-index: 2;
}

.contact-section h2 {
    color: #fff;
    border-bottom: 3px solid #1487B1;
    display: inline-block;
    padding-bottom: 10px;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 40px;
    color: var(--dark-color);
}

.contact-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-box {
    text-align: center;
}

.contact-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-box h4 {
    margin-bottom: 10px;
}

.social-icons-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icons-contact a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icons-contact a:hover {
    background: #1456c2;
    transform: translateY(-3px);
}

/* Row and Column Classes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    align-items: center;
}

/* Values Section - Align cards to top */
#values .row {
    align-items: stretch;
}

#values .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#values .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Image styles for sections */
.section img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.section .shadow-large {
    margin: 20px 0;
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

/* Ensure images don't get too tall but are fully visible */
.row.middle-sm img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

/* Ensure proper spacing between text and images */
.row.middle-sm > .col-sm-6 {
    padding: 30px 15px;
}

/* Center XS and Middle XS utilities */
.center-xs {
    text-align: center;
    justify-content: center;
}

.middle-xs {
    align-items: center;
}

/* Section Title Column */
.section-title-col {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.section-title-col h2 {
    margin-bottom: 20px;
}

.section-title-col .lead {
    font-size: 1.2rem;
    color: var(--text-color);
}

.col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-sm-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-sm-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-sm-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-sm-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-sm-offset-2 {
    margin-left: 16.666667%;
}

/* Button Updates */
.button.color1 {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 2px;
    display: inline-block;
    transition: all 0.3s ease;
}

.button.color1:hover {
    background: #1456c2;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-sm-offset-2 {
        margin-left: 0;
    }
    
    .image-group-side {
        height: auto;
    }
    
    .image-group-side .topimg,
    .image-group-side .rightimg,
    .image-group-side .leftimg {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack content on mobile */
    .row {
        display: block;
    }
    
    .row.middle-sm {
        display: block;
    }
    
    /* Add more spacing between sections on mobile */
    .section {
        padding: 40px 0;
    }
    
    /* Ensure images don't overlap text on mobile */
    .section img {
        margin-bottom: 30px;
    }
}