h1:after, .h1:after, h2:after, .h2:after, h3:after, .h3:after, h4:after, .h4:after, h5:after, .h5:after, h6:after, .h6:after {

    width: 45px!important;

    height: 3px!important;

    background: #CDDC39!important;

    border-radius: 0!important;

}



.wpb_text_column ul li {

	font-size:14px!important;

}







html body.error404 {

  background: url(/wp-content/uploads/2017/10/deanna-ritchie-227649-e1508407436179.jpg) no-repeat 50% 0 !important;

}



.post_read_more .button.bordered {

	border-radius: 50px!important;

}



body.search-results .stm_post_details {

  visbility: hidden;

  display: none;

}



@media only screen and (max-width: 1199px) {

  html body .header_top .top_nav .top_nav_wrapper {

    float: right !important;

  }



  body.header_style_2 .header_top .top_nav .header_socials {

    margin: 0 0 0 40px !important;

  }

}



@media only screen and (max-width: 991px) {

  .logo a img {

      max-width: 100%!important;

  }

  #menu_toggle {

	  margin: 34px 0 0!important;

  }

 

  .mobile_header .top_nav_mobile .main_menu_nav > li > a {

    text-transform: inherit!important;

	

  }

 

}



.select2-container.select2-container--default .select2-selection--single {

    background: #fff!important;

}





body.header_style_2 .header_top .top_nav .top_nav_wrapper > ul > li:hover > a, body.header_style_2 .header_top .top_nav .main_menu_nav > ul > li:hover > a {

    color: #004b9a!important;

}



body.header_style_2 .header_top .top_nav .top_nav_wrapper > ul > li.current_page_item > a, body.header_style_2 .header_top .top_nav .top_nav_wrapper > ul > li.current-menu-ancestor > a, body.header_style_2 .header_top .top_nav .top_nav_wrapper > ul > li.current-menu-parent > a, body.header_style_2 .header_top .top_nav .top_nav_wrapper > ul > li.current_page_parent > a, body.header_style_2 .header_top .top_nav .top_nav_wrapper > ul > li.current_page_ancestor > a, body.header_style_2 .header_top .top_nav .main_menu_nav > ul > li.current_page_item > a, body.header_style_2 .header_top .top_nav .main_menu_nav > ul > li.current-menu-ancestor > a, body.header_style_2 .header_top .top_nav .main_menu_nav > ul > li.current-menu-parent > a, body.header_style_2 .header_top .top_nav .main_menu_nav > ul > li.current_page_parent > a, body.header_style_2 .header_top .top_nav .main_menu_nav > ul > li.current_page_ancestor > a {

    color: #004b9a!important;

}



.widget.widget_nav_menu ul li.current-menu-item > a, .widget.widget_nav_menu ul li.current_page_item > a, .widget.widget_nav_menu ul li.current-cat > a, .widget.widget_categories ul li.current-menu-item > a, .widget.widget_categories ul li.current_page_item > a, .widget.widget_categories ul li.current-cat > a, .widget.widget_product_categories ul li.current-menu-item > a, .widget.widget_product_categories ul li.current_page_item > a, .widget.widget_product_categories ul li.current-cat > a, .widget.widget_archive ul li.current-menu-item > a, .widget.widget_archive ul li.current_page_item > a, .widget.widget_archive ul li.current-cat > a, .widget.widget_pages ul li.current-menu-item > a, .widget.widget_pages ul li.current_page_item > a, .widget.widget_pages ul li.current-cat > a, .widget.widget_meta ul li.current-menu-item > a, .widget.widget_meta ul li.current_page_item > a, .widget.widget_meta ul li.current-cat > a {

    border-left-color: #004b9a!important;

}



.widget.widget_nav_menu ul li:hover > a, .widget.widget_categories ul li:hover > a, .widget.widget_product_categories ul li:hover > a, .widget.widget_archive ul li:hover > a, .widget.widget_pages ul li:hover > a, .widget.widget_meta ul li:hover > a {

    border-left-color: #004b9a!important;

}



.wpb_text_column ul li:before, .comment-body .comment-text ul li:before {



    color: #004b9a!important;



}



#footer .footer_widgets .widget.widget_nav_menu ul li a {



    color: #fff!important;



}



body.header_style_2 .header_top .top_nav .header_socials a:hover {

    color: #004b9a!important;



}



.stm_contacts_widget.style_4 ul li .icon {

    color: #004b9a!important;

}



.stm_contact_two .stm_contact_info .stm_contact_row i {



    color: #004b9a!important;

}



.stm_contacts_widget.style_4 ul.socials li a:hover {

    background: #004b9a!important;

}



.stm_news .news_list li h5 a:hover {

    color: #004b9a!important;

}



.page_title.transparent .breadcrumbs span i.fa {

    color: #004b9a!important;

}

.tecnologie .cq-expandgrid-face {

  background-color: #fff !important;

}



body.page-id-986 div#main {

  padding: 0;

}



body.header_style_2 .header_top .logo a {

  margin-top: -1px !important;

}



#footer .widgets_row .footer_logo {

  padding: 7px 0 0 !important;

}

.comments_num {

	display: none;

}





.overlay.fixed_bg.counter{
  position: relative;
  background-color: rgba(0, 51, 105, 0.9); /* makes WAVE understand the background */
}

.overlay.fixed_bg.counter::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 105, 0.9) !important;
  z-index: 0;
}

.overlay.fixed_bg.counter > *{
  position: relative;
  z-index: 1;
}

.stm_works_wr.grid.style_3 .stm_works_grid_wrap .stm_works_item .work_wrap .image {
	height: 260px
}

.stm_works_wr.grid.style_3 .stm_works_grid_wrap .stm_works_item .work_wrap .image img {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; /* Ensures the image fills the container width */
    min-height: 100%; /* Ensures the image fills the container height */
}

.stm_works.masonry .stm_works_item:hover img, .stm_works_wr.grid.style_3 .stm_works_grid_wrap .stm_works_item .work_wrap:hover .image img {
    transform: translate(-50%, -50%) scale(1.1)!important;
}



/* ============================================
   Layout due colonne - contenuto + scrollspy
   ============================================ */

.inmatica-hero-content {
    margin-top: 35px;
}

.inmatica-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative; /* necessario per absolute finale dello sticky JS */
    overflow: visible !important;
}

.inmatica-content-main {
    flex: 1;
    min-width: 0;
}

/* Fix overflow tema — necessario per sticky JS */
.entry-content,
.content-area {
    overflow: visible !important;
}

.inmatica-scrollspy-nav {
    width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
    padding: 8px 0;
    height: fit-content;
    /* position gestita da JavaScript */
}

.inmatica-scrollspy-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.inmatica-scrollspy-nav ul li {
    background: #f5f8fb;
    margin: 0 0 1px 0;
    padding: 0;
}

.inmatica-scrollspy-nav ul li a {
    display: block;
    padding: 14px 20px;
    color: #232321;
    text-decoration: none;
    border-left: 3px solid transparent;
    margin-left: -3px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.inmatica-scrollspy-nav ul li a:hover {
    color: #004c97;
    background: #e8eef5;
}

.inmatica-scrollspy-nav ul li a.active {
    color: #004c97;
    font-weight: 600;
    border-left-color: #004c97;
    background: #e8eef5;
}

/* Nasconde su tablet e mobile */
@media (max-width: 1024px) {
    .inmatica-content-wrapper {
        display: block;
    }

    .inmatica-scrollspy-nav {
        display: none;
    }
}




/* Nasconde su tablet e mobile */
@media (max-width: 1024px) {
    .inmatica-content-wrapper {
        display: block;
    }

    .inmatica-scrollspy-nav {
        display: none;
    }
}

/* ============================================
   Sezioni ACF
   ============================================ */

.inmatica-section {
    margin: 40px 0;
    padding: 32px 0;
    border-top: 2px solid #e8eef5;
        scroll-margin-top: 120px; /* 107px header + 13px respiro */

}

.inmatica-section:first-of-type {
    border-top: none;
}

.inmatica-section p,
.inmatica-section > div {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
}

/* Gallery */
.inmatica-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.inmatica-gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* Video responsive */
.inmatica-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 16px;
}

.inmatica-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CTA box */
.inmatica-cta-box {
    background-color: #f0f5fb;
    border-left: 4px solid #004c97;
    border-radius: 4px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.inmatica-cta-box p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #004c97;
}

@media (max-width: 768px) {
    .inmatica-section {
        padding: 24px 0;
        margin: 24px 0;
    }

    .inmatica-gallery-grid {
        grid-template-columns: 1fr;
    }

    .inmatica-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Form brochure */
.inmatica-form-wrapper {
    padding: 20px;
    background-color: #d0d9e4;
    margin-top: 24px;
}

.inmatica-form-wrapper .wpcf7-form p {
    margin-bottom: 12px;
}

.inmatica-form-wrapper .wpcf7-form input[type="text"],
.inmatica-form-wrapper .wpcf7-form input[type="email"],
.inmatica-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d9e4;
    color: #333;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.inmatica-form-wrapper .wpcf7-form input[type="text"]:focus,
.inmatica-form-wrapper .wpcf7-form input[type="email"]:focus,
.inmatica-form-wrapper .wpcf7-form textarea:focus {
    border-color: #004c97;
    outline: none;
}

.inmatica-form-wrapper .wpcf7-form .wpcf7-acceptance {
    font-size: 13px;
    color: #333;
}


.inmatica-form-wrapper .wpcf7-form .wpcf7-submit {
    margin-top: 8px;
    background-color: #004c97;
    color: white;
}

.inmatica-form-wrapper .wpcf7-form .wpcf7-submit:disabled {
    background-color: #004a9a52;;
    color: #004a9a9a;
}



.inmatica-form-wrapper .wpcf7-form-control.wpcf7-acceptance {
    margin-top: 20px;
    background-color: transparent;
    padding: 0;
}

.inmatica-form-wrapper .wpcf7-form-control.wpcf7-acceptance a {
    color: #004c97;
}

.inmatica-form-wrapper .wpcf7-not-valid {
       box-shadow: 0 0 0 1px red !important;
    
}






.inmatica-content-wrapper.inmatica-prodotti-servizi figure {
    margin: 0;
}

/* ============================================
   Archivio Prodotti e Servizi
   ============================================ */

.inmatica-archive-wrapper {
    padding: 40px 0;
}

.inmatica-archive-header {
    margin-bottom: 48px;
}

.inmatica-archive-header h1 {
    margin-bottom: 12px;
}

.inmatica-archive-header p {
    font-size: 17px;
    color: #666;
    max-width: 680px;
}

/* Griglia 2 colonne */
.inmatica-cards-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}

/* Caso: prodotto singolo — card centrata non a piena larghezza */
.inmatica-cards-single {
    grid-template-columns: repeat(2, 1fr);
}

.inmatica-cards-single .inmatica-card {
    grid-column: 1 / 2;
}

/* Card */
.inmatica-card {
    background: #ffffff;
    border: 1px solid #e8eef5;

    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}



/* Immagine card */
.inmatica-card-image {
    display: block;
    overflow: hidden;
    height: 220px;
    background: #f0f5fb;
}

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

.inmatica-card:hover .inmatica-card-image img {
    transform: scale(1.05);
}

/* Placeholder immagine mancante */
.inmatica-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inmatica-card-no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #c0cfe0;
}

/* Body card */
.inmatica-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.inmatica-card-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.inmatica-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.inmatica-card-title a:hover {
    color: #004c97;
}

.inmatica-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.inmatica-card-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inmatica-card-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

/* Stato vuoto */
.inmatica-archive-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.inmatica-archive-empty .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #c0cfe0;
    margin-bottom: 24px;
}

.inmatica-archive-empty h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
}

.inmatica-archive-empty p {
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* Responsive */
@media (max-width: 1024px) {
    .inmatica-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inmatica-cards-single .inmatica-card {
        grid-column: 1 / 2;
    }
}

@media (max-width: 640px) {
    .inmatica-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Pubblicazioni - Single
   ============================================ */

.inmatica-pub-header {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e8eef5;
}

.inmatica-pub-tipo {
    display: inline-block;
    background: #004c97;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.inmatica-pub-header h1 {
    margin-top: 12px;
    margin-bottom: 20px;
}

.inmatica-pub-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.inmatica-pub-meta span {
    font-size: 15px;
    color: #444;
}

.inmatica-pub-meta strong {
    color: #1a1a1a;
    margin-right: 6px;
}

.inmatica-pub-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.inmatica-pub-abstract {
    margin-top: 40px;
}

.inmatica-pub-abstract h2 {
    margin-bottom: 16px;
}

.inmatica-pub-content {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #e8eef5;
}

@media (max-width: 768px) {
    .inmatica-pub-actions {
        flex-direction: column;
    }
}

/* ============================================
   Pubblicazioni - Single
   ============================================ */

.inmatica-pub-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e8eef5;
}

.inmatica-pub-tipo {
    display: inline-block;
    background: #004c97;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.inmatica-pub-header h1 {
    margin-top: 12px;
    margin-bottom: 20px;
}

.inmatica-pub-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.inmatica-pub-meta span {
    font-size: 15px;
    color: #444;
}

.inmatica-pub-meta strong {
    color: #1a1a1a;
    margin-right: 6px;
}

.inmatica-pub-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.inmatica-pub-abstract {
    margin-top: 40px;
}

.inmatica-pub-abstract h2 {
    margin-bottom: 16px;
}

.inmatica-pub-content {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #e8eef5;
}

@media (max-width: 768px) {
    .inmatica-pub-actions {
        flex-direction: column;
    }
}


/* ============================================
   Pubblicazioni - Archivio
   ============================================ */

.inmatica-pub-archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.inmatica-pub-item {
    padding: 32px 0;
    border-bottom: 1px solid #e8eef5;
}

.inmatica-pub-item:first-child {
    border-top: 1px solid #e8eef5;
}

.inmatica-pub-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.inmatica-pub-anno-badge {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.inmatica-pub-item-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.inmatica-pub-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.inmatica-pub-item-title a:hover {
    color: #004c97;
}

.inmatica-pub-item-autori {
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
}

.inmatica-pub-item-rivista {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.inmatica-pub-item-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.inmatica-pub-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.inmatica-pub-item-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #004c97;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.inmatica-pub-item-link:hover {
    gap: 8px;
}

.inmatica-pub-item-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.inmatica-pub-item-doi,
.inmatica-pub-item-pdf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.inmatica-pub-item-doi {
    background: #e8eef5;
    color: #004c97;
}

.inmatica-pub-item-doi:hover {
    background: #004c97;
    color: #ffffff;
}

.inmatica-pub-item-pdf {
    background: #fef3e2;
    color: #f39c12;
}

.sottotitolo-prodotto p {
    font-size: 1.75rem!Important;
}

/* ============================================
   Blocco prodotti homepage
   ============================================ */

.inmatica-home-prodotti--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.inmatica-home-prodotti--single {
    margin-bottom: 32px;
}

.inmatica-home-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #1a1a2e;
}

.inmatica-home-card__link {
    display: block;
    text-decoration: none;
}

.inmatica-home-card__image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.inmatica-home-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.inmatica-home-card:hover .inmatica-home-card__image img {
    transform: scale(1.05);
}

/* Placeholder senza immagine */
.inmatica-home-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a3e;
}

.inmatica-home-card__image--placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.2);
}

/* Overlay testo sovrapposto */
.inmatica-home-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 100%
    );
}

.inmatica-home-card__title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.inmatica-home-card__excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Card singola più grande */
.inmatica-home-card--large .inmatica-home-card__image {
    height: 400px;
}

/* Pulsante CTA */
.inmatica-home-prodotti__cta {
    margin-top: 8px;
}

.inmatica-home-prodotti__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a2e;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease;
}

.inmatica-home-prodotti__btn:hover {
    background: #004c97;
    gap: 14px;
}

.inmatica-home-prodotti__btn span {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .inmatica-home-prodotti--grid {
        grid-template-columns: 1fr;
    }

    .inmatica-home-card__image {
        height: 220px;
    }
}

/* Stato vuoto */
.inmatica-home-prodotti-empty {
    padding: 40px 0;
    color: #666;
    font-size: 16px;
}

.inmatica-home-card {
    min-height: 280px;
}

.inmatica-home-card--large {
    min-height: 400px;
}

.the_date { color: #767676 !important; }