/*
Theme Name: Finxpert Child
Description: Child Theme for finxpert Theme
Author: zozothemes
Version: 1.0
Template: finxpert
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Text Domain: zozothemes
*/

/*Custom Style Code Right Here */

/* === SIDEBAR CORSI === */

/* Box Cerca */
.single-corso .corso-search-box {
    background: trasparent;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.single-corso .corso-search-box .widget-title {
    color: #c41e3a;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Box Altri Corsi */
.corsi-box {
    background: #f7fafd;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #0071BC;
}

.corsi-box__title {
    font-family: "Wix Madefor Display", "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.corsi-box__title .corsi-icon {
    width: 20px;
    height: 20px;
    background-color: #0071BC;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.corsi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.corsi-list li {
    padding: 15px 0;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px dashed #dce3e8;
}

.corsi-list li:first-child {
    padding-top: 0;
}

.corsi-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.corsi-list li a {
    display: block;
    color: #0071BC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.corsi-list li a:hover {
    color: #E50A0B;
}

.corsi-list li time {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.news-list li time {
    margin-top: 12px;
	margin-bottom: 12px;
}

/* Stile Widget Altri Corsi */
.widget.widget_altri_corsi_widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0077be;
}

.widget.widget_altri_corsi_widget .widget-title {
    color: #1a1a2e;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icona prima del titolo */
.widget.widget_altri_corsi_widget .widget-title::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #0077be;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget.widget_altri_corsi_widget ul.altri-corsi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget.widget_altri_corsi_widget ul.altri-corsi-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.widget.widget_altri_corsi_widget ul.altri-corsi-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget.widget_altri_corsi_widget ul.altri-corsi-list li a {
    color: #0077be;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.widget.widget_altri_corsi_widget ul.altri-corsi-list li a:hover {
    color: #005a8c;
}

.widget.widget_altri_corsi_widget ul.altri-corsi-list li .corso-date {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Stile box Cerca per uniformità */
.single-corso .widget.widget_search {
    background: #fff;
    border-radius: 12px;
    padding: 0px;
    box-shadow: none;
}

.single-corso .widget.widget_search .widget-title {
    color: #F50B0B;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* === BOX ALTRE NEWS - Stile come box Corsi === */

.news-box {
    background: #f7fafd;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #0071BC;
    margin-top: 40px;
}

.news-box__title {
    font-family: "Wix Madefor Display", "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-box__title::before {
    content: '';
    width: 20px;
    height: 20px;
    background-color: #0071BC;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 15px 0;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px dashed #dce3e8;
    margin-bottom: 0;
}

.news-list li:first-child {
    padding-top: 0;
}

.news-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-list li a {
    display: block;
    color: #0071BC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    margin-top: 12px;
}

.news-list li a:hover {
    color: #E50A0B;
}

.news-list li time {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.widget .widget-title:before {
	display: none;
}

.widget .widget-title {
	padding-left: 0px;
}

body.single .content-widgets-wrapper .content-widgets > .widget {
    padding: 0;
    margin-top: 0;
}
.news-box {
    margin-top: 0px;
}
.wp-block-search__button-outside {
    background-color: #fff;
}

/* =========================
   CORSO SINGLE – Card style + icons
   Palette: #fff / #F30B0C / #0071BC
   Fonts: DM Sans + Wix Madefor Display
   ========================= */

:root{
  --pi-white: #ffffff;
  --pi-red: #F30B0C;
  --pi-blue: #0071BC;

  --pi-text: #0f172a;
  --pi-muted: rgba(15, 23, 42, .70);

  --pi-border: rgba(0,0,0,.08);
  --pi-shadow: 0 18px 45px rgba(2, 8, 23, .10);

  --pi-radius-lg: 18px;
  --pi-radius-md: 14px;
}

/* contenitore */
.pi-corso-single{
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--pi-text);
}

/* Hero */
.pi-corso-hero{
  border-radius: var(--pi-radius-lg);
  overflow:hidden;
  border: 1px solid var(--pi-border);
  background: var(--pi-white);
  box-shadow: 0 10px 28px rgba(2, 8, 23, .06);
}

.pi-corso-hero__img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* Titolo */
.pi-corso-head{ margin: 18px 0 8px; }

.pi-corso-h1{
  margin:0;
  font-family: "Wix Madefor Display","DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Meta cards in riga */
.pi-corso-meta{
  display:grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 16px;
  margin: 16px 0 22px;
}

@media (max-width: 980px){
  .pi-corso-meta{ grid-template-columns: 1fr; }
}

.pi-meta-card--crediti {
  padding: 18px 20px 16px;
}

.pi-meta-card--crediti .pi-meta-card__body {
  font-size: 17px;
  gap: 10px;
}

/* Card meta stile “screen” */
.pi-meta-card{
  background: var(--pi-white);
  border: 1px solid var(--pi-border);
  border-radius: var(--pi-radius-lg);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
}

/* Accent verticale a sinistra (come le card del tuo screen) */
.pi-meta-card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 5px;
  background: var(--pi-blue);
  opacity: .95;
}

/* Differenzia le 3 card */
.pi-corso-meta .pi-meta-card:nth-child(2)::before{ background: var(--pi-red); }
.pi-corso-meta .pi-meta-card:nth-child(3)::before{ background: linear-gradient(180deg, var(--pi-blue), var(--pi-red)); }

.pi-meta-card__title{
  font-family: "Wix Madefor Display","DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(15,23,42,.62);
  margin-bottom: 10px;
  padding-left: 6px;
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Icona FA in header card */
.pi-meta-card__title::before{
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  color: var(--pi-blue);
}

.pi-corso-meta .pi-meta-card:nth-child(1) .pi-meta-card__title::before{ content:"\f073"; } /* calendar */
.pi-corso-meta .pi-meta-card:nth-child(2) .pi-meta-card__title::before{ content:"\f02d"; color: var(--pi-red);} /* book */
.pi-corso-meta .pi-meta-card:nth-child(3) .pi-meta-card__title::before{ content:"\f3c5"; } /* location-dot */

.pi-meta-card__body{
  display:grid;
  gap: 8px;
  font-size: 16px;
  padding-left: 6px;
}

.pi-k{ font-weight: 800; color: rgba(15,23,42,.78); }
.pi-v{ font-weight: 700; }

/* Sezione dettaglio */
.pi-corso-dettaglio{
  background: var(--pi-white);
  border: 1px solid var(--pi-border);
  border-radius: var(--pi-radius-lg);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(2, 8, 23, .05);
}

.pi-corso-dettaglio h2{
  margin: 0 0 10px;
  font-family: "Wix Madefor Display","DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 22px;
  display:flex;
  align-items:center;
  gap: 10px;
}

.pi-corso-dettaglio h2::before{
  content:"\f0f6"; /* file-lines */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pi-blue);
  font-size: 18px;
}

/* Bottone programma */
.pi-corso-programma{
  display:flex;
  margin: 14px 0 26px;
}

.pi-btn-primary{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid rgba(0,113,188,.30);
  background: var(--pi-white);
  text-decoration:none;
  font-weight: 800;
  color: var(--pi-blue);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.pi-btn-primary::before{
  content:"\f1c1"; /* file-pdf */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pi-red);
}

.pi-btn-primary:hover{
  transform: translateY(-1px);
  border-color: rgba(0,113,188,.55);
  background: rgba(0,113,188,.06);
}

/* Form */
.pi-corso-form{
  background: var(--pi-white);
  border: 1px solid var(--pi-border);
  border-radius: var(--pi-radius-lg);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(2, 8, 23, .05);
}

.pi-corso-form h2{
  margin: 0 0 12px;
  font-family: "Wix Madefor Display","DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 26px;
  display:flex;
  align-items:center;
  gap: 10px;
}

.pi-corso-form h2::before{
  content:"\f2f6"; /* file-signature */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pi-blue);
}

.wpcf7-not-valid-tip {
    bottom: -38px;
}

.pi-corso-form {
  overflow: visible !important;   /* Evita che il bordo tagli elementi interni */
}

/* Fix aggiuntivo per il bottone CF7 */
.wpcf7-submit {
  margin-top: 16px !important;  /* Spazio sopra il bottone */
}


/* =========================
   CORSI GRID – Card style
   Palette: #fff / #F30B0C / #0071BC
   Fonts: DM Sans + Wix Madefor Display
   ========================= */

:root{
  --pi-white: #ffffff;
  --pi-red: #F30B0C;
  --pi-blue: #0071BC;

  --pi-text: #0f172a;
  --pi-muted: rgba(15, 23, 42, .70);

  --pi-border: rgba(0,0,0,.08);
  --pi-shadow: 0 18px 45px rgba(2, 8, 23, .10);

  --pi-radius-lg: 18px;
  --pi-radius-md: 14px;
}

.pi-corsi-grid{
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1024px){
  .pi-corsi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .pi-corsi-grid{ grid-template-columns: 1fr; }
}

.pi-corso-card{
  background: var(--pi-white);
  border: 1px solid var(--pi-border);
  border-radius: var(--pi-radius-lg);
  overflow: hidden;
  height: 100%;
  display:flex;
  flex-direction:column;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pi-corso-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--pi-shadow);
  border-color: rgba(0,113,188,.28);
}

/* Accent bar come le card del tuo screen */
.pi-corso-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 4px;
  background: linear-gradient(90deg, var(--pi-blue), var(--pi-red));
  opacity: .95;
}

.pi-corso-media{ display:block; text-decoration:none; }
.pi-corso-thumb{
  display:block;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.pi-corso-thumb--placeholder{
  background: linear-gradient(135deg, rgba(0,113,188,.10), rgba(243,11,12,.06));
}

.pi-corso-body{
  padding: 18px 18px 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex:1;
}

.pi-corso-title{
  margin:0;
  font-family: "Wix Madefor Display","DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.18;
  color: var(--pi-text);
}

.pi-corso-title a{
  color: inherit;
  text-decoration: none;
}
.pi-corso-title a:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pi-corso-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 14px;
  color: var(--pi-muted);
  align-items: center;
}

/* Icone (FontAwesome) per meta */
.pi-meta-item{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

.pi-meta-item::before{
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pi-blue);
  font-size: 14px;
  opacity: .95;
}

/* icona data */
.pi-corso-meta .pi-meta-item--data::before{
  content: "\f073"; /* calendar */
}
/* icona luogo */
.pi-corso-meta .pi-meta-item--luogo::before{
  content: "\f3c5"; /* location-dot */
  color: var(--pi-red);
}

/* Badge pill */
.pi-corso-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 2px;
}

.pi-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pi-text);
  background: rgba(0,113,188,.06);
  border: 1px solid rgba(0,113,188,.18);
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* icone badge via FA */
.pi-badge::before{
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pi-blue);
  font-size: 13px;
}

.pi-corso-badges .pi-badge:nth-child(1)::before{ content:"\f02d"; } /* book (CFP) */
.pi-corso-badges .pi-badge:nth-child(2)::before{ content:"\f153"; } /* euro-sign (costo) */
.pi-corso-badges .pi-badge:nth-child(3)::before{ content:"\f0c0"; } /* users (posti) */

/* CTA stile “pill” come nello screen */
.pi-corso-cta{
  margin-top: auto;
  display:flex;
  align-items:center;
  padding-top: 6px;
}

.pi-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 54px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(0,113,188,.30);
  background: var(--pi-white);
  text-decoration:none;
  position: relative;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

/* freccia fontawesome */
.pi-btn::before{
  content:"\f061"; /* arrow-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pi-blue);
  font-size: 16px;
}

.pi-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,113,188,.55);
  background: rgba(0,113,188,.06);
}

/* Se vuoi che il bottone abbia anche testo (ora è solo icona), puoi aumentare width/padding e aggiungere testo nell'HTML */
/* =========================
   BOTTONE CARD CORSI – stile pieno
   ========================= */

.pi-btn{
  width: auto;
  min-width: 150px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #0071BC;
  border: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

/* Testo del bottone (se presente) */
.pi-btn span{
  color: #ffffff;
}

/* Icona freccia */
.pi-btn::before{
  content: none; /* rimuoviamo la freccia precedente */
}

/* Freccia a destra stile screen */
.pi-btn::after{
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Hover */
.pi-btn:hover{
  background: #F50B0B;
  color: #ffffff;
  transform: translateY(-1px);
}

.search-field {

    border-color: #0071BC;
}

.content-widgets.widget-area-right {
    padding-left: 0;
}


/* === CORSI SCADUTI === */

/* Banner scaduto nella pagina singola */
.pi-banner-scaduto {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.pi-banner-scaduto__icon {
    font-size: 24px;
}

.pi-banner-scaduto__text {
    flex: 1;
}

/* Badge scaduto nelle grid */
.pi-badge-scaduto {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* Stile corso scaduto - opacità ridotta sull'immagine */
.pi-corso-scaduto .pi-corso-hero__img {
    opacity: 0.6;
    filter: grayscale(30%);
}

/* Sezione form per corsi scaduti */
.pi-corso-form--scaduto {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.pi-corso-form--scaduto h2 {
    color: #6c757d;
    margin-bottom: 12px;
}

.pi-corso-form__msg {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.pi-corso-form__msg a {
    color: #0071BC;
    font-weight: 600;
}

.pi-corso-form__msg a:hover {
    color: #E50A0B;
}

/* Grid corsi - card scaduta */
.pi-corso-card.scaduto,
.corso-scaduto {
    opacity: 0.7;
}

.pi-corso-card.scaduto img,
.corso-scaduto img {
    filter: grayscale(40%);
}

/* === CARD CORSO SCADUTO NELLA GRID === */

.pi-corso-card--scaduto {
    position: relative;
    opacity: 0.85;
}

.pi-corso-card--scaduto .pi-corso-thumb {
    filter: grayscale(40%);
}

.pi-corso-badge-scaduto {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.pi-corso-card--scaduto .pi-corso-title a {
    color: #6c757d;
}

.pi-corso-card--scaduto .pi-btn {
    background: #6c757d;
    border-color: #6c757d;
}

.pi-corso-card--scaduto .pi-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
}
/* Badge scaduto piccolo nella sidebar */
.pi-badge-scaduto-small {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.corso-item-scaduto a {
    color: #6c757d !important;
}

/* =========================
   DOCUMENTI GRID – Card style
   ========================= */

.pi-documenti-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .pi-documenti-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .pi-documenti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.pi-documento-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pi-documento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(2, 8, 23, 0.10);
}

/* Icona documento */
.pi-documento-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

/* Icone specifiche per tipo */
.pi-documento-card[data-tipo="modulistica"] .pi-documento-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0c6"; /* paperclip - graffetta */
    color: #0071BC;
}

.pi-documento-card[data-tipo="materiale-dispense"] .pi-documento-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f19d"; /* graduation-cap */
    color: #F30B0C;
}

.pi-documento-card[data-tipo="attivita-istituzionali"] .pi-documento-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f19c"; /* building-columns */
    color: #0071BC;
}


/* Titolo */
.pi-documento-title {
    margin: 0;
    font-family: "Wix Madefor Display", "DM Sans", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #0071BC;
}

/* Meta */
.pi-documento-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
    color: #64748b;
}

.pi-documento-autore {
    color: #0071BC;
    font-weight: 600;
    font-size: 16px;
}

.pi-documento-data {
    font-size: 15px;
    color: #F50B0B;
    font-weight: 600;
}



/* Bottone download */
.pi-documento-cta {
    margin-top: auto;
    padding-top: 8px;
}

.pi-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 113, 188, 0.3);
    text-decoration: none;
    transition: all 0.18s ease;
}

.pi-btn-download:hover {
    background: rgba(0, 113, 188, 0.06);
    border-color: rgba(0, 113, 188, 0.55);
    transform: translateY(-2px);
}

.pi-btn-download__icon::before {
    content: "\f061"; /* arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    color: #0071BC;
}

/* Messaggio nessun documento */
.pi-no-docs {
    text-align: center;
    color: #64748b;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
}


/* Card documento */
.pi-documento-card {
    background: #fff;
    border: 1px solid #0070BBA1;
    border-radius: 18px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pi-documento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(2, 8, 23, 0.10);
    background: #F0F6FA;
}

/* Bottone download */
.pi-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 50px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #0070BBA1;
    text-decoration: none;
    transition: all 0.18s ease;
}

.pi-btn-download:hover {
    background: #0071BC;
    border-color: #0071BC;
    transform: translateY(-2px);
}

.pi-btn-download__icon::before {
    content: "\f061"; /* arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #0071BC;
    transition: color 0.18s ease;
}

.pi-btn-download:hover .pi-btn-download__icon::before {
    color: #fff;
}

/* Banner corso aperto */
.pi-banner-aperto {
    background: linear-gradient(135deg, #0071BC 0%, #005a96 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 113, 188, 0.3);
}

.pi-banner-aperto__text {
    flex: 1;
}

/* =========================================
 * STILE CONVENZIONI GRID - AGGIORNATO
 * Identico allo stile delle card Documenti
 * 
 * SOSTITUISCI tutto il blocco CSS delle convenzioni
 * nel tuo style.css con questo codice
 * ========================================= */

.pi-convenzioni-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .pi-convenzioni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* Card singola convenzione */
.pi-convenzione-card {
    background: #fff;
    border: 1px solid #0070BBA1;
    border-radius: 18px;
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    min-height: 0;
}

.pi-convenzione-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(2, 8, 23, 0.10);
    background: #F0F6FA;
}

/* Logo convenzione */
.pi-convenzione-logo {
    width: 100%;
    max-width: 260px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 4px;
    padding: 12px;
    flex-shrink: 0;
}

.pi-convenzione-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Titolo convenzione - Dimensioni uniformate */
.pi-convenzione-title {
    margin: 0;
    font-family: "Wix Madefor Display", "DM Sans", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #0071BC;
    /* Limita altezza e gestisce overflow */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}

/* CTA bottone - Stile identico ai bottoni documenti (pill outline) */
.pi-convenzione-cta {
    margin-top: auto;
    padding-top: 8px;
}

.pi-btn-convenzione {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 50px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #0070BBA1;
    text-decoration: none;
    transition: all 0.18s ease;
}

.pi-btn-convenzione:hover {
    background: #0071BC;
    border-color: #0071BC;
    transform: translateY(-2px);
}

/* Icona freccia nel bottone - FontAwesome */
.pi-btn-convenzione__icon::before {
    content: "\f061"; /* arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #0071BC;
    transition: color 0.18s ease;
}

.pi-btn-convenzione:hover .pi-btn-convenzione__icon::before {
    color: #fff;
}

/* Icona download nel bottone (quando è documento PDF) */
.pi-btn-convenzione--documento .pi-btn-convenzione__icon::before {
    content: "\f019"; /* download icon */
}

/* Messaggio nessuna convenzione */
.pi-no-convenzioni {
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .pi-convenzioni-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .pi-convenzione-card {
        padding: 24px 16px;
        min-height: 280px;
    }
    
    .pi-convenzione-logo {
        height: 140px;
        max-width: 240px;
    }
    
    .pi-convenzione-title {
        font-size: 20px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .pi-convenzioni-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pi-convenzione-card {
        min-height: 260px;
    }
}


/* =========================================
 * CSS BOTTONE PROTETTO
 * Aggiungi questo al tuo style.css
 * ========================================= */

/* Icona lucchetto per bottone protetto */
.pi-btn-primary.pi-btn-protected {
    position: relative;
}

.pi-btn-primary.pi-btn-protected::before {
    content: "\f023"; /* lock icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 14px;
}

/* Rimuovi l'icona PDF di default quando protetto */
.pi-btn-primary.pi-btn-protected .pi-lock-icon {
    display: none;
}


/* =========================================
 * TEAM / CONSIGLIO – Card style
 * Usato dallo shortcode [elenco_team]
 * ========================================= */

.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    border: 1px solid #0069AF36;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #0069b4;
    line-height: 1.5;
}

.card p {
    margin: 4px 0;
    color: #333;
    font-size: 15px;
}

.button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 45px;
    height: 46px;
    border: 1px solid #0069b4;
    border-radius: 999px;
    background: #fff;
    color: #0069b4;
    margin-top: 12px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    font-size: 15px;
}

.button-arrow:hover {
    background: #0069b4;
    color: #fff;
}


/* =========================================
 * FOOTER – Banner loghi istituzionali
 * Renderizzato via hook PRIMA del <footer> → nessun trucco CSS necessario
 * ========================================= */

.pi-footer-logos-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 280px;
    padding: 34px 48px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    border-top: 0;
    border-bottom: 1px solid #e8edf2;
}

.pi-footer-logos-banner a {
    display: inline-flex;
    align-items: center;
    opacity: 1;
}

.pi-footer-logos-banner img {
    height: 96px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .pi-footer-logos-banner {
        gap: 40px;
        padding: 24px 28px;
    }
    .pi-footer-logos-banner img {
        height: 72px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .pi-footer-logos-banner {
        gap: 24px;
        padding: 20px 16px;
    }
    .pi-footer-logos-banner img {
        height: 56px;
        max-width: 160px;
    }
}

/* =========================================
 * FILTRO TABS CORSI
 * ========================================= */
.pi-corsi-filtro {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.pi-filtro-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    border: 2px solid #EAEAEA;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    background: #fff;
    transition: background .2s, border-color .2s, color .2s;
    cursor: pointer;
}
.pi-filtro-tab:hover {
    border-color: #0071BC;
    color: #0071BC;
}
.pi-filtro-tab--active {
    background: #0071BC;
    border-color: #0071BC;
    color: #fff !important;
}
.pi-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 16px;
}
#pi-corsi-container {
    transition: opacity .2s;
}

/* =========================================
 * PAGINAZIONE CORSI
 * ========================================= */
.pi-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.pi-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pi-pagination .page-numbers li {
    list-style: none;
}
.pi-pagination .page-numbers li a,
.pi-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #EAEAEA;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
    background: #fff;
}
.pi-pagination .page-numbers li a:hover {
    background: #0071BC;
    border-color: #0071BC;
    color: #fff;
}
.pi-pagination .page-numbers li span.current {
    background: #0071BC;
    border-color: #0071BC;
    color: #fff;
}
.pi-pagination .page-numbers li span.dots {
    border-color: transparent;
    background: transparent;
}
@media (max-width: 640px) {
    .pi-pagination .page-numbers li a,
    .pi-pagination .page-numbers li span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* La paginazione news viene trasformata via JS nello stesso markup
 * di .pi-pagination (vedi wp_footer in functions.php) — riusa quindi
 * lo stesso CSS dei corsi senza duplicazione.
 *
 * Pre-trasformazione: nascondi il wrap iniziale Bootstrap per evitare flash. */
.post-pagination-wrap:not(.pi-pagination-ready) { visibility: hidden; }