/* =============================================
   Ambulatorio Veterinario Bisenzio — sito vetrina
   Palette: VetHub Bisenzio v4 (indigo + sky)
   Font: Outfit + DM Sans
   ============================================= */

/* Font self-hosted (GDPR-safe, no chiamate a Google).
   Sorgenti scaricati con fetch_fonts.py - rigenera con quello script. */
@import url('/static/fonts/fonts.css');

:root {
    --primary: #3f5dcc;
    --primary-dark: #2e45a3;
    --primary-light: rgba(63, 93, 204, 0.08);
    --primary-tint: #e6ebfa;
    --accent: #43c8f5;
    --accent-dark: #2196c7;
    --accent-tint: #e3f4fd;
    --navy: #15213f;
    --bg: #f2f5fa;
    --surface: #ffffff;
    --border: #dce3ee;
    --text: #1a2940;
    --text-secondary: #56627a;
    --text-muted: #6b7791;
    --success: #2d8a5f;
    --warning: #d4a853;
    --shadow-sm: 0 1px 2px rgba(26, 41, 64, 0.05);
    --shadow: 0 1px 3px rgba(26, 41, 64, 0.07), 0 1px 2px rgba(26, 41, 64, 0.04);
    --shadow-md: 0 4px 14px rgba(26, 41, 64, 0.08);
    --shadow-lg: 0 14px 36px rgba(26, 41, 64, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --content-max: 1200px;
    --header-h: 72px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-alt: 'DM Sans', 'Outfit', sans-serif;
    --focus-ring-color: #3f5dcc;
    --focus-ring-width: 2px;
    --focus-ring-offset: 2px;
}

/* ===== Accessibility utilities ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: top .15s;
}
.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

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

/* Focus indicator coerente col brand su tutti gli elementi interattivi.
   :focus-visible mostra il ring solo per navigazione tastiera, non al click mouse. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}
/* Per landmark <main> focalizzato via skip-link: niente ring (è il bersaglio,
   non un controllo) — ma mantiene tabindex=-1 per essere focalizzabile. */
main:focus,
main:focus-visible { outline: none; }

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

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

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.site-header .container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
}
.brand-mark {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid; place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}
.brand-mark-svg {
    width: 40px; height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(63, 93, 204, 0.18));
}
.site-footer .brand-mark-svg {
    filter: drop-shadow(0 0 12px rgba(67, 200, 245, 0.25));
}

/* ===== Hero waves (transition to info-bar) ===== */
.hero-waves {
    line-height: 0;
    margin-top: -100px;
    pointer-events: none;
    overflow: hidden;
}
.hero-waves img {
    width: 100%;
    height: 110px;
    display: block;
}

/* ===== Mascots responsive ===== */
.mascots-wrap {
    text-align: center;
}
@media (max-width: 800px) {
    .section.alt .container[style] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }
    .section.alt .section-title[style],
    .section.alt .section-lead[style] {
        text-align: center !important;
    }
    .mascots-wrap img { max-width: 240px !important; }
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: background .15s, color .15s;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav a.active { color: var(--primary); background: var(--primary-light); }

.btn-cta {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    border: none;             /* serve quando .btn-cta è applicata a un <button> */
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
/* Quando la CTA "Prenota online" è anche la pagina corrente
   (active='prenota'), il template aggiunge `class="active btn-cta"`.
   Senza questo override, .nav a.active vince sul background della
   .btn-cta (specificity 0,2,1 vs 0,1,0) → sfondo indigo CHIARO con
   testo bianco !important = bottone quasi invisibile. */
.nav a.active.btn-cta,
.nav a.btn-cta[aria-current="page"] {
    background: var(--primary-dark);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    padding: 80px 24px 100px;
    background:
        radial-gradient(ellipse at top right, var(--accent-tint), transparent 60%),
        radial-gradient(ellipse at bottom left, var(--primary-tint), transparent 60%),
        var(--bg);
    text-align: center;
}
.hero .container { max-width: 880px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Sezione generica ===== */
.section {
    padding: 80px 24px;
}
.section .container { max-width: var(--content-max); margin: 0 auto; }
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section.alt { background: var(--surface); }

/* ===== Grid servizi ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.service-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: grid; place-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.service-icon.accent { background: var(--accent-tint); color: var(--accent-dark); }
.service-card h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
}
.service-card p {
    color: var(--text-secondary);
    font-size: .95rem;
}

/* ===== Info bar (orari/contatti rapidi) ===== */
.info-bar {
    background: var(--navy);
    color: #fff;
    padding: 20px 24px;
}
.info-bar .container {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
}
.info-item strong { color: #fff; }
.info-item .ico {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: grid; place-items: center;
    flex-shrink: 0;
}

/* ===== Contatti grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact-card h3 {
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.25rem;
}
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .ico {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.contact-row strong {
    display: block;
    color: var(--navy);
    margin-bottom: 2px;
}
.contact-row a, .contact-row span {
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding: 60px 24px 30px;
    margin-top: 80px;
}
.site-footer .container {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 800px) {
    .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul a {
    color: rgba(255,255,255,.7);
    transition: color .15s;
}
.site-footer ul a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-mark { box-shadow: none; }
.footer-payments {
    max-width: var(--content-max);
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.footer-payments-label {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.footer-payments-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.footer-payments-logos img {
    height: 36px;
    width: auto;
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    box-sizing: content-box;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
@media (max-width: 480px) {
    .footer-payments-logos img { height: 28px; padding: 5px 8px; }
}
.footer-bottom {
    max-width: var(--content-max);
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

/* ===== Magazine layout (notizie.html) ===== */
.masthead {
    background: var(--surface);
    padding: 36px 24px 0;
}
.masthead .container { max-width: 1200px; margin: 0 auto; }
.masthead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.4px;
    flex-wrap: wrap;
    gap: 8px;
}
.masthead-status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}
.masthead-title {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 24px 0 14px;
    flex-wrap: wrap;
}
.masthead-monogram {
    width: 72px; height: 72px;
    border: 2px solid var(--navy);
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-alt);
    position: relative;
    flex-shrink: 0;
}
.masthead-monogram .dot {
    position: absolute;
    top: -3px; right: -3px;
    width: 14px; height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #fff;
}
.masthead-wordmark { flex: 1; min-width: 280px; }
.masthead-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.masthead-wordmark h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -2.5px;
    line-height: 0.95;
}
.masthead-wordmark .period { color: var(--primary); }
.masthead-wordmark em {
    font-weight: 300;
    font-style: italic;
    letter-spacing: -1.5px;
}
.masthead-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin: 6px 0 24px;
    font-family: var(--font-alt);
}

.categories-rail {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: var(--header-h);
    z-index: 50;
}
.categories-rail .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.categories-rail .cat {
    padding: 8px 14px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.categories-rail .cat:hover { background: var(--primary-light); color: var(--primary); }
.categories-rail .cat.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.news-fold {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 48px;
}
@media (max-width: 900px) { .news-fold { grid-template-columns: 1fr; gap: 40px; } }

.featured-cover {
    height: 440px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}
.cover-tags {
    position: absolute;
    top: 20px; left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.num-tag {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--navy);
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 14px;
    font-family: var(--font-alt);
}
.num-tag.dark {
    width: auto; height: auto;
    padding: 2px 7px;
    background: rgba(255,255,255,.85);
    color: var(--navy);
    font-size: 12px;
    border-radius: 4px;
    position: absolute;
    top: 8px; left: 8px;
}
.cat-tag {
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.reading-time {
    position: absolute;
    bottom: 20px; right: 20px;
    background: rgba(255,255,255,.95);
    color: var(--navy);
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.featured-article h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1.4px;
    line-height: 1.1;
    max-width: 720px;
}
.standfirst {
    margin: 18px 0 0;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 700px;
    font-family: var(--font-alt);
}
.byline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 14px;
    font-family: var(--font-alt);
    flex-shrink: 0;
}
.byline-info { flex: 1; min-width: 160px; }
.byline-info strong { display: block; color: var(--navy); font-size: 14px; }
.byline-info span { color: var(--text-muted); font-size: 12px; }

.secondary-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.secondary-feat {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: start;
}
.secondary-cover {
    height: 120px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.secondary-feat h3 {
    margin: 6px 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.secondary-feat p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.secondary-feat .meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-alt);
}

.cat-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 4px;
}
.cat-eyebrow.indigo { color: var(--primary); background: var(--primary-light); }
.cat-eyebrow.sky { color: var(--accent-dark); background: var(--accent-tint); }
.cat-eyebrow.gold { color: #b8860b; background: #fff8e1; }
.cat-eyebrow.rose { color: #c2185b; background: #fce4ec; }
.cat-eyebrow.green { color: #00796b; background: #e0f2f1; }
/* Badge ruolo nelle card /team: colore UNICO (brand) per tutti i membri, cosi'
   lo stesso ruolo ha sempre lo stesso badge. Le varianti sopra (indigo/sky/...)
   restano per le categorie delle notizie, dove il colore-per-categoria e' voluto. */
.cat-eyebrow.role { color: var(--primary); background: var(--primary-light); }

.editor-pick {
    background: var(--navy);
    color: #fff;
    border-radius: 14px;
    padding: 22px 24px;
}
.editor-pick .eyebrow {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.editor-pick .pick-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.editor-pick .pick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.cat-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.8px;
}
.cat-header .cat-rule {
    flex: 1;
    height: 2px;
    background: var(--navy);
    min-width: 60px;
}
.cat-header > a {
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
}

.article-grid {
    display: grid;
    /* auto-fill (non auto-fit): con 1 sola card resta un track ~300px,
       evita la "bandiera ultrasottile" da cover 1180×180. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
/* Cap a 3 colonne max: oltre, lo spazio resta vuoto a destra (justify start) */
@media (min-width: 1000px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 340px));
        justify-content: start;
    }
}
.art-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    padding: 0 0 18px;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.art-cover {
    height: 180px;
    margin-bottom: 16px;
}
.art-card .cat-eyebrow { margin-left: 18px; }
.art-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 18px 10px;
}
.art-card .meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-alt);
    margin: 0 18px;
}

.trending-strip { background: var(--bg); }
.trending-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.trending-head h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.8px;
}
.meta-mono {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.trending-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text);
}
.trending-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.trending-num {
    position: absolute;
    top: -10px; right: -8px;
    font-size: 88px;
    font-weight: 800;
    color: var(--primary-tint);
    line-height: 1;
    font-family: var(--font-alt);
    letter-spacing: -4px;
}
.trending-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin: 0;
    position: relative;
    z-index: 1;
    min-height: 56px;
}
.trending-card .meta {
    font-size: 11px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Newsletter band */
.newsletter-band {
    background: var(--navy);
    color: #fff;
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
}
.newsletter-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(67,200,245,0.15), transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(63,93,204,0.18), transparent 50%);
    pointer-events: none;
}
.newsletter-band .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .newsletter-band .container { grid-template-columns: 1fr; gap: 32px; }
}
.nl-text h2 {
    margin: 14px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
}
.nl-text p {
    margin: 20px 0 0;
    font-size: 15px;
    color: #a8b8d4;
    line-height: 1.6;
    max-width: 460px;
}
.nl-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(8px);
}
.nl-form .cat-eyebrow {
    background: transparent !important;
    padding: 0;
    margin-bottom: 6px;
}
.nl-form input, .nl-form select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 13px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}
.nl-form input:focus-visible, .nl-form select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}
.nl-form input::placeholder { color: rgba(255,255,255,0.5); }
.nl-form select option { color: var(--text); }
.nl-consent {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #a8b8d4;
    align-items: flex-start;
    margin-top: 4px;
}
.btn-nl {
    background: var(--accent);
    color: var(--navy);
    border: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    transition: transform .15s, box-shadow .15s;
}
.btn-nl:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(67,200,245,0.35); }

/* ===== Team grid ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    scroll-margin-top: 90px;
}
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.team-card:target {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.team-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-tint), var(--accent-tint));
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-md);
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-initials {
    font-family: var(--font-alt);
    font-weight: 800;
    font-size: 32px;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.team-info { flex: 1; }
.team-info h3 {
    margin: 6px 0 8px;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.team-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.55;
}

/* ===== Cookie banner GDPR ===== */
.avc-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 1000;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    font-family: var(--font);
    animation: avc-slide-up .25s ease-out;
}
@keyframes avc-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.avc-banner .avc-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
.avc-banner .avc-text strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 4px;
}
.avc-banner .avc-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.avc-banner .avc-text a {
    color: var(--primary);
    text-decoration: underline;
}
.avc-banner .avc-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.avc-btn {
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.avc-btn:hover { transform: translateY(-1px); }
.avc-btn.avc-secondary:hover { border-color: var(--primary); color: var(--primary); }
.avc-btn.avc-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(63,93,204,0.25);
}
.avc-btn.avc-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(63,93,204,0.35);
}

@media (max-width: 800px) {
    .avc-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
    .avc-banner .avc-inner { grid-template-columns: 1fr; gap: 14px; }
    .avc-banner .avc-actions { flex-direction: column-reverse; align-items: stretch; }
    .avc-btn { width: 100%; padding: 12px; }
}

/* Cookie preferences modal */
.avc-prefs {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: avc-fade-in .15s ease-out;
}
@keyframes avc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.avc-prefs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 33, 63, 0.55);
    backdrop-filter: blur(4px);
}
.avc-prefs-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
}
.avc-prefs-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.avc-prefs-card h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 700;
}
.avc-x {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
}
.avc-x:hover { background: var(--bg); color: var(--text); }
.avc-prefs-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.5;
}
.avc-prefs-intro a { color: var(--primary); }
.avc-cat {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}
.avc-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.avc-cat-head strong { color: var(--navy); font-size: 15px; }
.avc-cat p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* iOS-style toggle */
.avc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}
.avc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.avc-track {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 9999px;
    transition: background .2s;
}
.avc-track::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.avc-toggle input:checked + .avc-track { background: var(--primary); }
.avc-toggle input:checked + .avc-track::before { transform: translateX(20px); }
.avc-toggle.disabled { opacity: 0.6; cursor: not-allowed; }
.avc-toggle.disabled .avc-track { background: var(--success); }

.avc-prefs-card footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .avc-prefs-card { padding: 20px; }
    .avc-prefs-card footer .avc-btn { flex: 1; }
}

/* ===== Privacy/Cookie policy pages ===== */
.policy-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.policy-content h1 {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.policy-content .updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    font-family: var(--font-alt);
}
.policy-content h2 {
    font-size: 1.4rem;
    color: var(--navy);
    margin: 36px 0 12px;
    font-weight: 700;
}
.policy-content h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 24px 0 8px;
    font-weight: 600;
}
.policy-content p { margin: 0 0 14px; color: var(--text-secondary); line-height: 1.7; }
.policy-content ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-secondary); line-height: 1.7; }
.policy-content li { margin-bottom: 6px; }
.policy-content a { color: var(--primary); text-decoration: underline; }
.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-size: 14px;
}
.policy-content th, .policy-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.policy-content th { background: var(--bg); color: var(--navy); font-weight: 600; }
.policy-content td { color: var(--text-secondary); }
.policy-cta {
    background: var(--primary-tint);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
}
.policy-cta strong { color: var(--navy); }
.policy-cta button {
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.policy-cta button:hover { background: var(--primary-dark); }

/* ===== Mobile + Tablet (≤ 1024px) =====
   Alzato da 800 a 1024 perché su tablet (~960px) i 7 link nav + CTA
   "Prenota online" stravano dalla viewport → causa scrollbar orizzontale
   globale. Hamburger ora copre tutta la fascia tablet. */
@media (max-width: 1024px) {
    .nav { display: none; }
    .nav-toggle { display: block; }
    .nav.open {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-md);
    }
    .hero { padding: 60px 20px 70px; }
    .section { padding: 60px 20px; }
}

/* === Pagina articolo singolo (/notizie/{slug}) === */
.article-page {
    padding: 60px 0 80px;
    background: var(--surface);
}
/* Layout DESKTOP a 2 colonne (redesign 2026-07-11 — feedback titolare: la
   colonnina 720px centrata su un 1920px 'non ottimizza lo spazio').
   Griglia: colonna di lettura ~760px (misura tipografica corretta: NON si
   allarga il testo, si USA il resto) + sidebar sticky 330px con CTA prenota,
   articoli correlati e categorie. Sotto i 1080px torna una colonna
   (sidebar in coda all'articolo). */
.article-layout {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 760px) 330px;
    justify-content: center;
    gap: 0 64px;
    align-items: start;
}
.article-main { min-width: 0; }
.article-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.aside-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(21,33,63,.05));
}
.aside-card-title {
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
}
/* CTA prenota: il vero uso commerciale dello spazio */
.aside-cta {
    background: linear-gradient(135deg, var(--navy), #24356b);
    border: none;
    color: #fff;
}
.aside-cta h3 {
    margin: 0 0 6px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}
.aside-cta p { margin: 0 0 16px; font-size: .88rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.aside-cta .btn { width: 100%; justify-content: center; }
/* Correlati: mini-card orizzontali thumb + titolo */
.aside-rel {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    padding: 9px 0;
}
.aside-rel + .aside-rel { border-top: 1px solid var(--border); }
.aside-rel-thumb {
    width: 62px; height: 62px;
    flex-shrink: 0;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}
.aside-rel-title {
    margin: 0 0 4px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aside-rel:hover .aside-rel-title { color: var(--primary); }
.aside-rel-meta { font-size: .75rem; color: var(--text-muted); }
/* Categorie: chips */
.aside-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.aside-cat-chip {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.aside-cat-chip:hover { border-color: var(--primary); background: var(--primary-tint); }
@media (max-width: 1080px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-aside { position: static; margin-top: 44px; max-width: 760px; }
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.article-breadcrumb .sep { color: var(--border); }
.article-breadcrumb .cat-eyebrow { margin-bottom: 0; }

.article-header h1 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1.2px;
    line-height: 1.1;
}
.article-standfirst {
    margin: 0 0 28px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.55;
    font-family: var(--font-alt);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0 28px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.article-meta strong { display: block; color: var(--navy); font-size: 14px; }
.article-meta span { color: var(--text-muted); font-size: 12px; }

.article-cover {
    margin: 0 0 36px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.article-cover img {
    display: block;
    width: 100%;
    height: auto;
    /* Le cover migrate da WP sono quasi quadrate → sulla colonna diventavano
       ENORMI (feedback titolare). Cap d'altezza + crop centrale: il soggetto
       resta, i margini bianchi sopra/sotto spariscono. */
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}
.article-body h2 {
    margin: 36px 0 14px;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.article-body h3 {
    margin: 28px 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.3px;
}
.article-body h4 {
    margin: 22px 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}
.article-body p { margin: 0 0 16px; }
.article-body ul,
.article-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body a:hover { color: var(--primary-dark); }
.article-body strong { color: var(--navy); }
.article-body blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--accent);
    background: var(--accent-tint);
    font-style: italic;
    color: var(--navy);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: .95rem;
}
.article-body th,
.article-body td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.article-body th {
    background: var(--bg);
    font-weight: 700;
    color: var(--navy);
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 18px 0;
}

/* Condivisione articolo (2026-07-11) */
.article-share {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}
.article-share-label {
    font-weight: 700;
    color: var(--navy);
    font-size: .95rem;
}
.article-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.article-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.article-share-btn:hover {
    border-color: var(--primary);
    background: var(--primary-tint);
    transform: translateY(-1px);
}

.article-rule {
    margin: 56px 0 36px;
    border: none;
    border-top: 1px solid var(--border);
}

.article-related h2 {
    margin: 0 0 24px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.4px;
}

.article-back {
    margin-top: 44px;
    text-align: center;
}

@media (max-width: 720px) {
    .article-page { padding: 40px 0 60px; }
    .article-body { font-size: 1rem; }
    .article-cover { border-radius: 10px; }
}

/* ===== Reduced motion =====
   Rispetta la preferenza OS "Riduci movimento" (utenti con disturbi vestibolari,
   emicrania, sensibilità al motion). Disabilita animazioni e scroll smooth. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto !important; }
}


/* ============================================================
   SHOP PUBBLICO (M3) — Negozio online + carrello sessionStorage
   ============================================================ */

/* Breadcrumb */
.shop-breadcrumb {
    font-size: .9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--brand-700, #3f5dcc); text-decoration: underline; }
.shop-breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

/* Barra di ricerca prodotti */
.shop-search-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}
.shop-search {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.shop-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
}
.shop-search-icon svg { width: 20px; height: 20px; }
.shop-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 13px 16px 13px 46px;
    border: 1.5px solid var(--border, #e8eaf2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.shop-search input[type="search"]::placeholder { color: var(--text-muted); }
.shop-search input[type="search"]:focus-visible {
    outline: none;
    border-color: var(--brand-500, #3f5dcc);
    box-shadow: 0 0 0 3px var(--primary-tint, rgba(63,93,204,.15));
}
.shop-search-btn { flex-shrink: 0; padding-left: 24px; padding-right: 24px; }
@media (max-width: 540px) {
    .shop-search-btn { padding-left: 16px; padding-right: 16px; }
}

/* Menu a tendina suggerimenti ricerca live */
.shop-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border, #e8eaf2);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(20, 30, 70, .18);
    overflow: hidden auto;
    max-height: 64vh;
    z-index: 60;
}
.shop-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border, #eef0f6);
}
.shop-search-row:last-child { border-bottom: none; }
.shop-search-row:hover,
.shop-search-row.is-active { background: var(--primary-tint, #eef2ff); }
.shop-search-row-thumb {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 9px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f4ff, #e2ecfb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-500, #3f5dcc);
}
.shop-search-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-search-row-ph { display: flex; }
.shop-search-row-ph svg { width: 22px; height: 22px; }
.shop-search-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shop-search-row-name {
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-search-row-cat { font-size: .76rem; color: var(--text-muted); }
.shop-search-row-price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: .9rem;
    color: var(--brand-600, #3a53b8);
}
.shop-search-empty-row {
    padding: 16px 14px;
    color: var(--text-muted);
    font-size: .9rem;
    text-align: center;
}

/* Stato "nessun risultato" ricerca */
.shop-search-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}
.shop-search-empty svg { color: var(--border, #c7d3f0); margin-bottom: 8px; }
.shop-search-empty p { margin: 6px 0; }
.shop-search-empty-hint { font-size: .9rem; }
.shop-search-empty .btn { margin-top: 16px; }

/* Categorie come service-card ma con anchor link */
.shop-cat-grid .shop-cat-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.shop-cat-card h3 { color: var(--text); }

/* Griglia prodotti */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.shop-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border, #e8eaf2);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.shop-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border-color: var(--brand-300, #c7d3f0);
}
.shop-product-card:focus-visible {
    outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #3f5dcc);
    outline-offset: var(--focus-ring-offset, 2px);
}

.shop-product-card-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef0f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.shop-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-product-card-img-placeholder {
    color: rgba(0,0,0,.25);
}

/* Illustrazione standard esami di laboratorio (prodotti senza foto) */
.shop-lab-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #dceafc 100%);
}
.shop-lab-thumb-icon {
    width: 44%;
    max-width: 104px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-500, #3f5dcc);
    box-shadow: 0 5px 16px rgba(63, 93, 204, .16);
}
.shop-lab-thumb-icon svg { width: 52%; height: 52%; }

.shop-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.shop-badge-featured {
    background: var(--gold-100, #fff4d6);
    color: var(--gold-700, #8a5a00);
}
.shop-badge-warn {
    background: #fff4e6;
    color: #a04500;
    top: auto;
    bottom: 10px;
    left: 10px;
}

.shop-product-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.shop-product-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    /* clamp a 3 righe */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-product-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--text-muted);
}
.shop-cat-pill {
    background: rgba(67, 200, 245, .12);
    color: var(--brand-700, #3f5dcc);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 500;
}
.shop-product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: auto;
}

/* Pagina dettaglio prodotto */
.shop-product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1fr;
    gap: 48px;
    margin-top: 24px;
}
@media (max-width: 720px) {
    .shop-product-detail { grid-template-columns: 1fr; gap: 24px; }
}

.shop-product-detail-main-img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef0f6 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border, #e8eaf2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-product-detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-product-detail-no-img { color: rgba(0,0,0,.2); }

.shop-product-detail-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.shop-product-detail-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    width: 64px;
    height: 64px;
}
.shop-product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-product-detail-thumb.active {
    border-color: var(--brand-700, #3f5dcc);
}

.shop-product-detail-info h1 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin: 0 0 16px;
}
.shop-product-detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.shop-product-detail-stock {
    margin-bottom: 20px;
    font-size: .95rem;
}
.shop-stock-ok { color: #17794a; font-weight: 500; }
.shop-stock-warn { color: #a04500; }
.shop-stock-info { color: var(--text-muted); }

.shop-product-detail-desc {
    color: var(--text);
    line-height: 1.6;
    margin: 16px 0 24px;
}

.shop-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fafbfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border, #e8eaf2);
}
.shop-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .9rem;
    font-weight: 500;
}
.shop-form-group select,
.shop-form-group input,
.shop-form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border, #d1d5db);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.shop-form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.45;
}
.shop-form-group select:focus-visible,
.shop-form-group input:focus-visible,
.shop-form-group textarea:focus-visible {
    outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #3f5dcc);
    outline-offset: 0;
    border-color: transparent;
}
.shop-form-group label > span {
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: var(--text);
}
.shop-add-to-cart .btn { align-self: flex-start; }

.shop-feedback { font-size: .9rem; min-height: 1.2em; }
.shop-feedback.success { color: #17794a; }
.shop-feedback.error { color: #c0392b; }

.shop-product-detail-pickup-note {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: .9rem;
}

/* Mini-cart fluttuante */
.shop-floating-cart {
    position: fixed;
    bottom: max(env(safe-area-inset-bottom), 18px);
    right: 18px;
    z-index: 50;
    background: var(--brand-700, #1f2c66);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: transform .15s ease, box-shadow .15s ease;
}
.shop-floating-cart:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.shop-floating-cart:focus-visible {
    outline: 3px solid var(--gold-500, #d4a853);
    outline-offset: 3px;
}
.shop-floating-cart-count {
    background: var(--gold-500, #d4a853);
    color: #1a1a1a;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: .75rem;
    min-width: 22px;
    text-align: center;
}

/* Pagina carrello */
.shop-cart-empty { text-align: center; padding: 40px 0; }
.shop-cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 720px) {
    .shop-cart-grid { grid-template-columns: 1fr; }
}
.shop-cart-items { display: flex; flex-direction: column; gap: 12px; }
.shop-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border, #e8eaf2);
    border-radius: 12px;
    padding: 14px;
    align-items: center;
}
.shop-cart-item-img {
    width: 80px; height: 80px;
    object-fit: cover; border-radius: 8px;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef0f6 100%);
}
.shop-cart-item-img-placeholder {
    width: 80px; height: 80px;
    background: linear-gradient(180deg, #f7f8fb 0%, #eef0f6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,.25);
}
.shop-cart-item-body { min-width: 0; }
.shop-cart-item-name {
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
    font-size: .98rem;
}
.shop-cart-item-name a { color: inherit; text-decoration: none; }
.shop-cart-item-name a:hover { text-decoration: underline; }
.shop-cart-item-variant { font-size: .85rem; color: var(--text-muted); margin-bottom: 4px; }
.shop-cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.shop-cart-item-qty button {
    width: 30px; height: 30px;
    border: 1px solid var(--border, #d1d5db);
    background: #fff;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
.shop-cart-item-qty button:hover { background: #f7f8fb; }
.shop-cart-item-qty input {
    width: 50px;
    padding: 6px;
    border: 1px solid var(--border, #d1d5db);
    border-radius: 6px;
    text-align: center;
    font-size: .95rem;
    font-family: inherit;
}
.shop-cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.shop-cart-item-price { font-weight: 700; }
.shop-cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .85rem;
    text-decoration: underline;
}
.shop-cart-item-remove:hover { color: #c0392b; }

.shop-cart-summary {
    background: #fafbfd;
    border: 1px solid var(--border, #e8eaf2);
    border-radius: 12px;
    padding: 22px;
    position: sticky;
    top: 96px;
}
.shop-cart-summary h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
}
.shop-cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: .95rem;
}
.shop-cart-summary-total {
    border-top: 1px solid var(--border, #e8eaf2);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 1.15rem;
    font-weight: 700;
}
.shop-cart-pickup-note {
    margin: 16px 0;
    padding: 12px;
    background: rgba(67, 200, 245, .08);
    border-radius: 8px;
    font-size: .85rem;
    color: var(--text);
}
.shop-cart-checkout-btn { width: 100%; justify-content: center; margin-top: 10px; }
.shop-cart-clear-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 12px;
    padding: 8px;
    font-size: .85rem;
    font-family: inherit;
}
.shop-cart-clear-btn:hover { color: #c0392b; }

/* Checkout (M4) */
.shop-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 720px) {
    .shop-checkout-grid { grid-template-columns: 1fr; }
}
.shop-checkout-form { min-width: 0; }
.shop-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}
.shop-checkout-item {
    background: #fff;
    border: 1px solid var(--border, #e8eaf2);
    border-radius: 10px;
    padding: 14px 16px;
}
.shop-checkout-item-warn {
    background: #fff4e6;
    border-color: #f5d4a3;
}
.shop-checkout-item-name { margin: 0; font-weight: 600; }
.shop-checkout-item-variant { margin: 4px 0 0; color: var(--text-muted); font-size: .9rem; }
.shop-checkout-item-qty { margin: 6px 0 0; font-size: .95rem; color: var(--text-muted); }
.shop-checkout-item .shop-form-group select {
    padding: 8px 10px;
    font-size: .95rem;
}

/* Spinner inline */
.shop-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(63, 93, 204, 0.2);
    border-top-color: var(--brand-700, #3f5dcc);
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes shop-spin { to { transform: rotate(360deg); } }

/* Pagina grazie */
.shop-thanks-success { text-align: center; padding: 24px 0; }
.shop-thanks-icon {
    color: #17794a;
    margin-bottom: 18px;
}
.shop-thanks-icon svg {
    background: rgba(23, 121, 74, 0.1);
    border-radius: 50%;
    padding: 14px;
}
.shop-thanks-success h1 { margin-bottom: 16px; }
.shop-thanks-actions {
    margin: 32px 0;
    padding: 24px;
    background: rgba(23, 121, 74, 0.06);
    border-radius: 12px;
}
.shop-thanks-actions .btn { font-size: 1.1rem; padding: 14px 24px; }
.shop-thanks-next {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.shop-thanks-next li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--text);
}
.shop-thanks-next li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    color: #17794a;
    font-weight: 700;
}

/* CTA "Torna alla tua area personale" sulla pagina di ringraziamento */
.shop-thanks-back {
    margin: 36px auto 0;
    padding: 24px 20px 12px;
    border-top: 1px solid var(--border, #e8eaf2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.shop-thanks-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 22px;
}
.shop-thanks-secondary-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
}
.shop-thanks-secondary-link:hover {
    color: var(--brand-700, #3f5dcc);
    text-decoration: underline;
}

/* Stepper checkout (Verifica → Conferma → Paga) */
.shop-checkout-stepper {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    gap: 8px;
    flex-wrap: wrap;
    counter-reset: shop-step;
}
.shop-checkout-stepper li {
    counter-increment: shop-step;
    flex: 1 1 0;
    min-width: 130px;
    padding: 10px 14px 10px 40px;
    border-radius: 10px;
    background: #fafbfd;
    border: 1px solid var(--border, #e8eaf2);
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    position: relative;
}
.shop-checkout-stepper li::before {
    content: counter(shop-step);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8eaf2;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
}
.shop-checkout-stepper li.active {
    background: rgba(63, 93, 204, 0.08);
    border-color: var(--brand, #5174de);
    color: var(--brand-700, #3f5dcc);
}
.shop-checkout-stepper li.active::before {
    background: var(--brand-700, #3f5dcc);
    color: #fff;
}

/* Bottone CTA grosso checkout (totale incluso) */
.shop-checkout-cta-big {
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px !important;
    font-size: 1rem;
    line-height: 1.2;
}
.shop-checkout-cta-line1 {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}
.shop-checkout-cta-line2 {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .3px;
}

/* Customer picker: display read-only quando 1 sola anagrafica */
.shop-checkout-customer-display {
    padding: 10px 14px;
    background: rgba(67, 200, 245, .10);
    border-radius: 8px;
    font-size: .95rem;
}
.shop-checkout-customer-label {
    color: var(--text-muted);
    font-size: .85rem;
}

/* Banner "Ritiro in ambulatorio" prominente, riusato in hero/sidebar/checkout */
.shop-pickup-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(67, 200, 245, .14);
    border: 1px solid rgba(67, 200, 245, .35);
    border-radius: 999px;
    font-size: .92rem;
    color: var(--text);
    line-height: 1.4;
}
.shop-pickup-banner svg {
    flex: 0 0 auto;
    color: var(--brand-700, #3f5dcc);
}
.shop-pickup-banner-inline {
    display: flex;
    border-radius: 10px;
    margin: 14px 0;
    width: 100%;
    align-items: flex-start;
}
@media (max-width: 640px) {
    /* Mobile: la capsula tonda si trasforma in card rettangolare leggibile.
       Bug-fix: NON usare display:flex qui — tratta ogni text-node tra
       <a>/<strong> come anonymous flex item, generando colonne strette.
       Con display:block il testo fluisce normalmente e l'icona resta
       inline a inizio frase. */
    .shop-pickup-banner {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: .88rem;
        line-height: 1.55;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
    .shop-pickup-banner svg {
        display: inline-block;
        vertical-align: -3px;
        margin-right: 8px;
        margin-top: 0;
    }
}

/* ===========================================================================
 *  /notizie restyle (2026-05-19)
 *  Override mirati per hero / categories-rail / fold. Niente refactor.
 * =========================================================================== */

/* --- Hero specifico magazine --- */
.hero-news .hero-eyebrow { letter-spacing: .2px; }

.hero-meta {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 22px;
    font-family: var(--font-alt);
    color: var(--text-secondary);
    font-size: .92rem;
}
.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hero-meta li + li {
    padding-left: 22px;
    border-left: 1px solid var(--border);
}
.hero-meta strong {
    color: var(--navy);
    font-weight: 800;
    font-size: 1.05rem;
}
@media (max-width: 540px) {
    .hero-meta li + li {
        padding-left: 0;
        border-left: 0;
    }
    .hero-meta {
        gap: 6px 16px;
    }
}

/* --- Categories rail: chip outline + counter + indicatore attivo --- */
.categories-rail {
    background: var(--surface);
    box-shadow: 0 1px 0 var(--border), 0 6px 12px -10px rgba(0, 30, 80, 0.08);
    border-bottom: 0;
}
.categories-rail .container {
    height: 60px;
    gap: 8px;
    padding: 0 4px;
}
.categories-rail .cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9999px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1px;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.categories-rail .cat:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: transparent;
}
.categories-rail .cat-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    background: var(--border);
    color: var(--text-muted);
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.categories-rail .cat:hover .cat-count {
    background: var(--primary);
    color: #fff;
}
.categories-rail .cat.active {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 1px 0 var(--primary-tint);
}
.categories-rail .cat.active .cat-count {
    background: var(--primary);
    color: #fff;
}

/* --- Fold: featured cover overlay + reading-time leggibile su qualsiasi cover --- */
.featured-cover {
    box-shadow: 0 12px 28px -16px rgba(0, 30, 80, 0.35);
}
.featured-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(8, 18, 44, 0.55), transparent);
    pointer-events: none;
    border-radius: 0 0 14px 14px;
}
.featured-cover .cover-tags,
.featured-cover .reading-time {
    z-index: 1;
}
.reading-time {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.featured-article h2 a { transition: color .15s; }
.featured-article h2 a:hover { color: var(--primary); }

/* --- Secondary: cover laterale leggermente più grande, titolo più respiro --- */
.secondary-feat {
    grid-template-columns: 140px 1fr;
    gap: 18px;
}
.secondary-cover {
    height: 140px;
    box-shadow: 0 6px 14px -10px rgba(0, 30, 80, 0.3);
}
.secondary-feat h3 {
    font-size: 17px;
    line-height: 1.25;
}
.secondary-feat h3 a { transition: color .15s; }
.secondary-feat h3 a:hover { color: var(--primary); }
@media (max-width: 540px) {
    .secondary-feat {
        grid-template-columns: 110px 1fr;
        gap: 14px;
    }
    .secondary-cover { height: 110px; }
}

/* --- Editor pick: eyebrow oro + meta + arrow --- */
.editor-pick-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .2s;
}
.editor-pick-link:hover { transform: translateY(-2px); }
.editor-pick {
    background:
        radial-gradient(circle at 110% 0%, rgba(67, 200, 245, 0.18), transparent 60%),
        var(--navy);
    padding: 24px 26px;
    box-shadow: 0 16px 28px -18px rgba(0, 30, 80, 0.55);
}
.editor-pick .eyebrow {
    color: #f0c453;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.editor-pick .eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    display: inline-block;
}
.editor-pick .pick-title {
    margin-top: 10px;
    font-size: 19px;
}
.editor-pick .pick-meta {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    margin-top: 6px;
    font-family: var(--font-alt);
    letter-spacing: .2px;
}
.editor-pick .pick-link {
    margin-top: 16px;
}
.editor-pick .pick-link svg {
    transition: transform .15s;
}
.editor-pick-link:hover .pick-link svg {
    transform: translateX(3px);
}


