/* Quick Links Grid */
.quick-links {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    box-sizing: border-box;
    background: var(--light-bg);
}

/* Book Cards */
.book-card {
    flex: 0 0 280px;
    width: 280px;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.book-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.book-card:hover img {
    transform: scale(1.1);
}

/* Evidenziazione libro giallo */
.book-card.book-card--yellow {
    background-color: #F6E05E; /* giallo caldo, accessibile */
    border: 2px solid #D69E2E;
}

.book-card.book-card--yellow .book-info h3,
.book-card.book-card--yellow .book-info p {
    color: #1a202c;
}

/* Garanzia in tema scuro */
[data-theme="dark"] .book-card.book-card--yellow {
    background-color: #E9D470;
    border-color: #B7791F;
}

/* Variante scura della CTA */
[data-theme="dark"] .left-cta {
    background: linear-gradient(135deg, #E9D470 0%, #F6E05E 100%);
}

/* CTA flottante sinistra */
.left-cta {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    background: linear-gradient(135deg, #F6E05E 0%, #FBD38D 100%);
    color: #1a202c;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 10px;
    border: 2px solid #D69E2E;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-width: 280px;
}

.left-cta.show {
    opacity: 1;
    pointer-events: auto;
}

.left-cta-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.left-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 2px;
}

/* Gerarchia tipografica CTA */
.left-cta-title { font-size: 0.95rem; font-weight: 700; letter-spacing: .1px; }
.left-cta-book { font-size: 1.08rem; font-weight: 800; font-family: 'Playfair Display', serif; }
.left-cta-subtitle { font-size: 0.92rem; font-weight: 600; opacity: 0.95; }
.left-cta-cta { font-size: 0.95rem; font-weight: 700; margin-top: 4px; }


/* Thumbnail immagine dentro la CTA (piccola e non invasiva) */
.left-cta-text img,
.left-cta-cover {
    width: 78px;
    height: 78px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    margin: 8px 0 4px;
    align-self: center;
}

.left-cta-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a202c;
    color: #F6E05E;
    display: grid;
    place-items: center;
    font-size: 16px;
    animation: ctaPulse 1.6s infinite;
}

.left-cta-pointer {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #F6E05E;
    border-right: 2px solid #D69E2E;
    border-bottom: 2px solid #D69E2E;
}

.left-cta-close {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #1a202c;
    color: #F6E05E;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .left-cta {
        top: auto;
        bottom: 18px;
        transform: none;
    }
}

/* Navigation Components */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Logo Components */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

/* Credentials Section */
.credentials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin: 2rem 0;
}

.credentials h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
}

.credentials .logos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    padding: 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.credentials .logos::-webkit-scrollbar {
    display: none;
}

.credentials img {
    height: 80px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    object-fit: contain;
    flex-shrink: 0;
}

.credentials img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .credentials .logos {
        gap: 2rem;
        padding: 0 1rem;
        justify-content: flex-start;
    }
    
    .credentials img {
        height: 60px;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.6s backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Logo Components */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease;
    filter: brightness(1.1);
}

.hero-image:hover img {
    transform: scale(1.1);
}

/* Quick Link Cards */
.quick-link-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.quick-link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.1) 0%,
        rgba(43, 108, 176, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quick-link-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.quick-link-card:hover::after {
    opacity: 1;
}

.quick-link-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.quick-link-card:hover h3 {
    transform: translateX(5px);
}

.quick-link-card p {
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.quick-link-card .btn {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
    margin-top: auto;
}

.quick-link-card .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
} 