/* ==========================================================================
   PSD API Bridge - Frontend Styles
   Colori dal sito psd.sm:
     Blu primario:   #2071B7 (titoli h2)
     Blu secondario: #0699D6 (testo accento)
     Blu link:       #1E73BE
     Giallo/oro:     #FFD207
     Sfondo chiaro:  #D9EDF8
     Sfondo card:    #A2CAED (badge)
     Scuro:          #061522
     Testo body:     #333333
   Font dal sito:
     Titoli:    "Sofia Sans Condensed", sans-serif (uppercase, 700)
     Testo:     "Jost", sans-serif
     Accento:   "Montserrat", sans-serif
   ========================================================================== */

/* --- Griglia Notizie --- */

.psd-notizie-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    margin: 32px 0;
    width: 100%;
}

@media (max-width: 991px) {
    .psd-notizie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .psd-notizie-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.psd-notizia-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psd-notizia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.psd-notizia-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.psd-notizia-body {
    padding: 16px 20px 20px;
}

.psd-notizia-cat {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2071B7;
    background: #D9EDF8;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.psd-notizia-title {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.psd-notizia-title a {
    color: #061522;
    text-decoration: none;
}

.psd-notizia-title a:hover {
    color: #2071B7;
}

.psd-notizia-excerpt {
    font-family: "Jost", sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 10px;
}

.psd-notizia-date {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    color: #0699D6;
}

/* --- Lista Eventi --- */

.psd-eventi-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.psd-evento-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psd-evento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.psd-evento-date-badge {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    background: #2071B7;
    color: #fff;
    border-radius: 8px;
    padding: 10px 8px;
    font-family: "Sofia Sans Condensed", sans-serif;
}

.psd-evento-day {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.psd-evento-month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.psd-evento-body {
    flex: 1;
    min-width: 0;
}

.psd-evento-title {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 6px;
    line-height: 1.3;
}

.psd-evento-title a {
    color: #061522;
    text-decoration: none;
}

.psd-evento-title a:hover {
    color: #2071B7;
}

.psd-evento-location {
    font-family: "Jost", sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0 0 4px;
}

.psd-evento-location::before {
    content: "\1F4CD ";
}

.psd-evento-time {
    font-family: "Jost", sans-serif;
    font-size: 13px;
    color: #0699D6;
}

/* --- Prossimi Eventi (widget/sidebar) --- */

.psd-prossimi-eventi {
    list-style: none;
    padding: 0;
    margin: 0;
}

.psd-prossimo-evento {
    border-bottom: 1px solid #D9EDF8;
    padding: 12px 0;
}

.psd-prossimo-evento:last-child {
    border-bottom: none;
}

.psd-prossimo-evento a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    color: #061522;
}

.psd-prossimo-evento a:hover strong {
    color: #2071B7;
}

.psd-prossimo-evento strong {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.2s;
}

.psd-prossimo-evento span {
    font-family: "Jost", sans-serif;
    font-size: 13px;
    color: #0699D6;
}

.psd-prossimo-evento .psd-location {
    color: #333;
}

.psd-prossimo-evento .psd-location::before {
    content: "\1F4CD ";
}

/* --- Dettaglio Articolo --- */

.psd-articolo-detail {
    max-width: 800px;
    margin: 0 auto 40px;
}

.psd-articolo-hero img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
}

.psd-articolo-header {
    margin-bottom: 24px;
}

.psd-articolo-title {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 8px 0 12px;
    color: #2071B7;
}

.psd-articolo-date {
    font-family: "Jost", sans-serif;
    font-size: 14px;
    color: #0699D6;
}

.psd-articolo-fonte {
    font-family: "Jost", sans-serif;
    font-size: 13px;
    color: #333;
    margin-top: 8px;
}

.psd-articolo-fonte a {
    color: #1E73BE;
    text-decoration: none;
}

.psd-articolo-fonte a:hover {
    text-decoration: underline;
}

.psd-articolo-body {
    font-family: "Jost", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.psd-articolo-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* --- Dettaglio Evento --- */

.psd-evento-detail {
    max-width: 800px;
    margin: 0 auto 40px;
}

.psd-evento-hero img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
}

.psd-evento-detail-title {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #2071B7;
}

.psd-evento-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
    padding: 16px;
    background: #D9EDF8;
    border-radius: 8px;
    border-left: 4px solid #2071B7;
}

.psd-evento-meta-item {
    font-family: "Jost", sans-serif;
    font-size: 15px;
    color: #061522;
}

.psd-evento-meta-item strong {
    color: #2071B7;
}

.psd-evento-body {
    font-family: "Jost", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* --- Pagina Content --- */

.psd-pagina-content {
    font-family: "Jost", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.psd-pagina-content img {
    max-width: 100%;
    height: auto;
}

/* --- Paginazione --- */

.psd-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0;
    font-family: "Montserrat", sans-serif;
}

.psd-page-link,
.psd-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.psd-page-link {
    background: #D9EDF8;
    color: #2071B7;
}

.psd-page-link:hover {
    background: #2071B7;
    color: #fff;
}

.psd-page-current {
    background: #2071B7;
    color: #fff;
}

/* --- Stato vuoto --- */

.psd-empty {
    text-align: center;
    padding: 40px 20px;
    font-family: "Jost", sans-serif;
    color: #0699D6;
    font-size: 15px;
}
