/* ============================================
   Core Matrix Edizioni - Design System
   ============================================ */

:root {
    --primary-bg: #151d40;
    --secondary-bg: #1f2750;
    --accent-bg: #2a3866;
    --dark-bg: #0f1425;
    --core-matrix-cyan: #00bcd4;
    --core-matrix-cyan-light: #4dd0e1;
    --core-matrix-cyan-dark: #00acc1;
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --text-muted: rgba(176, 196, 222, 0.7);
    --glass-bg: rgba(0, 188, 212, 0.05);
    --glass-border: rgba(0, 188, 212, 0.2);
    --shadow-light: rgba(0, 188, 212, 0.1);
    --shadow-medium: rgba(0, 188, 212, 0.2);
    --shadow-strong: rgba(0, 188, 212, 0.3);
    --core-matrix-gradient: linear-gradient(135deg, var(--core-matrix-cyan), var(--core-matrix-cyan-light));
    --bg-gradient: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--accent-bg) 100%);
    --gold: #d4a017;
    --gold-light: #f0c75e;
    --gold-gradient: linear-gradient(135deg, #d4a017, #f0c75e);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    overflow-x: hidden;
    min-height: 100vh;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Matrix Grid Background */
.matrix-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.02;
    background-image:
        linear-gradient(90deg, var(--core-matrix-cyan) 1px, transparent 1px),
        linear-gradient(180deg, var(--core-matrix-cyan) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: matrixShift 20s linear infinite;
}

@keyframes matrixShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(21, 29, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.3));
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--core-matrix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--core-matrix-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--core-matrix-cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-lang {
    display: flex;
    gap: 0.5rem;
}

.nav-lang button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-lang button.active,
.nav-lang button:hover {
    background: var(--core-matrix-gradient);
    color: white;
    border-color: var(--core-matrix-cyan);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 75%, var(--shadow-light) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, var(--shadow-medium) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--core-matrix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ============================================
   Salone del Libro - Hero Banner (top of page)
   ============================================ */
.salone-hero {
    padding: 3rem 0 4rem;
    position: relative;
    z-index: 2;
}

.salone-hero-card {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.12) 0%, rgba(0, 188, 212, 0.06) 50%, rgba(212, 160, 23, 0.08) 100%);
    border: 2px solid rgba(212, 160, 23, 0.4);
    border-radius: 25px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.salone-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.06), transparent, rgba(212, 160, 23, 0.04), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.salone-hero-logo {
    flex-shrink: 0;
    width: 200px;
    height: auto;
    position: relative;
    z-index: 2;
}

.salone-hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(212, 160, 23, 0.3));
}

.salone-hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.salone-hero-label {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--primary-bg);
    padding: 0.35rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.salone-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.salone-hero-dates {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.salone-hero-location,
.salone-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 188, 212, 0.12);
    border: 1px solid rgba(0, 188, 212, 0.35);
    border-radius: 12px;
    padding: 0.5rem 1.4rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.salone-location-badge {
    font-size: 1.1rem;
    padding: 0.6rem 1.8rem;
    margin-bottom: 2rem;
}

.location-pin {
    font-size: 1.15rem;
}

.location-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.location-code {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.1em;
}

.location-sep {
    color: rgba(255, 255, 255, 0.3);
}

.location-pad {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05em;
}

.salone-hero-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.salone-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: var(--primary-bg);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.salone-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
}

.salone-card-header {
    margin-bottom: 2rem;
}

.salone-card-logo {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 5px 20px rgba(212, 160, 23, 0.2));
}

.hero-isbn {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--core-matrix-cyan);
    background: rgba(0, 188, 212, 0.1);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-top: 2rem;
    border: 1px solid rgba(0, 188, 212, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* (salone-banner rimosso - sostituito da salone-hero) */

/* ============================================
   Section Titles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--core-matrix-cyan);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--core-matrix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Book Cards
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.book-card {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.1), transparent);
    transition: left 0.5s ease;
}

.book-card:hover::before {
    left: 100%;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--core-matrix-cyan);
    box-shadow: 0 25px 60px var(--shadow-strong);
}

.book-cover-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.book-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-badge.new {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.book-badge.coming-soon {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    animation: pulse 2s ease-in-out infinite;
}

.book-badge.salone {
    background: var(--gold-gradient);
    color: var(--primary-bg);
}

.book-cover {
    width: 180px;
    height: 270px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.3);
}

.book-category {
    display: inline-block;
    background: rgba(0, 188, 212, 0.1);
    color: var(--core-matrix-cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 188, 212, 0.3);
    align-self: flex-start;
}

.book-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.book-author {
    font-size: 1rem;
    color: var(--core-matrix-cyan);
    margin-bottom: 1rem;
    font-weight: 500;
}

.book-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.book-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.book-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.book-link.amazon {
    background: #ff9900;
    color: #111;
}

.book-link.amazon:hover {
    background: #ffad33;
    transform: translateY(-2px);
}

.book-link.site {
    background: transparent;
    color: var(--core-matrix-cyan);
    border: 1px solid var(--core-matrix-cyan);
}

.book-link.site:hover {
    background: rgba(0, 188, 212, 0.1);
    transform: translateY(-2px);
}

.book-link.request {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
}

.book-link.request:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 4rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--core-matrix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   Editorial Areas / Collane
   ============================================ */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.area-card {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.area-card:hover {
    transform: translateY(-8px);
    border-color: var(--core-matrix-cyan);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.area-icon {
    width: 70px;
    height: 70px;
    background: var(--core-matrix-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.area-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.area-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.area-count {
    color: var(--core-matrix-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   Author Section
   ============================================ */
.author-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(21, 29, 64, 0.5) 0%, rgba(31, 39, 80, 0.8) 100%);
    position: relative;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--core-matrix-cyan), transparent);
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.author-image {
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--core-matrix-cyan);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.3);
    flex-shrink: 0;
}

.author-content {
    flex: 1;
}

.author-label {
    display: inline-block;
    background: rgba(0, 188, 212, 0.1);
    color: var(--core-matrix-cyan);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 188, 212, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    background: var(--core-matrix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.author-role {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.author-bio p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.author-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    color: var(--core-matrix-cyan);
    border: 1px solid var(--core-matrix-cyan);
}

.author-link:hover {
    background: rgba(0, 188, 212, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   CTA Sections
   ============================================ */
.cta-section {
    text-align: center;
    padding: 6rem 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--core-matrix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--core-matrix-gradient);
    color: var(--primary-bg);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-strong);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--core-matrix-cyan);
    border: 2px solid var(--core-matrix-cyan);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.cta-button-secondary:hover {
    background: rgba(0, 188, 212, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   Salone del Libro Full Section
   ============================================ */
.salone-section {
    padding: 6rem 0;
    position: relative;
}

.salone-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.salone-card {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.08) 0%, rgba(0, 188, 212, 0.05) 100%);
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 25px;
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.salone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.05), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.salone-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.salone-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.salone-dates {
    font-size: 1.2rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.salone-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.salone-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.salone-feature {
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.salone-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.salone-feature-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.salone-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: var(--primary-bg);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.salone-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 160, 23, 0.3);
}

/* ============================================
   Publisher Info Section
   ============================================ */
.publisher-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.publisher-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.publisher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--core-matrix-cyan);
}

.publisher-card-icon {
    width: 60px;
    height: 60px;
    background: var(--core-matrix-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.publisher-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.publisher-card-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.isbn-code {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--core-matrix-cyan);
    background: rgba(0, 188, 212, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ============================================
   Manuscript Section
   ============================================ */
.manuscript-section {
    background: linear-gradient(135deg, var(--accent-bg) 0%, var(--secondary-bg) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 4rem;
    text-align: center;
}

.manuscript-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.manuscript-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--dark-bg) 100%);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--core-matrix-cyan), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-links a:hover {
    color: var(--core-matrix-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-legal a {
    color: var(--core-matrix-cyan);
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 0.8;
}

/* ============================================
   Catalog Filters
   ============================================ */
.catalog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--core-matrix-gradient);
    color: white;
    border-color: var(--core-matrix-cyan);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    border-color: var(--core-matrix-cyan);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--core-matrix-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.contact-value a {
    color: var(--core-matrix-cyan);
    transition: opacity 0.3s ease;
}

.contact-value a:hover {
    opacity: 0.8;
}

/* ============================================
   Form Styles
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--core-matrix-cyan);
    box-shadow: 0 0 15px var(--shadow-light);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select option {
    background: var(--primary-bg);
    color: var(--text-primary);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(21, 29, 64, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .salone-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }

    .salone-hero-logo {
        width: 150px;
    }

    .salone-hero-title {
        font-size: 1.4rem;
    }

    .salone-hero-dates {
        font-size: 1.2rem;
    }

    .salone-card-logo {
        max-width: 200px;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-card {
        padding: 2rem;
    }

    .book-cover {
        width: 150px;
        height: 225px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .publisher-grid {
        grid-template-columns: 1fr;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .author-image {
        width: 150px;
        height: auto;
    }

    .author-links {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    .salone-card {
        padding: 2.5rem 1.5rem;
    }

    .salone-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .manuscript-section {
        padding: 2.5rem 1.5rem;
    }
}

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

    .salone-features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-logo-subtitle {
        display: none;
    }
}
