/* Elettromeccanica Fortin — custom overrides */

/* Logo sizing in header */
.header-logo img,
.navbar-brand img {
    max-height: 60px;
    width: auto;
}

/* Footer logo */
.widget-head img {
    width: 150px;
}

/* Post date text in news cards */
.post-date-text {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 8px;
}

/* Google Maps iframe */
.map-section .googpemap iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* Breadcrumb overlay */
.breadcrumb-wrapper {
    background-size: cover;
    background-position: center;
}

/* Achievement wrapper flexible layout */
.achievement-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Form clt — wrap fe() output */
.form-clt span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.form-clt input,
.form-clt textarea,
.form-clt select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-clt input:focus,
.form-clt textarea:focus {
    outline: none;
    border-color: #2F6690;
}
.form-clt textarea {
    min-height: 140px;
    resize: vertical;
}

/* Company CTA Banner */
.company-cta-banner {
    background: linear-gradient(135deg, #0F212E 0%, #1E415C 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
}
.company-cta-banner__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #D9DCD6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.company-cta-banner__icon i {
    font-size: 2rem;
    color: #2F6690;
}
.company-cta-banner__title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.company-cta-banner__phone,
.company-cta-banner__email {
    color: rgba(255,255,255,.85);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color .2s;
}
.company-cta-banner__phone:hover,
.company-cta-banner__email:hover {
    color: #2F6690;
}
.company-cta-banner__phone i,
.company-cta-banner__email i {
    width: 18px;
    text-align: center;
    color: #2F6690;
}


.title-home {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle-home {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #2F6690;
    text-transform: inherit;
}

.bg-gray {
    background-color: #f9f9f9;
}

textarea {
    height: 220px !important;
}

@media only screen and (max-width: 767px) {
    .title-home {
        font-size: 42px;
    }
    .subtitle-home {
        font-size: 25px;
    }
}

/* Contacts — stack icon above content on mobile */
@media (max-width: 767px) {
    .contact-wrapper-2 .contact-left-items .contact-info-area-2 .contact-info-items {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}

/* Footer — center all widgets on mobile, keep desktop layout unchanged */
@media (max-width: 991px) {
    .footer-widgets-wrapper .single-footer-widget {
        text-align: center;
    }
    .footer-widgets-wrapper .single-footer-widget .list-area {
        padding-left: 0;
    }
}

/* =============================================
   ACCESSIBILITÀ — heading hierarchy fixes
   ============================================= */

/* Hero: h1→h2 (visivamente identico all'h1 originale) */
.hero-1 .hero-content h2 {
    color: var(--white);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}
@media (max-width: 1399px) { .hero-1 .hero-content h2 { font-size: 70px; } }
@media (max-width: 991px)  { .hero-1 .hero-content h2 { font-size: 56px; } }
@media (max-width: 767px)  { .hero-1 .hero-content h2 { font-size: 43px; } }
@media (max-width: 575px)  { .hero-1 .hero-content h2 { font-size: 34px; } }

/* Counter decorativo "65+" — non è un heading semantico */
.about-wrapper .about-image-items .counter-shape .content .counter-display {
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
    margin: 0;
}
.about-wrapper.style-2 .about-image-items .counter-shape .content .counter-display {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}
.about-wrapper.style-2 .about-image-items .counter-shape .content .counter-display span {
    font-size: 28px;
    font-weight: bold;
    margin-right: 5px;
}

/* Service box items: h4→h3 */
.service-box-items .content h3 {
    font-size: 20px;
    font-weight: bold;
    line-height: 130%;
    margin-bottom: 5px;
}
.service-box-items .content h3 a { color: var(--header); }
.service-box-items .content h3 a:hover { color: var(--theme); }
.service-box-items:hover .content h3 a,
.service-box-items.active .content h3 a { color: var(--white); }

/* News card: h3→h2 */
.news-card-items .news-content h2 {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 5px;
}
.news-card-items .news-content h2 a:hover { color: var(--theme); }

/* Sidebar section titles: h3→h2 */
.main-sidebar .single-sidebar-widget .wid-title h2 {
    position: relative;
    padding-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}
.main-sidebar .single-sidebar-widget .wid-title h2::before {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 83px;
    content: "";
    background-color: var(--theme);
}

/* Sidebar recent news items: h6→h3 */
.main-sidebar .single-sidebar-widget .recent-post-area .recent-items .recent-content h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.main-sidebar .single-sidebar-widget .recent-post-area .recent-items .recent-content h3 a:hover {
    color: var(--theme);
}

/* News detail: sottotitolo h3→h2 */
.news-details-area .blog-post-details .single-blog-post .post-content h2 {
    margin-bottom: 20px;
    font-size: 32px;
}
@media (max-width: 575px) {
    .news-details-area .blog-post-details .single-blog-post .post-content h2 { font-size: 24px; }
}

/* Production detail: contenuto principale h3→h2 */
.service-details-wrapper .service-details-items .details-content h2 {
    font-size: 30px;
}
@media (max-width: 767px) {
    .service-details-wrapper .service-details-items .details-content h2 { font-size: 26px; }
}
@media (max-width: 575px) {
    .service-details-wrapper .service-details-items .details-content h2 { font-size: 24px; }
}