/**
 * AppliedTech Theme - Main Stylesheet
 * 
 * Organizzazione:
 * 1. Base/Reset
 * 2. Layout
 * 3. Components
 * 4. Category Colors
 * 5. Single Article
 * 6. Archives/Lists
 * 7. Utilities
 * 8. Animations
 */

/* ==========================================================================
   1. BASE / RESET
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(20, 184, 166, 0.2);
    color: #134e4a;
}

.dark ::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: white;
}

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */

.container-default {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-default {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-default {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.container-narrow {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-narrow {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ==========================================================================
   3. COMPONENTS
   ========================================================================== */

/* Links */
.link {
    color: #0d9488;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.link:hover {
    color: #0f766e;
}

.dark .link {
    color: #5eead4;
}

.dark .link:hover {
    color: #2dd4bf;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background-color: #0d9488;
    color: white;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #0f766e;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background-color: #f4f4f5;
    color: #18181b;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #e4e4e7;
}

.dark .btn-secondary {
    background-color: #27272a;
    color: white;
}

.dark .btn-secondary:hover {
    background-color: #3f3f46;
}

/* Form Inputs */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e4e4e7;
    background-color: white;
    color: #18181b;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.input::placeholder {
    color: #a1a1aa;
}

.input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.dark .input {
    background-color: #27272a;
    border-color: #3f3f46;
    color: white;
}

.dark .input::placeholder {
    color: #71717a;
}

.dark .input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Cards */
.card {
    background-color: white;
    border: 1px solid #f4f4f5;
    border-radius: 1rem;
    transition: all 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .card {
    background-color: #18181b;
    border-color: rgba(39, 39, 42, 0.5);
    box-shadow: none;
}

.card-hover {
    background-color: white;
    border: 1px solid #f4f4f5;
    border-radius: 1rem;
    transition: all 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #e4e4e7;
}

.dark .card-hover {
    background-color: #18181b;
    border-color: rgba(39, 39, 42, 0.5);
    box-shadow: none;
}

.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: #3f3f46;
}

/* Tags - uso :not(body) per evitare conflitto con body.tag nelle pagine archivio tag */
.tag:not(body) {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f0fdfa;
    color: #0f766e;
}

.dark .tag:not(body) {
    background-color: rgba(4, 47, 46, 0.5);
    color: #5eead4;
}

/* Prose/Content */
.prose-custom {
    color: #27272a;
    max-width: none;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
    font-weight: 700;
    color: #18181b;
}

.prose-custom a {
    color: #0d9488;
}

.prose-custom img {
    border-radius: 0.75rem;
}

.dark .prose-custom {
    color: #d4d4d8;
}

.dark .prose-custom h1,
.dark .prose-custom h2,
.dark .prose-custom h3,
.dark .prose-custom h4 {
    color: white;
}

.dark .prose-custom a {
    color: #5eead4;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   4. CATEGORY COLORS
   ========================================================================== */

/* ----- Applied AI (Viola/Purple) ----- */
.category-ai .category-blob-1,
.category-ai .single-blob-1 { background-color: #c4b5fd; }
.category-ai .category-blob-2,
.category-ai .single-blob-2 { background-color: #a78bfa; }
.category-ai .category-blob-3,
.category-ai .single-blob-3 { background-color: #8b5cf6; }

.category-ai .category-tag,
.category-ai .single-category-tag,
.article-category-category-ai .article-category-tag {
    background-color: #ede9fe;
    color: #6d28d9;
}

.dark .category-ai .category-tag,
.dark .category-ai .single-category-tag,
.dark .article-category-category-ai .article-category-tag {
    background-color: rgba(76, 29, 149, 0.3);
    color: #c4b5fd;
}

.category-ai .category-title,
.category-ai .single-article-title {
    color: #18181b;
}

.dark .category-ai .category-title,
.dark .category-ai .single-article-title {
    color: white;
}

.category-ai .category-icon { color: #8b5cf6; }

.article-category-category-ai .article-title-link {
    color: #18181b;
}

.dark .article-category-category-ai .article-title-link {
    color: white;
}

.article-category-category-ai .author-box-container {
    border-left-color: #8b5cf6;
}

.single-article-category-ai .author-box-container {
    border-left-color: #8b5cf6;
}

/* ----- Applied Tools (Blu/Blue) ----- */
.category-tools .category-blob-1,
.category-tools .single-blob-1 { background-color: #93c5fd; }
.category-tools .category-blob-2,
.category-tools .single-blob-2 { background-color: #60a5fa; }
.category-tools .category-blob-3,
.category-tools .single-blob-3 { background-color: #3b82f6; }

.category-tools .category-tag,
.category-tools .single-category-tag,
.article-category-category-tools .article-category-tag {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.dark .category-tools .category-tag,
.dark .category-tools .single-category-tag,
.dark .article-category-category-tools .article-category-tag {
    background-color: rgba(30, 58, 138, 0.3);
    color: #93c5fd;
}

.category-tools .category-title,
.category-tools .single-article-title {
    color: #18181b;
}

.dark .category-tools .category-title,
.dark .category-tools .single-article-title {
    color: white;
}

.category-tools .category-icon { color: #3b82f6; }

.article-category-category-tools .article-title-link {
    color: #18181b;
}

.dark .article-category-category-tools .article-title-link {
    color: white;
}

.article-category-category-tools .author-box-container {
    border-left-color: #3b82f6;
}

.single-article-category-tools .author-box-container {
    border-left-color: #3b82f6;
}

/* ----- Applied Workflow (Verde/Green) ----- */
.category-work .category-blob-1,
.category-work .single-blob-1 { background-color: #86efac; }
.category-work .category-blob-2,
.category-work .single-blob-2 { background-color: #4ade80; }
.category-work .category-blob-3,
.category-work .single-blob-3 { background-color: #22c55e; }

.category-work .category-tag,
.category-work .single-category-tag,
.article-category-category-work .article-category-tag {
    background-color: #dcfce7;
    color: #15803d;
}

.dark .category-work .category-tag,
.dark .category-work .single-category-tag,
.dark .article-category-category-work .article-category-tag {
    background-color: rgba(20, 83, 45, 0.3);
    color: #86efac;
}

.category-work .category-title,
.category-work .single-article-title {
    color: #18181b;
}

.dark .category-work .category-title,
.dark .category-work .single-article-title {
    color: white;
}

.category-work .category-icon { color: #22c55e; }

.article-category-category-work .article-title-link {
    color: #18181b;
}

.dark .article-category-category-work .article-title-link {
    color: white;
}

.article-category-category-work .author-box-container {
    border-left-color: #22c55e;
}

.single-article-category-work .author-box-container {
    border-left-color: #22c55e;
}

/* ----- Default (Teal/Brand) ----- */
.category-default .category-blob-1,
.category-default .single-blob-1 { background-color: #99f6e4; }
.category-default .category-blob-2,
.category-default .single-blob-2 { background-color: #5eead4; }
.category-default .category-blob-3,
.category-default .single-blob-3 { background-color: #14b8a6; }

.category-default .category-tag,
.category-default .single-category-tag,
.article-category-category-default .article-category-tag {
    background-color: #f0fdfa;
    color: #0f766e;
}

.dark .category-default .category-tag,
.dark .category-default .single-category-tag,
.dark .article-category-category-default .article-category-tag {
    background-color: rgba(4, 47, 46, 0.5);
    color: #5eead4;
}

.category-default .category-title,
.category-default .single-article-title {
    color: #18181b;
}

.dark .category-default .category-title,
.dark .category-default .single-article-title {
    color: white;
}

.category-default .category-icon { color: #14b8a6; }

.article-category-category-default .article-title-link {
    color: #18181b;
}

.dark .article-category-category-default .article-title-link {
    color: white;
}

.article-category-category-default .author-box-container {
    border-left-color: #14b8a6;
}

.single-article-category-default .author-box-container {
    border-left-color: #14b8a6;
}

/* ==========================================================================
   5. SINGLE ARTICLE
   ========================================================================== */

.single-article-header {
    background: linear-gradient(to bottom right, #fafafa, #f4f4f5);
}

.dark .single-article-header {
    background: linear-gradient(to bottom right, #09090b, #18181b);
}

.single-tag-link {
    background-color: #f4f4f5;
    color: #52525b;
}

.single-tag-link:hover {
    background-color: #e4e4e7;
    color: #18181b;
}

.dark .single-tag-link {
    background-color: #27272a;
    color: #a1a1aa;
}

.dark .single-tag-link:hover {
    background-color: #3f3f46;
    color: white;
}

/* Prose styles for article content */
.prose {
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}

.prose h3 {
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

.prose ul, .prose ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose blockquote {
    border-left: 4px solid #14b8a6;
    padding-left: 1em;
    font-style: italic;
    color: #52525b;
    margin: 1.5em 0;
}

.dark .prose blockquote {
    color: #a1a1aa;
    border-left-color: #5eead4;
}

.prose code {
    background-color: #f4f4f5;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.dark .prose code {
    background-color: #27272a;
}

.prose pre {
    background-color: #18181b;
    color: #e4e4e7;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: none;
}

/* Link interni negli articoli */
.prose a {
    color: #14b8a6;
    text-decoration: underline;
    text-decoration-color: rgba(20, 184, 166, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: #0f766e;
    text-decoration-color: rgba(20, 184, 166, 0.6);
}

.dark .prose a {
    color: #5eead4;
    text-decoration-color: rgba(94, 234, 212, 0.3);
}

.dark .prose a:hover {
    color: #99f6e4;
    text-decoration-color: rgba(94, 234, 212, 0.6);
}

/* Link interni - stile speciale */
.prose a.link-internal {
    position: relative;
    font-weight: 500;
    color: #0f766e;
    background: linear-gradient(120deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 184, 166, 0.3);
    transition: all 0.2s ease;
}

.prose a.link-internal:hover {
    background: linear-gradient(120deg, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.1) 100%);
    border-bottom-color: rgba(20, 184, 166, 0.5);
    transform: translateY(-1px);
}

.prose a.link-internal::after {
    content: "→";
    margin-left: 0.25rem;
    opacity: 0.6;
    font-size: 0.875em;
    transition: all 0.2s ease;
}

.prose a.link-internal:hover::after {
    opacity: 1;
    transform: translateX(2px);
}

.dark .prose a.link-internal {
    color: #5eead4;
    background: linear-gradient(120deg, rgba(94, 234, 212, 0.15) 0%, rgba(94, 234, 212, 0.08) 100%);
    border-bottom-color: rgba(94, 234, 212, 0.3);
}

.dark .prose a.link-internal:hover {
    background: linear-gradient(120deg, rgba(94, 234, 212, 0.2) 0%, rgba(94, 234, 212, 0.12) 100%);
    border-bottom-color: rgba(94, 234, 212, 0.5);
}

/* Link esterni - stile diverso */
.prose a.link-external {
    color: #52525b;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: rgba(82, 82, 91, 0.4);
}

.prose a.link-external:hover {
    color: #18181b;
    text-decoration-color: rgba(82, 82, 91, 0.6);
}

.dark .prose a.link-external {
    color: #a1a1aa;
    text-decoration-color: rgba(161, 161, 170, 0.4);
}

.dark .prose a.link-external:hover {
    color: #e4e4e7;
    text-decoration-color: rgba(161, 161, 170, 0.6);
}

.prose a.link-external::after {
    content: "↗";
    margin-left: 0.25rem;
    font-size: 0.75em;
    opacity: 0.5;
    vertical-align: super;
}

/* Paragrafo conclusione negli articoli digest */
.prose p.conclusione,
.prose p.conslusione {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-top: 3px solid #14b8a6;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem 1.5rem 3.5rem;
    margin: 2.5rem 0;
    font-weight: 500;
    font-size: 1.05em;
    line-height: 1.75;
    color: #18181b;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

.prose p.conclusione::before,
.prose p.conslusione::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2314b8a6' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.dark .prose p.conclusione,
.dark .prose p.conslusione {
    background: #18181b;
    border-color: #3f3f46;
    border-top-color: #5eead4;
    color: #e4e4e7;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.dark .prose p.conclusione::before,
.dark .prose p.conslusione::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235eead4' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E");
}

/* TL;DR Block */
.tldr-block {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-left: 4px solid #14b8a6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dark .tldr-block {
    background: linear-gradient(135deg, rgba(4, 47, 46, 0.5) 0%, rgba(6, 78, 59, 0.3) 100%);
    border-left-color: #5eead4;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.tldr-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tldr-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #14b8a6;
    flex-shrink: 0;
}

.dark .tldr-icon {
    color: #5eead4;
}

.tldr-label {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f766e;
}

.dark .tldr-label {
    color: #5eead4;
}

.tldr-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #18181b;
    margin: 0;
    font-weight: 500;
}

.dark .tldr-text {
    color: #e4e4e7;
}

/* Lista nel TL;DR */
.tldr-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.tldr-list li {
    padding: 0.25rem 0 0.25rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.tldr-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #14b8a6;
    font-weight: bold;
}

.dark .tldr-list li::before {
    color: #5eead4;
}

.tldr-list li.tldr-list-no-bullet {
    padding-left: 0;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.9;
}

.tldr-list li.tldr-list-no-bullet::before {
    display: none;
}

/* Category-specific bullet colors */
.single-article-category-ai .tldr-list li::before {
    color: #8b5cf6;
}

.dark .single-article-category-ai .tldr-list li::before {
    color: #a78bfa;
}

.single-article-category-tools .tldr-list li::before {
    color: #3b82f6;
}

.dark .single-article-category-tools .tldr-list li::before {
    color: #60a5fa;
}

.single-article-category-work .tldr-list li::before {
    color: #22c55e;
}

.dark .single-article-category-work .tldr-list li::before {
    color: #4ade80;
}

/* Category-specific TL;DR colors */
.single-article-category-ai .tldr-block {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-left-color: #8b5cf6;
}

.dark .single-article-category-ai .tldr-block {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.3) 0%, rgba(79, 70, 229, 0.2) 100%);
    border-left-color: #a78bfa;
}

.single-article-category-ai .tldr-icon {
    color: #8b5cf6;
}

.dark .single-article-category-ai .tldr-icon {
    color: #a78bfa;
}

.single-article-category-ai .tldr-label {
    color: #6d28d9;
}

.dark .single-article-category-ai .tldr-label {
    color: #a78bfa;
}

.single-article-category-tools .tldr-block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
}

.dark .single-article-category-tools .tldr-block {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-left-color: #60a5fa;
}

.single-article-category-tools .tldr-icon {
    color: #3b82f6;
}

.dark .single-article-category-tools .tldr-icon {
    color: #60a5fa;
}

.single-article-category-tools .tldr-label {
    color: #1e40af;
}

.dark .single-article-category-tools .tldr-label {
    color: #60a5fa;
}

.single-article-category-work .tldr-block {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
}

.dark .single-article-category-work .tldr-block {
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.3) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-left-color: #4ade80;
}

.single-article-category-work .tldr-icon {
    color: #22c55e;
}

.dark .single-article-category-work .tldr-icon {
    color: #4ade80;
}

.single-article-category-work .tldr-label {
    color: #15803d;
}

.dark .single-article-category-work .tldr-label {
    color: #4ade80;
}
    padding: 0;
}

.prose img {
    border-radius: 0.75rem;
    margin: 1.5em 0;
}

/* ==========================================================================
   6. ARCHIVES / LISTS
   ========================================================================== */

/* Category Header backgrounds */
.category-header {
    background: linear-gradient(to bottom right, #fafafa, #f4f4f5);
}

.dark .category-header {
    background: linear-gradient(to bottom right, #09090b, #18181b);
}

.category-header.category-ai {
    background: linear-gradient(to bottom right, #faf5ff, #f3e8ff);
}

.dark .category-header.category-ai {
    background: linear-gradient(to bottom right, #09090b, #1e1b4b);
}

.category-header.category-tools {
    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
}

.dark .category-header.category-tools {
    background: linear-gradient(to bottom right, #09090b, #172554);
}

.category-header.category-work {
    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
}

.dark .category-header.category-work {
    background: linear-gradient(to bottom right, #09090b, #14532d);
}

/* Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    background-color: white;
    border: 1px solid #e4e4e7;
    color: #52525b;
    transition: all 0.2s;
}

.nav-links .page-numbers:hover {
    background-color: #f4f4f5;
    color: #18181b;
}

.nav-links .page-numbers.current {
    background-color: #0d9488;
    border-color: #0d9488;
    color: white;
}

.dark .nav-links .page-numbers {
    background-color: #27272a;
    border-color: #3f3f46;
    color: #a1a1aa;
}

.dark .nav-links .page-numbers:hover {
    background-color: #3f3f46;
    color: white;
}

.dark .nav-links .page-numbers.current {
    background-color: #14b8a6;
    border-color: #14b8a6;
    color: white;
}

/* ==========================================================================
   7. UTILITIES
   ========================================================================== */

/* Grid pattern background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-grid-pattern-dark {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Keyboard styling */
kbd {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.75rem;
}

/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Search Modal */
#search-modal {
    animation: fadeIn 0.2s ease-out;
}

#search-modal > div > div > div {
    animation: slideDown 0.2s ease-out;
}

/* Newsletter Modal */
#newsletter-modal {
    animation: fadeIn 0.2s ease-out;
}

#newsletter-modal > div > div {
    animation: slideDown 0.3s ease-out;
}

/* Rotate for accordion */
.rotate-180 {
    transform: rotate(180deg);
}

/* ==========================================================================
   9. TURNSTILE WIDGET STYLING
   ========================================================================== */

/* Widget Turnstile - stile di default, nessuna personalizzazione */
/* Il widget usa lo stile nativo di Cloudflare */

