/* Tema pubblico: default */
:root {
    --bg: #36393f;
    --card: #2f3136;
    --accent: #5865F2;
    --text: #dcddde;
    --muted: #b9bbbe;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 2rem;
}

.card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #77777763;
}
hr {
    border: none;
    border-top: 1px solid #77777763; /* cambia colore e spessore */
  }
.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.card-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.scheda-profilo-img {
    width: 150px;
    object-fit: cover;
    margin-bottom: 0.25rem;
}

.card-header h1 {
    margin: 0;
}

h1 {
    font-size: 1.5rem;
}

.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
    text-align: center;
    padding: 1rem 0;
}

.field {
    margin-bottom: 0.75rem;
    text-align: center;
}

.field-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.field-value {
    margin-top: 0.2rem;
    font-weight: bold;
}
.field-value-2 {
    margin-top: 0.2rem;
    padding: 10px;
    background-color: var(--bg);
}

a.link {
    color: var(--accent);
    text-decoration: none;
}

a.link:hover {
    text-decoration: underline;
}

.socials {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.socials a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
}

.socials a:hover {
    opacity: 0.9;
}

.card-header .profile-icon {
    font-size: 2.5rem;
    color: var(--accent);
    display: inline-block;
}

@media (max-width: 420px) {
    .fields-grid {
        grid-template-columns: 1fr;
    }
}

/* File (immagini e PDF) sulla scheda pubblica */
.scheda-files { margin-top: 1rem; }
.scheda-files .field-label { color: var(--muted); font-size: 0.9rem; }

.scheda-files-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}
.scheda-file-thumb-link {
    /* flex: 1 1 120px;
    min-width: 0; */
    display: block;
    overflow: hidden;
}
.scheda-file-thumb {
    max-width: 150px;
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .scheda-files-images { flex-wrap: nowrap; justify-content: center; }
    /* .scheda-file-thumb-link { flex: 1 1 0%; min-width: 0; } */
}
.scheda-file-pdf-link { display: inline-block; margin-right: 1rem; margin-bottom: 0.25rem; color: var(--accent);    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500; }
.scheda-file-pdf-link:hover { text-decoration: underline; }
.scheda-file-pdf-link + .scheda-file-pdf-link { margin-left: 0; }
