﻿/* iterfacioNET — pagine delle aree protette (AreaProtetta.aspx) e delle specie (Specie.aspx) */

body {
    background-color: #f5f5f5;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.navbar-modern {
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid #edebe9;
}

.navbar-brand img { height: 44px; }

.area-hero {
    background: linear-gradient(135deg, #eaf6ee 0%, #f4f9fd 100%);
    border-bottom: 1px solid #e3eee6;
}

.area-panel {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 20px 22px;
}

#mappaArea {
    height: 380px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.specie-lista { columns: 2 260px; column-gap: 28px; padding-left: 1.1rem; }
.specie-lista li { break-inside: avoid; margin-bottom: 4px; }

.badge-soft {
    background: #eef5f0;
    color: #1f5e3a;
    font-weight: 500;
    border: 1px solid #d6eadc;
}

.badge-endemica { background: #fff4d6; color: #7a5800; border: 1px solid #f0dc9c; font-weight: 500; }

details > summary { cursor: pointer; }

/* card delle foto: tutte uguali, immagine intera (niente tagli) su sfondo neutro */
.foto-specie { overflow: hidden; border-color: #e6ece8; }
.foto-specie-img {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f4f2;
}
/* posizione assoluta: la foto non può allungare il riquadro 4:3 */
.foto-specie-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.foto-specie:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.foto-credito { font-size: 10.5px; color: #6c757d; line-height: 1.3; word-break: break-word; }

/* pagina della specie */
.specie-foto-grande {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f4f2;
    border-radius: 10px;
    overflow: hidden;
}
.specie-foto-grande img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.classificazione dt { font-weight: 500; color: #6c757d; font-size: 0.85rem; }
.classificazione dd { margin-bottom: 0.4rem; }

.testo-wikipedia p { line-height: 1.65; }
.testo-wikipedia h2 { margin-top: 1.4rem; }
.testo-wikipedia h3 { margin-top: 1rem; }

.nota-licenza {
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

@media (max-width: 768px) {
    #mappaArea { height: 280px; }
    .area-panel { padding: 16px; }
}
