/* =========================================================
   FaroLibero — Filosofia e pensiero
   Coerente con lo stack del sito: Quicksand, tema chiaro,
   accento blu, linguaggio visivo "Tailwind" (bordi sottili,
   angoli arrotondati, ombre leggere).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    --bg: #ffffff;
    --bg-subtle: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --accent: #2563eb;
    --accent-soft: #eff6ff;
    --accent-dark: #1d4ed8;

    --radius: 0.75rem;
    --measure: 720px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-subtle);
    color: var(--text);
    font-family: 'Quicksand', system-ui, sans-serif;
    font-weight: 500;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* -----------------------------------------------------------
   Header
   ----------------------------------------------------------- */

header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
}

header a {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* -----------------------------------------------------------
   Breadcrumb
   ----------------------------------------------------------- */

nav[aria-label='Breadcrumb'] {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

nav[aria-label='Breadcrumb'] a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}

nav[aria-label='Breadcrumb'] a:hover {
    color: var(--accent);
}

nav[aria-label='Breadcrumb'] span[aria-hidden='true'] {
    margin: 0 0.4em;
    color: var(--border);
}

nav[aria-label='Breadcrumb'] span:last-child {
    color: var(--text);
}

/* -----------------------------------------------------------
   Titolo categoria
   ----------------------------------------------------------- */

main > h1 {
    max-width: 860px;
    margin: 0.5rem auto 2rem;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* -----------------------------------------------------------
   Elenco articoli
   ----------------------------------------------------------- */

section[aria-label='Articoli della categoria'] {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem) 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

article {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

article:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px -6px rgba(37, 99, 235, 0.18);
}

article time {
    order: -1;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

article h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

article h2 a {
    transition: color 0.15s ease;
}
article h2 a:hover {
    color: var(--accent);
}

article p {
    margin: 0;
    max-width: var(--measure);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* -----------------------------------------------------------
   Responsivo
   ----------------------------------------------------------- */

@media (max-width: 480px) {
    article {
        padding: 1rem;
    }
}
