/* =======================================================
   Leopardessa Academy — Public UI
   Created: 2026-01-19
   Scope: scuole, profili, progetti (frontend)
   ======================================================= */

/* Wrapper */
.academy-public{
  margin-top: 18px;
}

/* -------------------------------------------------------
   Header blocks
------------------------------------------------------- */
.academy-school-header,
.academy-profile-header,
.academy-project-header{
  margin-bottom: 22px;
}

/* -------------------------------------------------------
   Avatar fallback (silhouette)
------------------------------------------------------- */
.academy-avatar-fallback{
  width: 140px;
  height: 140px;
  border: 1px solid #ddd;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.6;
}
.academy-avatar-fallback svg{
  width: 64px;
  height: 64px;
}

/* -------------------------------------------------------
   Profile single
------------------------------------------------------- */
.academy-public--profile .academy-profile-head{
  display:flex;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.academy-public--profile .academy-profile-avatar{
  width:140px;
}

.academy-public--profile .academy-profile-avatar__img{
  width:140px;
  height:auto;
  display:block;
}

.academy-public--profile .academy-profile-info{
  flex:1;
  min-width:240px;
}

.academy-public--profile .academy-profile-title{
  margin:0 0 6px;
  line-height:1.1;
}

/* Nome + ruolo */
.academy-profile-roleline{
  margin-top: 6px;
  font-size: 13px;
  opacity: .75;
}

.academy-public--profile .academy-profile-bio{
  opacity:.9;
  white-space:pre-wrap;
}
.academy-public--profile .academy-profile-bio--empty{
  opacity:.75;
}

.academy-public--profile .academy-profile-projects{
  margin-top:22px;
}

.academy-card__title--project{
  margin-top:10px;
}

/* Empty projects */
.academy-empty-projects{
  margin-top: 18px;
  text-align: center;
}
.academy-empty-projects__text{
  margin:0 0 10px;
}

/* -------------------------------------------------------
   Public grids
------------------------------------------------------- */
.academy-grid--schools,
.academy-grid--profiles,
.academy-grid--projects,
.academy-grid--project-gallery{
  margin-top: 16px;
}

/* Card profilo in griglie (scuola, professionisti) */
.academy-card--profile{
  text-align: center;
}

/* Avatar nelle griglie: SOLO in contesto griglia (non profilo singolo) */
.academy-grid--profiles .academy-profile-avatar{
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}

.academy-grid--profiles .academy-profile-avatar img{
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* -------------------------------------------------------
   Project single
------------------------------------------------------- */
.academy-project-back{
  margin: 0 0 12px;
}

.academy-project-title{
  margin: 0;
  line-height: 1.1;
}

.academy-project-authorline{
  margin-top: 6px;
  opacity: .8;
}

.academy-project-cover{
  margin-top: 14px;
}

.academy-project-content{
  margin-top: 14px;
  opacity: .95;
  white-space: pre-wrap;
}

.academy-project-gallery-title{
  margin-top: 22px;
}

.academy-card--project-image img{
  display: block;
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------
   School single
------------------------------------------------------- */
.academy-school-back{
  margin: 0 0 12px;
}

.academy-school-title{
  margin: 0;
}

.academy-school-cover{
  margin-top: 14px;
}

.academy-school-content{
  margin-top: 14px;
  opacity: .95;
}

.academy-school-profiles{
  margin-top: 22px;
}

.academy-school-profiles-title{
  margin-bottom: 12px;
}

.academy-school-empty{
  opacity: .85;
}

/* -------------------------------------------------------
   Buttons in public pages
------------------------------------------------------- */
.academy-public a.academy-btn{
  margin-top: 8px;
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media (max-width: 980px){
  .academy-avatar-fallback{
    width: 120px;
    height: 120px;
  }

  .academy-avatar-fallback svg{
    width: 56px;
    height: 56px;
  }

  .academy-public--profile .academy-profile-avatar{
    width:120px;
  }

  .academy-public--profile .academy-profile-avatar__img{
    width:120px;
  }
}

@media (max-width: 600px){
  .academy-public--profile .academy-profile-head{
    text-align: center;
  }

  .academy-public--profile .academy-profile-avatar{
    margin: 0 auto;
  }

  .academy-public--profile .academy-profile-info{
    min-width: 100%;
  }
}
.academy-archive-intro{
  margin: 6px 0 18px;
  font-size: 15px;
  opacity: .8;
}
.academy-filters{
  margin: 10px 0 18px;
}

.academy-filters__row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.academy-filters select{
  padding: 10px 12px;
  border: 1px solid #ddd;
  background:#fff;
  min-width: 180px;
}
/* =======================================================
   Archive scuole (academy_school)
   ======================================================= */

.academy-public--schools .academy-grid--schools{
  margin-top: 18px;
}

.academy-card--school{
  padding: 14px;
  text-align: center;
}

.academy-card--school .academy-card__thumb{
  border: 1px solid #eee;
  background: #fff;
}

.academy-card--school .academy-card__thumb img{
  width: 100%;
  height: auto;
  display: block;
}

.academy-card--school .academy-card__title{
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .01em;
}

.academy-card--school .academy-card__title a{
  text-decoration: none;
}
.academy-archive-intro{
  margin: 6px 0 18px;
  font-size: 15px;
  line-height: 1.5;
  opacity: .78;
}
/* =======================================================
   School single — Hero fascia (logo 1/4 + testo 3/4)
   ======================================================= */

.academy-public--school-single .academy-school-header{
  margin: 10px 0 18px;
}

.academy-school-hero{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
  padding: 16px;
  border: 1px solid #eee;
  background: #fff;
}

.academy-school-hero__logo img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eee;
  background: #fff;
}

.academy-school-hero__title{
  margin: 0 0 10px;
  line-height: 1.1;
}

.academy-school-hero__desc{
  opacity: .95;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 980px){
  .academy-school-hero{
    grid-template-columns: 1fr;
  }
  .academy-school-hero__logo{
    max-width: 240px;
  }
}
/* Studenti: avatar nitido (school single) */
.academy-public--school-single .academy-profile-avatar{
  width: 96px;
  height: 96px;
  display: inline-block;
}

.academy-public--school-single .academy-profile-avatar img{
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}
.academy-profile-roleline__link{
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.academy-profile-roleline__link:hover{
  border-bottom-color: rgba(0,0,0,.45);
}
.academy-prof-cat__thumb{
  width: 100%;
  padding-top: 56%;
  border: 1px solid #eee;
  background: #fff;
}
.academy-loadmore-wrap{
  margin-top: 16px;
  text-align: center;
}
/* =======================================================
   Academy Project — Split hero (1/4 media + 3/4 text)
   ======================================================= */

.academy-project-hero--split{
  display: grid;
  grid-template-columns: 320px 1fr; /* 1/4 vs 3/4 circa su desktop */
  gap: 22px;
  align-items: start;
  padding: 16px;
  border: 1px solid #eee;
  background: #fff;
  margin: 14px 0 22px;
}

/* media */
.academy-project-hero--split .academy-project-hero__media{
  border: 1px solid #eee;
  background: #fff;
  overflow: hidden;
}

.academy-project-hero--split .academy-project-hero__media img{
  width: 100%;
  height: auto;
  display: block;
}

/* fallback se manca thumbnail */
.academy-project-hero__media-fallback{
  width: 100%;
  padding-top: 125%;
  background: #f5f5f5;
}

/* content */
.academy-project-hero--split .academy-project-hero__content{
  padding: 4px 0;
}

.academy-project-hero--split .academy-project-hero__title{
  margin: 0 0 8px;
  line-height: 1.1;
}

.academy-project-hero--split .academy-project-hero__author{
  font-size: 14px;
  opacity: .8;
  margin-bottom: 12px;
}

.academy-project-hero--split .academy-project-hero__author a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.18);
}
.academy-project-hero--split .academy-project-hero__author a:hover{
  border-bottom-color: rgba(0,0,0,.45);
}

.academy-project-hero--split .academy-project-hero__desc{
  opacity: .92;
  line-height: 1.65;
  max-width: 860px;
}

/* gallery spacing */
.academy-project-gallery{
  margin-top: 22px;
}
.academy-project-gallery__title{
  margin: 0 0 14px;
}

/* responsive */
@media (max-width: 980px){
  .academy-project-hero--split{
    grid-template-columns: 1fr;
  }
  .academy-project-hero--split .academy-project-hero__media{
    max-width: 420px;
  }
}
/* =======================================================
   OVERRIDE DEFINITIVO: Project hero split (NO overlay)
   Mettilo IN FONDO al file per sovrascrivere le vecchie regole
   ======================================================= */

.academy-project-hero.academy-project-hero--split{
  display: grid !important;
  grid-template-columns: 40% 60% !important;
  gap: 22px !important;
  align-items: start !important;
  padding: 16px !important;
  border: 1px solid #eee !important;
  background: #fff !important;
  margin: 14px 0 22px !important;
  position: relative !important; /* reset */
	max-width: 1100px !important;
margin-left: auto !important;
margin-right: auto !important;
}
.academy-project-hero.academy-project-hero--split .academy-project-hero__media img{
  aspect-ratio: 4 / 5 !important;
  height: auto !important;
}

/* MEDIA a sinistra */
.academy-project-hero.academy-project-hero--split .academy-project-hero__media{
  border: 1px solid #eee !important;
  background: #fff !important;
  overflow: hidden !important;
}

.academy-project-hero.academy-project-hero--split .academy-project-hero__media img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
}

/* CONTENUTO a destra: reset totale overlay */
.academy-project-hero.academy-project-hero--split .academy-project-hero__content{
  position: static !important;
  inset: auto !important;
  padding: 4px 0 !important;
  background: transparent !important;
  color: #111 !important;
}

.academy-project-hero.academy-project-hero--split .academy-project-hero__title{
  margin: 0 0 8px !important;
  font-size: 36px !important;
  line-height: 1.1 !important;
  color: #111 !important;
  text-shadow: none !important;
}

.academy-project-hero.academy-project-hero--split .academy-project-hero__author{
  font-size: 14px !important;
  opacity: .8 !important;
  margin: 0 0 12px !important;
  color: #111 !important;
}

.academy-project-hero.academy-project-hero--split .academy-project-hero__author a{
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0,0,0,.18) !important;
}

.academy-project-hero.academy-project-hero--split .academy-project-hero__desc{
  line-height: 1.65 !important;
  opacity: .92 !important;
  max-width: 860px !important;
}

/* Responsive */
@media (max-width: 980px){
  .academy-project-hero.academy-project-hero--split{
    grid-template-columns: 1fr !important;
  }
  .academy-project-hero.academy-project-hero--split .academy-project-hero__media{
    max-width: 420px !important;
  }
}