/**
 * Confidenze Theme — main.css
 *
 * Design reference: project-docs/xd-screens/
 * Style reference:  project-docs/11_style_reference.md
 *
 * Font: Prata (serif) + Montserrat (sans)
 * Widths: header/nav 1100px, masthead 970px, container 1100px
 */

/* ═══════════════════════════════════════════════
   FONT-FACE — self-hosted, files from Google Fonts CDN (v31/v22)
   Montserrat: variable font (un file = tutti i pesi 100-900)
   Prata: static font (solo 400)
   unicode-range: latin + latin-ext per copertura completa
   ═══════════════════════════════════════════════ */

/* Montserrat normal — latin-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat normal — latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat italic — latin-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-v31-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat italic — latin */
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-v31-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Prata — latin */
@font-face {
    font-family: 'Prata';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/prata-v22-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════
   0. CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════ */
:root {
    /* ── Colors (originale → AA-compliant) ── */
    --c-black:       #1c1c1c; /* brand nero — AA su bianco ✔ */
    --c-white:       #ffffff;
    --c-body-bg:     #ffffff;
    --c-gray-100:    #f5f5f5;
    --c-gray-200:    #e5e5e5;
    --c-gray-400:    #999999; /* solo decorativo — non usare per testo ✘ */
    --c-gray-600:    #666666; /* AA su bianco solo large text */
    --c-gray-800:    #333333; /* AA su bianco ✔ */
    --c-text:        #000000; /* AA su bianco ✔ */

    /* ── Typography ── */
    --ff-serif: 'Prata', Georgia, 'Times New Roman', serif;
    --ff-sans:  'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* ── Widths ── */
    --w-header:    970px;   /* header: logo + nav + actions */
    --w-masthead:  970px;   /* masthead ADV */
    --w-container: 1100px;  /* page content (designer's grid) */

    /* ── Spacing ── */
    --sp-header-top: 30px;  /* padding-top dell'header (era sp-topbar-to-header) */
    --sp-header-to-masthead: 45px; /* tra logo e masthead */
    --sp-masthead-to-content: 45px; /* tra masthead e contenuto */
}

/* ═══════════════════════════════════════════════
   1. RESET & BASE
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--ff-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

/* ═══════════════════════════════════════════════
   2. CONTAINER
   ═══════════════════════════════════════════════ */
#site-wrapper {
    max-width: var(--w-container);
    margin-inline: auto;
}

.container {
    width: 100%;
    max-width: var(--w-container);
    margin-inline: auto;
    padding-inline: 15px;
}

/* ═══════════════════════════════════════════════
   4. SITE HEADER — logo + nav + actions §4
      Content box 1100px centered
      Topbar rimossa 14/04/2026 (decisione redazione 10/04)
      Elements vertically aligned on one row
   ═══════════════════════════════════════════════ */
.site-header {
    background: var(--c-white);
    padding-top: var(--sp-header-top);
    padding-bottom: var(--sp-header-to-masthead);
}

.site-header__inner {
    max-width: var(--w-header);
    margin-inline: auto;
    display: flex;
    align-items: center;
}

@media (max-width: 970px) {
    .site-header__inner {
        padding-inline: 15px;
    }
}

/* Logo — mobile-first 200x35, desktop 255x45 */
.site-header__logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    margin-right: 35px;
    height: 35px;
}

.site-header__logo img {
    width: 200px;
    height: 35px;
    display: block;
}

@media (min-width: 481px) {
    .site-header__logo {
        height: 45px;
    }
    .site-header__logo img {
        width: 255px;
        height: 45px;
    }
}

/* Nav — hidden on mobile, flex on desktop */
.site-header__nav {
    display: none;
}

@media (min-width: 880px) {
    .site-header__nav {
        display: flex;
        align-items: center;
        flex: 1;
        margin-top: 15px;
    }
}

/* Nav menu items */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu li a {
    display: block;
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-black);
    transition: opacity 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current-menu-parent a {
    opacity: 0.6;
}

/* Header action buttons */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    margin-top: 15px;
    flex-shrink: 0;
}

/* Search button */
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    line-height: 0;
}

.btn-search img {
    width: 18px;
    height: 18px;
    display: block;
}

/* Burger — 18x18, 3 lines */
.btn-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    gap: 4px;
    padding: 0;
}

.btn-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--c-black);
    border-radius: 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* Burger open state — X */
.btn-burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.btn-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.btn-burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hide burger on large desktop (optional — keep visible for now) */

/* ── Header mobile ── */
@media (max-width: 767px) {
    .site-header {
        padding-top: 16px;
    }
}


/* ═══════════════════════════════════════════════
   5. SEARCH OVERLAY
   ═══════════════════════════════════════════════ */
.search-overlay {
    background: var(--c-gray-100);
    border-top: 1px solid var(--c-gray-200);
}

.search-overlay .site-header__inner {
    height: auto;
    padding-block: 12px;
}

.search-overlay .search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.search-overlay input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--ff-sans);
    font-size: 14px;
    border: 1px solid var(--c-gray-200);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.search-overlay input[type="search"]:focus {
    border-color: var(--c-black);
}

.search-overlay .search-submit {
    padding: 10px 20px;
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-white);
    background: var(--c-black);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-overlay .search-submit:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════
   6. BURGER MENU — slide-in panel da destra §4
   ═══════════════════════════════════════════════ */

/* Backdrop semi-trasparente */
.burger-backdrop {
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Pannello — entra da destra */
.burger-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: calc(100vw - 20px);
    background: var(--c-white);
    z-index: 91;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
    pointer-events: none;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0);
    will-change: transform;
}

.burger-menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
}

.burger-menu__inner {
    padding: 16px 20px 40px;
    overflow-x: hidden; /* cintura di sicurezza su viewport stretti */
}

/* Pulsante X chiusura */
.burger-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-bottom: 16px;
    padding: 0;
    color: var(--c-black);
}

.burger-menu__close:hover {
    opacity: 0.6;
}

.burger-menu__search {
    margin-bottom: 24px;
}

.burger-menu__search .search-form {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.burger-menu__search label {
    flex: 1 1 0;
    min-width: 0;
    display: block;
}

.burger-menu__search .search-submit {
    flex-shrink: 0;
}

.burger-menu__search input[type="search"] {
    flex: 1 1 0;
    min-width: 0; /* permette al flex item di ridursi sotto il min-content intrinseco del browser */
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-family: var(--ff-sans);
    font-size: 14px;
    border: 1px solid var(--c-gray-200);
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
}

.burger-menu__search .search-submit {
    padding: 12px 16px;
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-white);
    background: var(--c-black);
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.burger-menu__list li a {
    display: block;
    padding: 14px 0;
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-black);
    border-bottom: 1px solid var(--c-gray-200);
}

.burger-menu__list li:first-child a {
    border-top: 1px solid var(--c-gray-200);
}

.burger-menu__list li a:hover {
    opacity: 0.6;
}

.burger-menu__cta {
    display: block;
    margin-top: 24px;
    padding: 14px;
    text-align: center;
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-white);
    background: var(--c-black);
}

.burger-menu__cta:hover {
    opacity: 0.85;
}

/* Lock body scroll when burger is open */
body.burger-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════
   7. HOMEPAGE HERO — §7
   ═══════════════════════════════════════════════ */
.homepage-hero {
    max-width: var(--w-container);
    margin-inline: auto;
    overflow: hidden;
}

.homepage-hero__img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 575px) {
    .homepage-hero__img {
        width: auto;
        min-width: 100%;
        height: 340px;
        object-fit: cover;
        object-position: center;
    }
}

.homepage-hero__link {
    display: block;
    position: relative;
}

.homepage-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--c-white);
}

.homepage-hero__title {
    font-family: var(--ff-serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 6px;
}

.homepage-hero__excerpt {
    font-family: var(--ff-sans);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Figcaption immagini (credito + didascalia) — usato su hero HP/archive + body articolo single.
   Sorgente dato: postmeta "credito" + post_excerpt attachment.
   Markup gestito da inc/image-captions.php (helper confidenze_image_figcaption_html). */
.confidenze-figcap {
    display: block;
    margin-top: 10px;
    line-height: 1.4;
}
.confidenze-figcap__credit {
    display: block;
    text-align: left;
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-gray-600, #666);
}
.confidenze-figcap__caption {
    display: block;
    text-align: center;
    margin-top: 4px;
    font-family: var(--ff-serif);
    font-size: 14px;
    font-style: italic;
    color: var(--c-gray-600, #666);
}
/* Reset margine default browser su <figure> hero (era 1em 40px). */
.homepage-hero {
    margin: 0 auto;
}
.archive-hero {
    margin: 0;
}
/* Archive: figcap full-bleed → centra al container 1100, e stacca dal titolo sotto.
   Sotto i 576px lo stacco non serve (mobile ha già il proprio ritmo di spazi). */
.archive-hero .confidenze-figcap {
    max-width: var(--w-container, 1100px);
    margin-inline: auto;
    margin-bottom: 30px;
}
@media (max-width: 575px) {
    .archive-hero .confidenze-figcap {
        margin-bottom: 0;
    }
}
/* Padding interno solo quando il figcap toccherebbe il bordo viewport
   (viewport < container + buffer). Su desktop largo (≥1200) il container 1100
   è naturalmente staccato dai bordi e non serve. */
.homepage-hero .confidenze-figcap,
.archive-hero .confidenze-figcap {
    padding-inline: 15px;
}
@media (min-width: 1200px) {
    .homepage-hero .confidenze-figcap,
    .archive-hero .confidenze-figcap {
        padding-inline: 0;
    }
}

/* ═══════════════════════════════════════════════
   8. LAYOUT CONTENUTO + SIDEBAR — §7 XD
   Contenuto allineato al bordo sinistro del viewport
   ═══════════════════════════════════════════════ */

/* Spazio tra hero e contenuto homepage */
#homepage-content {
    margin-top: 60px;
}

/* Il container della content-area perde il padding — contenuto al bordo viewport */
.container:has(.content-area) {
    padding-left: 0;
    padding-right: 0;
    overflow: clip;
}

/* Stacco laterale container con sidebar affiancata.
   ── 880–1198px: padding-left sempre (indipendente dalla skin)
   ── ≥1199px:    padding-left solo con skin ADV attiva (sotto skin-left)
*/
@media (min-width: 880px) and (max-width: 1198.98px) {
    .container:has(.content-area) {
        padding-left: 15px;
    }
}

@media (min-width: 1199px) {
    body.has-skin .container:has(.content-area) {
        padding-left: 15px;
    }
}

.content-area {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Su desktop con sidebar affiancata, garantisco che la flex row sia almeno
   alta come il viewport: così .sidebar { align-self: stretch } ha room per
   tenere sticky l'half-page anche su pagine con primary corto.
   Se primary è più lungo del viewport, min-height non si attiva.
   Nota: pagine con primary MOLTO corto E sidebar naturale > 100vh (es. newsletter
   landing di servizio) possono comunque vedere lo sticky sganciarsi — accettato. */
@media (min-width: 880px) {
    .content-area {
        min-height: 100vh;
    }
}

.content-primary {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    align-self: stretch;
}

.sidebar__sticky {
    position: sticky;
    top: 20px;
}

@media (max-width: 879px) {
    .container:has(.content-area) {
        padding-inline: 15px;
    }

    .content-area {
        flex-direction: column;
        gap: 32px;
    }

    .content-primary {
        width: 100%;
        flex: none;
    }

    .sidebar {
        width: 100%;
        max-width: 300px;
        margin-inline: auto;
    }

    .section-heading-bar {
        margin-inline: 30px;
    }

    .section-heading-bar + .section-heading {
        margin-inline: 30px;
    }
}

@media (max-width: 375px) {
    .container:has(.content-area) {
        padding-inline: 10px;
    }
}

/* ═══════════════════════════════════════════════
   9. SEZIONE STORIE — §7 XD
   ═══════════════════════════════════════════════ */

/* Sezione STORIE — padding solo desktop, carousel a bordo pieno su mobile */
.homepage-section--storie {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 880px) {
    .homepage-section--storie {
        padding-inline: 30px;
    }
}

/* Barra nera sopra il titolo — 10px */
.section-heading-bar {
    height: 10px;
    background: var(--c-black);
    margin-bottom: 20px;
}

/* Distanza tra sezioni homepage */
.homepage-section + .homepage-section {
    margin-top: 60px;
}

/* Sezione con sfondo colorato — padding per dare corpo */
.homepage-section[style*="background-color"] {
    padding: 20px 0 30px;
    margin-top: 40px;
}

/* Link nei titoli sezione — inherit, no underline */
.section-heading a,
.oroscopo-title a {
    color: inherit;
    text-decoration: none;
}

/* Titolo STORIE — Prata 62px regular, letterspacing */
.section-heading--storie {
    font-family: var(--ff-serif);
    font-size: 62px;
    font-weight: 400;
    line-height: 1.1;
    /* letter-spacing 0.45em sostituisce il vecchio markup pre-spaziato "S T O R I E" */
    letter-spacing: 0.45em;
    text-align: center;
    margin-bottom: 100px;
    text-transform: uppercase;
}

/* Storie carousel — Splide v4 (S48 pilot 14/05/2026).
 * Markup: .storie-carousel.splide > .storie-carousel__track.splide__track
 *         > ul.splide__list > li.splide__slide > article.card-storie
 * Splide core CSS gestisce list/slide layout (flex, list-style:none, flex-shrink:0,
 * width inline). Qui solo override per coerenza visiva con il design originale. */
.storie-carousel {
    overflow: hidden;
}

/* Sotto-elementi gestiti da splide-core.min.css — non sovrascrivere display/width
   di .splide__list e .splide__slide, sennò il layout flex con perPage si rompe. */

.storie-carousel .splide__slide > .card-storie {
    width: 100%;
    height: 100%;
}

@media (max-width: 575px) {

    .section-heading--storie {
        font-size: 32px;
        letter-spacing: 0.1em;
        margin-bottom: 50px;
    }
}

/* Dots */
.storie-dots {
    margin-top: 30px;
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.storie-dots__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    background-image: radial-gradient(circle, #b2b2b2 5px, transparent 5px);
}

.storie-dots__dot.is-active {
    background-image: radial-gradient(circle, #000000 5px, transparent 5px);
}

/* Card Storie */
.card-storie {
    display: flex;
    flex-direction: column;
    /* iOS Safari: rimuove il flash blu sul tap che precede il touchmove e
       può interferire con il riconoscimento dello swipe del carosello. */
    -webkit-tap-highlight-color: transparent;
}

/* Anche sugli <a> interni (tag, titolo, autore): senza questo, partire lo
   swipe da uno di questi link su iPhone fa attivare i gesti iOS sui link
   prima dei listener touch del track. Differenza chiave con BookClub, che
   non ha <a> dentro la card e infatti il suo swipe è sempre stabile. */
.card-storie a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.card-storie__image-wrap {
    display: block;
    padding: 13px;
    text-decoration: none;
    cursor: pointer; /* image-wrap è <div role="link">, ripristina UX del cursore */
    /* iOS Safari: disabilita drag-link, long-press menu e selezione che
       intercettavano lo swipe del carosello impedendo il funzionamento.
       L'utente click/tap normale resta funzionante. */
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
}

.card-storie__image-wrap img {
    -webkit-user-drag: none;
    pointer-events: none; /* tap passa al wrapper, niente drag-image iOS */
}

.card-storie__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.card-storie__body {
    padding: 12px 13px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-storie__cat {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    font-family: var(--ff-sans);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-black);
    text-decoration: none;
}

.card-storie__cat:hover {
    opacity: 0.8;
}

.card-storie__title {
    font-family: var(--ff-serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.3;
}

.card-storie__title a {
    color: var(--c-black);
}

.card-storie__title a:hover {
    opacity: 0.7;
}

.card-storie__author {
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--c-black);
}

.card-storie__author strong {
    font-weight: 700;
}
.card-storie__author a {
    color: inherit;
    text-decoration: none;
}
.card-storie__author a:hover {
    text-decoration: underline;
}

.card-storie__excerpt {
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--c-black);
}

/* Contenuto sezione — tutto rientrato 40px come la barretta */
/* Bottoni sezione */
.btn {
    display: block;
    width: fit-content;
    margin-inline: auto;
    padding: 9px 40px;
    text-align: center;
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.btn--filled {
    color: var(--c-white);
    background: var(--c-black);
    border: 2px solid var(--c-black);
    margin-bottom: 15px;
}

.btn--filled:hover {
    opacity: 0.85;
}

.btn--outline {
    color: var(--c-black);
    background: transparent;
    border: 2px solid var(--c-black);
}

.btn--outline:hover {
    background: var(--c-black);
    color: var(--c-white);
}

/* ═══════════════════════════════════════════════
   9b. ROMANZO A PUNTATE — §7 XD
   ═══════════════════════════════════════════════ */

.homepage-section--romanzo {
    margin-top: 60px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 880px) {
    .homepage-section--romanzo {
        padding-inline: 30px;
    }
}

/* Doppia classe (.section-heading.section-heading--romanzo) per batter la
   specificity della rule globale "@media (max-width: 879px) {
   .section-heading-bar + .section-heading { margin-inline: 30px } }" che
   altrimenti su tablet sovrascrive il margin auto e l'h2 appare non centrato. */
.section-heading.section-heading--romanzo {
    font-family: var(--ff-serif);
    font-size: 35px;
    font-weight: 400;
    /* letter-spacing 0.5em sostituisce il vecchio markup pre-spaziato
       "R O M A N Z O" + ls 0.15em. Il testo è ora "ROMANZO A PUNTATE" pulito:
       il wrap avviene solo tra parole reali (spazi), non tra lettere. */
    letter-spacing: 0.5em;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    /* max-width forza il wrap "PUNTATE" a caporiga anche su desktop largo
       (XD originale: titolo su 2 righe sotto la barra nera full-width).
       La section-heading-bar sopra l'h2 resta full-width separatamente. */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.romanzo-block {
    position: relative;
    padding: 0;
}

@media (min-width: 880px) {
    .romanzo-block {
        padding: 0 30px;
    }
}

.romanzo-block__quote {
    position: absolute;
    top: -20px;
    left: 10px;
    width: 246px;
    height: 202px;
    z-index: 0;
    pointer-events: none;
}

.romanzo-block__title {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 90px;
}

.romanzo-block__title-line1 {
    display: block;
    font-family: var(--ff-serif);
    font-size: 62px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--c-black);
}

.romanzo-block__title-line2 {
    display: block;
    font-family: var(--ff-serif);
    font-size: 92px;
    font-weight: 400;
    letter-spacing: 0.022em;
    line-height: 1.05;
    color: var(--c-black);
    /* overflow-wrap/word-break rimossi per evitare spezzamento mid-parola.
       Se il titolo libro è più lungo del container, va a capo solo tra parole. */
}

.romanzo-block__puntata {
    font-family: var(--ff-sans);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-align: right;
    padding-right: 70px;
    margin-bottom: 24px;
    color: var(--c-black);
}

.romanzo-block__excerpt {
    font-family: var(--ff-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 20px;
    color: var(--c-text);
}

.romanzo-block__author {
    font-family: var(--ff-sans);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.romanzo-block .btn--filled {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .romanzo-block__title-line1 {
        font-size: 32px;
    }

    .romanzo-block__title-line2 {
        font-size: 52px;
    }

    .romanzo-block__quote {
        width: 140px;
        height: auto;
        top: -10px;
        left: 0;
    }

    .romanzo-block__title {
        padding-left: 0;
        text-align: center;
    }

    .romanzo-block__puntata {
        font-size: 14px;
        padding-right: 0;
        text-align: center;
    }

    .section-heading.section-heading--romanzo {
        font-size: 25px;
        letter-spacing: 0.3em; /* meno aerato su mobile per compattezza */
    }
}

/* ═══════════════════════════════════════════════
   9c. TEMPO PER TE — §7 XD
   ═══════════════════════════════════════════════ */

.homepage-section--tempoperte {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 880px) {
    .homepage-section--tempoperte {
        padding-inline: 30px;
    }
}

.section-heading--tempoperte {
    font-family: var(--ff-serif);
    font-size: 50px;
    font-weight: 400;
    line-height: 1.1;
    /* Vedi nota su .section-heading--romanzo: testo pulito + letter-spacing CSS,
       niente più markup pre-spaziato. */
    letter-spacing: 0.5em;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* Griglia 3 card — no carosello */
.tempoperte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

/* Card senza bordo colorato sull'immagine */
.card-storie--plain .card-storie__image-wrap {
    padding: 0;
    background-color: transparent !important;
}

.card-storie--plain .card-storie__body {
    padding: 12px 0 0;
}

/* Icone share in fondo alla card */
.card-storie__share {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.card-storie__share-icon {
    display: inline-flex;
}

/* CTA sezione tempo per te — centrato sotto la griglia */
.homepage-section--tempoperte .btn--outline {
    margin-top: 10px;
}

@media (max-width: 767px) {
    .tempoperte-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Desktop stretto: letter-spacing leggermente compattato per stare su 1 riga */
@media (min-width: 768px) and (max-width: 1100px) {
    .section-heading--tempoperte {
        letter-spacing: 0.35em;
    }
}

/* 880-1099: riduciamo anche font-size per stare su una riga */
@media (min-width: 880px) and (max-width: 1099px) {
    .section-heading--tempoperte {
        font-size: 39px;
    }
}

@media (max-width: 575px) {
    .section-heading--tempoperte {
        font-size: 32px;
        letter-spacing: 0.3em;
        margin-bottom: 40px;
    }
}

/* ═══════════════════════════════════════════════
   9d. BOOK CLUB — §7 XD
   ═══════════════════════════════════════════════ */

.homepage-section--bookclub {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 880px) {
    .homepage-section--bookclub {
        padding-inline: 30px;
    }
}

/* Sfondo verde oliva — dietro barra + titolo */
.bookclub-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 155px;
    background: #c6d1ae;
    z-index: 0;
}

.homepage-section--bookclub .section-heading-bar,
.homepage-section--bookclub .section-heading--bookclub,
.bookclub-carousel,
.homepage-section--bookclub .btn {
    position: relative;
    z-index: 1;
}

.section-heading--bookclub {
    font-family: var(--ff-serif);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.1;
    /* letter-spacing 0.4em sostituisce il vecchio markup pre-spaziato "B O O K   C L U B" */
    letter-spacing: 0.4em;
    text-align: center;
    margin-bottom: 35px;
    text-transform: uppercase;
}

/* Carosello copertine — Splide v4 (S48 14/05/2026).
 * Markup: .bookclub-carousel.splide > .bookclub-carousel__track.splide__track
 *         > ul.splide__list > li.splide__slide > article.card-bookclub
 * Layout flex/width gestiti da splide-core.min.css. */
.bookclub-carousel {
    overflow: hidden;
}

.bookclub-carousel .splide__slide > .card-bookclub {
    width: 100%;
    height: 100%;
}

/* Paginazione numerata */
.bookclub-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.bookclub-pagination__num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    flex-shrink: 0;
    border: none;
    background: none;
    border-radius: 50%;
    font-family: var(--ff-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    color: var(--c-black);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.bookclub-pagination__num.is-active {
    background: var(--c-black);
    color: var(--c-white);
}

.bookclub-pagination__arrow {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.bookclub-pagination__arrow--prev img {
    transform: rotate(180deg);
}

/* Card Book Club */
.card-bookclub {
    display: flex;
    flex-direction: column;
}

.card-bookclub__cover {
    text-align: center;
    margin-bottom: 15px;
}

.card-bookclub__img {
    width: 165px;
    height: auto;
    display: inline-block;
    box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.22);
}

.card-bookclub__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.card-bookclub__body .card-storie__share {
    margin-top: 14px;
}

.card-bookclub__title {
    font-family: var(--ff-serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.3;
}

.card-bookclub__title a {
    color: var(--c-black);
}

.card-bookclub__title a:hover {
    opacity: 0.7;
}

.card-bookclub__excerpt {
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--c-black);
}

/* Firma recensore — sotto la descrizione, sopra il bottone Acquistalo.
   Stampata solo se ACF `book_signature` valorizzato. */
.card-bookclub__signature {
    margin-top: 6px;
    font-family: var(--ff-sans);
    font-size: 12px;
    font-style: italic;
    color: var(--c-gray-600, #666);
    text-align: right;
}

/* Bottone "Acquistalo" — mostrato solo se book_purchase_url valorizzato.
   Stile pill verde Confidenze (#c6d1ae, lo stesso delle virgolette quote). */
.card-bookclub__buy {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #c6d1ae;
    color: var(--c-black);
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: background .2s ease;
}

.card-bookclub__buy:hover,
.card-bookclub__buy:focus-visible {
    background: #d8e0c5;
    color: var(--c-black);
}

/* CTA filled centrato */
.homepage-section--bookclub .btn--filled {
    margin-bottom: 0;
}

/* Breakpoint bookclub: sizing gestito da JS */

@media (max-width: 767px) {
    .bookclub-backdrop {
        /* 200px copre "BOOK CLUB" su 2 righe nel range 576-767 (font 60px,
           wrap a viewport ~575-600). Sotto 575 il font scende a 32px e
           backdrop torna a 120px (override più specifico). */
        height: 200px;
    }
}

/* Tra 880-991 viewport il content-primary si stringe per via della sidebar
   (300px + gap 15px sottratti al container), il testo "BOOK CLUB" a 60px
   con ls 0.4em torna su 2 righe. Replico il valore 200px del range mobile. */
@media (min-width: 880px) and (max-width: 991px) {
    .bookclub-backdrop {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .bookclub-pagination {
        gap: 12px;
    }

    .section-heading--bookclub {
        font-size: 32px;
        letter-spacing: 0.1em;
        margin-bottom: 40px;
    }

    .bookclub-backdrop {
        height: 120px;
    }
}

/* ═══════════════════════════════════════════════
   9e. PODCAST — §7 XD
   ═══════════════════════════════════════════════ */

.homepage-section--podcast {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 880px) {
    .homepage-section--podcast {
        padding-inline: 30px;
    }
}

/* Sfondo viola — dietro barra + titolo */
.podcast-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 155px;
    background: #dac6e3;
    z-index: 0;
}

.homepage-section--podcast .section-heading-bar,
.homepage-section--podcast .section-heading--podcast,
.podcast-carousel {
    position: relative;
    z-index: 1;
}

.section-heading--podcast {
    font-family: var(--ff-serif);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.1;
    /* letter-spacing 0.4em sostituisce il vecchio markup pre-spaziato "P O D C A S T" */
    letter-spacing: 0.4em;
    text-align: center;
    margin-bottom: 35px;
    text-transform: uppercase;
}

/* Carosello — Splide v4 (S48 14/05/2026), 1 slide perPage fisso.
 * Markup: .podcast-carousel.splide > .podcast-carousel__track.splide__track
 *         > ul.splide__list > li.splide__slide > .podcast-slide */
.podcast-carousel {
    overflow: hidden;
}

.podcast-carousel .splide__slide > .podcast-slide {
    width: 100%;
}

.podcast-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card con immagine + player sovrapposto */
.podcast-slide__card {
    position: relative;
    width: 420px;
    max-width: 100%;
    margin-bottom: 25px;
}

.podcast-slide__cover {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.podcast-slide__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Player sovrapposto in basso */
.podcast-slide__player {
    position: absolute;
    bottom: -20px;
    left: 10px;
    right: 10px;
    background: var(--c-white);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.podcast-slide__play {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
}

/* Play/Pause toggle */
.podcast-slide__icon-pause {
    display: none;
}

.podcast-slide__play.is-playing .podcast-slide__icon-play {
    display: none;
}

.podcast-slide__play.is-playing .podcast-slide__icon-pause {
    display: inline;
}

.podcast-slide__mic {
    flex-shrink: 0;
}

.podcast-slide__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.podcast-slide__ep {
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--c-black);
}

.podcast-slide__name {
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--c-black);
    text-transform: uppercase;
}

/* Waveform placeholder */
.podcast-slide__wave {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 18px;
    margin-top: 6px;
}

.podcast-slide__wave span {
    display: block;
    width: 2px;
    background: var(--c-black);
    border-radius: 1px;
}

/* CTA viola — sovrascrive colore di btn--filled */
.btn--podcast {
    background: #dac6e3;
    border-color: #dac6e3;
    color: var(--c-black);
    margin-top: 10px;
}

.btn--podcast:hover {
    background: #c9aed6;
    border-color: #c9aed6;
    opacity: 1;
}

/* Dots viola */
.podcast-dots {
    margin-top: 25px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.podcast-dots__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    background-image: radial-gradient(circle, #f4eef7 5px, transparent 5px);
}

.podcast-dots__dot.is-active {
    background-image: radial-gradient(circle, #dac6e3 5px, transparent 5px);
}

@media (max-width: 575px) {
    .section-heading--podcast {
        font-size: 32px;
        letter-spacing: 0.1em;
        margin-bottom: 30px;
    }

    .podcast-slide__card {
        width: 100%;
    }

    .podcast-backdrop {
        height: 120px;
    }
}

/* ═══════════════════════════════════════════════
   10. SIDEBAR — ADV + Widget "Abbonati"
   Sondaggio rimosso 2026-04-15 (sondaggi killed).
   Widget Abbonati v1 prima proposta grafica 2026-04-15.
   ═══════════════════════════════════════════════ */

/* ADV styles → assets/css/slots.css (file separato per concessionaria) */

/* Widget "Abbonati" — v1 */
.subscribe-box {
    margin: 24px 0;
    padding: 22px 20px 24px;
    background: #faf6ef; /* crema caldo, stacca dall'ADV sopra senza urlare */
    text-align: center;
}

.subscribe-box__eyebrow {
    display: block;
    font-family: var(--ff-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--c-gray-800);
    margin-bottom: 16px;
}

.subscribe-box__cover-link {
    display: inline-block;
    line-height: 0;
}

.subscribe-box__cover {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.subscribe-box__claim {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 20px;
    line-height: 1.25;
    color: var(--c-black);
    margin: 18px auto 16px;
    max-width: 220px;
}

.subscribe-box__cta {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: var(--c-black);
    color: var(--c-white);
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.subscribe-box__cta:hover,
.subscribe-box__cta:focus-visible {
    background: var(--c-white);
    color: var(--c-black);
    outline: 1px solid var(--c-black);
    outline-offset: -1px;
}

/* ═══════════════════════════════════════════════
   8. SHARE BUTTON — pulsante "SHARE" + popup fallback
   XD: Montserrat 15 semibold (700), bianco con bordo nero, no rounding,
   icona share a destra. Su mobile usa navigator.share (sheet nativo OS).
   ═══════════════════════════════════════════════ */
.share-button {
    position: relative;
    display: inline-block;
}

.share-button__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--c-white);
    color: var(--c-black);
    border: 1px solid var(--c-black);
    border-radius: 0;
    font-family: var(--ff-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.share-button__btn:hover,
.share-button__btn:focus-visible {
    background: var(--c-black);
    color: var(--c-white);
}

.share-button__label {
    line-height: 1;
}

.share-button__icon {
    flex-shrink: 0;
    display: block;
}

/* Popup fallback (desktop senza navigator.share) */
.share-button__popup {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-black);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 4px;
    z-index: 60;
}

/* Garantisce che [hidden] vinca su display:flex (default UA non basta con flex) */
.share-button__popup[hidden] {
    display: none;
}

.share-button__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    background: transparent;
    border: 0;
    text-align: left;
    text-decoration: none;
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-black);
    cursor: pointer;
    transition: background 0.12s;
}

.share-button__item-icon {
    flex-shrink: 0;
    display: block;
}

.share-button__item:hover,
.share-button__item:focus-visible {
    background: var(--c-gray-100);
}

.share-button__item--copy.is-copied {
    background: var(--c-black);
    color: var(--c-white);
}

/* ═══════════════════════════════════════════════
   9. FOOTER — §15 XD — full-width sfondo nero
   ═══════════════════════════════════════════════ */
.site-footer {
    background: var(--c-black);
    color: var(--c-white);
    padding: 60px 40px 48px;
    margin-top: 60px;
    text-align: center;
    /* Breakout da #site-wrapper boxato a 1100px */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Container interno — boxato come il resto della pagina */
.site-footer__inner {
    max-width: var(--w-container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* Logo grande — centrato */
.site-footer__brand {
    margin-bottom: 30px;
}

.site-footer__logo {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* Nav secondaria — link bianchi separati da bordo */
.site-footer__nav {
    margin-bottom: 40px;
    text-align: left;
}

.footer-nav {
    list-style: none;
    padding: 0 0 5px;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--c-white);
}

.footer-nav li {
    display: flex;
    align-items: center;
}

.footer-nav li + li::before {
    content: '|';
    color: var(--c-white);
    font-size: 10px;
    opacity: 0.6;
}

/* Quando una voce inizia una nuova riga (dopo flex-wrap), il separatore '|'
   davanti a lei non deve mostrarsi. Classe applicata da main.js leggendo
   offsetTop di ciascun li. Funziona per qualsiasi numero di voci/breakpoint. */
.footer-nav li.is-first-on-line::before {
    content: none;
}

.footer-nav a {
    display: flex;
    align-items: center;
    min-height: 24px;
    padding: 6px 12px;
    color: var(--c-white);
    text-decoration: none;
    font-family: var(--ff-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.7;
}

/* Main: info sinistra + copertina destra */
.site-footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin-inline: auto;
    gap: 40px;
}

/* Info azienda — allineato a sinistra */
.site-footer__info {
    text-align: left;
}

.site-footer__company {
    font-family: var(--ff-sans);
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 16px;
}

/* Link legali — colonna, senza interlinea */
.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.site-footer__links li {
    margin: 0;
    line-height: 1.3;
}

.site-footer__links a {
    color: var(--c-white);
    text-decoration: none;
    font-family: var(--ff-sans);
    font-size: 20px;
    font-weight: 400;
    transition: opacity 0.2s;
}

.site-footer__links a:hover {
    opacity: 0.7;
}

/* Social icons */
.site-footer__social {
    display: flex;
    gap: 12px;
}

.site-footer__social a {
    color: var(--c-white);
    transition: opacity 0.2s;
}

.site-footer__social a:hover {
    opacity: 0.7;
}

/* Copertina rivista + CTA */
.site-footer__cover-area {
    flex-shrink: 0;
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.site-footer__cover {
    width: 350px;
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.site-footer__cover-shelf {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 350px;
    max-width: 100%;
    aspect-ratio: 250 / 319;
    border: 1px solid #ffffff;
    z-index: 0;
}

.site-footer__cta {
    display: block;
    width: calc(350px + 20px);
    max-width: 100%;
    box-sizing: border-box;
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--c-black);
    background: var(--c-white);
    padding: 8px 32px;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-top: 40px;
    position: absolute;
    z-index: 1;
}

.site-footer__cta:hover {
    opacity: 0.85;
}

/* ── Responsive footer ── */
@media (max-width: 767px) {
    .site-footer {
        padding: 40px 20px 36px;
    }

    .site-footer__logo {
        max-width: 320px;
    }

    .site-footer__inner {
        padding-inline: 0;
    }

    .footer-nav a {
        padding: 0 8px;
        font-size: 9px;
    }

    .site-footer__main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer__info {
        text-align: center;
    }

    .site-footer__social {
        justify-content: center;
    }

    .site-footer__cover,
    .site-footer__cover-shelf {
        width: 250px;
    }

    .site-footer__cta {
        width: calc(250px + 20px);
    }
}

@media (max-width: 375px) {
    .footer-nav a {
        padding: 0 6px;
        font-size: 8px;
    }

    .site-footer__cover {
        width: 200px;
    }

    .site-footer__cover-shelf {
        width: 200px;
    }

    .site-footer__cta {
        width: 220px;
    }
}

/* ADV floor styles → assets/css/slots.css */

/* ═══════════════════════════════════════════════
   10b. NEWSLETTER — §7 XD — full-width
   ═══════════════════════════════════════════════ */

.homepage-section--newsletter {
    margin-top: 60px;
}

.newsletter-strip {
    background: #f5e1d6;
    padding: 30px 30px 50px;
    text-align: center;
    border: 40px solid #ebc3ae;
    border-left-width: 80px;
    border-right-width: 80px;
}

/* Barra nera centrata — newsletter, fuori dalla strip */
.section-heading-bar--centered {
    width: 700px;
    max-width: calc(100% - 60px);
    margin-inline: auto;
    height: 10px;
    background: var(--c-black);
    margin-bottom: 0;
}

.section-heading--newsletter {
    font-family: var(--ff-serif);
    font-size: 70px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 6px;
    color: var(--c-black);
}

.newsletter-strip__subtitle {
    font-family: var(--ff-sans);
    font-size: 23px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    color: var(--c-black);
}

.newsletter-strip__subtitle strong {
    font-weight: 700;
}

.newsletter-strip__form {
    display: flex;
    justify-content: center;
    max-width: 550px;
    margin-inline: auto;
}

.newsletter-strip__input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--c-black);
    border-right: none;
    font-family: var(--ff-sans);
    font-size: 14px;
    background: var(--c-white);
    outline: none;
}

.newsletter-strip__input::placeholder {
    color: #767676;
}

.newsletter-strip__btn {
    padding: 12px 30px;
    background: var(--c-black);
    color: var(--c-white);
    border: 1px solid var(--c-black);
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.newsletter-strip__btn:hover {
    opacity: 0.85;
}

@media (max-width: 575px) {
    .section-heading--newsletter {
        font-size: 36px;
    }

    .newsletter-strip__form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-strip__input {
        border-right: 1px solid var(--c-black);
    }

    .newsletter-strip {
        padding: 20px;
        border-width: 20px;
    }
}

/* ═══════════════════════════════════════════════
   10b. OROSCOPO DELLA SETTIMANA — full-width
   Carosello 12 segni, 6 visibili desktop, dots a pagina
   ═══════════════════════════════════════════════ */

.homepage-section--oroscopo {
    text-align: center;
    padding: 0 30px;
}

.homepage-section--oroscopo .section-heading-bar--centered {
    margin-bottom: 20px;
}

.oroscopo-title {
    font-family: var(--ff-serif);
    font-size: 60px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1;
    margin: 0;
    color: var(--c-black);
}

.oroscopo-subtitle {
    font-family: var(--ff-serif);
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
    margin: 2px 0 0;
    color: var(--c-black);
}

.oroscopo-date {
    display: inline-block;
    font-family: var(--ff-serif);
    font-size: 40px;
    font-weight: 400;
    background: var(--c-black);
    color: var(--c-white);
    padding: 3px 30px;
    margin: 20px 0 0;
}

/* Carousel — Splide v4 (S48 14/05/2026), perPage 6/4/3 con pagina-dot.
 * Markup: .oroscopo-carousel.splide > .oroscopo-carousel__track.splide__track
 *         > ul.splide__list > li.splide__slide > a.oroscopo-sign */
.oroscopo-carousel {
    margin-top: 30px;
    max-width: 900px;
    margin-inline: auto;
    overflow: hidden;
}

.oroscopo-carousel .splide__slide > .oroscopo-sign {
    width: 100%;
}

.oroscopo-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px;
}

.oroscopo-sign img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    display: block;
    transition: transform 0.2s ease;
}

.oroscopo-sign:hover img {
    transform: scale(1.08);
}

/* Dots — stessi stili di storie-dots */
.oroscopo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    min-height: 10px; /* previene CLS — dots generati via JS */
}

.oroscopo-dots__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    background-image: radial-gradient(circle, #b2b2b2 5px, transparent 5px);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.oroscopo-dots__dot.is-active {
    background-image: radial-gradient(circle, #000000 5px, transparent 5px);
}

/* CTA */
.homepage-section--oroscopo .btn {
    margin-top: 35px;
}

/* ── Responsive oroscopo ── */
@media (max-width: 767px) {
    .oroscopo-title {
        font-size: 38px;
    }

    .oroscopo-subtitle {
        font-size: 26px;
    }

    .oroscopo-date {
        font-size: 26px;
    }

    /* Breakpoint oroscopo: sizing gestito da JS */
}

@media (max-width: 480px) {
    .homepage-section--oroscopo {
        padding: 0 15px;
    }

    .oroscopo-title {
        font-size: 28px;
    }

    .oroscopo-subtitle {
        font-size: 22px;
    }

    .oroscopo-date {
        font-size: 22px;
        padding: 5px 20px;
    }
}

@media (max-width: 375px) {
    .homepage-section--oroscopo {
        padding: 0 10px;
    }
}

/* ═══════════════════════════════════════════════
   10c. SOCIAL — §7 XD — full-width, carosello custom IG
   ═══════════════════════════════════════════════ */

.homepage-section--social {
    text-align: center;
    padding: 0 30px;
}

.homepage-section--social .section-heading-bar--centered {
    margin-bottom: 20px;
}

.section-heading--social {
    font-family: var(--ff-serif);
    font-size: 60px;
    font-weight: 400;
    /* letter-spacing 0.4em sostituisce il vecchio markup pre-spaziato */
    letter-spacing: 0.4em;
    line-height: 1.1;
    margin: 0 0 40px;
    color: var(--c-black);
    text-transform: uppercase;
}

/* Carousel wrapper — padding laterale per le frecce */
.social-carousel {
    position: relative;
    max-width: 830px;      /* 750 contenuto + 40×2 padding frecce */
    margin-inline: auto;
    padding: 0 40px;
}

/* Viewport che taglia il track */
.social-carousel__viewport {
    overflow: hidden;
}

.social-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

.social-carousel__item {
    flex: 0 0 calc(100% / 3);
    padding: 0 10px;
    box-sizing: border-box;
}

/* Card IG semplice (no mockup — revisione 21/04 ispirata a health.com).
   Aspect-ratio 3:4 = compromesso tra reel 9:16 (crop laterale minimo) e foto 3:4 (fit perfetto). */
.social-carousel__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--c-gray-100);
    text-decoration: none;
}

.social-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play icon overlay — mostrato solo per VIDEO (sia inline che fallback esterno) */
.social-carousel__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: transform .2s ease;
}

.social-carousel__play svg {
    width: 100%;
    height: 100%;
    display: block;
}

.social-carousel__media:hover .social-carousel__play,
.social-carousel__media:focus-visible .social-carousel__play {
    transform: scale(1.06);
}

/* Stato "video attivato": l'<img> viene sostituita da <video> via JS, play icon nascosto */
.social-carousel__media.is-playing .social-carousel__play {
    display: none;
}

.social-carousel__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Link secondario "Apri su Instagram" sotto video inline attivo */
.social-carousel__open-ig {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 4px;
    z-index: 3;
}

.social-carousel__open-ig:hover,
.social-carousel__open-ig:focus-visible {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

/* CTA "Seguici su Instagram" — sotto al carosello, stile rettangolare nero coerente con bookclub/newsletter */
.social-follow-cta {
    display: block;
    max-width: 280px;
    margin: 40px auto 0;
    padding: 14px 24px;
    background: var(--c-black);
    color: var(--c-white);
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    transition: background .2s ease;
}

.social-follow-cta:hover,
.social-follow-cta:focus-visible {
    background: #2a2a2a;
    color: var(--c-white);
}

/* Arrows */
.social-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

.social-carousel__arrow--prev { left: 0; }
.social-carousel__arrow--next { right: 0; }

.social-carousel__arrow img {
    width: 27px;
    height: 27px;
}

.social-carousel__arrow--prev img {
    transform: rotate(180deg);
}

/* Stato disabled (estremi del carosello, no loop infinito) — vedi carousels.js. */
.social-carousel__arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Quando total <= perView (desktop con 3 post = perView 3): tutto visibile,
   nascondiamo le frecce per evitare confusione "click che non fa nulla". */
.social-carousel.is-static .social-carousel__arrow {
    display: none;
}

/* ── Responsive social ── */
@media (max-width: 767px) {
    .section-heading--social {
        font-size: 38px;
    }

    .social-carousel__item {
        flex-basis: 50%;
    }

    .social-carousel {
        padding: 0 32px;
    }
}

@media (max-width: 575px) {
    .homepage-section--social {
        padding: 0 15px;
    }

    .section-heading--social {
        font-size: 28px;
    }

    .social-carousel__item {
        flex-basis: 100%;
    }

    .social-carousel__arrow img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 375px) {
    .homepage-section--social {
        padding: 0 10px;
    }

    .social-carousel {
        padding: 0 28px;
    }
}

/* ═══════════════════════════════════════════════
   11. UTILITY & ACCESSIBILITY
   ═══════════════════════════════════════════════ */

/* .visually-hidden — obbligatoria per H1 logo e label form */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Legacy alias */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link — EAA obbligatorio */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 8px 16px;
    background: var(--c-black);
    color: var(--c-white);
    font-family: var(--ff-sans);
    font-size: 14px;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
}

/* Focus-visible — EAA obbligatorio */
:focus-visible {
    outline: 2px solid var(--c-black);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Focus states per input senza outline nativo */
.newsletter-strip__input:focus-visible,
.burger-menu__search input[type="search"]:focus-visible {
    border-color: var(--c-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════
   12. PREFERS-REDUCED-MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Navigazione e carousel: la transizione slide resta anche con reduced-motion.
       Storie/BookClub/Podcast/Oroscopo usano Splide v4 → anima .splide__list.
       Social resta custom (no Splide) → .social-carousel__track. */
    .burger-menu,
    .burger-backdrop,
    .splide__list,
    .social-carousel__track {
        transition-duration: 0.4s !important;
    }
}

/* ═══════════════════════════════════════════════
   PAGE ARTICLE — entry-content per pagine WP standard
   (scope .page-article: non tocca il single.php che ha single.css dedicato)
   ═══════════════════════════════════════════════ */
.page-article {
    max-width: 760px;
    margin: 20px auto 60px;
}

/* Breadcrumb generico pagine WP standard — stesso pattern del single article.
   Uppercase, sans 15px, letter-spacing 0.04, 40px di stacco dal titolo sotto. */
.page-article .breadcrumb {
    font-family: var(--ff-sans);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-black);
    margin: 0 0 40px;
}

.page-article .breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s;
}

.page-article .breadcrumb a:hover,
.page-article .breadcrumb a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-article__title {
    font-family: var(--ff-serif);
    font-size: 62px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--c-black);
    margin: 0 0 30px;
}

.page-article .entry-content {
    font-family: var(--ff-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-black);
}

.page-article .entry-content > * + * {
    margin-top: 1.4em;
}

.page-article .entry-content p {
    margin: 0;
}

.page-article .entry-content > * + p {
    margin-top: 1.4em;
}

.page-article .entry-content a {
    color: var(--c-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-article .entry-content a:hover {
    text-decoration: none;
}

.page-article .entry-content strong {
    font-weight: 700;
}

.page-article .entry-content h2 {
    font-family: var(--ff-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin: 1.6em 0 0.3em;
}

.page-article .entry-content h3 {
    font-family: var(--ff-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin: 1.4em 0 0.3em;
}

.page-article .entry-content hr,
.page-article .entry-content .wp-block-separator {
    border: 0;
    border-top: 1px solid var(--c-gray-200);
    margin: 2em 0;
}

.page-article .entry-content ul,
.page-article .entry-content ol {
    padding-left: 1.5em;
}

.page-article .entry-content ul li,
.page-article .entry-content ol li {
    margin: 0 0 0.4em;
}

@media (max-width: 575px) {
    .page-article__title {
        font-size: 32px;
    }
    .page-article .breadcrumb {
        font-size: 13px;
        margin-bottom: 30px;
    }
    .page-article .entry-content {
        font-size: 16px;
    }
    .page-article .entry-content h2 {
        font-size: 26px;
    }
    .page-article .entry-content h3 {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════
   PAGE CHI SIAMO — raffinamenti XD (chi_siamo.png)
   Titolo con riga decorativa a destra + blockquote centrato + company card
   ═══════════════════════════════════════════════ */
/* Stesso pattern della rule "NEXT" nel single article: flex-end + rule 3px
   ancorata al baseline, con margin-bottom per allinearla all'ultima
   lettera del titolo invece che al center verticale. */
.page-article__title--decorated {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.page-article__title-text {
    flex-shrink: 0;
}

.page-article__title-line {
    flex: 1;
    height: 3px;
    background: var(--c-black, #000);
    margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════
   Blockquote Gutenberg (core/quote) — stile editoriale Confidenze
   Scelta unica (decisione S31, vedi project_wp_component_citazione):
     bordi 2px + serif 50px + virgolette verdi Prata 300px dietro la prima
     lettera + drop-cap 150px + virgoletta di chiusura inline.
   Lo stile è applicato a TUTTI i .wp-block-quote nel single/page article,
   indipendentemente dalla className `is-style-decorated`. Il block style
   resta registrato in inc/block-styles.php solo per coerenza UI editor
   (selector "Citazione Confidenze" come default), ma graficamente non c'è
   variante alternativa al frontend.
   ═══════════════════════════════════════════════ */
.entry-content .wp-block-quote {
    border-top: 2px solid #bcbcbc;
    border-bottom: 2px solid #bcbcbc;
    border-left: 0;
    border-right: 0;
    padding: 30px 35px;
    margin: 2.5em 0;
    font-family: var(--ff-serif);
    font-size: 50px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    color: var(--c-black);
    text-align: left;
    position: relative;
}

.entry-content .wp-block-quote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.entry-content .wp-block-quote p + p {
    margin-top: 0.3em;
}

.entry-content .wp-block-quote cite {
    display: block;
    text-align: center;
    font-size: 15px;
    font-style: normal;
    color: var(--c-black);
    margin-top: 0.8em;
    font-family: var(--ff-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Decorazioni "Citazione Confidenze" — virgolette grandi dietro la prima lettera + drop-cap + chiusura */
.entry-content .wp-block-quote::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: -10px;
    font-family: var(--ff-serif);
    font-size: 300px;
    font-weight: 400;
    line-height: 1;
    color: #c6d1ae;
    z-index: 0;
    pointer-events: none;
}

.entry-content .wp-block-quote p:first-of-type::first-letter {
    font-family: var(--ff-serif);
    font-size: 150px;
    font-weight: 400;
    line-height: 1;
    color: var(--c-black);
}

.entry-content .wp-block-quote p:last-of-type::after {
    content: '\201D';
}

@media (max-width: 768px) {
    .entry-content .wp-block-quote {
        font-size: 28px;
        padding: 20px 20px;
        margin: 2em 0;
    }

    .entry-content .wp-block-quote::before {
        font-size: 160px;
        top: 5px;
        left: -5px;
    }

    .entry-content .wp-block-quote p:first-of-type::first-letter {
        font-size: 84px;
    }
}

/* Box info editore — tutta l'ampiezza della colonna content-primary */
.company-card {
    border: 1px solid var(--c-gray-200, #d7d7d7);
    padding: 24px 28px;
    margin: 40px 0;
    text-align: center;
    font-family: var(--ff-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-black);
}

.company-card p {
    margin: 0;
}

.company-card__name {
    font-weight: 700;
    margin-bottom: 4px !important;
}

.company-card a {
    color: var(--c-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575px) {
    .page-article__title--decorated {
        gap: 16px;
    }
    .company-card {
        padding: 18px 20px;
    }
}

/* ═══════════════════════════════════════════════
   SmashBalloon Instagram Feed — defensive hide
   Il plugin già protegge con is_user_logged_in() + manage_instagram_feed_options.
   Questa regola è safety-net: nasconde a chi non ha admin-bar (non-admin + non-loggato).
   ═══════════════════════════════════════════════ */
body:not(.admin-bar) .sbi-critical-notice,
body:not(.admin-bar) #sbi_mod_error,
body:not(.admin-bar) .sbi_critical_error_wrap {
    display: none !important;
}

/* ═══════════════════════════════════════════════
   CARD NATIVE — blocco confidenze/native (S34)
   Card sponsorizzata inseribile nelle pagine WP.
   Crop immagine fisso: card-landscape 600×400.
   Layout coerente con le altre card HP (stile "plain").
   Link espliciti: immagine + titolo + CTA (no stretched link, per evitare
   tappabilità invadente su mobile).
   ═══════════════════════════════════════════════ */
.card-native {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    box-sizing: border-box;
    color: inherit;
}

.card-native__image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #f2f2f2;
}

.card-native__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-native__body {
    padding: 16px 0 0;
}

.card-native__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #595959;
    margin-bottom: 8px;
}

.card-native__title {
    font-family: var(--ff-sans);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.card-native__title a {
    color: inherit;
    text-decoration: none;
}

.card-native__desc {
    font-family: var(--ff-sans);
    font-size: 15px;
    line-height: 1.45;
    color: #333;
    margin: 0 0 18px;
}

.card-native__cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.card-native__cta:hover,
.card-native__cta:focus-visible {
    background-color: #1a1a1a;
    color: #fff;
}

@media (min-width: 880px) {
    .card-native__title {
        font-size: 26px;
    }
}

/* ──────────────────────────────────────────────
   Disclaimer affiliazione (fondo HP + fondo archive Book Club)
   Richiesta marketing 06/05/2026: dichiarazione obbligatoria link affiliati.
   Esteso all'archive Book Club l'11/05/2026 (su tutte le pagine paginate).
   ────────────────────────────────────────────── */
.affiliate-disclaimer {
    margin: 60px 0 40px;
    padding-top: 24px;
    border-top: 1px solid var(--c-gray-200, #e5e5e5);
}
.affiliate-disclaimer p {
    margin: 0;
    font-family: var(--ff-sans);
    font-size: 12px;
    line-height: 1.6;
    color: var(--c-gray-600, #666);
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
    padding-inline: 15px;
}
@media (max-width: 575px) {
    .affiliate-disclaimer {
        margin: 40px 0 24px;
        padding-top: 18px;
    }
    .affiliate-disclaimer p {
        font-size: 11px;
        text-align: left;
    }
}
