/*  Oleari Marco - Site Custom Styles
    Theme color system:
    - default/accent: #2E3192 (azzurro logo)
    - primary/dark: #1e283c
    - secondery/gray: #f7f7f7
=====================================================*/

/* ---- Logo ---- */
.navbar-brand img {
    max-height: 70px;
    width: auto !important;
}

/* ---- Navbar fixed on scroll ---- */
.main_nav.nav-scroll {
    background: rgba(30, 40, 60, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ---- Hero Banner ---- */
.hero-banner {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.hero-banner .mainbanner_content {
    position: relative;
    z-index: 9;
}
.hero-banner .mainbanner_content h1 {
    font-size: 56px !important;
    line-height: 66px !important;
    font-weight: 700;
}
.hero-banner .mainbanner_content p {
    width: 100% !important;
}

/* ---- Page Banner (subpages) ---- */
.page-banner {
    padding: 160px 0 80px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
    width: 100%;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 40, 60, 0.6);
    z-index: 9;
}
.page-banner .container {
    position: relative;
    z-index: 10;
}
.page-banner .banner_text {
    position: relative;
    z-index: 11;
}
.page-banner h1 {
    font-size: 40px;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ---- About Section Image ---- */
.about-img {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.about-img img {
    height: 350px;
    object-fit: cover;
}

/* ---- Counter / Stats Section ---- */
.stats-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---- Equal height service cards ---- */
#services .services_item1 .row {
    display: flex !important;
    flex-wrap: wrap;
}
#services .services_item1 .row > .col-md-6 {
    display: flex !important;
}
#services .services_item1 .row > .col-md-6 > a {
    display: flex !important;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
#services .services_item1 .service_two {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-bottom: 30px;
}
#services .services_item1 .service_two p {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

/* ---- Why Us Items ---- */
.why-item {
    padding: 18px 0;
    border-bottom: 1px solid #e1e1e1;
}
.why-item:last-child {
    border-bottom: none;
}
.why-item i {
    margin-right: 10px;
    font-size: 24px;
}
.why-item p {
    margin-left: 26px;
    margin-top: 8px;
    font-size: 14px;
}

/* ---- Gallery Cards ---- */
.gallery-card {
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}
.gallery-card img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-card:hover img {
    transform: scale(1.05);
}

/* ---- Material Cards (Struttura) ---- */
.material-card {
    padding: 0;
    overflow: hidden;
    transition: all 0.35s ease;
}
.material-card:hover {
    transform: translateY(-6px);
}
.material-card img {
    height: 200px;
    object-fit: cover;
}
.material-card .mc-body {
    padding: 25px 20px;
    text-align: center;
}
.material-card .mc-body h5 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
}
.material-card .mc-body p {
    font-size: 14px;
    margin-top: 10px;
}

/* ---- Certificate Cards ---- */
.cert-card {
    display: flex;
    align-items: center;
    padding: 25px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.cert-card:hover {
    transform: translateX(5px);
}
.cert-card .cert-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
    font-size: 22px;
}
.cert-card .cert-info h5 {
    margin-bottom: 5px;
    font-size: 16px;
}
.cert-card .cert-info a {
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

/* ---- AIA Logo ---- */
.aia-logo {
    max-width: 280px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 4px;
}

/* ---- Contact Info Card ---- */
.contact-card {
    padding: 40px 30px;
    border-radius: 6px;
    height: 100%;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
}
.contact-item:last-child {
    margin-bottom: 0;
}
.contact-item .ci-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.25);
}
.contact-item h6 {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 14px;
}
.contact-item p {
    font-size: 14px;
    opacity: 0.9;
}
.contact-item a {
    opacity: 0.9;
    font-size: 14px;
}
.contact-item a:hover {
    opacity: 1;
}

/* ---- Map ---- */
.map-wrap {
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.map-wrap iframe {
    display: block;
}

/* ---- Footer ---- */
.site-footer {
    padding: 0;
}
.site-footer p {
    font-size: 13px;
    margin: 0;
}
.site-footer img {
    max-height: 55px;
    width: auto !important;
    filter: brightness(0) invert(1);
}

/* ---- Breadcrumbs override ---- */
.breadcrumbs ul li {
    float: left;
    margin-right: 10px;
}
.breadcrumbs ul li a,
.breadcrumbs ul li {
    font-size: 14px;
}
.breadcrumbs ul li a::after {
    content: " /";
    margin-left: 10px;
}

/* ---- Global Soft Corners (lieve smusso) ---- */
.service_two,
.gallery-card,
.material-card,
.cert-card,
.contact-card,
.map-wrap,
.about-img,
.aia-logo,
.btn,
.btn-default,
.form-control,
textarea.form-control,
.page-banner,
.experience,
iframe {
    border-radius: 6px;
}

.gallery-card img,
.material-card img,
.about-img img {
    border-radius: 6px 6px 0 0;
}

.service_two .srv_icon {
    border-radius: 6px;
}

.navbar {
    border-radius: 0;
}

/* ---- Fullscreen Mobile Menu ---- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 40, 60, 0.97);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-overlay .mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.mobile-menu-overlay .mobile-menu-close:hover {
    color: #2E3192;
}
.mobile-menu-overlay {
    flex-direction: column;
}
.mobile-menu-overlay nav {
    text-align: center;
}
.mobile-menu-overlay nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu-overlay nav ul li {
    margin: 12px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.mobile-menu-overlay.open nav ul li {
    transform: translateY(0);
    opacity: 1;
}
.mobile-menu-overlay.open nav ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.open nav ul li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.open nav ul li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.open nav ul li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.open nav ul li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.open nav ul li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay .mobile-menu-logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.mobile-menu-overlay .mobile-menu-logo img {
    max-height: 90px;
    width: auto;
    filter: brightness(0) invert(1);
}
.mobile-menu-overlay nav ul li a {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 5px 0;
}
.mobile-menu-overlay nav ul li a:hover,
.mobile-menu-overlay nav ul li a.active {
    color: #2E3192;
}
.mobile-menu-overlay nav ul li a.mobile-btn-preventivo {
    background: #2E3192;
    color: #fff;
    padding: 10px 30px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 18px;
}
.mobile-menu-overlay nav ul li a.mobile-btn-preventivo:hover {
    background: #3a3fb0;
    color: #fff;
}

/* Nasconde il menu Bootstrap collapse su mobile, usa il fullscreen */
@media (max-width: 991px) {
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
}
/* Nasconde overlay menu su desktop */
@media (min-width: 992px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-banner {
        height: auto;
        min-height: 100vh;
    }
    .page-banner {
        padding: 130px 0 60px;
    }
    .about-img img {
        height: 260px;
    }
}
@media (max-width: 767px) {
    .hero-banner .mainbanner_content h1 {
        font-size: 32px !important;
        line-height: 42px !important;
    }
    .hero-banner .mainbanner_content p {
        width: 100% !important;
    }
    .section_title_1 {
        width: 100% !important;
    }
    .page-banner {
        padding: 110px 0 50px;
    }
    .page-banner h1 {
        font-size: 30px;
    }
    .contact-card {
        margin-bottom: 30px;
    }
}
