/*
Theme Name: Astra AKIS
Theme URI: https://akis.aedit.it/
Description: Personalizzazione Tema Astra per Akis toscana
Author: Aedit srl
Template: astra
Version: 1.0.1
*/



/* Fix: Spectra non inietta --spectra-background-gradient quando i pattern
   vengono renderizzati fuori dal post corrente (es. nei template custom).
   Valore hardcoded uguale a quello configurato nel pattern header 2579. */
.hero-header.spectra-background-gradient {
    --spectra-background-gradient: linear-gradient(0deg, var(--wp--preset--color--luminous-vivid-amber) 0%, var(--ast-global-color-1) 100%);
}

.pattern-header-4151 .spectra-background-gradient {
  --spectra-background-gradient: linear-gradient(0deg, #5B7EC8 -10%, var(--ast-global-color-1) 100%);
}

.pattern-header-4153 .spectra-background-gradient {
  --spectra-background-gradient: linear-gradient(0deg, #6BA7D8 -10%, var(--ast-global-color-1) 100%);
}

.pattern-header-4154 .spectra-background-gradient {
  --spectra-background-gradient: linear-gradient(0deg, #F5894A -10%, var(--ast-global-color-1) 100%);
}

.pattern-header-4155 .spectra-background-gradient {
  --spectra-background-gradient: linear-gradient(0deg, #8BA86C -10%, var(--ast-global-color-1) 100%);
}

.pattern-header-4156 .spectra-background-gradient {
    --spectra-background-gradient: linear-gradient(0deg, #e57373 -10%, var(--ast-global-color-1) 100%);
}

.pattern-header-4158 .spectra-background-gradient {
    --spectra-background-gradient: linear-gradient(0deg, #9575cd -10%, var(--ast-global-color-1) 100%);
}

.pattern-header-4159 .spectra-background-gradient {
    --spectra-background-gradient: linear-gradient(0deg, #F4B942 -10%, var(--ast-global-color-1) 100%);
}

.pattern-header-4161 .spectra-background-gradient {
    --spectra-background-gradient: linear-gradient(0deg, #4db6ac -10%, var(--ast-global-color-1) 100%);
}

.tribe-events-calendar-month__day {
    min-height: 85px!important;
}

.main-navigation{
	    background: rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    border-radius: 30px;
}

.menu-link {
    line-height: 50px;
}

.sub-menu{
  /*  background: linear-gradient(180deg,rgba(116, 168, 74, 1) 0%, rgba(44, 84, 29, 0.85) 100%)!important;
*/	
	    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
	
}
.sub-menu>li>a{
	color:white!important;
}

.sub-menu .menu-link{
	padding: 0 1em!important;
}


/*INIZIO CSS NEWS*/

.post-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.post-cards .card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

/* hover figo */
.post-cards .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* immagine */
.post-cards img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* titolo */
.post-cards h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
    line-height: 1.3;
}

/* testo */
.post-cards p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
}

/* link pulito */
.post-cards a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-cards a:hover {
    color: inherit;
}
@media (max-width: 900px) {
    .post-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .post-cards {
        grid-template-columns: 1fr;
    }
}
/*FINE CSS NEWS*/

/*INIZIO CSS EVENTI*/
/* card evento */
.evento-card-custom {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 20px 15px;
    margin-bottom: 14px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
    align-items: center;
	border-left:3px solid var(--ast-global-color-2)
	/* centra verticalmente la data */
}

.evento-card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* data + ora (quadrato fisso e più grande) */
.evento-date-custom {
    background: var(--ast-global-color-2);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    height: 90px;  
		width: 42px;
	/* altezza fissa */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;     /* spazio interno */
    box-sizing: border-box; /* include padding */
}

/* giorno e mese dentro box */
.evento-date-custom .giorno {
    font-size: 18px;
    line-height: 1;
}

.evento-date-custom .mese {
    font-size: 14px;
    text-transform: uppercase;
}

.evento-date-custom .ora {
    font-size: 12px;
    margin-top: 3px;
}

/* info evento */
.evento-info-custom h4 {
    margin: 0 0 5px;
    font-size: 15px;
}

.evento-info-custom h4 a {
    color: #000;
    text-decoration: none;
}

.evento-info-custom h4 a:hover {
    text-decoration: underline;
}

/* campo custom */
.evento-custom-field {
    font-size: 13px;
    color: #555;
    margin: 0;
	
}

.evento-passato .evento-date-custom {
    opacity: 0.5;
    filter: grayscale(1);
}

.evento-passato {
    border-left: 3px solid #ccc;
}


/* box data stile AKIS per news */
.news-date-box {
    position: absolute;
    top: 0;
    left: 10px;
    width: 48px;
    height: 48px;
	background: white;
    color: var(--ast-global-color-2);
    border-radius: 0px 0px 8px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-date-box .giorno {
    font-size: 16px;
    line-height: 1;
}

.news-date-box .mese {
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
}


/* Posizione relativa per la card per far apparire il box sopra */
.post-cards .card {
    position: relative;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
  /*  padding: 15px;*/
}

.post-cards .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


/*FINE CSS EVENTI*/



.stk-block-content:not(.stk-row) {
    display: block!important;
}


/*ATTIVITA DIVULGATIVE INIZIO*/
.lista-eventi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.evento {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding-bottom: 15px;
}

.evento:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.evento-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.evento h3 {
    font-size: 18px;
    margin: 15px;
}

.evento h3 a {
    text-decoration: none;
    color: #222;
}

.evento h3 a:hover {
    color: #0073aa; /* colore WP vibes */
}

.evento p {
    font-size: 14px;
    margin: 5px 15px;
    color: #555;
}

.evento strong {
    color: #111;
}

.descrizione-evento {
    margin: 10px 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Badge data tipo figo */
.evento p:first-of-type {
    background: #f1f3f5;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    margin: 10px 30px;
}

.eventi-futuri .evento p:first-of-type {
    background: var(--ast-global-color-2);
    color: #fff;
}

.eventi-futuri .evento p:first-of-type strong {
    color: #fff;
}

.eventi-passati .evento p:first-of-type {
    background: #f1f3f5;
    color: #555;
}

/*ATTIVITA DIVULGATIVE FINE*/




/*CAROSELLO INIZIO*/
.swiper-container {
    width: 100%;
    overflow: hidden; /* importantissimo */
    padding: 20px 0;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: 300px; /* larghezza card */
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.evento {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding-bottom: 15px;
    width: 100%;
}

.evento-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.evento h3,
.evento p,
.descrizione-evento {
    padding: 0 15px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--ast-global-color-2)!important;
}
.swiper-button-next{
	right: -35px!important;
}
.swiper-button-prev{
	left: -35px!important;
}

.swiper-button-next, .swiper-button-prev {
  top: 310px!important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 25px!important;
}
 
.akis-breadcrumb {
    /* margin-left: 60px!important; */
    margin-top: -25px!important;
}

.akis-breadcrumb-intervento {
    /* margin-bottom: -75px; */
}
.akis-breadcrumb-contact{
  margin-bottom: 140px !important;
}

.akis-breadcrumb-pattern{
  margin-top: 15px;
}

/*CAROSELLO FINE*/


/*PROGETTO TABLE INIZIO*/
/* ===== FILTRI ===== */
/* .progetti-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
	padding: 0px 10%;
}

.progetti-filters label {
  font-size: 14px;
  color: #444;
}

.progetti-filters select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  transition: 0.2s;
}

.progetti-filters select:focus {
  border-color: var(--ast-global-color-2);
  outline: none;
}

#toggle-view {
  padding: 8px 14px;
  border: none;
  border-radius: 17px;
  background: var(--ast-global-color-2);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

#toggle-view:hover {
  background: var(--ast-global-color-1);
} */


/* ===== TABELLA ===== */
/* #projects-table {
  width: 100%;
  font-size: 14px;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
	border: 1px solid #ccc;
}

#projects-table thead {
  background: var(--ast-global-color-2);
  color: #fff;
}

#projects-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

#projects-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

#projects-table tr:hover {
  transition: 0.2s;
}

#projects-table a {
  color: #var(--ast-global-color-2);
  text-decoration: none;
  font-weight: 500;
}

#projects-table a:hover {
  text-decoration: underline;
} */

/* ===== FILTRI TABELLA GENERICA (Header + Filtri integrati) ===== */
.progetti-filters {
    max-width: 1200px!important;
    margin: 0 auto 20px;
    padding: 16px 20px;
    
    background: #ffffff;
    border: none;
    border-radius: 16px;
    
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04);
}

/* Prima riga: ricerca + toggle filtri + tab vista */
.tg-filters-row-top {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

/* Campo ricerca che si espande */
.tg-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.tg-search-box input[type="text"] {
    flex: 1 1 auto;
    height: 38px;
    padding: 8px 14px;
    
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    
    background: #ffffff;
    color: #2d3748;
    
    font-size: 14px;
    font-weight: 400;
    
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tg-search-box input[type="text"]::placeholder {
    color: #a0aec0;
}

.tg-search-box input[type="text"]:focus {
    border-color: var(--ast-global-color-2, #2c541d);
    box-shadow: 
        0 0 0 3px rgba(44, 84, 29, 0.12),
        0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.tg-search-box input[type="text"]:hover:not(:focus) {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* Bottone toggle filtri */
.tg-filter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    height: 38px;
    
    flex: 0 0 auto !important;
    
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    
    background: #ffffff;
    color: #2d3748;
    
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tg-filter-toggle svg {
    flex-shrink: 0;
}

.tg-filter-toggle:hover {
    border-color: var(--ast-global-color-0, #74a84a);
    background: var(--ast-global-color-0, #74a84a);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(116, 168, 74, 0.3);
}

.tg-filter-toggle:hover svg {
    stroke: #ffffff;
}

.tg-filter-toggle.active {
    background: linear-gradient(135deg, var(--ast-global-color-0, #74a84a) 0%, var(--ast-global-color-2, #2c541d) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(116, 168, 74, 0.3);
}

/* Switcher vista tabella/card */
.tg-view-switcher {
    display: flex;
    gap: 6px;
    background: #f7fafc;
    padding: 4px;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    
    flex: 0 0 auto !important;
}

.tg-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    height: 38px;
    
    border: none;
    border-radius: 10px;
    
    background: transparent;
    color: #4a5568;
    
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-view-btn svg {
    flex-shrink: 0;
}

.tg-view-btn:hover:not(.active) {
    background: rgba(255,255,255,0.7);
    color: #2d3748;
}

.tg-view-btn.active {
    background: linear-gradient(135deg, var(--ast-global-color-0, #74a84a) 0%, var(--ast-global-color-2, #2c541d) 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(116, 168, 74, 0.25);
}

/* Seconda riga: filtri select */
.tg-filters-row-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.tg-filters-row-bottom label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 200px;
    margin-top: 12px;

    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.tg-filters-row-bottom select {
    flex: 1 1 auto;
    height: 36px;
    padding: 6px 12px;
    
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    
    background: #ffffff;
    color: #2d3748;
    
    font-size: 13px;
    font-weight: 500;
    
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    min-width: 110px;
    cursor: pointer;
}

.tg-filters-row-bottom select:focus {
    border-color: var(--ast-global-color-2, #2c541d);
    background: #ffffff;
    box-shadow: 
        0 0 0 3px rgba(44, 84, 29, 0.12),
        0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.tg-filters-row-bottom select:hover:not(:focus) {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* Scrollbar personalizzata per Chrome */
.progetti-filters::-webkit-scrollbar {
    height: 8px;
}

.progetti-filters::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.progetti-filters::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.progetti-filters::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    background-clip: content-box;
}


/* ===== CARDS ===== */
#projects-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.project-card {
  flex: 1 1 calc(33.333% - 15px);
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.25s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.project-card p {
  margin: 6px 0;
  font-size: 14px;
}

.project-card strong {
  color: #333;
}

.project-card a {
  color: var(--ast-global-color-2);
  font-weight: 500;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .project-card {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 600px) {
  .project-card {
    flex: 1 1 100%;
  }

  #projects-table {
    font-size: 12px;
  }
}

/*PROGETTO TABLE FINE*/


/* ===== TABELLA ===== */
.akis_table {
  width: 100%;
  font-size: 15px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-spacing: 0;
  border-collapse: collapse;
}

.akis_table thead {
  background: var(--ast-global-color-2, #74a84a);
}

.akis_table th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.akis_table td {
  padding: 16px 18px;
  color: #333;
  font-size: 15px;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid #e8e8e8;
}

#tg_resources_table th.tg-field-titolo-completo,
#tg_resources_table td.tg-field-titolo-completo {
  width: 28%;
}

#tg_resources_table,
#tg_resources_table td.tg-field-accessibilita {
  overflow: visible;
}

#tg_resources_table td.tg-field-accessibilita {
  position: relative;
}

.tg-accessibilita-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px dotted currentColor;
  cursor: help;
  outline: none;
}

.tg-accessibilita-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1f2933;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.tg-accessibilita-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  z-index: 31;
  border: 6px solid transparent;
  border-top-color: #1f2933;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.tg-accessibilita-tooltip:hover::after,
.tg-accessibilita-tooltip:focus::after,
.tg-accessibilita-tooltip:hover::before,
.tg-accessibilita-tooltip:focus::before {
  opacity: 1;
  visibility: visible;
}

#tg_resources_table th.tg-field-settore,
#tg_resources_table td.tg-field-settore {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

#tg_resources_table td.tg-field-settore .tg-term {
  white-space: nowrap;
}

.akis_table tbody tr {
  transition: all 0.15s ease;
  background: #ffffff;
  position: relative;
}

/* Righe alternate (striped) */
.akis_table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.akis_table tbody tr:hover {
  background: #e8f4f8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transform: translateX(2px);
}

.akis_table tbody tr:last-child td {
  border-bottom: none;
}

.akis_table a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
  background: linear-gradient(135deg, var(--ast-global-color-0, #74a84a) 0%, var(--ast-global-color-2, #2c541d) 100%);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(116, 168, 74, 0.25);
}

.akis_table a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(116, 168, 74, 0.35);
  filter: brightness(1.1);
}


/* ===== CARDS - Layout a Box come single pages ===== */
[id$="_cards"] {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Card container */
[class$="_card"] {
  flex: 1 1 calc(50% - 20px);
  background: #fff;
  border-radius: 25px;
  padding: 20px;
  padding-top: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

[class$="_card"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(116, 168, 74, 0.15);
}

/* Titolo card (Acronimo) */
[class$="_card"] .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ast-global-color-2, #2c541d);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

/* Descrizione card (Titolo progetto) */
[class$="_card"] .card-description {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

/* Container dei box meta */
[class$="_card"] .card-meta-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

/* Riga orizzontale per comparto e settore */
[class$="_card"] .card-meta-row {
  display: flex;
  gap: 10px;
}

[class$="_card"] .card-meta-row .card-meta-item {
  flex: 1;
}

/* Meta item - singolo campo */
[class$="_card"] .card-meta-item {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  min-height: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Label del campo */
[class$="_card"] .meta-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Valore del campo */
[class$="_card"] .meta-value {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
}

/* Badge intervento come segnalibro */
[class$="_card"] .intervento-badge {
  position: absolute;
  top: 0;
  right: 20px;
  margin: 0;
  border-radius: 0 0 14px 14px;
  padding: 8px 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

[class$="_card"] .intervento-badge:hover {
  transform: none;
}

/* Link/bottone finale */
[class$="_card"] .card-link {
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  padding: 10px 20px;
  border-radius: 18px;
  display: block;
  text-align: center;
  background: #ffffff;
  /* border: 2px solid #e8e8e8; */
  background-image: linear-gradient(135deg, var(--ast-global-color-0, #74a84a) 0%, var(--ast-global-color-2, #2c541d) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); */
  margin-top: auto;
  position: relative;
}

[class$="_card"] .card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(116, 168, 74, 0.2);
  border-color: var(--ast-global-color-0, #74a84a);
}


/* ===== WRAPPER PAGINAZIONE + SELEZIONE ELEMENTI ===== */
.tg-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.tg-pagination-wrapper label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  white-space: nowrap;
}

.tg-pagination-wrapper select {
  height: 36px;
  padding: 6px 12px;
  
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  
  background: #ffffff;
  color: #2d3748;
  
  font-size: 14px;
  font-weight: 500;
  
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  min-width: 85px;
  cursor: pointer;
}

.tg-pagination-wrapper select:focus {
  border-color: var(--ast-global-color-2, #2c541d);
  box-shadow: 
    0 0 0 3px rgba(44, 84, 29, 0.12),
    0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.tg-pagination-wrapper select:hover:not(:focus) {
  border-color: #cbd5e0;
  background: #f7fafc;
}


/* ===== PAGINAZIONE ===== */
.tg-pagination {
  margin: 0;
  padding: 0;
}

.tg-pagination > div {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.tg-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 8px 12px;
  
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tg-pagination button:hover:not(:disabled) {
  background: var(--ast-global-color-0, #74a84a);
  color: #ffffff;
  border-color: var(--ast-global-color-0, #74a84a);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(116, 168, 74, 0.3);
}

.tg-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f7fafc;
  color: #a0aec0;
}

.tg-pagination button[style*="font-weight: bold"] {
  background: linear-gradient(135deg, var(--ast-global-color-0, #74a84a) 0%, var(--ast-global-color-2, #2c541d) 100%);
  color: #ffffff;
  border-color: var(--ast-global-color-0, #74a84a);
  box-shadow: 0 4px 12px rgba(116, 168, 74, 0.4);
}

.tg-pagination span {
  color: #718096;
  font-size: 13px;
  font-weight: 500;
  padding: 0 8px;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  [class$="_card"] {
    flex: 1 1 100%;
  }
  
  [class$="_card"] .card-meta-row {
    flex-direction: column;
  }
  
  [class$="_card"] .card-title {
    font-size: 18px;
  }
  
  [class$="_card"] .card-description {
    font-size: 13px;
  }
  
  [class$="_card"] .card-meta-item {
    min-height: 50px;
  }
  
  /* Filtri responsive */
  .progetti-filters {
    max-width: 100%;
    padding: 14px 16px;
  }
  
  .tg-filters-row-top {
    gap: 10px;
  }
  
  .tg-search-box {
    font-size: 13px;
  }
  
  .tg-search-box input[type="text"] {
    height: 36px;
    font-size: 13px;
  }
  
  .tg-filter-toggle {
    padding: 9px 14px;
    height: 36px;
    font-size: 13px;
  }
  
  .tg-view-btn {
    padding: 7px 12px;
    height: 36px;
    font-size: 12px;
    gap: 5px;
  }
  
  .tg-filters-row-bottom {
    gap: 8px;
  }
  
  .tg-filters-row-bottom label {
    font-size: 12px;
    min-width: 130px;
  }
  
  .tg-filters-row-bottom select {
    height: 34px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  [class$="_card"] {
    flex: 1 1 100%;
  }
  
  [class$="_card"] .card-meta-row {
    flex-direction: column;
  }
  
  [class$="_card"] .card-title {
    font-size: 17px;
  }
  
  [class$="_card"] .card-description {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  [id$="_cards"] {
    gap: 16px;
  }

  .akis_table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .akis_table th,
  .akis_table td {
    padding: 10px 8px;
  }

  /* Filtri responsive mobile */
  .progetti-filters {
    max-width: 100%;
    padding: 12px 14px;
    gap: 10px;
  }
  
  .tg-filters-row-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .tg-search-box {
    flex: 1 1 100%;
    order: 1;
  }
  
  .tg-filter-toggle {
    flex: 1;
    justify-content: center;
    order: 2;
  }
  
  .tg-view-switcher {
    flex: 1;
    order: 3;
  }
  
  .tg-view-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 11px;
  }
  
  .tg-filters-row-bottom {
    flex-direction: column;
  }
  
  .tg-filters-row-bottom label {
    width: 100%;
    min-width: auto;
    font-size: 12px;
  }
  
  .tg-filters-row-bottom select {
    width: 100%;
    height: 36px;
  }
  
  .tg-pagination-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }
  
  .tg-pagination-wrapper label {
    font-size: 13px;
  }
  
  .tg-pagination-wrapper select {
    height: 34px;
    font-size: 13px;
  }
  
  .tg-pagination button {
    min-width: 32px;
    height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }
}

figure>img{
    border-radius: 25px;
}

.stk-column-wrapper{
  margin-left: 0!important;
  margin-right: 0!important;
}

.click-box{
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* immagine base */
.click-box .wp-block-cover__image-background{
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* overlay base */
.click-box .wp-block-cover__background{
    transition: opacity 0.3s ease;
}

/* HOVER: immagine più “soft” */
.click-box:hover .wp-block-cover__image-background{
    transform: scale(1.06);
    filter: blur(1px) brightness(1.4) saturate(0.7);
}

/* HOVER: WASH BIANCO sopra tutto */
.click-box::before{
    content:"";
    position:absolute;
    inset:0;
    background: rgba(255,255,255,0);
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events:none;
}

.click-box:hover::before{
    background: rgba(44, 84, 29, 0.75);;
}

/* contenuto sopra overlay */
.click-box .wp-block-cover__inner-container{
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* testo sempre leggibile */
.click-box:hover .wp-block-cover__inner-container,
.click-box:hover h1,
.click-box:hover h2,
.click-box:hover h3,
.click-box:hover p{
    color: white!important;
    font-weight: bold;
}

/* effetto lift */
.click-box:hover{
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.click-box{
    position: relative;
    cursor: pointer;
}

/* crea layer cliccabile */
.click-box::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* il contenuto resta sopra visivamente ma non blocca click */
.click-box .wp-block-cover__inner-container{
    position: relative;
    z-index: 2;
}

.ast-footer-copyright p{
  line-height: 1;
}

#icbCards-3 .icbCards .first4Theme .content a, #icbCards-3 .icbCards .theme5 .content .details .actionBtn button{
    color: var(--ast-global-color-1)!important;
    background: white!important;
}

#icbCards-3 .icbCards .first4Theme .content a:hover, #icbCards-3 .icbCards .theme5 .content .details .actionBtn button:hover {
    color: #fff!important;
    background: var(--ast-global-color-2)!important;
}

/* ===== BADGE INTERVENTO ===== */
.intervento-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-right: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}

.intervento-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}


/* ===== CONTACT FORM 7 ===== */
.wpcf7-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form p:has(input[type="submit"]) {
    margin-bottom: 0;
}

.wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* Input text, email e textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    
    background: #ffffff;
    color: #2d3748;
    
    font-size: 15px;
    font-weight: 400;
    
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form textarea::placeholder {
    color: #a0aec0;
}

/* Focus state */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--ast-global-color-2, #2c541d);
    background: #ffffff;
    box-shadow: 
        0 0 0 3px rgba(44, 84, 29, 0.12),
        0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

/* Hover state */
.wpcf7-form input[type="text"]:hover:not(:focus),
.wpcf7-form input[type="email"]:hover:not(:focus),
.wpcf7-form textarea:hover:not(:focus),
.wpcf7-form select:hover:not(:focus) {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* Textarea specifica */
.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Select dropdown */
.wpcf7-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Submit button */
.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    
    border: none;
    border-radius: 14px;
    
    background: linear-gradient(135deg, var(--ast-global-color-0, #74a84a) 0%, var(--ast-global-color-2, #2c541d) 100%);
    color: #ffffff;
    
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 4px 12px rgba(116, 168, 74, 0.35);
}

.wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--ast-global-color-2, #2c541d) 0%, var(--ast-global-color-0, #74a84a) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(116, 168, 74, 0.45);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(116, 168, 74, 0.3);
}

/* Spinner durante l'invio */
.wpcf7-spinner {
    margin-left: 10px;
}

/* Messaggi di risposta */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Messaggi di validazione inline */
.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc3545;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Input con errore */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Responsive */
@media (max-width: 600px) {
    .wpcf7-form {
        padding: 20px;
        border-radius: 20px;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form textarea,
    .wpcf7-form select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .wpcf7-form input[type="submit"] {
        padding: 12px 20px;
        font-size: 14px;
    }
}


@media (max-width: 767.98px) {
  .stk-block-separator__inner {
    transform: scaleX(1.5) !important;
    height: 221px !important;
  }
  .hero-header.wp-block-spectra-content.wp-block-spectra-content {
    padding-top: var(--wp--preset--spacing--50)!important;
    font-size: 36px!important;
    letter-spacing: 1px!important;
  }
  .hero-header-hp.wp-block-spectra-container.wp-block-spectra-container.wp-block-spectra-container {
      min-height: 450px!important;
  }
  .hero-header.wp-block-spectra-container.wp-block-spectra-container.wp-block-spectra-container {
      min-height: 250px!important;
  }




  .container {
        width: 100% !important;
        height: auto !important;
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .circle-background {
        display: none !important;
    }

    .center-title {
        position: static !important;
        transform: none !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        padding: 14px 20px !important;
        margin-bottom: 4px !important;
    }

    .button {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 56px !important;
        border-radius: 14px !important;
        font-size: 13px !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
}

/* ===== SINGLE PAGE (progetti / risorse / eventi) — fix 600px ===== */
@media (max-width: 600px) {
    /* Layout a colonna unica */
    .layout-2col {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .col-left {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .col-left h2 {
        font-size: 22px !important;
    }

    .col-right {
        width: 100%;
        box-sizing: border-box;
    }

    /* Meta box compatti */
    .project-meta-box,
    .resource-meta-box,
    .evento-meta-box {
        margin: 10px 16px !important;
        padding: 14px !important;
        gap: 10px !important;
    }

    /* Ogni campo occupa tutta la larghezza */
    .project-meta-item,
    .resource-meta-item,
    .evento-meta-item {
        flex: 1 1 100% !important;
    }

    /* Box evento (mappa + info) in colonna */
    .evento-box {
        flex-direction: column !important;
        margin: 10px 16px !important;
        gap: 12px !important;
    }

    .evento-map {
        height: 220px !important;
    }

    /* Bottone download risorsa a larghezza piena */
    .resource-download-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box;
    }

    /* Separatori */
    .project-separator,
    .resource-separator,
    .event-separator {
        margin-top: 30px !important;
    }
}

/* ===== AKIS TABLE — scroll orizzontale su mobile ===== */
@media (max-width: 600px) {
    /* Evita che la pagina stessa si allarghi */
    body {
        overflow-x: hidden !important;
    }

    /* Filtri: margine laterale */
    .progetti-filters {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    /* Container tabella (padre del wrapper) */
    [id$="_container"] {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    /* Wrapper tabella: scroll */
    .akis_table_wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        scrollbar-width: thin;
        scrollbar-color: #74a84a #f0f0f0;
    }

    .akis_table_wrapper::-webkit-scrollbar {
        height: 5px;
    }

    .akis_table_wrapper::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }

    .akis_table_wrapper::-webkit-scrollbar-thumb {
        background: #74a84a;
        border-radius: 10px;
    }

    .akis_table {
        max-width: calc(100vw - 32px) !important;
        font-size: 13px;
        width: max-content;
        min-width: 100%;
    }

    .akis_table th,
    .akis_table td {
        padding: 10px 10px;
        white-space: nowrap;
    }

    /* Paginazione: margine laterale */
    .tg-pagination-wrapper {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
}
