/* ============================================
   ARTICLES — Archive & Single
   Voci di Sicurezza | CGIL Toscana
   Stile dark premium senza immagini
   ============================================ */


/* ============================================
   ARCHIVIO — HERO
   ============================================ */

.articles-hero {
    position: relative;
    padding: calc(var(--space-4xl) + 80px) 0 var(--space-3xl);
    overflow: hidden;
    background: var(--bg-primary);
}

.articles-hero__bg-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 54, 75, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 6s ease-in-out infinite;
}

.articles-hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 80% 20%, black 0%, transparent 70%);
}

.articles-hero__inner {
    position: relative;
    z-index: 1;
}

.articles-hero__content {
    max-width: 700px;
}

.articles-hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

.articles-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: var(--fw-black);
    color: var(--text-primary);
    line-height: 0.95;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.articles-hero__title em {
    font-style: italic;
    color: var(--accent);
}

.articles-hero__desc {
    font-size: var(--text-md);
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: var(--space-xl);
    line-height: var(--leading-relaxed);
}

.articles-hero__source-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.articles-hero__source-link:hover {
    color: var(--accent-hover);
}

.articles-hero__stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.articles-hero__stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.articles-hero__stat strong {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--fw-black);
    color: var(--text-primary);
}

.articles-hero__stat span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.articles-hero__stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

.articles-hero__scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
}

.articles-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {

    0%,
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}


/* ============================================
   ARTICLES GRID
   ============================================ */

.articles-section {
    padding-top: var(--space-xl);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Prima card featured: occupa 2 colonne */
    .articles-grid .article-card--featured {
        grid-column: span 2;
    }

    .articles-grid .article-card--featured .article-card__visual {
        aspect-ratio: 16 / 7;
    }

    .articles-grid .article-card--featured .article-card__title {
        font-size: var(--text-2xl);
    }

    .articles-grid .article-card--featured .article-card__visual-icon {
        font-size: 80px;
    }
}

@media (min-width: 1280px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}


/* ============================================
   ARTICLE CARD
   ============================================ */

.article-card {
    --card-accent: var(--accent);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--card-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 0 1px var(--card-accent);
}

/* Visual placeholder (invece dell'immagine) */
.article-card__visual {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}

.article-card__visual-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--card-accent) 20%, var(--bg-elevated)) 0%,
            var(--bg-elevated) 60%,
            var(--bg-card) 100%);
    transition: opacity var(--transition-base);
}

.article-card:hover .article-card__visual-bg {
    opacity: 0.85;
}

/* Pattern geometrico decorativo */
.article-card__visual-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.article-card__visual-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
    opacity: 0.15;
}

.article-card__visual-line:nth-child(1) {
    top: 30%;
    left: 0;
    right: 0;
    opacity: 0.2;
}

.article-card__visual-line:nth-child(2) {
    top: 55%;
    left: 10%;
    right: 5%;
    opacity: 0.12;
}

.article-card__visual-line:nth-child(3) {
    top: 75%;
    left: 0;
    right: 15%;
    opacity: 0.08;
}

/* Icona centrale grande */
.article-card__visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .5));
    transition: transform var(--transition-base);
    z-index: 2;
}

.article-card:hover .article-card__visual-icon {
    transform: translate(-50%, -55%) scale(1.1);
}

/* Overlay gradient (in basso) */
.article-card__visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Badge categoria */
.article-card__visual-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--card-accent);
    color: white;
    font-size: 10px;
    font-weight: var(--fw-bold);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 3;
}

/* Badge "In evidenza" */
.article-card__featured-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 10px;
    font-weight: var(--fw-bold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Body della card */
.article-card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.article-card__meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.article-card__date,
.article-card__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    line-height: var(--leading-snug);
    margin: 0;
}

.article-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__title a:hover {
    color: var(--card-accent);
}

.article-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    gap: var(--space-xs);
}

.article-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--card-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.article-card__cta svg {
    transition: transform var(--transition-fast);
}

.article-card__cta:hover {
    color: var(--accent-hover);
}

.article-card__cta:hover svg {
    transform: translateX(3px);
}

.article-card__source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    text-decoration: none;
}

.article-card__source:hover {
    opacity: 1;
    color: var(--text-secondary);
}


/* ============================================
   PAGINAZIONE ARTICOLI
   ============================================ */

.articles-pagination {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.articles-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.articles-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.articles-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}


/* ============================================
   EMPTY STATE
   ============================================ */

.articles-empty {
    text-align: center;
    padding: var(--space-4xl) var(--space-md);
}

.articles-empty__icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
}

.articles-empty h2 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.articles-empty p {
    color: var(--text-muted);
    max-width: 400px;
    margin-inline: auto;
}


/* ============================================
   SINGLE — HERO
   ============================================ */

.single-hero {
    --article-accent: var(--accent);
    position: relative;
    padding: calc(var(--space-4xl) + 80px) 0 var(--space-2xl);
    overflow: hidden;
    background: var(--bg-primary);
}

.single-hero__bg-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, color-mix(in srgb, var(--article-accent) 15%, transparent) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}

.single-hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 65%);
}

.single-hero .container {
    position: relative;
    z-index: 1;
}

.single-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-top: var(--space-lg);
}

@media (min-width: 1024px) {
    .single-hero__inner {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Content */
.single-hero__content {
    min-width: 0;
}

.single-hero__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--article-accent);
    margin-bottom: var(--space-md);
}

.single-hero__cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--article-accent);
    animation: pulse 2s infinite;
}

.single-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 8vw, 3rem);
    font-weight: var(--fw-black);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.single-hero__excerpt {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.single-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.single-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.single-hero__meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.single-hero__source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.single-hero__source-link:hover {
    border-color: var(--article-accent);
    color: var(--article-accent);
    background: color-mix(in srgb, var(--article-accent) 10%, transparent);
}

/* Visual placeholder */
.single-hero__visual {
    display: none;
}

@media (min-width: 1024px) {
    .single-hero__visual {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.single-hero__visual-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 60px color-mix(in srgb, var(--article-accent) 15%, transparent);
}

.single-hero__visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--article-accent) 20%, var(--bg-card)) 0%,
            var(--bg-card) 100%);
}

.single-hero__visual-icon {
    position: relative;
    font-size: 100px;
    z-index: 2;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.single-hero__visual-pattern {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    pointer-events: none;
    z-index: 1;
}

.single-hero__visual-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--article-accent);
    opacity: 0.2;
    align-self: center;
    justify-self: center;
}

.single-hero__visual-lines {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.single-hero__visual-lines div {
    height: 3px;
    background: linear-gradient(90deg, var(--article-accent), transparent);
    border-radius: 2px;
    opacity: 0.3;
}

.single-hero__visual-lines div:nth-child(2) {
    opacity: 0.2;
    margin-right: 30%;
}

.single-hero__visual-lines div:nth-child(3) {
    opacity: 0.12;
    margin-right: 55%;
}

.single-hero__visual-lines div:nth-child(4) {
    opacity: 0.06;
    margin-right: 70%;
}

.single-hero__visual-label {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--article-accent);
    background: color-mix(in srgb, var(--article-accent) 12%, transparent);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 3;
}


/* ============================================
   SINGLE — LAYOUT (content + sidebar)
   ============================================ */

.single-layout {
    padding-block: var(--space-2xl);
}

.single-layout__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    position: relative;
}

@media (min-width: 1024px) {
    .single-layout__inner {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }
}


/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-elevated);
    z-index: 9999;
    pointer-events: none;
}

.reading-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #FF6B6B 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}


/* ============================================
   SINGLE — CONTENT
   ============================================ */

.single-content {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden; /* Sicurezza extra */
}

.single-content__intro-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .single-content__intro-bar {
        padding: var(--space-sm) var(--space-md);
        gap: 10px;
    }
}

.single-content__intro-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.single-content__intro-label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.single-content__intro-source {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

/* Corpo del testo */
.article-body {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0; /* Fix per flex/grid overflow */
}

.article-body p {
    margin-bottom: var(--space-md);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    scroll-margin-top: 100px;
}

.article-body h2 {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-subtle);
}

.article-body h3 {
    font-size: var(--text-xl);
}

.article-body h4 {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.article-body a:hover {
    color: var(--accent-hover);
}

.article-body ul,
.article-body ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
    list-style: revert;
}

.article-body li {
    margin-bottom: var(--space-xs);
    line-height: var(--leading-normal);
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xl) 0;
    background: var(--bg-surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body strong,
.article-body b {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
}

.article-body img {
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
    max-width: 100%;
    height: auto;
}

.article-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--text-sm);
}

.article-body table th,
.article-body table td {
    padding: var(--space-sm);
    border: 1px solid var(--border-light);
    text-align: left;
}

.article-body table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
}

.article-body table tr:nth-child(even) {
    background: var(--bg-surface);
}

/* Tags */
.single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.single-tags__label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--fw-semibold);
}

/* Fonte originale box */
.single-source-box {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    align-items: flex-start;
}

.single-source-box__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-subtle);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-source-box__title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.single-source-box__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.single-source-box__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.single-source-box__link:hover {
    color: var(--accent-hover);
}

/* Navigazione prev/next */
.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.single-nav__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.single-nav__item:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.single-nav__item--next {
    justify-content: flex-end;
}

.single-nav__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-nav__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.single-nav__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: var(--fw-bold);
}

.single-nav__title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================
   SINGLE — SIDEBAR
   ============================================ */

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 1024px) {
    .single-sidebar {
        position: sticky;
        top: 100px;
    }
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
}

.sidebar-widget__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-widget__title svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* TOC */
.sidebar-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-toc__empty {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
}

.toc-link {
    display: block;
    padding: 6px 10px;
    font-size: var(--text-sm);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toc-link:hover {
    color: var(--accent);
    background: var(--accent-subtle);
    border-left-color: var(--accent);
}

.toc-link--h3 {
    padding-left: 20px;
    font-size: var(--text-xs);
}

.toc-link--h4 {
    padding-left: 30px;
    font-size: var(--text-xs);
    opacity: 0.7;
}

/* Info list */
.sidebar-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-info-list__key {
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

.sidebar-info-list__val {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
    text-align: right;
}

.sidebar-info-list__val a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sidebar-info-list__val a:hover {
    color: var(--accent-hover);
}

/* Condividi */
.sidebar-share {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sidebar-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    text-align: left;
}

.sidebar-share__btn--linkedin {
    background: #0077B5;
}

.sidebar-share__btn--linkedin:hover {
    background: #005885;
    color: white;
}

.sidebar-share__btn--whatsapp {
    background: #25D366;
}

.sidebar-share__btn--whatsapp:hover {
    background: #1aad52;
    color: white;
}

.sidebar-share__btn--copy {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.sidebar-share__btn--copy:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Back link */
.sidebar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: var(--space-xs) 0;
}

.sidebar-back-link:hover {
    color: var(--accent);
}


/* ============================================
   CORRELATI
   ============================================ */

.related-articles {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.articles-grid--related {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .articles-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .articles-grid--related {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(232, 54, 75, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(232, 54, 75, 0);
    }
}

/* Fade in all'ingresso degli articoli */
.article-card {
    animation: card-fade-in 0.4s ease both;
}

.articles-grid .article-card:nth-child(1) {
    animation-delay: 0.05s;
}

.articles-grid .article-card:nth-child(2) {
    animation-delay: 0.10s;
}

.articles-grid .article-card:nth-child(3) {
    animation-delay: 0.15s;
}

.articles-grid .article-card:nth-child(4) {
    animation-delay: 0.20s;
}

.articles-grid .article-card:nth-child(5) {
    animation-delay: 0.25s;
}

.articles-grid .article-card:nth-child(6) {
    animation-delay: 0.30s;
}

.articles-grid .article-card:nth-child(7) {
    animation-delay: 0.35s;
}

.articles-grid .article-card:nth-child(8) {
    animation-delay: 0.40s;
}

.articles-grid .article-card:nth-child(9) {
    animation-delay: 0.45s;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   ARCH — HERO CINEMATOGRAFICO
   ============================================================ */

.arch-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
    padding-top: 80px;
    /* altezza header */
}

/* --- Sfondo multi-layer --- */
.arch-hero__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.arch-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.arch-hero__orb--1 {
    width: 700px;
    height: 700px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(232, 54, 75, 0.18) 0%, transparent 70%);
    animation: orb-float 12s ease-in-out infinite;
}

.arch-hero__orb--2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -80px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    animation: orb-float 16s ease-in-out infinite reverse;
}

.arch-hero__orb--3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    animation: orb-float 20s ease-in-out infinite 4s;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.97);
    }
}

/* Rumore visivo sottile */
.arch-hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.4;
}

/* Griglia di sfondo */
.arch-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, black 10%, transparent 80%);
}

/* --- Container hero --- */
.arch-hero__container {
    position: relative;
    z-index: 1;
    padding-top: var(--space-2xl);
    padding-bottom: calc(var(--space-2xl) + 60px);
}

/* Breadcrumb */
.arch-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
}

.arch-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.arch-breadcrumb a:hover {
    color: var(--accent);
}

.arch-breadcrumb span[aria-current] {
    color: var(--text-secondary);
}

/* --- Body hero --- */
.arch-hero__body {
    max-width: 720px;
}

/* Kicker */
.arch-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.arch-hero__kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 54, 75, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .single-hero {
        padding: 100px 0 var(--space-xl);
    }
    .arch-hero {
        padding-top: 100px;
        min-height: auto;
    }
    .single-hero__inner {
        gap: var(--space-lg);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(232, 54, 75, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(232, 54, 75, 0.0);
    }
}

.arch-hero__kicker-sep {
    color: var(--border-light);
}

/* Titolo hero */
.arch-hero__title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.arch-hero__title-line {
    display: block;
}

.arch-hero__title-line--1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    color: var(--text-primary);
    animation: slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.arch-hero__title-line--2 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--text-secondary);
    animation: slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.arch-hero__title em {
    font-style: italic;
    color: var(--accent);
    position: relative;
}

/* Underline decorativa sotto "Lavoro" */
.arch-hero__title em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: underline-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    transform-origin: left;
}

@keyframes underline-grow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sottotitolo */
.arch-hero__subtitle {
    font-size: var(--text-md);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    max-width: 550px;
    margin-bottom: var(--space-xl);
    animation: slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.arch-hero__subtitle a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.arch-hero__subtitle a:hover {
    color: var(--accent-hover);
}

/* Counter */
.arch-hero__counters {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    animation: slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.arch-hero__counter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arch-hero__counter-num {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--fw-black);
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.arch-hero__counter-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arch-hero__counter-divider {
    width: 1px;
    height: 44px;
    background: var(--border-subtle);
    align-self: center;
}

/* Scroll indicator */
.arch-hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--section-px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.5;
}

.arch-hero__scroll-track {
    width: 40px;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.arch-hero__scroll-thumb {
    height: 100%;
    width: 50%;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-thumb 2s ease-in-out infinite;
}

@keyframes scroll-thumb {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

/* --- Decorazione a destra --- */
.arch-hero__deco {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 1;
}

@media (min-width: 1200px) {
    .arch-hero__deco {
        display: flex;
    }
}

.arch-hero__deco-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.arch-hero__deco-card--1 {
    animation: deco-float 6s ease-in-out infinite;
    border-color: rgba(232, 54, 75, 0.2);
}

.arch-hero__deco-card--2 {
    animation: deco-float 6s ease-in-out infinite 2s;
    border-color: rgba(124, 58, 237, 0.2);
    margin-left: var(--space-lg);
}

.arch-hero__deco-card--3 {
    animation: deco-float 6s ease-in-out infinite 4s;
    border-color: rgba(14, 165, 233, 0.2);
}

@keyframes deco-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.arch-hero__deco-icon {
    font-size: 28px;
}

.arch-hero__deco-bar {
    height: 4px;
    background: var(--border-subtle);
    border-radius: 4px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.arch-hero__deco-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: var(--gradient-accent);
    border-radius: 4px;
}

.arch-hero__deco-card--2 .arch-hero__deco-bar::after {
    width: 60%;
    background: linear-gradient(90deg, #7C3AED, #A78BFA);
}

.arch-hero__deco-card--3 .arch-hero__deco-bar::after {
    width: 45%;
    background: linear-gradient(90deg, #0EA5E9, #38BDF8);
}


/* ============================================================
   ARCH — SECTION HEAD
   ============================================================ */

.arch-articles {
    padding-block: var(--space-2xl) var(--space-3xl);
    background: var(--bg-primary);
}

.arch-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.arch-section-head__count {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

.arch-search-form {
    display: flex;
    align-items: center;
}

.arch-search-field {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0 var(--space-sm);
    transition: all var(--transition-base);
    min-width: 200px;
}

.arch-search-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 16px rgba(0,0,0,0.2);
    min-width: 260px;
}

.arch-search-icon {
    color: var(--text-muted);
    margin-right: 8px;
    flex-shrink: 0;
    pointer-events: none;
}

.arch-search-field input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 0;
    font-size: var(--text-sm);
    width: 100%;
    outline: none !important;
}

.arch-search-clear {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 4px;
    margin-left: 4px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.arch-search-clear:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}

@media (max-width: 640px) {
    .arch-search-field {
        min-width: none;
        width: 100%;
    }
    .arch-search-field:focus-within {
        min-width: none;
    }
}


/* ============================================================
   ARCH — GRID EDITORIALE
   ============================================================ */

.arch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .arch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .arch-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}


/* ============================================================
   ARCH — CARD
   ============================================================ */

.arch-card {
    --c: var(--accent);
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    animation: arch-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

/* Staggered animation */
.arch-grid .arch-card:nth-child(1) {
    animation-delay: 0.08s;
}

.arch-grid .arch-card:nth-child(2) {
    animation-delay: 0.14s;
}

.arch-grid .arch-card:nth-child(3) {
    animation-delay: 0.20s;
}

.arch-grid .arch-card:nth-child(4) {
    animation-delay: 0.26s;
}

.arch-grid .arch-card:nth-child(5) {
    animation-delay: 0.32s;
}

.arch-grid .arch-card:nth-child(6) {
    animation-delay: 0.38s;
}

.arch-grid .arch-card:nth-child(7) {
    animation-delay: 0.44s;
}

.arch-grid .arch-card:nth-child(8) {
    animation-delay: 0.50s;
}

.arch-grid .arch-card:nth-child(9) {
    animation-delay: 0.56s;
}

@keyframes arch-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.arch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--c);
    border-color: var(--c);
}

/* --- Area visiva (placeholder pattern) --- */
.arch-card__visual {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: color-mix(in srgb, var(--c) 12%, var(--bg-elevated));
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.arch-card--hero .arch-card__visual {
    aspect-ratio: auto;
    flex: 1;
    min-height: 280px;
}

/* Pattern SVG */
.arch-card__pattern-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.arch-card__pattern-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay degradé (basso) */
.arch-card__visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, var(--bg-card) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--c) 8%, transparent) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--transition-base);
}

.arch-card:hover .arch-card__visual-overlay {
    background:
        linear-gradient(180deg, transparent 20%, var(--bg-card) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, transparent) 0%, transparent 60%);
}

/* Icona emoji rimossa */

/* Numero indice (angolo in basso a destra) */
.arch-card__index {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--fw-black);
    color: var(--c);
    opacity: 0.1;
    line-height: 1;
    z-index: 2;
    letter-spacing: -0.04em;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.arch-card:hover .arch-card__index {
    opacity: 0.18;
}

/* Topic pill in alto */
.arch-card__topic {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: color-mix(in srgb, var(--c) 90%, black);
    color: white;
    font-size: 10px;
    font-weight: var(--fw-bold);
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* --- Body testuale --- */
.arch-card__body {
    padding: var(--space-md) var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.arch-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

.arch-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.arch-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.arch-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.arch-card__title a:hover {
    color: var(--c);
}

.arch-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Footer */
.arch-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    gap: 8px;
}

/* CTA */
.arch-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: var(--c);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.arch-card__cta svg {
    transition: transform var(--transition-fast);
}

.arch-card__cta:hover {
    gap: 10px;
    color: var(--c);
}

.arch-card__cta:hover svg {
    transform: translateX(4px);
}

/* Link fonte */
.arch-card__source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.arch-card__source-link:hover {
    opacity: 1;
    color: var(--text-secondary);
}


/* ============================================================
   ARCH — PAGINAZIONE
   ============================================================ */

.arch-pagination {
    margin-top: var(--space-3xl);
    display: flex;
    justify-content: center;
}

.arch-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.arch-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.arch-pagination .page-numbers.prev,
.arch-pagination .page-numbers.next {
    width: auto;
    padding-inline: var(--space-md);
    border-radius: var(--radius-full);
    gap: 6px;
}

.arch-pagination .page-numbers:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    color: white;
}

.arch-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.arch-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    pointer-events: none;
    font-size: var(--text-base);
    color: var(--text-muted);
}


/* ============================================================
   ARCH — EMPTY STATE
   ============================================================ */

.arch-empty {
    text-align: center;
    padding: var(--space-4xl) var(--space-md);
}

.arch-empty__visual {
    font-size: 80px;
    margin-bottom: var(--space-lg);
    filter: grayscale(0.3);
}

.arch-empty h2 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.arch-empty p {
    font-size: var(--text-md);
    color: var(--text-muted);
    max-width: 440px;
    margin-inline: auto;
    line-height: var(--leading-relaxed);
}