/*!
Theme Name: Manufax
Theme URI: https://www.templatemonster.com/vendors/zemez
Author: Zemez
Author URI: https://zemez.io/wordpress
Description: Kava child theme.
Template: kava
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manufax
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
DocumentationID: manufax
Template Id: manufax
*/

body:not(.elementor-template-full-width) .site-content__wrap {
  margin-top: 60px;
  margin-bottom: 60px;
}

.wpcf7 textarea {
  display: block;
}

#loader-annunci {
    text-align: center;
    padding: 30px;
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255,255,255,0.6); /* leggero overlay */
    
    z-index: 9999;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;

}

.pagination {
    margin: 20px 0;
}

.primary-btn {
    background-color: var( --e-global-color-primary );
    color: #fff;
    margin-top: 20px;
    font-weight: bold;
    text-transform: uppercase;
}


a.primary-btn:hover, a.primary-btn.active, button.primary-btn:hover {
    color: #398ffc;
}

button.primary-btn:hover {
    background-color: var( --e-global-color-primary );
}

.card-annuncio a.apply-now {
    align-items: end;
}

.hero-img {
    display: flex;
    flex-direction: column;    
    background-repeat: no-repeat;
    background-position: center center;
    height: 1000px;
    align-items: center;
}

.font-annuncio, .annuncio-dettaglio h2, .hero-content, .hero-content h1, .hero-content p.subtitle {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    /* line-height: 40px; */
}

.hero-content {
 
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 100%;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    line-height: 80px;
    letter-spacing: 3.6px;
    font-size: 70px;
    font-weight: bold;
    color: #fff;
}

.hero-content p.subtitle {
    line-height: 38px;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 1.08px;
}

.annuncio-dettaglio {
    max-width: 1280px;
    display: flex;
    padding: 40px;
    flex-direction: column;
    margin: 100px auto;
}

/*.annuncio-dettaglio h1 {
    font-size: 24px;
    font-weight: 700;
}*/

#loader-annunci.active {
    visibility: visible;
    opacity: 1;
}

.title-annuncio {
    font-weight: 800;
    text-transform: uppercase;
    color: #051F5C;
    font-size: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#risultati-annunci {
  margin-top: 20px;
}

#filtro-annunci {
    /* display: flex; */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#filtro-annunci #search, #filtro-annunci select, .card-annuncio, .card-annuncio h3, .primary-btn {
  font-family: "Montserrat", Sans-serif;
}

#filtro-annunci div #search, #filtro-annunci div select {
    width: 100%;
    background-color: #fff;
}

#filtro-annunci div select {
    appearance: none;           /* rimuove stile di default */
    -webkit-appearance: none;
    -moz-appearance: none;
    
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6 9L12 15L18 9' stroke='%23666' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center; /* sposta la freccia dal bordo */
  background-size: 16px;

}


#filtro-annunci div {
    flex: 1;
    margin: 0;
    width: 100%;
    /* width: 46%; */
}

.annunci-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card-annuncio {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.card-annuncio div.row {
    display: flex;
    gap: 1rem;
    margin: 0.5rem;
    flex-direction: row;
   flex-wrap: nowrap;
}

.card-annuncio div.row.descrizione {
    margin: 1rem 0.5rem;
}

.wrapper-candidati {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    text-align: center;
}

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

.card-annuncio h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}

.card-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.card-ral {
    font-weight: bold;
    color: #0073aa;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 40px;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
button.forminator-button,
a.primary-btn,
input[type='button'],
input[type='reset'],
input[type='submit'] {
	display: inline-block;
	max-width: 100%;
	padding: 12px 20px;
	cursor: pointer;
	text-align: center;
    font-family: "Montserrat", Sans-serif;
	white-space: nowrap;
	text-transform: uppercase;
	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;
	text-decoration: none;
	border: none;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    #filtro-annunci {
        margin-top: 80px;
    }
    
    #filtro-annunci div {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (max-width: 820px) {
    .annunci-grid {
        grid-template-columns: 1fr;
    }

    #filtro-annunci div #search, #filtro-annunci div select {
        margin-top: 0;
    }
    
    #loader-annunci {
        position: fixed;
        z-index: 0;
        top: 100px;
    }
}

@media (max-width: 768px) {
    .annunci-grid {
        grid-template-columns: 1fr;
    }

    #filtro-annunci {
        margin-top: 10px;
    }

    #filtro-annunci {
        /* flex: 1 1 100%; */
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 640px) {

    
    #filtro-annunci {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

}