/* ========================================
   PUBBLICAZIONI PAGE CSS
   ======================================== */

/* Hero */
.pub-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #060606;
}

.pub-hero__bg {
    position: absolute;
    inset: 0;
}

.pub-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(40%);
}

.pub-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,6,6,0.3) 0%, rgba(6,6,6,0.8) 100%);
}

.pub-hero__content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: 6rem 0 4rem;
}

.pub-hero__eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #d4af37;
    margin-bottom: 1rem;
    display: block;
}

.pub-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.pub-hero__subtitle {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 550px;
}

/* ========================================
   FEATURED PUBLICATION
   ======================================== */
.pub-featured {
    padding: 6rem 0;
    background: #fff;
}

.pub-featured__layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .pub-featured__layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        justify-items: center;
        text-align: center;
    }
}

.pub-featured__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #060606;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.2;
}

.pub-featured__meta-line {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.pub-featured__details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .pub-featured__details {
        justify-content: center;
    }
}

.pub-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: #444;
}

.pub-detail strong {
    color: #060606;
}

.pub-featured__desc {
    font-family: 'Lora', serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
    max-width: 560px;
}

@media (max-width: 900px) {
    .pub-featured__desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.pub-featured__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .pub-featured__actions {
        justify-content: center;
    }
}

/* ========================================
   3D BOOK
   ======================================== */
.book-3d {
    perspective: 900px;
}

.book-3d__wrapper {
    width: 220px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-18deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-3d:hover .book-3d__wrapper {
    transform: rotateY(-8deg) translateY(-8px);
}

.book-3d__front {
    position: absolute;
    inset: 0;
    background: #060606;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    backface-visibility: hidden;
    box-shadow: 4px 4px 20px rgba(0,0,0,0.3);
}

.book-3d__badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #060606;
    background: #d4af37;
    padding: 0.25rem 0.625rem;
    border-radius: 2px;
    align-self: flex-start;
    margin-bottom: auto;
}

.book-3d__content {
    margin-bottom: auto;
}

.book-3d__publisher {
    font-family: 'Inter', sans-serif;
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-bottom: 0.75rem;
}

.book-3d__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.book-3d__subtitle {
    font-family: 'Lora', serif;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.book-3d__footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4af37;
}

.book-3d__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(to right, #1a1a1a, #2a2a2a);
    transform: rotateY(90deg) translateZ(0px) translateX(-14px);
    transform-origin: left;
    border-radius: 3px 0 0 3px;
}

.book-3d__side {
    position: absolute;
    right: -3px;
    top: 2px;
    bottom: 2px;
    width: 28px;
    background: linear-gradient(to right, #e8e4df, #ddd8d2, #e8e4df);
    border-radius: 0 1px 1px 0;
    z-index: -1;
    transform: translateX(2px);
}

/* ========================================
   RIVISTA SECTION
   ======================================== */
.pub-section {
    padding: 6rem 0;
}

.pub-section--alt {
    background: #f5f3f0;
}

.pub-section--dark {
    background: #060606;
    color: #fff;
}

.pub-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.pub-section__header--light .pub-section__title {
    color: #fff;
}

.pub-section__header--light .pub-section__intro {
    color: rgba(255,255,255,0.6);
}

.pub-section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #060606;
    margin: 0.75rem 0 0;
}

.pub-section__intro {
    font-family: 'Lora', serif;
    font-size: 1.125rem;
    color: #666;
    margin-top: 1rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Rivista layout */
.pub-rivista {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .pub-rivista {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.pub-rivista__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: #060606;
    line-height: 1.2;
    margin: 0.75rem 0 1.5rem;
}

.pub-rivista__accent {
    font-style: italic;
    color: #d4af37;
    font-size: 0.7em;
}

.pub-rivista__content p {
    font-family: 'Lora', serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

/* Cover Stack */
.cover-stack {
    position: relative;
    width: 240px;
    height: 320px;
    margin: 0 auto;
}

.cover-mock {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cover-mock--back {
    background: #2a2a2a;
    top: 0;
    left: 0;
    transform: rotate(-6deg);
}

.cover-mock--mid {
    background: #1a1a1a;
    top: 10px;
    left: 15px;
    transform: rotate(-2deg);
}

.cover-mock--front {
    background: #060606;
    top: 20px;
    left: 30px;
    transform: rotate(2deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.cover-stack:hover .cover-mock--back {
    transform: rotate(-10deg) translateX(-15px);
}

.cover-stack:hover .cover-mock--mid {
    transform: rotate(-4deg) translateX(-5px);
}

.cover-stack:hover .cover-mock--front {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cover-mock__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 1rem;
}

.cover-mock__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cover-mock__sub {
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   CATALOG
   ======================================== */
.pub-catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .pub-catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pub-catalog {
        grid-template-columns: 1fr;
    }
}

.catalog-item {
    background: #f5f3f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.catalog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.catalog-item__cover {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.catalog-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a1a 0%, #333 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: transform 0.4s ease;
}

.catalog-item:hover .catalog-cover {
    transform: scale(1.03);
}

.catalog-cover--dark {
    background: linear-gradient(145deg, #060606 0%, #1a1a1a 100%);
}

.catalog-cover--gold {
    background: linear-gradient(145deg, #8b7024 0%, #d4af37 50%, #8b7024 100%);
}

.catalog-cover--sepia {
    background: linear-gradient(145deg, #5c3810 0%, #704214 50%, #5c3810 100%);
}

.catalog-cover__type {
    font-family: 'Inter', sans-serif;
    font-size: 0.5625rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}

.catalog-cover--gold .catalog-cover__type {
    color: rgba(6,6,6,0.5);
}

.catalog-cover__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.catalog-cover--gold .catalog-cover__title {
    color: #060606;
}

.catalog-cover__year {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #d4af37;
}

.catalog-cover--gold .catalog-cover__year {
    color: rgba(6,6,6,0.6);
}

.catalog-item__info {
    padding: 1.25rem;
}

.catalog-item__type {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4af37;
    display: block;
    margin-bottom: 0.375rem;
}

.catalog-item__info h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #060606;
    line-height: 1.3;
    margin-bottom: 0.375rem;
}

.catalog-item__info p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: #666;
}

/* ========================================
   AUTORI
   ======================================== */
.autori-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.autore-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.autore-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-4px);
}

.autore-card__initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212,175,55,0.15);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.autore-card__content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.autore-card__role {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4af37;
    display: block;
    margin-bottom: 0.75rem;
}

.autore-card__content p {
    font-family: 'Lora', serif;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
