/* ==========================================================================
   ElysNet - Trilogia di ElysNet / The ElysNet Trilogy
   Foglio di stile condiviso da /it/, /en/ e /rights/.
   Base: stili originali di index.html (palette, gradienti, animazioni)
   conservati invariati; sotto, i soli componenti aggiunti.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base (invariata rispetto al sito originale)
   -------------------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #0a1f1f;
    --bg-mid: #1a3a3a;
    --text: #e8f4f4;
    --text-soft: #c5e3e1;
    --accent: #7ec4c1;
    --accent-strong: #4a9d98;
    /* Versione piu' chiara del #6b9d9a originale: stessa tonalita', ma
       raggiunge il contrasto 4.5:1 richiesto da WCAG AA sui testi piccoli. */
    --accent-dim: #7cb1ae;
    --gold: #d9b26a;
    --line: rgba(126, 196, 193, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1f1f 0%, #1a3a3a 50%, #0f2828 100%);
    background-attachment: fixed;
    color: #e8f4f4;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.logo {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #b8dbd9 0%, #7ec4c1 50%, #4a9d98 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    letter-spacing: 0.2em;
    color: #9ec5c3;
    font-weight: 300;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 60px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.hero > div {
    flex: 0 1 auto;
}

/* Il container non deve introdurre un livello di layout dentro l'hero
   (equivale allo style="display: contents" del sito originale). */
.hero-grid {
    display: contents;
}

.book-cover {
    position: relative;
    will-change: transform;
}

.book-cover img {
    width: 100%;
    /* Indispensabile: l'immagine dichiara width/height nel markup (servono a
       riservare lo spazio ed evitare che il layout salti). Senza height:auto
       il browser userebbe l'altezza dichiarata e deformerebbe la copertina. */
    height: auto;
    min-width: 350px;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(126, 196, 193, 0.3);
    transition: transform 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

.book-cover:hover img {
    transform: scale(1.05);
}

.hero-content {
    max-width: 650px;
}

.hero-content h2 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 700;
}

.synopsis {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 30px;
    color: #c5e3e1;
}

.synopsis p {
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #4a9d98 0%, #2d7a75 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(74, 157, 152, 0.4);
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 157, 152, 0.6);
    background: linear-gradient(135deg, #5db3ad 0%, #3a8d88 100%);
}

/*
 * Pulsante presente ma senza destinazione (l'edizione inglese non e' ancora
 * in vendita). Non e' un link e non e' raggiungibile da tastiera: si vede che
 * e' un'anticipazione, non un comando che non funziona.
 */
.cta-button.is-inactive {
    background: transparent;
    border: 1px dashed rgba(126, 196, 193, 0.5);
    color: #a9c6c4;
    box-shadow: none;
    cursor: default;
}

.cta-button.is-inactive:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.cta-note {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--accent-dim);
}

.about-section {
    background: rgba(26, 58, 58, 0.5);
    padding: 80px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(126, 196, 193, 0.2);
    border-bottom: 1px solid rgba(126, 196, 193, 0.2);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    color: #7ec4c1;
    font-weight: 400;
}

.about-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: #c5e3e1;
    margin-bottom: 20px;
}

.author {
    text-align: center;
    padding: 60px 0;
}

.author-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #7ec4c1;
    font-weight: 300;
    letter-spacing: 0.1em;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--accent-dim);
    font-size: 0.9rem;
    border-top: 1px solid rgba(126, 196, 193, 0.1);
}

/* --------------------------------------------------------------------------
   2. Accessibilita' trasversale
   -------------------------------------------------------------------------- */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -100px;
    transform: translateX(-50%);
    z-index: 100;
    padding: 12px 24px;
    background: #0a1f1f;
    color: #e8f4f4;
    border: 1px solid var(--accent);
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus visibile e coerente su tutti gli elementi interattivi */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #9fe0dc;
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Barra superiore: navigazione + selettore lingua
   -------------------------------------------------------------------------- */

.topbar {
    border-bottom: 1px solid rgba(126, 196, 193, 0.12);
    background: rgba(10, 31, 31, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.topbar-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 14px;
    color: #b6d9d7;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
}

.topbar-nav a:hover {
    color: #ffffff;
    background: rgba(126, 196, 193, 0.12);
}

/* Selettore lingua */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(126, 196, 193, 0.35);
    border-radius: 999px;
    background: rgba(10, 31, 31, 0.6);
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: #b6d9d7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    transition: background 0.25s ease, color 0.25s ease;
}

.lang-switch a:hover {
    color: #ffffff;
    background: rgba(126, 196, 193, 0.16);
}

/* Lingua attiva: distinta da colore + fondo + underline (mai solo dal colore) */
.lang-switch a[aria-current="true"] {
    background: linear-gradient(135deg, #4a9d98 0%, #2d7a75 100%);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(74, 157, 152, 0.45);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Etichette di stato editoriale
   -------------------------------------------------------------------------- */

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid currentColor;
    line-height: 1.3;
    /* Niente text-transform: le diciture di stato vanno lette esattamente
       come sono scritte nel documento editoriale. */
}

.status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.status--available {
    color: #8fe3de;
    background: rgba(74, 157, 152, 0.18);
}

.status--upcoming {
    color: var(--gold);
    background: rgba(217, 178, 106, 0.14);
}

/* Contorno tratteggiato: lo stato "in lavorazione" resta riconoscibile
   anche senza percepire il colore. */
.status--development {
    color: #a9c6c4;
    background: rgba(169, 198, 196, 0.08);
    border-style: dashed;
}

.status--development::before {
    background: transparent;
    border: 2px solid currentColor;
    width: 10px;
    height: 10px;
}

.hero-status {
    margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   5. Sezione Trilogia
   -------------------------------------------------------------------------- */

.trilogy {
    padding: 90px 0 20px;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 55px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #7ec4c1;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.section-head p {
    color: #c5e3e1;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.trilogy-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    align-items: stretch;
}

.volume {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    border: 1px solid rgba(126, 196, 193, 0.18);
    border-radius: 16px;
    background: rgba(26, 58, 58, 0.42);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.volume:hover {
    transform: translateY(-6px);
    border-color: rgba(126, 196, 193, 0.42);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.volume-art {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.volume-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.volume-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.volume-index {
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-dim);
}

.volume-body h3 {
    font-size: clamp(1.25rem, 2.6vw, 1.55rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
}

.volume-note {
    font-size: 0.85rem;
    color: #9ec5c3;
    font-style: italic;
    margin-top: -6px;
}

.volume-text {
    color: #c5e3e1;
    font-size: 1rem;
    line-height: 1.7;
}

.volume-actions {
    margin-top: auto;
    padding-top: 6px;
}

.volume-actions .cta-button {
    margin-top: 0;
    padding: 14px 30px;
    font-size: 1rem;
}

/* Segnaposto grafico del terzo volume: scelta deliberata, non immagine assente */
.volume-art--placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(126, 196, 193, 0.22) 0%, rgba(10, 31, 31, 0) 62%),
        linear-gradient(160deg, #0c2525 0%, #071a1a 55%, #0a2020 100%);
    border: 1px solid rgba(126, 196, 193, 0.28);
}

.volume-art--placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 196, 193, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 196, 193, 0.09) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
}

.placeholder-mark {
    position: relative;
    display: grid;
    place-items: center;
    gap: 26px;
    text-align: center;
    padding: 20px;
}

.placeholder-ring {
    position: relative;
    width: clamp(74px, 34%, 116px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(126, 196, 193, 0.55);
    box-shadow: 0 0 30px rgba(126, 196, 193, 0.25),
                inset 0 0 24px rgba(126, 196, 193, 0.14);
    animation: ring-pulse 6s ease-in-out infinite;
}

.placeholder-ring::before,
.placeholder-ring::after {
    content: "";
    position: absolute;
    background: rgba(126, 196, 193, 0.6);
}

.placeholder-ring::before {
    left: 50%;
    top: 12%;
    width: 1px;
    height: 26%;
    transform: translateX(-50%);
}

.placeholder-ring::after {
    left: 18%;
    top: 50%;
    width: 64%;
    height: 1px;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.placeholder-title {
    font-size: clamp(1.4rem, 5.5vw, 2.1rem);
    font-weight: 300;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    color: #d6efed;
    text-shadow: 0 0 24px rgba(126, 196, 193, 0.45);
}

/* --------------------------------------------------------------------------
   6. Approfondimento secondo volume
   -------------------------------------------------------------------------- */

.spotlight {
    padding: 90px 0 20px;
}

.spotlight-inner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
    max-width: 1400px;
    margin: 0 auto;
}

.spotlight-cover {
    flex: 0 0 auto;
    width: min(380px, 40vw);
    position: sticky;
    top: 30px;
}

.spotlight-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(180, 60, 60, 0.22);
}

.spotlight-content {
    flex: 1 1 560px;
    max-width: 650px;
}

.spotlight-content h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 400;
    color: #ffffff;
    margin: 14px 0 8px;
}

.spotlight-subtitle {
    color: var(--accent);
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 22px;
}

.spotlight-promo {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.7;
    color: #ffffff;
    font-style: italic;
    padding-left: 20px;
    border-left: 2px solid var(--accent-strong);
    margin-bottom: 30px;
}

.release-date {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(217, 178, 106, 0.45);
    border-radius: 10px;
    background: rgba(217, 178, 106, 0.08);
    color: #f0dcb4;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 40px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 22px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 14px;
    color: #a8cecc;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease;
}

.footer-nav a:hover {
    color: #ffffff;
    background: rgba(126, 196, 193, 0.12);
}

.footer-copy {
    color: var(--accent-dim);
}

/* --------------------------------------------------------------------------
   8. Pagina Rights & Licensing
   -------------------------------------------------------------------------- */

.page-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.rights-header {
    padding: 70px 0 10px;
    text-align: center;
}

.rights-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #e8f4f4;
    margin-bottom: 18px;
}

.rights-intro {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: #c5e3e1;
    text-align: center;
    margin: 0 auto 50px;
    max-width: 640px;
}

.form-card {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(126, 196, 193, 0.2);
    border-radius: 16px;
    background: rgba(26, 58, 58, 0.45);
}

.field {
    margin-bottom: 26px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #e8f4f4;
}

.field .required-mark {
    color: #ffb4a8;
    margin-left: 2px;
}

.field-hint {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #a9c6c4;
    font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    background: rgba(8, 26, 26, 0.75);
    border: 1px solid rgba(126, 196, 193, 0.32);
    border-radius: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7ec4c1 50%),
                      linear-gradient(135deg, #7ec4c1 50%, transparent 50%);
    background-position: calc(100% - 21px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

.field select option {
    background: #0d2525;
    color: #ffffff;
}

.field textarea {
    min-height: 190px;
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: rgba(126, 196, 193, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(126, 196, 193, 0.22);
}

/* Errore segnalato da bordo + icona testuale, non dal solo colore */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #ff9d8f;
    box-shadow: 0 0 0 3px rgba(255, 157, 143, 0.18);
}

.field-error {
    display: none;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #ffbdb2;
}

.field-error::before {
    content: "\26A0  ";
}

.field-error.is-visible {
    display: block;
}

.consent-error {
    margin-top: -16px;
    margin-bottom: 22px;
}

.char-counter {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #a9c6c4;
    text-align: right;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--accent-strong);
    cursor: pointer;
}

.consent label {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #d6ebe9;
    cursor: pointer;
}

/* Honeypot: fuori dallo schermo, escluso dal focus e dagli screen reader */
.hp-field {
    position: absolute !important;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-block {
    margin-bottom: 26px;
    min-height: 70px;
}

/*
 * Il widget Turnstile ha una larghezza fissa di 300px decisa da Cloudflare.
 * Sui telefoni piu' stretti non ci starebbe: viene ridotto in scala, cosi'
 * resta interamente visibile senza scorrimento orizzontale della pagina.
 */
@media (max-width: 480px) {
    .form-card {
        padding: 24px 16px;
    }
}

@media (max-width: 380px) {
    .captcha-block {
        transform: scale(0.82);
        transform-origin: left top;
        min-height: 60px;
        margin-bottom: 18px;
    }
}

.submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 16px 42px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: linear-gradient(135deg, #4a9d98 0%, #2d7a75 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(74, 157, 152, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 157, 152, 0.6);
    background: linear-gradient(135deg, #5db3ad 0%, #3a8d88 100%);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

.form-status {
    margin-top: 24px;
    padding: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.form-status:empty {
    display: none;
}

.form-status p {
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid currentColor;
}

.form-status .is-success {
    color: #8fe3de;
    background: rgba(74, 157, 152, 0.16);
}

.form-status .is-error {
    color: #ffbdb2;
    background: rgba(255, 157, 143, 0.12);
}

.privacy-note {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(126, 196, 193, 0.16);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a9c6c4;
}

.english-only {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(126, 196, 193, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #b6d9d7;
}

/* --------------------------------------------------------------------------
   9. Pagina 404
   -------------------------------------------------------------------------- */

.notfound {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px 20px;
}

.notfound h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    color: #e8f4f4;
}

.notfound p {
    color: #c5e3e1;
    margin-bottom: 12px;
}

.notfound .footer-nav {
    margin-top: 26px;
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

/* Laptop stretti: la griglia resta a 3 colonne ma si compatta */
@media (max-width: 1100px) {
    .trilogy-grid {
        gap: 26px;
    }

    .volume {
        padding: 22px;
    }

    .spotlight-inner {
        gap: 45px;
    }
}

/* Tablet: una colonna, schede orizzontali (copertine e testi restano leggibili) */
@media (max-width: 1000px) {
    .trilogy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 760px;
        margin: 0 auto;
    }

    .volume {
        flex-direction: row;
        align-items: flex-start;
        gap: 26px;
        padding: 24px;
    }

    .volume-art {
        flex: 0 0 190px;
        width: 190px;
    }

    .volume-body {
        padding-top: 4px;
    }

    .spotlight-inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .spotlight-cover {
        position: static;
        width: min(340px, 70vw);
    }

    .spotlight-content {
        flex: 1 1 auto;
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 40px 20px;
    }

    .book-cover {
        order: -1;
    }

    .book-cover img {
        max-width: 350px;
    }

    .logo {
        letter-spacing: 0.2em;
    }

    .subtitle {
        letter-spacing: 0.1em;
    }

    .hero-status {
        display: flex;
        justify-content: center;
    }

    .trilogy,
    .spotlight {
        padding-top: 65px;
    }

    .topbar-inner {
        justify-content: center;
    }

    .topbar-nav {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .lang-switch {
        order: 1;
    }
}

/* Schermi stretti: le schede tornano verticali per non comprimere i testi */
@media (max-width: 620px) {
    .volume {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .volume-art {
        flex: 0 0 auto;
        width: min(230px, 62vw);
        margin: 0 auto;
    }

    .volume-body {
        align-items: center;
    }

    .volume-actions {
        display: flex;
        justify-content: center;
    }

    .spotlight-promo {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .book-cover img {
        min-width: 0;
        max-width: 280px;
    }

    header {
        padding: 30px 0;
    }

    .hero {
        padding: 40px 0;
    }

    .about-section {
        padding: 60px 0;
    }

    .topbar-nav a {
        padding: 6px 10px;
        font-size: 0.88rem;
    }

    .submit-row {
        gap: 14px;
    }

    .submit-button {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   11. Movimento ridotto
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .book-cover:hover img,
    .volume:hover,
    .cta-button:hover,
    .submit-button:hover:not(:disabled) {
        transform: none;
    }
}
