/*
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.0
*/



.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 15px;
}

/*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;
}




/*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;
}


/* ===== 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*/


/* ===== 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;
}

/* Bottone toggle (dinamico ora) */
[id$="_toggle-view"] {
  padding: 8px 14px;
  border: none;
  border-radius: 17px;
  background: var(--ast-global-color-2);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

[id$="_toggle-view"]:hover {
  background: var(--ast-global-color-1);
}


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

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

.akis_table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.akis_table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.akis_table tr:hover {
  transition: 0.2s;
  background: rgba(0,0,0,0.02);
}

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

.akis_table a:hover {
  text-decoration: underline;
}


/* ===== CARDS ===== */
[id$="_cards"] {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* tutte le card dinamiche */
[class$="_card"] {
  flex: 1 1 calc(33.333% - 15px);
  background: #fff;
  border-radius: 25px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.25s;
  border:1px solid #ccc;
  border-left: 3px solid var(--ast-global-color-2);
}

[class$="_card"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

[class$="_card"] p {
  margin: 6px 0;
  font-size: 14px;
}

[class$="_card"] strong {
  color: #333;
}

[class$="_card"] a {
  color: var(--ast-global-color-2);
  font-weight: 500;
  text-decoration: none;
}

[class$="_card"] a:hover {
  text-decoration: underline;
}


/* ===== PAGINAZIONE ===== */
.tg-pagination {
  margin-top: 15px;
}

.tg-pagination button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.tg-pagination button:hover {
  background: #f5f5f5;
}

.tg-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  [class$="_card"] {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 600px) {

  [class$="_card"] {
    flex: 1 1 100%;
  }

  .akis_table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .progetti-filters {
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
