/*
Theme Name:  Gianmario Mattei
Theme URI:   https://gianmariomattei.com
Author:      Gianmario Mattei
Description: Tema custom dark fantasy per scrittore — dark editorial style
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: gianmario-mattei
*/

/* ════════════════════════════════════════════
   RESET + VARIABILI
   ════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #121212;
    --bg2:      #1a1a1a;
    --bg3:      #0d0d0d;
    --red:      #e61717;
    --red-dark: #b01010;
    --white:    #ffffff;
    --gray:     #a0a0a0;
    --gray-dk:  #555555;
    --border:   #2a2a2a;
    --gold:     #c9a84c;
    --paper2:   #1c1a17;
    --ink:      #3a3530;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.05;
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13,13,13,.97);
    backdrop-filter: blur(6px);
    transition: top .3s;
}

.logo img { height: 68px; width: auto; display: block; }

nav ul { display: flex; gap: 2rem; list-style: none; }
nav a,
nav a:visited {
    font-family: 'Oswald', sans-serif; font-weight: 400;
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gray); text-decoration: none; transition: color .2s;
}
nav a:hover,
nav a.active,
nav .current-menu-item > a,
nav .current_page_item > a { color: var(--white); }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); }

/* ── NEWSPAPER BAR (solo pagina blog) ── */
.newspaper-bar {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; z-index: 101;
    background: var(--paper2);
    border-bottom: 3px double var(--ink);
    padding: .4rem 2.5rem;
    justify-content: space-between;
    align-items: center;
    font-family: 'Oswald', sans-serif; font-size: .68rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--gray-dk);
}
body.blog .newspaper-bar { display: flex; }
body.blog header { top: 34px; }

/* ════════════════════════════════════════════
   MOBILE MENU
   ════════════════════════════════════════════ */
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: var(--bg3); flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: 'Oswald', sans-serif; font-size: 2.8rem; font-weight: 700;
    text-transform: uppercase; color: var(--white); text-decoration: none;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu-close {
    position: absolute; top: 1.5rem; right: 2rem;
    background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer;
}

/* ════════════════════════════════════════════
   COMPONENTI CONDIVISI
   ════════════════════════════════════════════ */
.section-tag {
    display: flex; align-items: center; gap: .9rem;
    font-family: 'Oswald', sans-serif; font-weight: 400;
    font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
}
.section-tag::before {
    content: ''; display: block; width: 28px; height: 1px; background: var(--red);
}

.section-heading {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700; text-transform: uppercase;
}

.saghe-desc {
    max-width: 560px;
    font-size: 1.05rem; font-style: italic;
    color: var(--gray); line-height: 1.8;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex; align-items: center; gap: .75rem;
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
    text-decoration: none; padding: 1rem 2rem; transition: all .22s;
    cursor: pointer; border: none;
}
.btn::after { content: '→'; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateX(3px); }
.btn-outline { border: 1px solid rgba(255,255,255,.3); color: var(--gray); background: transparent; }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--bg3); }
.btn-gold:hover { background: #b8943e; transform: translateX(3px); }

.badge {
    display: inline-block;
    font-family: 'Oswald', sans-serif; font-size: .68rem;
    letter-spacing: .22em; text-transform: uppercase;
    padding: .28rem .8rem;
}
.badge-red    { background: var(--red); color: var(--white); }
.badge-outline { border: 1px solid var(--gray-dk); color: var(--gray); }
.badge-gold   { background: var(--gold); color: var(--bg3); }

.saga-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, var(--red) 40px, var(--border) 40px);
    margin-bottom: 2rem;
}

.info-label {
    font-family: 'Oswald', sans-serif; font-size: .65rem;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gray-dk); width: 70px; flex-shrink: 0;
}
.info-value {
    font-family: 'Oswald', sans-serif; font-size: .8rem;
    letter-spacing: .05em; color: var(--gray);
}

/* ─── PAGE BANNER ─── */
.page-banner {
    background: var(--bg3);
    padding: 9rem 2.5rem 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--red);
}
.page-banner-symbol {
    position: absolute; right: -5%; top: 50%;
    transform: translateY(-50%);
    height: 130%; width: auto;
    opacity: .04; pointer-events: none;
}
.page-banner-inner {
    max-width: 1180px; margin: 0 auto;
    position: relative; z-index: 1;
}
.page-banner h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700; text-transform: uppercase;
    color: var(--white); line-height: .9;
}
.page-banner h1 span {
    display: block; font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300; letter-spacing: .3em;
    color: var(--gray); margin-bottom: .5rem;
}

/* ─── COVER WRAP ─── */
.cover-wrap { position: relative; flex-shrink: 0; }
.cover-wrap::before {
    content: '';
    position: absolute;
    left: -12px; top: 12px; right: 12px; bottom: -12px;
    border: 1px solid var(--red); z-index: 0;
}
.cover-wrap img {
    position: relative; z-index: 1;
    width: 100%; display: block;
    box-shadow: 0 16px 50px rgba(0,0,0,.7);
}

/* ─── COMING SOON ─── */
.coming-soon-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: 'Oswald', sans-serif; font-size: .7rem;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--gray); margin-bottom: 1rem;
}
.coming-soon-tag::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red);
    animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* ════════════════════════════════════════════
   HOME — HERO
   ════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: var(--bg3);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(230,23,23,.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-symbol {
    position: absolute;
    width: min(90vw, 780px);
    opacity: .07;
    animation: slowRotate 40s linear infinite;
    pointer-events: none;
}
@keyframes slowRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-content {
    position: relative; z-index: 2;
    padding-top: 90px; padding-bottom: 60px;
    max-width: 560px;
    display: flex; flex-direction: column; align-items: center;
}
.hero-logo { width: clamp(240px, 38vw, 400px); height: auto; display: block; margin-bottom: 2.5rem; }
.hero-rule { width: 56px; height: 3px; background: var(--red); margin-bottom: 2.75rem; }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    font-family: 'Oswald', sans-serif; font-size: .65rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--gray-dk);
}
.hero-scroll::after {
    content: ''; display: block; width: 1px; height: 40px;
    background: var(--gray-dk);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: .3; transform: scaleY(1); }
    50%      { opacity: 1;  transform: scaleY(.5); }
}

/* ── HOME: LIBRO IN EVIDENZA ── */
.libro-section { background: var(--bg2); padding: 5rem 2.5rem; }
.libro-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 260px 1fr;
    gap: 4.5rem; align-items: center;
}
.libro-cover-wrap { position: relative; }
.libro-cover-wrap::before {
    content: '';
    position: absolute;
    left: -16px; top: 16px; right: 16px; bottom: -16px;
    border: 1px solid var(--red); z-index: 0;
}
.libro-cover-wrap img {
    position: relative; z-index: 1;
    width: 100%; display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.libro-badge {
    font-family: 'Oswald', sans-serif; font-size: .72rem;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
}
.libro-section .libro-title {
    font-size: clamp(1.75rem, 3.5vw, 2.8rem);
    font-weight: 700; text-transform: uppercase;
    line-height: 1; margin-bottom: 1.5rem;
}
.libro-section .libro-desc {
    font-size: 1.05rem; font-style: italic;
    color: var(--gray); line-height: 1.8; margin-bottom: 2.25rem;
}

/* ── HOME: CHI SONO TEASER ── */
.chisono-section { background: var(--bg3); padding: 5rem 2.5rem; }
.chisono-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 320px 1fr;
    gap: 5rem; align-items: center;
}
.chisono-img { position: relative; overflow: hidden; }
.chisono-img img { width: 100%; display: block; filter: grayscale(100%) contrast(1.05); }
.chisono-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom right, transparent 55%, rgba(230,23,23,.18));
}
.chisono-bio {
    font-size: 1.05rem; color: var(--gray);
    line-height: 1.85; margin-bottom: 2.25rem;
}

/* ── HOME: BLOG PREVIEW ── */
.blog-section { background: var(--bg); padding: 5rem 2.5rem; }
.blog-section .container { max-width: 1180px; margin: 0 auto; }
.blog-top {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-bottom: 3rem; gap: 2rem;
}
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
}
.blog-card {
    background: var(--bg2); padding: 2rem 1.75rem;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: background .2s;
}
.blog-card:hover { background: #222; }
.blog-num {
    font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: 700;
    color: var(--border); line-height: 1; margin-bottom: 1.25rem;
}
.blog-cat {
    font-family: 'Oswald', sans-serif; font-size: .68rem;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--red); margin-bottom: .6rem;
}
.blog-title {
    font-family: 'Oswald', sans-serif; font-size: 1.2rem;
    font-weight: 600; text-transform: uppercase;
    line-height: 1.2; color: var(--white); margin-bottom: .9rem; flex: 1;
}
.blog-excerpt {
    font-size: .88rem; color: var(--gray); margin-bottom: 1.5rem;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-date {
    font-family: 'Oswald', sans-serif; font-size: .72rem;
    letter-spacing: .08em; color: var(--gray-dk); margin-top: auto;
}

/* ── HOME: NEWSLETTER ── */
.newsletter-section {
    background: var(--red); padding: 4.5rem 2.5rem; text-align: center;
}
.newsletter-section .container { max-width: 640px; margin: 0 auto; }
.newsletter-section .section-tag { color: rgba(255,255,255,.65); justify-content: center; }
.newsletter-section .section-tag::before { background: rgba(255,255,255,.65); }
.newsletter-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700; text-transform: uppercase;
    color: var(--white); margin-bottom: .5rem;
}
.newsletter-sub {
    font-style: italic; color: rgba(255,255,255,.78); margin-bottom: 2.25rem;
}
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
    flex: 1; padding: 1rem 1.25rem;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.3); border-right: none;
    color: var(--white); outline: none;
    font-family: 'Lora', serif; font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
    padding: 1rem 1.5rem;
    background: var(--bg3); color: var(--white); border: none;
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
    cursor: pointer; transition: background .2s;
}
.newsletter-form button:hover { background: #000; }
#nl-success, #nl-error {
    margin-top: 1rem;
    font-family: 'Oswald', sans-serif; font-size: .82rem;
    letter-spacing: .12em; text-transform: uppercase;
}
#nl-success { color: rgba(255,255,255,.9); }
#nl-error { color: var(--bg3); }

/* ════════════════════════════════════════════
   BLOG — NEWSPAPER EDITORIAL
   ════════════════════════════════════════════ */
.blog-intro {
    padding: 5rem 2.5rem 3rem;
    background: var(--bg3);
    max-width: 1180px; margin: 0 auto;
}

.double-rule {
    border-top: 4px solid var(--white);
    border-bottom: 1px solid var(--gray-dk);
    height: 6px; width: 100%; margin-bottom: 0;
}

.editorial-wrap {
    max-width: 1180px; margin: 0 auto;
    padding: 3rem 2.5rem;
}

/* Featured / Prima Pagina */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    position: relative;
}
.prima-pagina-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: var(--red); color: var(--white);
    font-family: 'Oswald', sans-serif; font-size: .65rem;
    letter-spacing: .3em; text-transform: uppercase;
    padding: .75rem .45rem;
    position: absolute; left: -3.5rem; top: 3rem;
    height: fit-content;
}
.featured-cat {
    font-family: 'Oswald', sans-serif; font-size: .7rem;
    letter-spacing: .28em; text-transform: uppercase;
    color: var(--red); margin-bottom: .75rem;
}
.featured-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700; text-transform: uppercase;
    line-height: .95; margin-bottom: 1.5rem;
    text-decoration: none; color: var(--white);
    display: block; transition: color .2s;
}
.featured-title:hover { color: var(--red); }
.featured-excerpt {
    font-size: 1.05rem; font-style: italic;
    color: var(--gray); line-height: 1.8; margin-bottom: 1.5rem;
}
.featured-meta {
    font-family: 'Oswald', sans-serif; font-size: .7rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--gray-dk);
}
.featured-thumb { overflow: hidden; }
.featured-thumb img { width: 100%; height: 280px; object-fit: cover; }

/* 12-column editorial grid */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px; background: var(--border);
    margin-bottom: 1px;
}
.card-lg { grid-column: span 5; background: var(--bg2); padding: 2rem; }
.card-md { grid-column: span 4; background: var(--bg2); padding: 2rem; }
.card-sm { grid-column: span 3; background: var(--bg2); padding: 2rem; }

.card-cat {
    font-family: 'Oswald', sans-serif; font-size: .68rem;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--red); margin-bottom: .6rem;
}
.card-title {
    font-weight: 700; text-transform: uppercase;
    line-height: 1.1; margin-bottom: .75rem;
    text-decoration: none; color: var(--white);
    display: block; transition: color .2s;
}
.card-title:hover { color: var(--red); }
.card-lg .card-title { font-size: 1.4rem; }
.card-md .card-title { font-size: 1.2rem; }
.card-sm .card-title { font-size: 1rem; }
.card-excerpt {
    font-size: .9rem; color: var(--gray); line-height: 1.7; margin-bottom: 1rem;
}
.card-sm .card-excerpt { display: none; }
.card-meta {
    font-family: 'Oswald', sans-serif; font-size: .65rem;
    letter-spacing: .15em; text-transform: uppercase; color: var(--gray-dk);
}
.card-thumb { margin-bottom: 1.25rem; overflow: hidden; }
.card-thumb img { width: 100%; height: 160px; object-fit: cover; }

/* ════════════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════════════ */
.reading-progress {
    position: fixed; top: 0; left: 0; z-index: 999;
    height: 3px; background: var(--red); width: 0%;
    transition: width .1s linear;
}
.article-hero {
    background: var(--bg3);
    padding: 9rem 2.5rem 4rem;
    position: relative; overflow: hidden;
    border-bottom: 3px solid var(--red);
}
.article-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.article-cat {
    font-family: 'Oswald', sans-serif; font-size: .72rem;
    letter-spacing: .28em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
    display: flex; align-items: center; gap: .9rem;
}
.article-cat::before { content: ''; display: block; width: 28px; height: 1px; background: var(--red); }
.article-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700; text-transform: uppercase;
    line-height: .9; margin-bottom: 1.5rem;
}
.article-subtitle {
    font-size: 1.15rem; font-style: italic; color: var(--gray);
    margin-bottom: 2rem; line-height: 1.6;
}
.article-byline {
    font-family: 'Oswald', sans-serif; font-size: .72rem;
    letter-spacing: .15em; text-transform: uppercase; color: var(--gray-dk);
    display: flex; gap: 2rem; flex-wrap: wrap;
}
.article-layout {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 300px;
    gap: 5rem; padding: 5rem 2.5rem;
    align-items: start;
}
.article-body { max-width: 720px; }
.article-content { font-size: 1.05rem; line-height: 1.9; color: var(--gray); }
.article-content p { margin-bottom: 1.5rem; }
.article-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase;
    color: var(--white); margin: 3rem 0 1.25rem;
    padding-top: 2rem; border-top: 1px solid var(--border);
}
.article-content h3 {
    font-size: 1.2rem; text-transform: uppercase;
    color: var(--white); margin: 2rem 0 1rem;
}
.article-content a { color: var(--red); }
.article-content strong { color: var(--white); }
.article-content .drop-cap::first-letter {
    font-size: 4.5rem; font-family: 'Oswald', sans-serif; font-weight: 700;
    color: var(--red); float: left; line-height: .85;
    margin-right: .12em; margin-top: .05em;
}
.pull-quote {
    border-left: 3px solid var(--red);
    padding: 1.5rem 2rem; margin: 2.5rem 0;
    font-size: 1.25rem; font-style: italic;
    color: var(--white); line-height: 1.6;
}
.highlight-box {
    background: var(--red);
    padding: 1.5rem 2rem; margin: 2.5rem 0;
    color: var(--white); font-size: .95rem; line-height: 1.7;
}

/* Sidebar */
.article-sidebar { position: sticky; top: 110px; }
.sidebar-block {
    background: var(--bg2); padding: 2rem;
    margin-bottom: 1.5rem; border-top: 2px solid var(--red);
}
.sidebar-title {
    font-family: 'Oswald', sans-serif; font-size: .72rem;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--gray-dk); margin-bottom: 1.25rem;
}
.toc-list { display: flex; flex-direction: column; gap: .5rem; }
.toc-list a {
    font-family: 'Oswald', sans-serif; font-size: .82rem;
    letter-spacing: .05em; color: var(--gray); text-decoration: none;
    transition: color .2s; display: block; padding: .3rem 0;
    border-bottom: 1px solid var(--border);
}
.toc-list a:hover, .toc-list a.active { color: var(--red); }

/* Author box */
.author-box {
    max-width: 720px; margin: 3rem 0 0;
    padding: 2rem; background: var(--bg2);
    border-left: 3px solid var(--red);
    display: flex; gap: 1.5rem; align-items: flex-start;
}
.author-box img {
    width: 70px; height: 70px;
    object-fit: cover; flex-shrink: 0;
    filter: grayscale(100%);
}
.author-name {
    font-family: 'Oswald', sans-serif; font-size: 1rem;
    font-weight: 700; text-transform: uppercase; margin-bottom: .4rem;
}
.author-bio { font-size: .9rem; color: var(--gray); line-height: 1.7; }

/* Post nav */
.post-nav {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border);
    max-width: 1180px; margin: 0 auto;
}
.post-nav-item {
    background: var(--bg2); padding: 2rem 2.5rem;
    text-decoration: none; transition: background .2s;
}
.post-nav-item:hover { background: var(--bg3); }
.post-nav-dir {
    font-family: 'Oswald', sans-serif; font-size: .68rem;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--gray-dk); margin-bottom: .5rem; display: block;
}
.post-nav-title {
    font-family: 'Oswald', sans-serif; font-weight: 700;
    font-size: 1rem; text-transform: uppercase; color: var(--white);
    line-height: 1.2;
}

/* ════════════════════════════════════════════
   LIBRI
   ════════════════════════════════════════════ */
.saghe-section { background: var(--bg3); padding: 5rem 2.5rem; }
.saghe-intro {
    max-width: 1180px; margin: 0 auto 4rem;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
}
.saghe-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border);
}
.saga-card {
    position: relative; background: var(--bg2);
    padding: 3.5rem 3rem; overflow: hidden;
    min-height: 480px; display: flex;
    flex-direction: column; justify-content: flex-start;
}
.saga-card-symbol {
    position: absolute; right: -8%; top: 50%;
    transform: translateY(-50%);
    width: 75%; opacity: .05; pointer-events: none;
}
.saga-card-num {
    position: absolute; top: 2.5rem; left: 3rem;
    font-family: 'Oswald', sans-serif;
    font-size: 6rem; font-weight: 700;
    color: var(--border); line-height: 1; pointer-events: none;
}
.saga-card-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; flex: 1;
    padding-top: 5.5rem;
}
.saga-card-series {
    font-family: 'Oswald', sans-serif; font-size: .7rem;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--red); margin-bottom: .75rem;
}
.saga-card-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700; text-transform: uppercase;
    color: var(--white); line-height: 1; margin-bottom: .5rem;
}
.saga-card-subtitle {
    font-family: 'Oswald', sans-serif; font-size: 2rem;
    font-weight: 300; letter-spacing: .15em;
    color: var(--gray); margin-bottom: 1.5rem;
}
.saga-card-meta {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 2rem;
}
.saga-card-desc {
    font-size: .95rem; color: var(--gray);
    line-height: 1.75; margin-bottom: 2rem;
    max-width: 420px; flex: 1;
}

.disponibili-section { background: var(--bg2); padding: 5rem 2.5rem; }
.disponibili-inner { max-width: 1180px; margin: 0 auto; }
.disponibili-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2.5rem; margin-top: 3.5rem;
}
.libro-row {
    display: grid; grid-template-columns: 150px 1fr;
    gap: 1.75rem; align-items: start; height: 100%;
}
.libro-row > div:last-child { display: flex; flex-direction: column; }
.libro-row .btn { margin-top: auto; }
.libro-genre {
    font-family: 'Oswald', sans-serif; font-size: .7rem;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--red); margin-bottom: .6rem;
}
.libro-title {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700; text-transform: uppercase;
    line-height: 1; margin-bottom: 1rem;
}
.libro-desc {
    font-size: .95rem; font-style: italic;
    color: var(--gray); line-height: 1.8; margin-bottom: 1.5rem;
}
.libro-info { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.75rem; }
.libro-info-row { display: flex; gap: .75rem; align-items: center; }

.prossimamente-section { background: var(--bg); padding: 5rem 2.5rem; }
.prossimamente-inner { max-width: 1180px; margin: 0 auto; }
.prossimamente-card {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 4rem; align-items: center;
    margin-top: 3.5rem; padding: 3rem;
    background: var(--bg2); border-left: 3px solid var(--red);
}
.prossimamente-card .cover-wrap::before { border-color: var(--gray-dk); }

/* ════════════════════════════════════════════
   CHI SONO
   ════════════════════════════════════════════ */
.bio-section { padding: 6rem 2.5rem; background: var(--bg); }
.bio-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 360px 1fr;
    gap: 6rem; align-items: start;
}
.bio-photo-wrap { position: sticky; top: 110px; }
.bio-photo-frame { position: relative; }
.bio-photo-frame::before {
    content: '';
    position: absolute; left: -16px; top: 16px; right: 16px; bottom: -16px;
    border: 1px solid var(--red); z-index: 0;
}
.bio-photo-frame img {
    position: relative; z-index: 1; width: 100%; display: block;
    filter: grayscale(100%) contrast(1.05);
}
.bio-photo-caption {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.bio-photo-caption p {
    font-family: 'Oswald', sans-serif; font-size: .72rem;
    letter-spacing: .15em; text-transform: uppercase; color: var(--gray-dk); line-height: 1.6;
}
.bio-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; text-transform: uppercase; margin-bottom: 2.5rem; line-height: 1;
}
.bio-body { font-size: 1.05rem; line-height: 1.9; color: var(--gray); }
.bio-body p { margin-bottom: 1.5rem; }
.bio-body strong { color: var(--white); font-weight: 600; }

.reboot-section { background: var(--bg2); padding: 6rem 2.5rem; }
.reboot-inner { max-width: 1180px; margin: 0 auto; }
.reboot-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border); margin-top: 3.5rem;
}
.reboot-block { background: var(--bg); padding: 3rem; }
.reboot-block.accent { background: var(--red); }
.reboot-block-num {
    font-family: 'Oswald', sans-serif; font-size: 3rem; font-weight: 700;
    color: rgba(255,255,255,.12); line-height: 1; margin-bottom: 1rem;
}
.reboot-block-title {
    font-size: 1.25rem; text-transform: uppercase; margin-bottom: 1rem;
}
.reboot-block-text { font-size: .95rem; color: var(--gray); line-height: 1.8; }
.reboot-block.accent .reboot-block-text { color: rgba(255,255,255,.85); }

.quote-section { background: var(--bg3); padding: 6rem 2.5rem; text-align: center; }
.quote-inner { max-width: 760px; margin: 0 auto; }
.quote-mark {
    font-family: 'Oswald', sans-serif; font-size: 8rem; font-weight: 700;
    color: var(--red); line-height: .6; display: block; margin-bottom: 1rem;
}
.quote-text {
    font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic;
    line-height: 1.5; color: var(--white); margin-bottom: 2rem;
}
.quote-rule { width: 56px; height: 3px; background: var(--red); margin: 0 auto 1.5rem; }
.quote-author {
    font-family: 'Oswald', sans-serif; font-size: .78rem;
    letter-spacing: .25em; text-transform: uppercase; color: var(--gray-dk);
}

.valori-section { background: var(--bg); padding: 6rem 2.5rem; }
.valori-inner { max-width: 1180px; margin: 0 auto; }
.valori-list { margin-top: 3.5rem; }
.valore-item {
    display: grid; grid-template-columns: 80px 1fr; gap: 2rem;
    padding: 2.5rem 0; border-bottom: 1px solid var(--border);
}
.valore-item:first-child { border-top: 1px solid var(--border); }
.valore-num {
    font-family: 'Oswald', sans-serif; font-size: 2.5rem; font-weight: 700;
    color: var(--border); line-height: 1; padding-top: .2rem;
}
.valore-title { font-size: 1.15rem; text-transform: uppercase; margin-bottom: .75rem; }
.valore-text { font-size: .95rem; color: var(--gray); line-height: 1.8; }

.cta-section { background: var(--red); padding: 5rem 2.5rem; text-align: center; }
.cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700;
    text-transform: uppercase; color: var(--white); margin-bottom: 1rem;
}
.cta-sub { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2.5rem; }
.btn-dark {
    display: inline-flex; align-items: center; gap: .75rem;
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
    text-decoration: none; padding: 1rem 2rem; transition: all .22s;
    background: var(--bg3); color: var(--white);
}
.btn-dark::after { content: '→'; }
.btn-dark:hover { background: #000; }

/* ════════════════════════════════════════════
   CONTATTI
   ════════════════════════════════════════════ */
.contact-section { background: var(--bg2); padding: 5rem 2.5rem; }
.contact-inner {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem; align-items: start;
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block; font-family: 'Oswald', sans-serif; font-size: .65rem;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gray-dk); margin-bottom: .55rem;
}
.form-input, .form-select, .form-textarea {
    width: 100%; background: var(--bg3); border: 1px solid var(--border);
    color: var(--white); font-family: 'Lora', serif;
    font-size: .95rem; padding: .85rem 1.1rem;
    outline: none; transition: border-color .2s;
    appearance: none; -webkit-appearance: none; line-height: 1.5;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--red); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-dk); }
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23555' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1.1rem center;
    background-color: var(--bg3); padding-right: 2.5rem;
}
.form-select option { background: var(--bg3); color: var(--white); }
.form-textarea { resize: vertical; min-height: 150px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.info-block { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.info-block:first-child { border-top: 1px solid var(--border); }
.email-link {
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: 1.05rem; letter-spacing: .04em;
    color: var(--gold); text-decoration: none; transition: color .2s;
}
.email-link:hover { color: #b8943e; }
.social-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .75rem; }
.social-link {
    font-family: 'Oswald', sans-serif; font-weight: 400;
    font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gray-dk); text-decoration: none; transition: color .2s;
}
.social-link:hover { color: var(--white); }

/* Newsletter form (riutilizzato in home e contatti) */
.nl-section {
    background: var(--bg3); border-top: 3px solid var(--red);
    padding: 5rem 2.5rem;
}
.nl-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.nl-section .section-tag { justify-content: center; }
.nl-section .section-tag::before { display: none; }
.nl-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
    text-transform: uppercase; line-height: 1; margin-bottom: 1rem;
}
.nl-text { color: var(--gray); font-size: 1rem; margin-bottom: 2.5rem; line-height: 1.8; font-style: italic; }
.nl-form { display: flex; gap: 0; }
.nl-email {
    flex: 1; background: var(--bg2); border: 1px solid var(--border); border-right: none;
    color: var(--white); font-family: 'Lora', serif; font-size: .95rem;
    padding: 1rem 1.25rem; outline: none; transition: border-color .2s;
}
.nl-email::placeholder { color: var(--gray-dk); }
.nl-email:focus { border-color: var(--red); }
.nl-btn {
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
    background: var(--red); color: var(--white);
    border: none; padding: 1rem 1.75rem; cursor: pointer;
    transition: background .2s; white-space: nowrap;
}
.nl-btn:hover { background: var(--red-dark); }
.nl-note {
    margin-top: 1rem; font-family: 'Oswald', sans-serif; font-size: .68rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--gray-dk);
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
footer { background: var(--bg3); padding: 2.5rem; border-top: 1px solid var(--border); }
.footer-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; gap: 2rem; flex-wrap: wrap;
}
.footer-logo img { height: 80px; display: block; }
.footer-nav ul { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-nav a {
    font-family: 'Oswald', sans-serif; font-size: .75rem;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--gray-dk); text-decoration: none; transition: color .2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
    font-family: 'Oswald', sans-serif; font-size: .72rem;
    letter-spacing: .05em; color: var(--gray-dk);
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: 3rem; }
    .article-sidebar { position: static; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-thumb { display: none; }
}

@media (max-width: 900px) {
    .libro-grid { grid-template-columns: 1fr; gap: 3rem; }
    .libro-cover-wrap { max-width: 220px; margin: 0 auto; }
    .chisono-grid { grid-template-columns: 260px 1fr; gap: 2.5rem; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .saghe-grid { grid-template-columns: 1fr; }
    .disponibili-grid { grid-template-columns: 1fr; gap: 3rem; }
    .libro-row { grid-template-columns: 180px 1fr; }
    .prossimamente-card { grid-template-columns: 180px 1fr; gap: 2.5rem; }
    .bio-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .bio-photo-wrap { position: static; max-width: 320px; }
    .reboot-grid { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
    .grid-12 { grid-template-columns: 1fr 1fr; }
    .card-lg, .card-md { grid-column: span 1; }
    .card-sm { grid-column: span 1; }
    .post-nav { grid-template-columns: 1fr; }
    .valore-item { grid-template-columns: 60px 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
    header { padding: 1.1rem 1.25rem; }
    nav { display: none; }
    .hamburger { display: flex; }

    .page-banner { padding: 7.5rem 1.25rem 3rem; }
    .hero-content { padding-top: 100px; padding-bottom: 70px; }
    .hero-logo { width: clamp(200px, 70vw, 300px); }

    .libro-section,
    .chisono-section,
    .blog-section,
    .newsletter-section { padding: 3.5rem 1.25rem; }
    .chisono-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-top { flex-direction: column; align-items: flex-start; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-right: 1px solid rgba(255,255,255,.3); border-bottom: none; }

    .editorial-wrap { padding: 2rem 1.25rem; }
    .grid-12 { grid-template-columns: 1fr; }
    .card-lg, .card-md, .card-sm { grid-column: span 1; }
    .card-sm .card-excerpt { display: block; }
    .prima-pagina-label { display: none; }

    .article-layout { padding: 3rem 1.25rem; }
    .article-hero { padding: 7.5rem 1.25rem 3rem; }

    .saghe-section,
    .disponibili-section,
    .prossimamente-section { padding: 3.5rem 1.25rem; }
    .saga-card { padding: 2.5rem 1.5rem; min-height: 380px; }
    .saga-card-num { font-size: 4rem; }
    .libro-row { grid-template-columns: 140px 1fr; gap: 1.5rem; }
    .prossimamente-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
    .prossimamente-card .cover-wrap { max-width: 160px; }

    .bio-section,
    .reboot-section,
    .valori-section { padding: 3.5rem 1.25rem; }
    .quote-section { padding: 4rem 1.25rem; }
    .cta-section { padding: 3.5rem 1.25rem; }
    .reboot-block { padding: 2rem 1.5rem; }

    .contact-section { padding: 3.5rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .nl-section { padding: 3.5rem 1.25rem; }
    .nl-form { flex-direction: column; }
    .nl-email { border-right: 1px solid var(--border); border-bottom: none; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-nav ul { justify-content: center; }
}
