/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/



.wpb_wrapper .custom-pill-element {
    /* --- Layout e Spaziatura --- */
    display: inline-block !important;
    padding: 4px 25px !important; /* Padding interno esplicito */
    margin-bottom: 0 !important;
    
    /* --- Stile del Bordo --- */
    border-style: solid !important;
    border-width: 1px !important;
    border-radius: 100px !important; /* Bordo completamente arrotondato (pillola) */
    border-color: currentColor; 
    
    /* --- Stile del Testo --- */
    text-transform: uppercase !important; /* Testo sempre in maiuscolo */
    font-weight: 400 !important;
    line-height: 1.2 !important; /* Assicura un allineamento verticale corretto */
    font-size: 14px !important;
    
    /* --- Sfondo e Animazioni --- */
    background-color: transparent !important;
}

.nectar-button.regular-button {
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

h1 strong, h2 strong, h3 strong, h4 strong, h5 strong {
    color: #2B6AB2 !important;
    font-weight: inherit !important;
}
h6 strong{
    font-weight: bold !important;
}

.arrow-link span{
    display: none;;

}
.arrow-link{
    padding: 0 !important;
}

.arrow-link .icon-button-arrow{
    transform: translateY(0) !important;
    margin: 0 !important;
    background-color: #E74010 !important;
    font-size: 22px !important;
    position: relative;
    height: 40px !important;
    width: 40px !important;
    left: 0 !important;
}


.arrow-link .icon-button-arrow::before {
    /* 1. Ruota l'icona */
    transform: rotate(-45deg);
    
    /* 2. Assicura il centraggio perfetto dopo la rotazione */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100%;
    position: relative;
    top: -1px; /* Sposta 1px verso l'alto */
    /* left: 1px; */ /* Esempio per spostare a destra */
}


/* 1. Nasconde la paginazione a punti di default di Flickity/Salient */
.flickity-enabled + .flickity-progress-bar-container .flickity-page-dots,
.flickity-page-dots {
    display: none !important;
}

/* 2. Stile del contenitore della nostra nuova progress bar */
.flickity-progress-bar-container {
    width: 100%;
    height: 4px; /* Puoi cambiare l'altezza */
    background-color: rgba(0, 0, 0, 0.1); /* Colore dello sfondo della barra */
    border-radius: 2px;
    margin-top: 30px; /* Spazio tra il carosello e la barra */
    overflow: hidden;
    max-width: 647px !important;
    margin: 0 auto !important;
}

/* 3. Stile del riempimento della progress bar (la parte che si muove) */
.flickity-progress-bar-fill {
    width: 0%; /* Inizia da zero */
    height: 100%;
    background-color: #2B6AB2; /* Colore principale di Salient - CAMBIALO SE VUOI */
    border-radius: 2px;
    transition: width 0.25s linear; /* Animazione fluida */
}

.news-slider .nectar-post-grid{
	padding: 0 30px !important; 
}
.news-slider .nectar-post-grid-item{
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1) !important;
}

.news-slider .nectar-post-grid-item-bg-wrap{
    display: none !important;
}
.news-slider .content{
    padding: 40px 25px !important;
}

.news-slider .meta-category a{
    margin-bottom: 15px !important;
    font-size: 14px !important;
    color: #2B6AB2 !important;
    text-transform: uppercase !important;
}
.news-slider .post-heading{
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}
.news-slider .nectar-post-grid-item__excerpt-wrap{
    font-size: 16px !important;
}

@media (min-width: 999px) {
.border-left-container{
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.image-footer{
    display: block !important;
}
}

.image-footer{
    display: none;
}

.blue-strong strong{
    color: #2B6AB2 !important;
}

.nectar-flickity.nectar-carousel.nectar-carousel:not(.masonry) .flickity-viewport{
    margin: 30px 0 !important;    
}
.news-slider .flickity-progress-bar-container{
    margin-top: 40px !important;
    max-width: 80% !important;
    margin: 0 auto !important;
}

.news-slider .nectar-flickity{
    margin-bottom: 40px !important;
}

.footer-border {
    border-left: 1.5px solid #2B6AB2;
    padding-left: 16px;
    text-transform: uppercase;
}

.footer-border-container{
    border-left: 1.5px solid #2B6AB2;
    padding-left: 16px !important;
    height: 100%; 
    padding-bottom: 10px;
}

.squared-box-container{
    max-width: 90% !important;
}

body [data-style="content_under_image"] [data-columns="4"].layout-mixed > div:nth-child(10n + 1) .content .nectar-post-grid-link {
    color: unset !important;
}

body .nectar-post-grid-wrap[data-style="content_under_image"] > [data-columns="4"].layout-mixed > div:nth-child(10n + 1) .content .meta-category{
    color: #2B6AB2 !important;
}

body .nectar-post-grid-wrap[data-style="content_under_image"] > [data-columns="4"].layout-mixed > div:nth-child(10n + 1) .content .item-main *,
body .nectar-post-grid-wrap[data-style="content_under_image"] > [data-columns="4"].layout-mixed > div:nth-child(10n + 1) .content h3,
body .nectar-post-grid-wrap[data-style="content_under_image"] > [data-columns="4"].layout-mixed > div:nth-child(10n + 1) .content .nectar-post-grid-item__excerpt-wrap,
body .nectar-post-grid-wrap[data-style="content_under_image"] > [data-columns="4"].layout-mixed > div:nth-child(10n + 1) .content .nectar-post-grid-item__read-more .nectar-cta .nectar-inherit-label{
    color: black !important;
}

[data-columns="4"].layout-mixed:not([data-text-layout="all_bottom_left_shadow"]) > div:nth-child(10n + 1) div.inner:before{
    background: transparent !important;
}

body .nectar-post-grid-wrap[data-style="content_under_image"] > [data-columns="4"].layout-mixed > div:nth-child(10n + 1) .content .item-main{
    color: black !important;
}


.news-slider .nectar-post-grid-item{
    border-radius: 20px !important;
}

/* Main circular button styling - SOLO per news-slider */
.news-slider .nectar-post-grid-item__read-more.nectar-cta {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: #e74c3c !important;
    margin-top: 50px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3) !important;
    justify-self: center !important;
  }
  
  /* Hide the "Read More" text and original SVG */
  .news-slider .nectar-post-grid-item__read-more .link_text {
    font-size: 0 !important;
    color: transparent !important;
    line-height: 0 !important;
    position: relative !important;
  }
  
  /* Hide the original SVG completely */
  .news-slider .nectar-post-grid-item__read-more .link_text svg {
    display: none !important;
  }
  
  /* Create arrow with inline SVG */
  .news-slider .nectar-post-grid-item__read-more .link_text::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNi41NTciIGhlaWdodD0iMTQuODMxIiB2aWV3Qm94PSIwIDAgMTYuNTU3IDE0LjgzMSI+CiAgPGcgaWQ9IlJhZ2dydXBwYV8zMDkiIGRhdGEtbmFtZT0iUmFnZ3J1cHBhIDMwOSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNzguMjIyIC03OTU3LjA4NCkiPgogICAgPHBhdGggaWQ9IlRyYWNjaWF0b181MyIgZGF0YS1uYW1lPSJUcmFjY2lhdG8gOTMiIGQ9Ik0xMDc5LjU4NCw4MDMzLjYxMmwxNS4xNDUtMTMuNDIwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMC42NTcgLTYyLjQwMikiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZmVmZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiLz4KICAgIDxwYXRoIGlkPSJUcmFjY2lhdG9fOTQiIGRhdGEtbmFtZT0iVHJhY2NpYXRvIDk0IiBkPSJN MTA4NS4wOTMsODAyMC4xOTJoOS42MjZ2OC4wNTQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0wLjY1NyAtNjIuNDAyKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS13aWR0aD0iMSIvPgogIDwvZz4KPC9zdmc+") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
  }
  
  /* Hover effects */
  .news-slider .nectar-post-grid-item__read-more.nectar-cta:hover {
    background-color: #c0392b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4) !important;
  }
  
  /* Active state */
  .news-slider .nectar-post-grid-item__read-more.nectar-cta:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3) !important;
  }
  
  /* Focus state for accessibility */
  .news-slider .nectar-post-grid-item__read-more.nectar-cta:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
  }
  
  /* Remove default Salient button animations that might conflict */
  .news-slider .nectar-post-grid-item__read-more[data-style="curved-arrow-animation"] {
    animation: none !important;
  }

  /* Mobile optimization - SOLO per news-slider */
@media (max-width: 690px) {
    .news-slider .nectar-post-grid-item__read-more.nectar-cta {
    }
  }
  
  /* Tablet and larger screens */
  @media (min-width: 1024px) {
    
    .news-slider .nectar-post-grid-item__read-more.nectar-cta:hover {
      transform: translateY(-3px) scale(1.05) !important;
    }
  }

  /* Pulse animation on hover - SOLO per news-slider */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  .news-slider .nectar-post-grid-item__read-more.nectar-cta:hover {
    animation: pulse 1s infinite !important;
  }
  
  /* Rotating arrow effect - SOLO per news-slider */
  .news-slider .nectar-post-grid-item__read-more.nectar-cta:hover .link_text::after {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg) !important;
    transition: transform 0.3s ease !important;
  }

.news-slider .nectar-post-grid-item .content {
    flex-grow: 1 !important;
}

.news-slider .nectar-post-grid-item .nectar-post-grid-item__read-more {
    margin-top: 40px !important;
}

.news-slider .nectar-post-grid .nectar-post-grid-item .inner,
.news-slider .nectar-post-grid .nectar-post-grid-item .content {
    position: relative !important;
}


@media only screen and (max-width: 690px) {
    .news-slider .nectar-post-grid-item {
        padding-bottom: 0 !important;
    }
}

.news-slider  .nectar-post-grid[data-grid-item-height="40vh"] .nectar-post-grid-item{
}

.footer-form{
    max-width: 800px !important;
    margin: 0 auto !important;
}

@media (max-width: 1000px) {
    .flickity-progress-bar-container {
        max-width: 75% !important;
        margin: 0 auto !important;
    }

    .display-none-mobile{
        display: none !important;
    }
}

.box-shadow-container .column-bg-overlay-wrap .column-bg-layer{  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16) !important;
    overflow: hidden !important;
}

p li{
    line-height: 1.2 !important;
}

.iwithtext{
	display: flex;
	flex-direction: row; 
	align-items: center;
}

.iwithtext .iwt-text{
	padding-left: 20px;
}

.row .col .iwithtext .iwt-icon img:not([srcset]){
	margin-bottom: 0;
	min-width: 35px;
}
.iwithtext .iwt-icon{
	position: relative !important;
}


/* Versione Desktop */
.overlay-box-homepage .row-bg-wrap {
    clip-path: polygon(0 0, 45% 0, 50% 50px, 55% 0, 100% 0, 100% 100%, 0 100%);
}

/* Versione alternativa con proporzioni dinamiche usando vw */
@media (max-width: 999px) {
    .overlay-box-homepage .row-bg-wrap {
        clip-path: polygon(0 0, 40% 0, 50% 3rem, 60% 0, 100% 0, 100% 100%, 0 100%);
    }
}

.footer-menu a{
	color: inherit !important;
	text-decoration: underline;
}

.container-small-center .wpb_wrapper {
	max-width: 700px;
	margin: 0 auto !important;
}

@media (max-width: 999px) {
.image-hidden-mobile{
	display:none !important;
}
}

.image-show-mobile{
	display: none;
}
@media (max-width: 999px) {
	.image-show-mobile{
		display:block !important;
	}
}

.image-macchinari{
	max-height: 250px;
}


.text-macchinari p{
	padding-bottom: 10px !important;
}

/* 
 * Stili per il template single-post.php 
 */

/* --- Sezione Hero --- */
.hero-section-single {
    position: relative;
    min-height: 550px;
    background-color: #f0f0f0; /* Colore di fallback se non c'è l'immagine */
}

.hero-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
}

/* --- Sezione Contenuto --- */
.content-section-overlay {
    position: relative;
    margin-top: -120px;
    z-index: 10;
}

.content-wrapper-fullwidth {
    background: #fff;
    border-top-left-radius: 70px;
    border-top-right-radius: 70px;
    padding: 40px 0;
}

/* --- Header del Post --- */
.post-header-centered {
    text-align: center;
    margin-bottom: 1.5rem;
}

.post-meta-margin {
    margin-bottom: 1rem;
}

.custom-pill-element {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: #2b6ab2;
    border-color: #2b6ab2;
} 

.entry-title{
	font-size: 3rem; 
	line-height: 1.2;
	margin-bottom:2rem;
}

@media (max-width: 999px) {
	.entry-title{
	font-size: 2rem; 
}
}


.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    color: #fff;
    background-color: #46b450 !important;
}