/* Regole del nuovo sito, caricate dopo ag.css */

/* Griglia di tessere (home e /progetti): quadrati senza JavaScript */
.body-content .column { opacity: 1; aspect-ratio: 1 / 1; }
.body-content .column:hover .mask { opacity: 1; }
.body-content .column:hover .mask-detail-title { top: 20px; }
.body-content .column:hover .mask-detail-subtitle { bottom: 20px; }
.tile-link { display: block; height: 100%; }
.pic-static:hover { cursor: default; }

/* Placeholder basato sul logo, per i progetti senza foto */
.column .pic.pic-placeholder {
  background-color: #fff;
  background-size: 80% auto;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px dotted #d9d9d9;
}
.pic-placeholder .ph-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px; text-align: center; font-size: .8rem; color: rgba(0, 0, 0, .55);
}
.pic-placeholder .ph-year { display: block; margin-bottom: 4px; color: rgba(0, 0, 0, .4); }
.pic-placeholder .ph-title {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
/* Pagina Progetti */
.progetti-head { margin: 40px 0 20px; padding: 0 40px; }
.progetti-head h1 { font-size: 2rem; margin-bottom: 12px; }
.filtri { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.filtri a { color: rgba(0, 0, 0, .5); font-size: .95rem; text-decoration: none; }
.filtri a:hover { color: rgba(0, 0, 0, .9); }
.filtri a.active { color: #000; }
.nessun-progetto { padding: 40px; color: rgba(0, 0, 0, .5); }
.paginazione { text-align: center; margin: 40px 0 10px; }
.paginazione a, .paginazione span { display: inline-block; min-width: 34px; padding: 6px 8px; color: rgba(0, 0, 0, .5); text-decoration: none; }
.paginazione a:hover { color: #000; }
.paginazione .current { color: #000; border-bottom: 1px solid #000; }
@media (max-width: 575px) { .progetti-head { padding: 0 20px; } }

/* Pagina del singolo progetto */
.progetto { padding: 0 40px; margin: 40px 0 20px; }
.progetto .crumbs { font-size: .9rem; color: rgba(0, 0, 0, .5); margin-bottom: 28px; }
.progetto .crumbs a { color: rgba(0, 0, 0, .5); text-decoration: none; }
.progetto .crumbs a:hover { color: #000; }
.progetto-testo .anno { color: rgba(0, 0, 0, .45); margin-bottom: 6px; }
.progetto-testo h1 { font-size: 1.7rem; line-height: 1.25; margin-bottom: 16px; }
.progetto-testo .descrizione { color: rgba(0, 0, 0, .7); }
.progetto-testo .scheda { margin-top: 20px; padding-top: 16px; border-top: 1px dotted #d9d9d9; font-size: .95rem; }
.progetto-foto figure.main { margin: 0 0 14px; }
.progetto-foto figure.main img { max-width: 100%; max-height: 72vh; width: auto; height: auto; display: block; margin: 0 auto; }
.progetto-foto figcaption { text-align: center; font-size: .85rem; color: rgba(0, 0, 0, .5); margin-top: 8px; min-height: 1em; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.thumbs .thumb { display: block; width: 84px; height: 64px; opacity: .55; border-bottom: 2px solid transparent; transition: opacity .25s; }
.thumbs .thumb:hover, .thumbs .thumb.active { opacity: 1; }
.thumbs .thumb.active { border-bottom-color: #000; }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.progetto-nav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px dotted #f2f2f2; }
.progetto-nav a { color: rgba(0, 0, 0, .5); text-decoration: none; font-size: .9rem; }
.progetto-nav a:hover { color: #000; }
.progetto-nav .next { margin-left: auto; }
@media (max-width: 991px) { .progetto { padding: 0 20px; } .progetto-foto { margin-top: 24px; } }
/* Form contatti */
.contatti-form { max-width: 760px; margin-bottom: 40px; }
.contatti-form label { font-size: .9rem; color: rgba(0, 0, 0, .6); }
.contatti-form .form-control { border-radius: 0; border-color: #ddd; }
.btn-invia { background: #323232; color: #fff; border-radius: 0; padding: 8px 28px; letter-spacing: .1rem; }
.btn-invia:hover { background: #000; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
