*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
--bg: #f2ecdd;
--surface: #ece3cf;
--border: rgba(26,20,13,0.14);
--text: #1a140d;
--muted: #867a63;
--accent: #b8893f;
--accent-bright: #d9a94f;
--accent-dim: rgba(184,137,63,0.14);
--card: #fbf7ee;
}
html { scroll-behavior:smooth; }
body {
background:var(--bg);
color:var(--text);
font-family:'DM Mono',monospace;
font-weight:300;
font-size:13px;
line-height:1.8;
cursor:none;
}
body::before {
content:''; position:fixed; inset:0; pointer-events:none; z-index:9000; opacity:0.45;
background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
/* CURSORE */
.cursor {
position:fixed;
width:8px; height:8px;
background:var(--accent);
border-radius:50%;
pointer-events:none;
z-index:9999;
transform:translate(-50%,-50%);
transition:transform 0.15s ease, background 0.2s;
}
.cursor.on-button { background:var(--text); transform:translate(-50%,-50%) scale(1.4); }
.cursor.clicking { background:var(--text); transform:translate(-50%,-50%) scale(0.7); }
.cursor-ring {
position:fixed;
width:36px; height:44px;
pointer-events:none;
z-index:9998;
transform:translate(-50%,-50%);
transition:transform 0.2s, opacity 0.2s;
}
.cursor-ring svg .cross-shape {
fill: var(--accent);
transition: fill 0.2s;
}
.cursor-ring.on-button svg .cross-shape { fill: var(--text); }
.cursor-ring.clicking svg .cross-shape { fill: var(--text); }

@media (pointer: coarse), (hover: none), (max-width: 820px) {
  .cursor, .cursor-ring { display: none !important; }
  html, body, a, button, input, textarea { cursor: auto !important; }
}
/* HEADER */
header {
position:fixed; top:0; left:0; right:0; z-index:100;
display:flex; justify-content:space-between; align-items:center;
padding:24px 52px;
border-bottom:1px solid transparent;
transition:background 0.5s, border-color 0.5s;
}
header.scrolled { background:rgba(242,236,221,0.9); backdrop-filter:blur(18px); border-color:var(--border); }
.logo { font-family:'Cormorant Garamond',serif; font-size:17px; font-weight:300; letter-spacing:0.32em; text-transform:uppercase; color:var(--text); text-decoration:none; }
nav { display:flex; gap:22px; align-items: center; }
nav a { color:var(--muted); text-decoration:none; font-size:10px; letter-spacing:0.22em; text-transform:uppercase; transition:color 0.3s; }
nav a:hover { color:var(--accent); }
#lang-toggle { text-decoration:none; background:none; border:none; color:var(--accent); font-weight: bold; font-size:10px; letter-spacing:0.22em; text-transform:uppercase; cursor:none; transition:color 0.3s; padding:0; outline:none; }
#lang-toggle:hover { color:var(--text); }
/* HERO — layout a griglia del mockup D: testo a sinistra, foto a destra */
#hero {
min-height:100vh; position:relative;
display:grid; grid-template-columns:1.1fr 0.9fr; align-items:center;
padding:150px 52px 80px; gap:40px; overflow:hidden;
}
.pulse-line { position:absolute; top:0; left:0; width:100%; height:100%; opacity:0.35; pointer-events:none; }
#waveCanvas { position:absolute; inset:0; width:100%; height:100%; opacity:0.55; pointer-events:none; }
.hero-photo { position:relative; }
.hero-photo img { width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:2px; }
.hero-content { position:relative; z-index:2; max-width:640px; color:var(--text); }
.hero-tag { font-size:10px; letter-spacing:0.42em; text-transform:uppercase; color:var(--accent); margin-bottom:20px; }
.hero-title { font-family:'Cormorant Garamond',serif; font-size:clamp(52px,7.5vw,104px); font-weight:300; line-height:0.94; letter-spacing:-0.01em; margin-bottom:30px; }
.hero-title em { font-style:italic; color:var(--accent); }
.hero-sub { max-width:440px; color:var(--muted); font-size:13px; line-height:1.9; margin-bottom:38px; }
.hero-cta { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.btn-primary { background:var(--text); color:var(--accent-bright); text-decoration:none; padding:15px 28px; border-radius:2px; font-family:'DM Mono',monospace; font-size:10px; letter-spacing:0.28em; text-transform:uppercase; transition:background 0.3s,color 0.3s,transform 0.2s; white-space:nowrap; cursor:none; border:none; }
.btn-primary:hover { background:var(--accent); color:var(--text); transform:translateY(-1px); }
.btn-ghost { padding:15px 28px; border-radius:2px; border:1px solid rgba(26,20,13,0.25); color:var(--text); text-decoration:none; font-size:10px; letter-spacing:0.2em; text-transform:uppercase; transition:border-color 0.3s; white-space:nowrap; }
.btn-ghost:hover { border-color:var(--text); }
/* VERSE STRIP (mockup D) */
#verse { padding:70px 52px; text-align:center; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--surface); }
.verse-text { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:clamp(20px,2.6vw,30px); max-width:700px; margin:0 auto; color:var(--text); }
.verse-ref { margin-top:14px; font-size:9px; letter-spacing:0.3em; text-transform:uppercase; color:var(--accent); }
/* TICKER — testi reali Bandcamp, tutti i 21 brani (mockup D) */
#ticker { overflow:hidden; white-space:nowrap; padding:16px 0; background:var(--text); user-select:none; }
.ticker-track { display:flex; width:max-content; animation:tickerScroll 160s linear infinite; }
.ticker-track:hover { animation-play-state:paused; }
.ticker-content { display:inline-flex; align-items:center; white-space:nowrap; font-size:11px; color:var(--accent-bright); }
.ticker-content b { color:var(--bg); }
.ticker-content .sep { white-space:pre; }
@keyframes tickerScroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
@media(max-width:520px){ .ticker-content { font-size:10px; } }
/* SECTIONS */
section { padding:116px 52px; }
.sec-label { font-size:10px; letter-spacing:0.42em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.sec-divider { width:36px; height:1px; background:var(--border); margin-bottom:60px; }
/* BIO — centrata come #bio-d nel mockup D */
#bio { border-top:1px solid var(--border); max-width:1000px; margin:0 auto; }
.bio-grid { max-width:680px; }
.bio-text h2 { font-family:'Cormorant Garamond',serif; font-size:clamp(30px,4vw,44px); font-weight:300; line-height:1.1; margin-bottom:28px; }
.bio-text h2 em { font-style:italic; color:var(--accent); }
.bio-text p { color:var(--muted); margin-bottom:18px; line-height:2.15; font-size:13px; }
.bio-text p strong { color:var(--text); font-weight:400; }
.bio-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:36px; }
.bio-tag { font-size:9px; letter-spacing:0.12em; text-transform:uppercase; color:var(--accent); border:1px solid rgba(184,137,63,0.4); border-radius:20px; padding:6px 14px; }
/* Header di sezione — esatto mockup D, usato da Discografia e Riflessioni (senza numerazione) */
.section-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:34px; flex-wrap:wrap; gap:16px; }
.section-title { font-family:'Cormorant Garamond',serif; font-size:34px; font-weight:300; line-height:1.1; }
.section-link { color:var(--accent); text-decoration:none; font-size:10px; letter-spacing:0.15em; text-transform:uppercase; }
.section-link:hover { color:var(--accent-bright); }
/* DISCOGRAFIA — lista minimal del mockup D, con tutti i 21 brani reali */
/* #music-grid è lo stesso id/classe usato da script.js per la paginazione a 5 alla volta */
.music-grid { display:block; }
.disco-track { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:22px 0; border-top:1px solid var(--border); text-decoration:none; color:inherit; }
.disco-track.is-last-visible { border-bottom:1px solid var(--border); }
.disco-num { color:var(--muted); font-size:11px; width:34px; flex-shrink:0; }
.disco-cover { width:44px; height:44px; object-fit:cover; border-radius:2px; flex-shrink:0; background:var(--surface); }
.disco-name { font-family:'Cormorant Garamond',serif; font-size:22px; flex:1; }
.disco-tag { font-size:9px; letter-spacing:0.15em; text-transform:uppercase; color:var(--accent); flex-shrink:0; }
.disco-player { flex-shrink:0; width:170px; height:24px; overflow:hidden; position:relative; border-radius:2px; }
.disco-player iframe { position:absolute; top:0; left:0; width:300px; height:42px; border:0; transform:scale(0.567); transform-origin:top left; }
@media(max-width:600px){
  .disco-track{ flex-wrap:wrap; gap:10px; padding:18px 0; }
  .disco-name{ font-size:18px; }
  .disco-player{ order:5; }
}
/* ULTIMA USCITA — card esatta del mockup D, tra Bio e Discografia */
#release { padding:120px 52px; }
.release-card { max-width:1000px; margin:0 auto; display:grid; grid-template-columns:280px 1fr; gap:50px; align-items:center; padding:50px; background:var(--card); border:1px solid rgba(184,137,63,0.35); border-radius:2px; box-shadow:0 30px 60px -30px rgba(26,20,13,0.25); }
.release-cover { width:100%; aspect-ratio:1; object-fit:cover; border-radius:2px; }
.release-eyebrow { font-size:10px; letter-spacing:0.3em; text-transform:uppercase; color:var(--accent); margin-bottom:14px; }
.release-title { font-family:'Cormorant Garamond',serif; font-size:clamp(34px,4vw,52px); margin-bottom:14px; }
.release-desc { color:var(--muted); font-size:13px; max-width:440px; margin-bottom:24px; }
@media(max-width:820px){ .release-card{ grid-template-columns:1fr; } }
/* CONTATTI — riquadro a 2 colonne esatto del mockup D */
#contact { border-top:1px solid var(--border); }
.contact-box { max-width:1000px; margin:0 auto; border:1px solid rgba(184,137,63,0.35); background:var(--card); border-radius:2px; padding:54px; display:grid; grid-template-columns:1fr 1.2fr; gap:50px; align-items:start; }
.contact-eyebrow { font-size:10px; letter-spacing:0.3em; text-transform:uppercase; color:var(--accent); margin-bottom:16px; }
.contact-title { font-family:'Cormorant Garamond',serif; font-size:32px; font-weight:300; line-height:1.1; margin-bottom:14px; }
.contact-title em { font-style:italic; color:var(--accent); }
.contact-desc { color:var(--muted); font-size:12px; max-width:340px; line-height:1.9; }
.contact-form { display:flex; flex-direction:column; gap:14px; }
.field { background:transparent; border:none; border-bottom:1px solid rgba(26,20,13,0.25); padding:10px 2px; font-family:'DM Mono',monospace; font-size:12px; color:var(--text); outline:none; transition:border-color 0.3s; width:100%; }
.field::placeholder { color:var(--muted); opacity:0.85; }
.field:focus { border-color:var(--accent); }
textarea.field { resize:none; height:70px; }
.contact-form .btn-primary { align-self:flex-start; margin-top:6px; }
.btn-primary:disabled { opacity:0.45; cursor:not-allowed; }
.form-msg { font-size:11px; margin-top:4px; letter-spacing:0.08em; display:none; }
.form-msg.ok { color:var(--accent); display:block; }
.form-msg.err { color:#e07070; display:block; }
@media(max-width:820px){ .contact-box{ grid-template-columns:1fr; } }
/* FOOTER — link testuali leggibili (non icone astratte) */
footer { border-top:1px solid var(--border); padding:32px 52px; display:flex; flex-direction:column; align-items:center; gap:20px; text-align:center; }
footer p { color:var(--muted); font-size:10px; letter-spacing:0.15em; }
.footer-icons { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px 5px; max-width:760px; }
.footer-icons a { color:var(--muted); font-size:9px; letter-spacing:0.12em; text-transform:uppercase; text-decoration:none; transition:color 0.3s; }
.footer-icons a:hover { color:var(--accent); }
.footer-icons .footer-icons-sep { color:var(--muted); font-size:9px; margin:0 1px; }
.footer-icons .footer-icons-group-sep { color:var(--muted); font-size:10px; margin:0 3px; }
/* ANIMATIONS */
.reveal { opacity:0; transform:translateY(26px); transition:opacity 0.85s cubic-bezier(0.16,1,0.3,1),transform 0.85s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity:1; transform:none; }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}
/* RESPONSIVE */
@media(max-width:960px){
header{padding:18px 24px;}
nav a:not(#lang-toggle) {display:none;}
nav {gap: 0;}
#hero{padding:130px 24px 64px;}
section{padding:80px 24px;}
footer{padding:28px 24px;}
}
@media(max-width:820px){
#hero{grid-template-columns:1fr;}
}
@media(max-width:520px){
.hero-title{font-size:44px;}
.hero-photo{order:-1;max-width:260px;margin:0 auto 20px;}
}
/* NASCONDE IL QR CODE SU SMARTPHONE */
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: block; } }
/* --- IL CENACOLO — esatto mockup D: isola scura, centrata, senza riquadri extra --- */
#cenacolo { padding:130px 52px; text-align:center; background:var(--text); color:var(--bg); }
.cenacolo-eyebrow { font-size:10px; letter-spacing:0.35em; text-transform:uppercase; color:var(--accent-bright); margin-bottom:22px; }
.cenacolo-title { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:clamp(42px,6vw,80px); margin-bottom:22px; color:var(--accent-bright); }
.cenacolo-desc { max-width:340px; margin:0 auto 34px; color:rgba(242,236,221,0.7); font-size:12px; line-height:1.9; }
.cenacolo-actions { display:flex; align-items:center; justify-content:center; gap:22px; flex-wrap:wrap; }
.cenacolo-qr { width:96px; height:96px; border:2px solid var(--accent-bright); border-radius:4px; padding:4px; background:#000; }

/* --- PLAYER BANDCAMP EMBEDDED --- */
.bandcamp-player-container {
    margin-top: 24px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 500px;
    background: var(--surface);
    border: 1px solid var(--accent-dim);
    border-radius: 8px;
    overflow: hidden;
}
.bandcamp-player-container iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 120px;
}

/* --- DISCOGRAFIA / RIFLESSIONI: paginazione a blocchi, "mostra più" + "mostra meno" fianco a fianco --- */
.music-grid.collapsed > *:nth-child(n+6) {
    display: none;
}
.show-more-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.show-more-btn {
    display: inline-block;
    margin: 0;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--text);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.show-more-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}




/* RIFLESSIONI & SCRITTI — card larghe a 2 colonne, come nel mockup D */
#articles { border-top: 1px solid var(--border); background: var(--bg); max-width:1000px; margin:0 auto; }
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); margin-bottom: 24px; }
.article-card { display: block; background: var(--bg); cursor: pointer; text-decoration: none; color: inherit; transition: background 0.3s; }
.article-card:hover { background: var(--surface); }
.article-body { padding: 28px 34px 34px; }
.article-date { font-size: 9px; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; }
.article-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; line-height: 1.25; margin-bottom: 10px; color: var(--text); }
@media(max-width:960px){ .articles-grid{ grid-template-columns: 1fr; } }

/* ARTICLE READER OVERLAY (AUTO SYSTEM LIGHT/DARK THEME) */
.article-reader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: var(--card, #fbf7ee);
    color: var(--text);
}
.article-reader-overlay.active {
    display: block;
    opacity: 1;
}

/* READING PROGRESS BAR */
.reading-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: var(--accent);
    width: 0%;
    z-index: 10005;
    transition: width 0.1s linear;
}

.article-reader-header {
    position: sticky;
    top: 0;
    z-index: 10001;
    padding: 16px 24px;
    background: rgba(242, 236, 221, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.article-reader-close {
    background: none;
    border: none;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-reader-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.article-reader-date {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.article-reader-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 1.18;
    margin-bottom: 32px;
}
.article-reader-body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.85;
    letter-spacing: 0.01em;
}
.article-reader-body p {
    margin-bottom: 24px;
}

@media(max-width:520px){
    .article-reader-title { font-size: 28px; }
    .article-reader-body { font-size: 18px; }
}


/* ARTICOLI THUMBNAILS, AUTHORS & INLINE IMAGES — flush, seppiate, come nel mockup D */
.article-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.article-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) sepia(0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .article-card-thumb {
    transform: scale(1.05);
}
.article-author {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.article-author-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
}
.article-reader-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin: 24px 0;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
