/* =====================================================================
   ELETTRA BOSSA — foglio di stile
   ---------------------------------------------------------------------
   COME CAMBIARE I COLORI
   Modifica solo i valori qui sotto in ":root": tutto il sito si aggiorna.
     --smoke   sfondo principale (grigio fumo caldo, come un jazz club)
     --smoke-2 sfondo delle zone leggermente più chiare
     --paper   colore del testo (carta)
     --muted   testo secondario (date, didascalie)
     --azzurro l'azzurro della copertina del disco (accento)
   ===================================================================== */

:root {
    --smoke: #1b1815;
    --smoke-2: #24201c;
    --paper: #eee7dc;
    --muted: #a69d90;
    --azzurro: #2196d0;
    --azzurro-hover: #46aee2;
    --line: rgba(238, 231, 220, 0.14);

    --font-display: 'Antonio', 'Arial Narrow', sans-serif;
    --font-text: 'Newsreader', Georgia, serif;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-space: clamp(80px, 12vw, 160px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: var(--font-text);
    font-size: clamp(1.0625rem, 1vw + 0.8rem, 1.1875rem);
    line-height: 1.65;
    color: var(--paper);
    background: var(--smoke);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grana leggera da pellicola su tutta la pagina */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--azzurro); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 300;
    background: var(--azzurro); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Lingue: mostra solo la lingua attiva ---------- */
html:not([lang="it"]) [data-lang="it"],
html:not([lang="de"]) [data-lang="de"],
html:not([lang="fr"]) [data-lang="fr"],
html:not([lang="en"]) [data-lang="en"] { display: none !important; }

/* ---------- Titoli di sezione ---------- */
.section { padding: var(--section-space) 0 0; }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.005em;
    margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Pulsanti ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 2px;
    border: 1px solid var(--line);
    color: var(--paper);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { border-color: var(--paper); }
.btn--solid { background: var(--azzurro); border-color: var(--azzurro); color: #fff; }
.btn--solid:hover { background: var(--azzurro-hover); border-color: var(--azzurro-hover); }
.btn img { width: 24px; height: 24px; border-radius: 4px; }

/* Icone nere (Amazon, Bandcamp) rese chiare sullo sfondo scuro */
.icon-invert { filter: invert(1); }

/* =====================================================================
   NAVIGAZIONE
   ===================================================================== */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(27, 24, 21, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }

.site-nav .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 24px;
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.brand span { color: var(--azzurro); font-weight: 400; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--paper); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 2px; }
.lang-switch button {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    background: none; border: 0; color: var(--muted);
    padding: 5px 9px; cursor: pointer;
}
.lang-switch button:hover { color: var(--paper); }
.lang-switch button[aria-pressed="true"],
.lang-switch button[aria-pressed="true"]:hover { color: var(--smoke); background: var(--paper); }
@media (max-width: 400px) {
    .lang-switch button { padding: 5px 7px; }
    .brand { font-size: 1.2rem; }
    .site-nav .wrap { gap: 12px; }
}

.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    background: none; border: 0; cursor: pointer; color: var(--paper);
    position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    position: absolute; left: 9px; width: 22px; height: 2px; background: currentColor;
    transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle span { top: 19px; }
.menu-toggle span::before { content: ''; left: 0; top: -7px; }
.menu-toggle span::after { content: ''; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   HERO — il nome composto come sulla copertina del disco
   ===================================================================== */
.hero { padding: calc(64px + clamp(32px, 5vw, 64px)) 0 0; }

.lockup {
    display: flex; flex-wrap: wrap;
    align-items: flex-end;
    align-items: last baseline; /* "Bossa Nova" allineato alla base di "Elettra" */
    column-gap: clamp(12px, 2vw, 28px);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: clamp(32px, 4vw, 56px);
}
@media (min-width: 700px) { .lockup { flex-wrap: nowrap; } }
.lockup__name {
    display: block;
    font-weight: 700;
    font-size: clamp(5.5rem, 16vw, 13rem);
    line-height: 1;
    letter-spacing: -0.02em;
}
.lockup__name > span { display: block; }
.lockup__side {
    display: flex; flex-direction: column;
    font-size: clamp(2.2rem, 5.6vw, 4.6rem);
    line-height: 0.95;
    color: var(--azzurro);
}
.lockup__side span:first-child { font-weight: 700; }
.lockup__side span:last-child { font-weight: 400; }

.hero__body {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: end;
}
.hero__photo { border-radius: 2px; width: 100%; }

.hero__quote {
    font-style: italic;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.3;
    max-width: 22ch;
    margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Unico movimento automatico: il nome che sale all'apertura.
   "backwards" = finita l'animazione, gli elementi tornano normali
   (così non spariscono quando si torna su dopo aver scrollato). */
@media (prefers-reduced-motion: no-preference) {
    .lockup__name > span { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) backwards; }
    .lockup__side { animation: fade 0.8s 0.45s ease backwards; }
    .hero__body { animation: fade 0.8s 0.7s ease backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   BIO
   ===================================================================== */
.bio {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
.bio__photo { border-radius: 2px; width: 100%; }
.bio__text p { max-width: 58ch; margin-bottom: 1.1em; }
.bio__text p:first-child { font-size: 1.25em; line-height: 1.5; }

/* =====================================================================
   VIDEO (si caricano solo quando si preme play: sito più veloce)
   ===================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 32px);
}

.yt {
    position: relative; display: block; width: 100%;
    aspect-ratio: 16 / 9;
    background: #000; border: 0; border-radius: 2px;
    overflow: hidden; cursor: pointer; padding: 0;
}
.yt img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.85; transition: opacity 0.3s;
}
.yt:hover img { opacity: 1; }
.yt__play {
    position: absolute; left: 50%; top: 50%;
    width: 72px; height: 72px; margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: var(--azzurro);
    display: grid; place-items: center;
    transition: transform 0.2s, background-color 0.2s;
}
.yt:hover .yt__play { transform: scale(1.08); background: var(--azzurro-hover); }
.yt__play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =====================================================================
   ALBUM
   ===================================================================== */
.album-covers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-bottom: clamp(24px, 4vw, 40px);
}
.album-covers a { display: block; }
.album-covers img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.album-bottom {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}
.listen__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.75rem;
    margin-bottom: 16px;
}
.listen__links { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.listen__links .btn { justify-content: flex-start; }

/* =====================================================================
   FOTO — mosaico
   ===================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
}
.shot { grid-column: span 6; }
.shot--third { grid-column: span 2; }
.shot--half { grid-column: span 3; }
.shot a { display: block; overflow: hidden; border-radius: 2px; }
.shot img { width: 100%; transition: transform 0.6s ease; }
.shot a:hover img { transform: scale(1.03); }
.shot--third img { aspect-ratio: 3 / 4; object-fit: cover; }
.shot figcaption {
    font-size: 0.875rem; color: var(--muted); margin-top: 8px; line-height: 1.4;
}

/* =====================================================================
   STAMPA
   ===================================================================== */
.press { list-style: none; border-top: 1px solid var(--line); }
.press-item {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
    gap: clamp(16px, 3vw, 40px);
    padding: clamp(24px, 4vw, 40px) 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.press-item__source {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1;
}
.press-item__date { color: var(--muted); font-size: 0.9375rem; margin-top: 8px; }
.press-item__text p { margin-bottom: 16px; max-width: 46ch; }
.press-item__text .headline { font-style: italic; font-size: 1.25em; line-height: 1.35; }
.press-item__clip a { display: block; border-radius: 2px; overflow: hidden; }
.press-item__clip img { width: 100%; }

.text-link {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--azzurro);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.text-link:hover { color: var(--azzurro-hover); }

/* =====================================================================
   LIVE (widget Bandsintown)
   ===================================================================== */
.live-box {
    background: var(--smoke-2);
    border-radius: 2px;
    padding: clamp(16px, 4vw, 40px);
    min-height: 200px;
}

/* =====================================================================
   CONTATTI / FOOTER
   ===================================================================== */
.contact { padding-bottom: 48px; }
.contact__mail {
    display: inline-flex; align-items: center; gap: 16px;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5.6vw, 4rem);
    line-height: 1.1;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s;
}
.contact__mail:hover { color: var(--azzurro); }
.contact__mail img { width: clamp(32px, 4vw, 48px); height: auto; flex-shrink: 0; }
.contact__note { color: var(--muted); margin: 12px 0 40px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }

.footer-bottom {
    margin-top: clamp(64px, 10vw, 120px);
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--muted);
}

/* =====================================================================
   LIGHTBOX (foto ingrandite)
   ===================================================================== */
.lightbox {
    border: 0; padding: 0; margin: 0;
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    background: rgba(15, 13, 11, 0.96);
    color: var(--paper);
}
.lightbox::backdrop { background: rgba(15, 13, 11, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage {
    display: grid; place-items: center;
    padding: 64px 72px 8px; min-height: 0;
}
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox__caption {
    text-align: center; color: var(--muted); font-size: 0.9375rem;
    padding: 12px 16px 24px; min-height: 48px;
}
.lightbox button {
    position: absolute;
    width: 48px; height: 48px;
    background: rgba(238, 231, 220, 0.08);
    border: 0; border-radius: 50%;
    color: var(--paper); font-size: 1.5rem; line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
}
.lightbox button:hover { background: var(--azzurro); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 12px; top: 50%; margin-top: -24px; }

/* =====================================================================
   RESPONSIVE (tablet e telefono)
   ===================================================================== */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--smoke);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 20px;
        display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { display: block; padding: 10px 0; font-size: 1.5rem; color: var(--paper); }
    .nav-right { gap: 8px; }

    .hero__body, .bio, .album-bottom { grid-template-columns: 1fr; }
    .press-item { grid-template-columns: 1fr 1fr; }
    .press-item__head { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .video-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .shot, .shot--third, .shot--half { grid-column: auto; }
    .shot--third img { aspect-ratio: 4 / 5; }
    .press-item { grid-template-columns: 1fr; }
    .album-covers { grid-template-columns: 1fr; }
    .lightbox__stage { padding: 64px 8px 8px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
