/* =====================================================================
   SITO PUBBLICO DEL CMS — tema "default"
   Indipendente dal resto dell'app (niente Bootstrap): un foglio solo,
   personalizzato dalle variabili che il layout imposta per sito
   (--p colore primario, --font-body, --font-head).
   ===================================================================== */

:root {
    --p: #4F46E5; --p-soft: #4F46E51a;
    --ink: #111827; --ink-2: #374151; --muted: #6B7280; --line: #E5E7EB; --bg: #FFFFFF; --bg-soft: #F8FAFC;
    --radius: 14px; --radius-sm: 8px; --accent: #F59E0B; --shadow: 0 10px 30px -14px rgba(15,23,42,.18);
    --max: 1180px; --narrow: 760px;
    --font-body: system-ui, -apple-system, sans-serif; --font-head: system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.container.narrow { width: min(var(--narrow), 100% - 40px); }
.container.full { width: 100%; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.prewrap { white-space: pre-wrap; }

/* ══════ BOTTONI ══════ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none !important; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--p); color: #fff; box-shadow: 0 6px 18px -8px var(--p); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: inherit; border-color: currentColor; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--p); color: var(--p); }

/* ══════ HEADER ══════ */
.cms-preview-bar { background: #FEF3C7; color: #92400E; font-size: .85rem; padding: 8px 20px; text-align: center; border-bottom: 1px solid #FDE68A; }
.cms-preview-bar a { color: #92400E; font-weight: 600; margin-left: 10px; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-dark .site-header { background: rgba(17,24,39,.94); border-bottom-color: rgba(255,255,255,.08); color: #fff; }
.header-primary .site-header { background: var(--p); border-bottom: none; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; font-weight: 800; font-family: var(--font-head); font-size: 1.15rem; text-decoration: none !important; }
.brand-logo { height: 40px; width: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--p); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.header-primary .brand-mark, .header-dark .brand-mark { background: rgba(255,255,255,.18); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: inline-block; padding: 10px 14px; border-radius: 8px; color: inherit; font-weight: 600; font-size: .92rem; text-decoration: none !important; }
.site-nav > ul > li > a:hover, .site-nav > ul > li.active > a { background: var(--p-soft); color: var(--p); }
.header-primary .site-nav > ul > li > a:hover, .header-primary .site-nav > ul > li.active > a,
.header-dark .site-nav > ul > li > a:hover, .header-dark .site-nav > ul > li.active > a { background: rgba(255,255,255,.14); color: #fff; }
.site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 6px 0 0; padding: 8px; display: none; z-index: 60; }
.site-nav .sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .9rem; text-decoration: none !important; }
.site-nav .sub a:hover { background: var(--bg-soft); color: var(--p); }
.site-nav li.has-children:hover .sub { display: block; }
.lang-switch { display: flex; gap: 4px; font-size: .78rem; }
.lang-switch a { padding: 4px 8px; border-radius: 6px; color: inherit; opacity: .7; text-decoration: none !important; }
.lang-switch a.current { background: var(--p-soft); color: var(--p); opacity: 1; font-weight: 700; }
.header-primary .lang-switch a.current, .header-dark .lang-switch a.current { background: rgba(255,255,255,.18); color: #fff; }
.nav-toggle { display: none; border: none; background: transparent; font-size: 1.8rem; color: inherit; cursor: pointer; }

/* ══════ SEZIONI ══════ */
.block { padding: 64px 0; }
.block.bg-soft { background: var(--bg-soft); }
.block.bg-dark { background: #111827; color: #E5E7EB; }
.block.bg-dark h1, .block.bg-dark h2, .block.bg-dark h3 { color: #fff; }
.block.bg-primary { background: var(--p); color: #fff; }
.block.bg-primary h1, .block.bg-primary h2, .block.bg-primary h3 { color: #fff; }
.block + .block { padding-top: 0; }
.block-hero + .block, .page-head + .block { padding-top: 64px; }
.block.bg-soft + .block, .block.bg-dark + .block, .block.bg-primary + .block, .block + .block.bg-soft, .block + .block.bg-dark, .block + .block.bg-primary { padding-top: 64px; }
.block-title { margin-bottom: .4em; }
.block-title.center { text-align: center; }
.block-subtitle { color: var(--muted); font-size: 1.05rem; max-width: 680px; margin-bottom: 1.6em; }
.block-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.block-head .block-subtitle { margin-bottom: 0; }
.link-more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin-bottom: .3em; }

/* ══════ HERO ══════ */
.block-hero { padding: 0; }
.hero { position: relative; background: linear-gradient(135deg, var(--p) 0%, color-mix(in srgb, var(--p) 60%, #0f172a) 100%); color: #fff; overflow: hidden; }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.45), rgba(15,23,42,.7)); }
.hero-inner { position: relative; padding: 96px 0; max-width: 780px; }
.hero-small .hero-inner { padding: 56px 0; }
.hero-large .hero-inner { padding: 150px 0; }
.hero.align-center .hero-inner { margin: 0 auto; text-align: center; }
.hero.align-center .hero-actions { justify-content: center; }
.hero-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; opacity: .85; margin-bottom: 14px; }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .35em; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .92; max-width: 640px; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--p); box-shadow: none; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }

/* ══════ PROSA (rich text) ══════ */
.prose { font-size: 1.06rem; color: var(--ink-2); }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { border-left: 4px solid var(--p); margin: 1.5em 0; padding: .4em 1.2em; color: var(--ink); font-style: italic; background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose pre { background: #0F172A; color: #E2E8F0; padding: 16px; border-radius: 10px; overflow: auto; }

/* ══════ COLONNE ══════ */
.cols { display: grid; gap: 24px; }
.cols-1 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
.col-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.bg-soft .col-item { border-color: transparent; }
.bg-dark .col-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #E5E7EB; }
.col-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--p-soft); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.col-image { border-radius: 10px; margin-bottom: 18px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.col-item h3 { margin-bottom: .4em; }
.col-item p { color: var(--muted); margin-bottom: .8em; }

/* ══════ CARD CONTENUTI ══════ */
.cards { display: grid; gap: 26px; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards-list { grid-template-columns: 1fr; }
.cards-list .card-item { display: grid; grid-template-columns: 260px 1fr; }
.card-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card-item:hover { transform: translateY(-3px); }
.bg-dark .card-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.card-media { display: block; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-item:hover .card-media img { transform: scale(1.04); }
.card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #CBD5E1; font-size: 2rem; background: linear-gradient(135deg, var(--p-soft), var(--bg-soft)); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; color: var(--muted); align-items: center; }
.card-title { font-size: 1.15rem; margin: 0; }
.card-title a { color: inherit; }
.bg-dark .card-title a { color: #fff; }
.card-excerpt { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; padding-top: 6px; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--p-soft); color: var(--p); text-decoration: none !important; }

/* ══════ IMMAGINI, GALLERIA, VIDEO, MAPPA ══════ */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.gallery { display: grid; gap: 12px; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); } .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); } .gallery.cols-4 { grid-template-columns: repeat(4, 1fr); } .gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--bg-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; border-radius: var(--radius); }
.map { aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ══════ CTA, CITAZIONE ══════ */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 48px; border-radius: 20px; flex-wrap: wrap; }
.cta-primary { background: var(--p); color: #fff; }
.cta-primary h2 { color: #fff; }
.cta-soft { background: var(--bg-soft); border: 1px solid var(--line); }
.cta-dark { background: #111827; color: #fff; }
.cta-dark h2 { color: #fff; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; opacity: .9; }
.cta-soft .btn-light { background: var(--p); color: #fff; }
.quote { margin: 0; text-align: center; }
.quote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-style: italic; color: var(--ink); line-height: 1.4; }
.quote p::before { content: "\201C"; color: var(--p); font-size: 2em; line-height: 0; vertical-align: -.35em; margin-right: 6px; }
.quote footer { color: var(--muted); font-weight: 600; }

/* ══════ FORM ══════ */
.site-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.bg-soft .site-form { border-color: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .88rem; }
.form-field input, .form-field textarea, .form-field select { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px var(--p-soft); }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 18px 0; cursor: pointer; }
.form-check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-alert { padding: 16px 20px; border-radius: 12px; font-weight: 600; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.form-alert.ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-alert.err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ══════ CONTENUTO ══════ */
.content-head { padding: 56px 0 24px; }
.content-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.type-link { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.content-title { margin-bottom: .4em; }
.content-excerpt { font-size: 1.2rem; color: var(--ink-2); }
.content-terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.content-featured { margin: 28px 0 0; }
.content-featured img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.content-body { padding: 24px 0 64px; }
.field-block { margin: 2em 0; }
.field-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4em; }
.details { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; margin: 2.5em 0 0; padding: 24px 28px; background: var(--bg-soft); border-radius: var(--radius); font-size: .95rem; }
.details dt { font-weight: 700; color: var(--ink); }
.details dd { margin: 0; color: var(--ink-2); }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; margin-right: 6px; border: 1px solid var(--line); }

/* ══════ PAGER, 404 ══════ */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none !important; }
.pager a.current { background: var(--p); color: #fff; border-color: var(--p); }
.big-code { font-size: 6rem; font-weight: 800; color: var(--p-soft); line-height: 1; font-family: var(--font-head); }

/* ══════ FOOTER ══════ */
.site-footer { background: #0F172A; color: #CBD5E1; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 32px; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #94A3B8; flex-wrap: wrap; }

/* ══════ RESPONSIVE ══════ */
@media (max-width: 992px) {
    .cols-3, .cols-4, .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .gallery.cols-4, .gallery.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cards-list .card-item { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .block { padding: 44px 0; }
    .cols-2, .cols-3, .cols-4, .cards-grid.cols-2, .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: 1fr; }
    .gallery.cols-3, .gallery.cols-4, .gallery.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .details { grid-template-columns: 1fr; gap: 4px 0; }
    .details dd { margin-bottom: 10px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .cta { padding: 32px 26px; }
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 8px; box-shadow: var(--shadow); }
    body.nav-open .site-nav { display: flex; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav > ul > li > a { display: block; }
    .site-nav .sub { position: static; display: block; box-shadow: none; border: none; padding: 0 0 0 14px; margin: 0; }
}

/* =====================================================================
   FAMIGLIE DI STILE (CmsTemplateCatalog.Style → classe .style-* sul body)
   Ogni famiglia ritocca proporzioni, ombre, raggi, hero e card. La palette
   (--p, --accent), il raggio (--radius) e i font arrivano dal template o
   dalle impostazioni del sito, gia' nelle variabili: qui solo il carattere.
   ===================================================================== */

/* Raggio unificato: tutti gli elementi seguono --radius del template */
.card-item, .col-item, .cta, .site-form, .figure img, .content-featured img, .video, .map, .details, .gallery-item, .form-alert { border-radius: var(--radius); }
.btn, .form-field input, .form-field textarea, .form-field select, .pager a { border-radius: var(--radius-sm); }
.brand-mark, .col-icon { border-radius: calc(var(--radius-sm) + 2px); }
.hero-kicker, .type-link, .footer-title { color: var(--accent); }
.hero .hero-kicker { color: rgba(255,255,255,.85); }

/* ── header trasparente (sopra l'hero) ── */
.header-transparent .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom: none; color: #fff; backdrop-filter: none; }
.header-transparent .brand-mark { background: rgba(255,255,255,.2); }
.header-transparent .site-nav > ul > li > a:hover, .header-transparent .site-nav > ul > li.active > a { background: rgba(255,255,255,.16); color: #fff; }
.header-transparent .lang-switch a.current { background: rgba(255,255,255,.2); color: #fff; }
.header-transparent .site-main { padding-top: 0; }
.header-transparent .hero-inner { padding-top: 160px; }
.header-transparent .page-head, .header-transparent .content-head { padding-top: 120px; }
.header-transparent .cms-preview-bar + .site-header { top: 37px; }

/* ── minimal: linee sottili, niente ombre, molta aria ── */
.style-minimal { --shadow: none; }
.style-minimal .site-header { background: #fff; backdrop-filter: none; }
.style-minimal .hero { background: var(--bg); color: var(--ink); }
.style-minimal .hero.has-image { color: #fff; }
.style-minimal .hero:not(.has-image) .hero-title { color: var(--ink); }
.style-minimal .hero:not(.has-image) .hero-subtitle { color: var(--muted); }
.style-minimal .hero:not(.has-image) .hero-kicker { color: var(--accent); }
.style-minimal .hero:not(.has-image) .btn-primary { background: var(--p); color: #fff; }
.style-minimal .hero:not(.has-image) .btn-ghost { color: var(--ink); border-color: var(--line); }
.style-minimal .hero-inner { padding: 80px 0 56px; }
.style-minimal .block-hero { border-bottom: 1px solid var(--line); }
.style-minimal .card-item, .style-minimal .col-item, .style-minimal .site-form { box-shadow: none; }
.style-minimal .card-item:hover { transform: none; border-color: var(--ink); }
.style-minimal .col-item { background: transparent; border: none; padding: 8px 0; }
.style-minimal .col-icon { background: transparent; color: var(--ink); padding: 0; width: auto; height: auto; font-size: 1.7rem; }
.style-minimal .block-title { font-weight: 600; letter-spacing: -.02em; }
.style-minimal .site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.style-minimal .site-footer a, .style-minimal .footer-brand, .style-minimal .footer-title { color: var(--ink); }
.style-minimal .footer-bottom { border-top-color: var(--line); }
.style-minimal .cta-primary { background: var(--ink); }
.style-minimal .tag { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ── bold: tipografia grande, colore pieno, angoli decisi ── */
.style-bold h1 { font-weight: 900; letter-spacing: -.03em; }
.style-bold h2 { font-weight: 800; letter-spacing: -.02em; }
.style-bold .hero { background: var(--p); }
.style-bold .hero-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.02; }
.style-bold .hero-subtitle { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 500; }
.style-bold .hero .btn-primary { background: var(--accent); color: #111; }
.style-bold .btn { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; padding: 14px 26px; }
.style-bold .card-item { border-width: 2px; border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.style-bold .card-item:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.style-bold .col-item { border: 2px solid var(--ink); box-shadow: none; }
.style-bold .col-icon { background: var(--accent); color: #111; }
.style-bold .cta-primary { background: var(--ink); }
.style-bold .cta-primary .btn-light { background: var(--accent); color: #111; }
.style-bold .tag { background: var(--ink); color: #fff; }
.style-bold .site-footer { background: var(--ink); }

/* ── editorial: testata, serif, elenchi a lista, poche decorazioni ── */
.style-editorial { --shadow: none; }
.style-editorial .site-header { border-bottom: 3px double var(--ink); background: #fff; backdrop-filter: none; }
.style-editorial.header-dark .site-header { border-bottom-color: rgba(255,255,255,.3); }
.style-editorial .brand-name { font-size: 1.6rem; letter-spacing: -.02em; }
.style-editorial .brand-mark { display: none; }
.style-editorial .hero { background: #fff; color: var(--ink); border-bottom: 1px solid var(--ink); }
.style-editorial .hero-inner { max-width: 100%; padding: 56px 0 40px; }
.style-editorial .hero-title { color: var(--ink); font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.style-editorial .hero-subtitle { color: var(--ink-2); font-size: 1.15rem; }
.style-editorial .hero-kicker { color: var(--p); }
.style-editorial .hero .btn-primary { background: var(--p); color: #fff; }
.style-editorial .hero .btn-ghost { color: var(--ink); border-color: var(--ink); }
.style-editorial .cards-grid { gap: 0; }
.style-editorial .card-item { border: none; border-top: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 20px 20px 20px 0; }
.style-editorial .card-item:hover { transform: none; }
.style-editorial .card-media { aspect-ratio: 3/2; border-radius: 0; }
.style-editorial .card-body { padding: 16px 0 0; }
.style-editorial .card-title { font-size: 1.35rem; }
.style-editorial .card-meta time { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.style-editorial .tag { background: transparent; color: var(--p); padding: 0; border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.style-editorial .block-title { border-bottom: 3px solid var(--ink); padding-bottom: 8px; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .06em; }
.style-editorial .col-item { border: none; border-top: 1px solid var(--ink); padding: 18px 0; box-shadow: none; background: transparent; }
.style-editorial .col-icon { display: none; }
.style-editorial .prose { font-size: 1.15rem; line-height: 1.75; }
.style-editorial .prose p:first-of-type::first-letter { font-family: var(--font-head); font-size: 3.4em; float: left; line-height: .8; padding: 6px 8px 0 0; color: var(--p); }
.style-editorial .content-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.style-editorial .cta { border-radius: 0; }
.style-editorial .site-footer { background: #fff; color: var(--ink-2); border-top: 3px double var(--ink); }
.style-editorial .site-footer a, .style-editorial .footer-brand, .style-editorial .footer-title { color: var(--ink); }
.style-editorial .footer-bottom { border-top-color: var(--line); }

/* ── corporate: ordinato, card con bordo colorato in alto, compatto ── */
.style-corporate .hero { background: linear-gradient(120deg, color-mix(in srgb, var(--p) 85%, #0f172a) 0%, var(--p) 60%, color-mix(in srgb, var(--p) 70%, #fff) 100%); }
.style-corporate .hero-inner { padding: 88px 0; }
.style-corporate .card-item, .style-corporate .col-item { border-top: 4px solid var(--p); }
.style-corporate .col-icon { background: var(--p); color: #fff; border-radius: 8px; }
.style-corporate .block-title::after { content: ""; display: block; width: 48px; height: 4px; background: var(--accent); margin-top: 10px; border-radius: 2px; }
.style-corporate .block-title.center::after { margin-left: auto; margin-right: auto; }
.style-corporate .btn { font-weight: 700; }
.style-corporate .site-footer { background: color-mix(in srgb, var(--p) 25%, #0f172a); }
.style-corporate .cta-primary { background: color-mix(in srgb, var(--p) 80%, #0f172a); }
.style-corporate .site-header { border-bottom: 3px solid var(--p); }
.style-corporate.header-primary .site-header { border-bottom-color: var(--accent); }

/* ── elegant: serif, linee sottili, dettagli in accento, centrato ── */
.style-elegant { --shadow: none; }
.style-elegant h1, .style-elegant h2 { font-weight: 500; letter-spacing: 0; }
.style-elegant .hero { background: color-mix(in srgb, var(--p) 92%, #000); }
.style-elegant .hero-kicker { color: var(--accent); letter-spacing: .3em; font-weight: 500; }
.style-elegant .hero-kicker::after { content: ""; display: block; width: 60px; height: 1px; background: var(--accent); margin: 16px auto 0; }
.style-elegant .hero.align-left .hero-kicker::after { margin-left: 0; }
.style-elegant .hero-title { font-weight: 500; }
.style-elegant .hero .btn { border-radius: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; padding: 14px 28px; }
.style-elegant .hero .btn-primary { background: var(--accent); color: #111; }
.style-elegant .btn-primary { border-radius: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.style-elegant .block-title { text-align: center; }
.style-elegant .block-title::after { content: ""; display: block; width: 48px; height: 1px; background: var(--accent); margin: 14px auto 0; }
.style-elegant .block-head { justify-content: center; flex-direction: column; align-items: center; }
.style-elegant .card-item { border-color: var(--line); }
.style-elegant .card-item:hover { transform: none; border-color: var(--accent); }
.style-elegant .card-title { font-weight: 500; font-size: 1.3rem; }
.style-elegant .col-item { text-align: center; border: 1px solid var(--line); }
.style-elegant .col-icon { margin: 0 auto 18px; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; }
.style-elegant .cta { border-radius: 0; text-align: center; flex-direction: column; }
.style-elegant .cta-primary { background: var(--ink); }
.style-elegant .tag { background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.style-elegant .site-footer { background: #111; }
.style-elegant .footer-title { color: var(--accent); }
.style-elegant .content-title { font-weight: 500; text-align: center; }
.style-elegant .content-head .container.narrow { text-align: center; }
.style-elegant .content-meta { justify-content: center; }
.style-elegant .content-terms { justify-content: center; }

/* ── playful: raggi ampi, sfondi pastello, ombre morbide ── */
.style-playful .hero { background: linear-gradient(135deg, var(--p) 0%, color-mix(in srgb, var(--p) 55%, var(--accent)) 100%); border-radius: 0 0 calc(var(--radius) * 3) calc(var(--radius) * 3); }
.style-playful .hero .btn-primary { background: var(--accent); color: #111; }
.style-playful .btn { border-radius: 999px; }
.style-playful .card-item { border: none; box-shadow: 0 16px 40px -20px rgba(15,23,42,.25); }
.style-playful .col-item { border: none; background: color-mix(in srgb, var(--p) 8%, #fff); box-shadow: none; }
.style-playful .col-item:nth-child(2) { background: color-mix(in srgb, var(--accent) 12%, #fff); }
.style-playful .col-item:nth-child(3) { background: color-mix(in srgb, var(--p) 16%, #fff); }
.style-playful .col-icon { border-radius: 50%; width: 60px; height: 60px; font-size: 1.7rem; background: #fff; box-shadow: 0 6px 14px -6px rgba(15,23,42,.25); }
.style-playful .col-item:nth-child(2) .col-icon { color: color-mix(in srgb, var(--accent) 80%, #000); }
.style-playful .tag { border-radius: 999px; }
.style-playful .cta { border-radius: calc(var(--radius) * 2); }
.style-playful .site-form { border: none; }
.style-playful .form-field input, .style-playful .form-field textarea, .style-playful .form-field select { border-radius: 14px; background: var(--bg-soft); border-color: transparent; }
.style-playful .site-footer { background: color-mix(in srgb, var(--p) 90%, #000); border-radius: calc(var(--radius) * 3) calc(var(--radius) * 3) 0 0; }
.style-playful .block-title { font-weight: 800; }
.style-playful .brand-mark { border-radius: 50%; }

/* ── dark: tutto scuro, colore primario come luce ── */
.style-dark { --ink: #F9FAFB; --ink-2: #D1D5DB; --muted: #9CA3AF; --line: #1F2937; --bg: #0B0F19; --bg-soft: #111827; --shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.style-dark body, .style-dark { background: var(--bg); color: var(--ink); }
.style-dark .site-header { background: rgba(11,15,25,.85); border-bottom-color: var(--line); color: var(--ink); }
.style-dark .hero { background: radial-gradient(1200px 500px at 20% 0%, color-mix(in srgb, var(--p) 35%, transparent), transparent), var(--bg); border-bottom: 1px solid var(--line); }
.style-dark .hero-title { background: linear-gradient(90deg, #fff, var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.style-dark .hero .btn-primary { background: var(--p); color: #0B0F19; }
.style-dark .hero .btn-ghost { color: var(--ink); border-color: var(--line); }
.style-dark .btn-primary { color: #0B0F19; }
.style-dark .card-item, .style-dark .col-item, .style-dark .site-form, .style-dark .details { background: var(--bg-soft); border-color: var(--line); }
.style-dark .card-title a, .style-dark .col-item h3 { color: var(--ink); }
.style-dark .card-placeholder { background: linear-gradient(135deg, var(--p-soft), var(--bg-soft)); color: var(--line); }
.style-dark .col-icon { background: var(--p-soft); color: var(--p); }
.style-dark .block.bg-soft { background: var(--bg-soft); }
.style-dark .cta-primary { background: linear-gradient(120deg, var(--p), var(--accent)); color: #0B0F19; }
.style-dark .cta-primary h2 { color: #0B0F19; }
.style-dark .cta-primary .btn-light { background: #0B0F19; color: #fff; }
.style-dark .form-field input, .style-dark .form-field textarea, .style-field select { background: var(--bg); color: var(--ink); border-color: var(--line); }
.style-dark .form-field select { background: var(--bg); color: var(--ink); border-color: var(--line); }
.style-dark .site-footer { background: #000; }
.style-dark .prose { color: var(--ink-2); }
.style-dark .prose h2, .style-dark .prose h3, .style-dark .content-title, .style-dark .page-head h1, .style-dark .block-title { color: var(--ink); }
.style-dark .prose blockquote { background: var(--bg-soft); color: var(--ink); }
.style-dark .details dt { color: var(--ink); }
.style-dark .pager a { color: var(--ink); border-color: var(--line); }
.style-dark .btn-outline { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.style-dark .quote p { color: var(--ink); }
.style-dark .site-nav .sub { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.style-dark .site-nav .sub a { color: var(--ink); }

/* ── glass: hero pieno, intestazione trasparente, superfici traslucide ── */
.style-glass .hero { background: linear-gradient(160deg, var(--p) 0%, color-mix(in srgb, var(--p) 60%, var(--accent)) 100%); min-height: 70vh; display: flex; align-items: center; }
.style-glass .hero.has-image::before { background: linear-gradient(180deg, rgba(15,23,42,.35), rgba(15,23,42,.55)); }
.style-glass .hero-inner { padding: 120px 0 100px; }
.style-glass .hero .btn-primary { background: rgba(255,255,255,.92); color: var(--p); }
.style-glass .hero .btn-ghost { background: rgba(255,255,255,.18); border-color: transparent; backdrop-filter: blur(8px); }
.style-glass .block-hero + .block { margin-top: -60px; position: relative; z-index: 2; padding-top: 0; }
.style-glass .block-hero + .block .container { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.style-glass .card-item { background: rgba(255,255,255,.7); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.6); }
.style-glass .col-item { background: rgba(255,255,255,.75); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.6); }
.style-glass .block.bg-soft { background: linear-gradient(180deg, var(--bg-soft), color-mix(in srgb, var(--p) 6%, #fff)); }
.style-glass .cta-primary { background: linear-gradient(120deg, var(--p), color-mix(in srgb, var(--p) 55%, var(--accent))); }
.style-glass .site-footer { background: color-mix(in srgb, var(--p) 80%, #0f172a); }
.style-glass .btn { border-radius: 999px; }

@media (max-width: 720px) {
    .header-transparent .site-header { position: sticky; background: rgba(15,23,42,.85); }
    .header-transparent .hero-inner { padding-top: 96px; }
    .style-glass .block-hero + .block .container { padding: 24px; }
    .style-bold .card-item { box-shadow: 4px 4px 0 var(--ink); }
}

/* =====================================================================
   LAYOUT DA PORTALE — validi per ogni stile
   ===================================================================== */

/* Occhiello e data separati: di default li mostra gia' .card-meta */
.card-kicker, .card-date { display: none; }

/* Sfondo accento */
.block.bg-accent { background: var(--accent); color: #111827; }
.block.bg-accent .block-title, .block.bg-accent .card-title a { color: #111827; }
.block.bg-accent + .block, .block + .block.bg-accent { padding-top: 64px; }

/* Una grande + lista */
.cards-featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.featured-lead .card-media { aspect-ratio: 16/9; }
.featured-lead .card-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.featured-side { display: flex; flex-direction: column; gap: 18px; }
.featured-side .card-item { display: grid; grid-template-columns: 150px 1fr; }
.featured-side .card-media { width: 100%; aspect-ratio: 4/3; height: auto; align-self: start; }
.featured-side .card-body { padding: 12px 16px; gap: 4px; }
.featured-side .card-title { font-size: 1rem; }
.featured-side .card-excerpt, .featured-side .card-more { display: none; }

/* Rullo orizzontale */
.carousel { position: relative; }
.cards-carousel { display: grid; grid-template-columns: none !important; grid-auto-flow: column; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.cards-carousel::-webkit-scrollbar { display: none; }
.cards-carousel > .card-item { scroll-snap-align: start; }
.cards-carousel.cols-4 { grid-auto-columns: calc((100% - 72px) / 4); }
.cards-carousel.cols-3 { grid-auto-columns: calc((100% - 48px) / 3); }
.cards-carousel.cols-2 { grid-auto-columns: calc((100% - 24px) / 2); }
.cards-carousel.cols-1 { grid-auto-columns: 100%; }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.carousel-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; opacity: .75; }
.carousel-btn:hover { opacity: 1; }

/* Immagine e testo */
.mediatext { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mediatext.img-right .mediatext-media { order: 2; }
.mediatext.no-image { grid-template-columns: 1fr; max-width: var(--narrow); }
.mediatext-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.mediatext-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: var(--p); margin-bottom: 10px; }
.bg-primary .mediatext-kicker, .bg-dark .mediatext-kicker { color: var(--accent); }
.bg-primary .mediatext .prose, .bg-dark .mediatext .prose { color: inherit; }
.mediatext .btn { margin-top: 8px; }

/* Barra di servizio sopra la testata */
.site-topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 20px; min-height: 34px; flex-wrap: wrap; }
.site-topbar a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.site-topbar a.topbar-cta { background: #2E7D32; color: #fff; text-decoration: none; padding: 7px 14px; font-weight: 600; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; font-size: 1.2rem; }

@media (max-width: 992px) {
    .cards-featured { grid-template-columns: 1fr; }
    .cards-carousel.cols-4, .cards-carousel.cols-3 { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 720px) {
    .cards-carousel.cols-4, .cards-carousel.cols-3, .cards-carousel.cols-2 { grid-auto-columns: 82%; }
    .mediatext { grid-template-columns: 1fr; gap: 24px; }
    .mediatext.img-right .mediatext-media { order: 0; }
    .featured-side .card-item { grid-template-columns: 110px 1fr; }
    .topbar-inner { justify-content: center; gap: 12px; }
}

/* =====================================================================
   STILE "portal" — portale di notizie di un'associazione (tipo cna.it):
   niente box, occhiello di categoria sopra il titolo, data sotto,
   titoli sottolineati al passaggio, fasce di colore piene.
   ===================================================================== */
.style-portal { --shadow: none; --bg-soft: #E5E6E6; }
.style-portal .site-header { backdrop-filter: none; }
.style-portal .header-inner { min-height: 84px; }
.style-portal .site-nav > ul > li > a { border-radius: 0; font-weight: 700; }
.style-portal .block-title { font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: 0; }
.style-portal .block-title::after { display: none; }
.style-portal .card-item { background: transparent; border: none; border-radius: 0; box-shadow: none; }
.style-portal .card-item:hover { transform: none; }
.style-portal .card-item:hover .card-media img { transform: none; }
.style-portal .card-media { border-radius: 0; }
.style-portal .card-placeholder { background: #D9DBDD; }
.style-portal .card-body { padding: 14px 0 0; gap: 6px; }
.style-portal .featured-side .card-item { border-bottom: 1px solid #C9CCCF; padding-bottom: 16px; }
.style-portal .featured-side .card-body { padding: 0 0 0 16px; }
.style-portal .card-meta, .style-portal .card-more, .style-portal .card-excerpt { display: none; }
.style-portal .featured-lead .card-excerpt { display: -webkit-box; }
.style-portal .card-kicker { display: block; order: -1; text-transform: uppercase; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--p); text-decoration: none; }
.style-portal .card-title { font-weight: 600; }
.style-portal .card-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.style-portal .card-title a:hover { text-decoration-thickness: 2px; }
.style-portal .card-date { display: block; font-size: .78rem; color: var(--muted); }
.style-portal .bg-primary .card-kicker, .style-portal .bg-dark .card-kicker { color: #fff; opacity: .85; }
.style-portal .bg-primary .card-title a, .style-portal .bg-dark .card-title a { color: #fff; }
.style-portal .bg-primary .card-date, .style-portal .bg-dark .card-date { color: rgba(255,255,255,.75); }
.style-portal .bg-accent .card-kicker { color: #111827; }
.style-portal .bg-accent .card-date { color: #374151; }
.style-portal .tag { border-radius: 0; }
.style-portal .btn { border-radius: 0; }
.style-portal .col-item { border-radius: 0; box-shadow: none; }
.style-portal .col-icon { border-radius: 0; }
.style-portal .cta { border-radius: 0; }
.style-portal .hero { background: var(--p); }
.style-portal .site-footer { background: var(--p); color: rgba(255,255,255,.85); }
.style-portal .site-footer a { color: #fff; }
.style-portal .footer-bottom { border-top-color: rgba(255,255,255,.2); color: rgba(255,255,255,.75); }

/* Portale: proporzioni prese da www.cna.it (apertura 810x540 + miniature 270x180, slider a card larghe con pallini) */
.style-portal { --max: 1320px; }
.style-portal .cards-featured { grid-template-columns: 1.42fr 1fr; gap: 30px; }
.style-portal .featured-lead .card-media { aspect-ratio: 3/2; }
.style-portal .featured-lead .card-title { font-size: 1.5rem; line-height: 1.2; }
.style-portal .featured-lead .card-excerpt { display: none; }
.style-portal .featured-side { gap: 16px; }
.style-portal .featured-side .card-item { grid-template-columns: 48% 1fr; border-bottom: 2px solid #C9CCCF; padding-bottom: 16px; }
.style-portal .featured-side .card-media { aspect-ratio: 3/2; }
.style-portal .featured-side .card-body { padding: 4px 0 0 22px; gap: 8px; }
.style-portal .featured-side .card-title { font-size: 1.25rem; line-height: 1.2; }
.style-portal .card-date { margin-top: 10px; }
.style-portal .cards-carousel { grid-auto-columns: calc((100% - 48px) / 2.4) !important; }
.style-portal .cards-carousel .card-media { aspect-ratio: 3/2; }
.style-portal .cards-carousel .card-title { font-size: 1.25rem; line-height: 1.2; }
.carousel-dots { display: none; justify-content: center; gap: 10px; margin-top: 22px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: currentColor; opacity: .3; cursor: pointer; }
.carousel-dots button.active { opacity: 1; }
.style-portal .carousel-dots { display: flex; }
.style-portal .carousel-nav { display: none; }
@media (max-width: 992px) {
    .style-portal .cards-featured { grid-template-columns: 1fr; }
    .style-portal .cards-carousel { grid-auto-columns: 70% !important; }
}
/* Pagina articolo (come cna.it): titolo grande, poi data | tempo di lettura, immagine nella stessa colonna */
.content-terms-foot { display: none; }
.style-portal .content-head { padding: 48px 0 8px; }
.style-portal .content-head .container,
.style-portal .content-body { width: min(960px, 100% - 40px); }
.style-portal .content-head .container.narrow { display: flex; flex-direction: column; }
.style-portal .content-title { order: 1; font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; line-height: 1.15; color: #0b0f14; margin: 0 0 22px; }
.style-portal .content-meta { order: 2; gap: 0; margin: 0; font-size: .9rem; color: #4b5563; }
.style-portal .content-meta .type-link, .style-portal .content-meta .byline { display: none; }
.style-portal .content-meta time { text-transform: capitalize; }
.style-portal .content-meta .reading-time { margin-left: 10px; padding-left: 10px; border-left: 1px solid #6b7280; line-height: 1; }
.style-portal .content-meta .reading-time i { margin-right: 4px; }
.style-portal .content-excerpt, .style-portal .content-head .content-terms { display: none; }
.style-portal .content-featured { margin: 26px 0 0; }
.style-portal .content-featured img { max-height: 640px; border-radius: 0; }
.style-portal .content-body { padding: 32px 0 64px; }
.style-portal .content-terms-foot { display: flex; margin-top: 32px; }
@media (max-width: 720px) {
    .style-portal .content-head { padding-top: 28px; }
    .style-portal .featured-side .card-item { grid-template-columns: 40% 1fr; }
    .style-portal .featured-side .card-body { padding-left: 14px; }
    .style-portal .featured-side .card-title, .style-portal .cards-carousel .card-title { font-size: 1.05rem; }
    .style-portal .cards-carousel { grid-auto-columns: 85% !important; }
}

/* =====================================================================
   MENU A TRE LIVELLI, RICERCA, BRICIOLE — validi per ogni stile
   ===================================================================== */
.topbar-social { display: none; }
.header-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.header-search input { border: none; outline: none; font: inherit; font-size: .88rem; padding: 8px 12px; width: 170px; color: var(--ink); background: transparent; }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search button { border: none; background: transparent; color: var(--p); padding: 8px 12px; cursor: pointer; font-size: .95rem; }
.sub-toggle { display: none; border: none; background: transparent; color: inherit; cursor: pointer; padding: 8px 10px; font-size: .9rem; }
.site-nav .sub > li { position: relative; }
.site-nav .sub3 { list-style: none; margin: 0; padding: 0 0 6px 12px; }
.site-nav .sub3 a { font-size: .85rem; color: var(--ink-2); padding: 5px 12px; }
.site-nav li.has-children.open > .sub { display: block; }
/* Pannello a colonne: i gruppi (2° livello con figli) diventano colonne con titolo */
.site-nav .sub.mega { min-width: 0; width: max-content; max-width: min(1000px, 92vw); padding: 20px 22px; }
.site-nav li.has-mega:hover > .sub.mega, .site-nav li.has-mega.open > .sub.mega { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 8px 22px; }
.site-nav .sub.mega > li.sub-group > a { font-weight: 700; color: var(--p); border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; padding-left: 0; padding-right: 0; }
.site-nav .sub.mega > li:not(.sub-group) > a { padding-left: 0; padding-right: 0; font-weight: 700; color: var(--p); }
.site-nav .sub.mega .sub3 { padding-left: 0; }
.site-nav .sub.mega .sub3 a { padding-left: 0; }
.site-nav .sub.mega .sub3 a:hover { background: transparent; text-decoration: underline; }
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 8px; opacity: .6; }
.breadcrumb a { color: inherit; }
.breadcrumb li[aria-current] { color: var(--ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.breadcrumb + .page-head { padding-top: 24px; }
.breadcrumb + .content .content-head { padding-top: 28px; }

/* ══════ VARIANTI DELLE CARD (cardStyle del blocco "contents") ══════ */
.card-badge { display: none; }
/* Titolo sulla foto */
.card-overlay { position: relative; border: none; min-height: 240px; color: #fff; background: #1f2937; }
.card-overlay .card-media { position: absolute; inset: 0; aspect-ratio: auto !important; height: 100%; }
.card-overlay .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.card-overlay .card-body { position: relative; z-index: 1; margin-top: auto; padding: 22px 24px; pointer-events: none; justify-content: flex-end; }
.card-overlay .card-body a, .card-overlay .card-body .card-badge { pointer-events: auto; }
.card-overlay .card-title { font-size: 1.3rem; }
.card-overlay .card-title a { color: #fff; }
.card-overlay .card-meta, .card-overlay .card-excerpt, .card-overlay .card-more, .card-overlay .card-kicker, .card-overlay .card-date { display: none !important; }
.card-overlay .card-badge, .card-row .card-badge { display: inline-block; align-self: flex-start; background: var(--p); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; order: 9; }
.card-overlay:hover { transform: none; }
.featured-lead .card-overlay { min-height: 440px; height: 100%; }
.featured-lead .card-overlay .card-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cards-featured:has(.card-overlay) { align-items: stretch; }
.featured-side:has(.card-overlay) { display: grid; grid-auto-rows: 1fr; gap: 24px; }
.featured-side .card-overlay { display: flex; min-height: 208px; }
.featured-side .card-overlay .card-body { padding: 18px 20px; }
.featured-side .card-overlay .card-title { font-size: 1.15rem; }
/* Riquadro verticale: titolo in alto, etichetta "Scopri" in basso */
.card-tile { position: relative; border: none; aspect-ratio: 3/4; color: #fff; background: #1f2937; }
.card-tile .card-media { position: absolute; inset: 0; aspect-ratio: auto !important; height: 100%; }
.card-tile .card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.25) 100%); pointer-events: none; }
.card-tile .card-body { position: relative; z-index: 1; height: 100%; padding: 22px; pointer-events: none; }
.card-tile .card-body a { pointer-events: auto; }
.card-tile .card-title { font-size: 1.35rem; line-height: 1.15; }
.card-tile .card-title a { color: #fff; }
.card-tile .card-meta, .card-tile .card-excerpt, .card-tile .card-kicker, .card-tile .card-date, .card-tile .card-badge { display: none !important; }
.card-tile .card-more, .tile-more { margin-top: auto; align-self: flex-start; background: #fff; color: var(--p); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 5px 11px; border-radius: 4px; text-decoration: none !important; }
.card-tile .card-more i { display: none; }
.card-tile:hover { transform: translateY(-3px); }
/* Riga: testo a sinistra, foto a destra (elenchi compatti tipo News | Eventi) */
.card-row { display: grid !important; grid-template-columns: 1fr 42%; align-items: stretch; }
.card-row .card-media { order: 2; aspect-ratio: auto; height: 100%; min-height: 130px; }
.card-row .card-body { padding: 18px 20px; }
.card-row .card-title { font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-row .card-meta, .card-row .card-excerpt, .card-row .card-more, .card-row .card-kicker, .card-row .card-date { display: none !important; }
.card-row .card-badge { margin-top: auto; }
.cards-grid:has(.card-row) { gap: 18px; }

/* ══════ RIQUADRI A FOTO PIENA (blocco Colonne, aspetto "tiles") ══════ */
.cols-tiles { gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; aspect-ratio: 3/4; padding: 22px; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--p) center/cover no-repeat; text-decoration: none !important; isolation: isolate; transition: transform .15s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.25) 100%); }
.tile.no-image::before { display: none; }
.tile:hover { transform: translateY(-3px); }
.tile-title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.tile-text { font-size: .9rem; opacity: .9; margin-top: 8px; }

/* ══════ REFERENTI ══════ */
.people { display: flex; flex-wrap: wrap; gap: 20px; }
.person { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; min-width: 280px; flex: 0 1 380px; }
.person-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.person-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--p-soft); color: var(--p); font-weight: 800; font-size: 1.8rem; }
.person-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.person-role { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.person-link { display: block; font-size: .92rem; font-weight: 600; }
.person-link i { margin-right: 4px; }

/* ══════ DUE BLOCCHI AFFIANCATI ("Metà larghezza") ══════ */
.blocks-row { width: min(var(--max), 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.blocks-row > .block { min-width: 0; padding-top: 64px; }
.blocks-row > .block > .container { width: 100%; }
.blocks-row .cards-grid.cols-2, .blocks-row .cards-grid.cols-3, .blocks-row .cards-grid.cols-4 { grid-template-columns: 1fr; }

/* ══════ HERO "RIQUADRO" (riquadro chiaro sopra la foto, pulsanti grandi a cavallo) ══════ */
.hero-style-panel { padding: 0 0 72px; }
.hero-style-panel.has-image::before { background: linear-gradient(180deg, rgba(15,23,42,.05), rgba(15,23,42,.25)); }
.hero-style-panel .hero-inner { background: #fff; color: var(--ink); border-radius: 0 0 var(--radius) var(--radius); padding: 40px 48px 0; margin: 0 auto; max-width: 720px; text-align: center; }
.hero-style-panel.hero-large { padding-bottom: 140px; }
.hero-style-panel .hero-title { color: var(--p); font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.hero-style-panel .hero-subtitle { color: var(--ink-2); font-size: 1rem; margin-left: auto; margin-right: auto; }
.hero-style-panel .hero-kicker { color: var(--accent); }
.hero-style-panel .hero-actions { justify-content: center; position: relative; transform: translateY(50%); margin-top: -10px; }
.hero-style-panel .hero-actions .btn { min-width: 220px; justify-content: center; padding: 24px 28px; font-size: 1.05rem; }
.hero-style-panel .btn-primary, .hero-style-panel .btn-ghost { background: var(--p); color: #fff; border-color: var(--p); box-shadow: none; }

@media (max-width: 992px) {
    .site-nav li.has-mega:hover > .sub.mega, .site-nav li.has-mega.open > .sub.mega { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
    .blocks-row { grid-template-columns: 1fr; gap: 0; }
    .featured-lead .card-overlay { min-height: 320px; }
}
@media (max-width: 720px) {
    .header-inner { flex-wrap: wrap; }
    .header-search { order: 3; flex: 1 1 100%; margin-bottom: 10px; }
    .header-search input { width: 100%; }
    .site-nav > ul > li { display: flex; flex-wrap: wrap; align-items: center; }
    .site-nav > ul > li > a { flex: 1; }
    .sub-toggle { display: inline-flex; }
    .site-nav li.has-children > .sub, .site-nav li.has-children:hover > .sub,
    .site-nav li.has-mega:hover > .sub.mega { display: none; flex: 1 1 100%; }
    .site-nav li.has-children.open > .sub, .site-nav li.has-mega.open > .sub.mega { display: block; }
    .site-nav li.open > .sub-toggle i { display: inline-block; transform: rotate(180deg); }
    .site-nav .sub.mega { width: auto; max-width: none; padding: 0 0 0 14px; }
    .site-nav .sub.mega > li.sub-group > a { border-bottom: none; margin: 6px 0 0; }
    .site-nav .sub.mega .sub3 { padding-left: 12px; }
    .card-row { grid-template-columns: 1fr 38%; }
    .featured-lead .card-overlay { min-height: 280px; }
    .featured-lead .card-overlay .card-title { font-size: 1.3rem; }
    .featured-side .card-overlay .card-title { font-size: 1.05rem; }
    .featured-side .card-overlay { min-height: 180px; }
    .hero-style-panel { padding-bottom: 28px; }
    .hero-style-panel .hero-inner { padding: 28px 22px 26px; border-radius: 0 0 var(--radius) var(--radius); }
    .hero-style-panel .hero-actions { transform: none; margin-top: 0; flex-direction: column; }
    .hero-style-panel .hero-actions .btn { min-width: 0; padding: 16px 20px; }
    .person { flex: 1 1 100%; min-width: 0; }
}

/* =====================================================================
   STILE "association" — sede territoriale di un'associazione di categoria
   (modello www.bo.cna.it): fondo azzurrino, testata blu con barra di servizio,
   menu su fascia bianca con pannelli a colonne, card bianche arrotondate,
   apertura a riquadri con foto, rullo dei settori, fasce in riquadri.
   ===================================================================== */
.style-association { --max: 1320px; --bg-page: #F3F8FE; --bg-soft: #FFFFFF; --ink: #1F2937; --ink-2: #444444; --line: #DCE6F2;
    --shadow: 0 10px 28px -18px rgba(0, 47, 95, .35); background: var(--bg-page); }
.style-association h1, .style-association h2, .style-association h3 { letter-spacing: 0; }

/* Barra di servizio: dentro la fascia blu, social a sinistra e pulsanti a destra */
.style-association .site-topbar { background: var(--p); border-bottom: none; font-size: .72rem; }
.style-association .topbar-inner { min-height: 46px; gap: 8px; padding-top: 10px; }
.style-association .topbar-social { display: inline-flex; gap: 14px; margin-right: auto; font-size: 1rem; }
.style-association .topbar-social a { color: #fff; text-decoration: none; opacity: .9; }
.style-association .topbar-social a:hover { opacity: 1; }
.style-association .site-topbar a:not(.topbar-cta):not(.topbar-social a) { background: #fff; color: var(--p); text-decoration: none; padding: 6px 12px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.style-association .site-topbar a.topbar-cta { background: var(--accent); color: #fff; border-radius: 4px; padding: 6px 12px; text-transform: uppercase; letter-spacing: .02em; }

/* Testata: logo e ricerca sulla fascia blu, menu su una fascia bianca sotto */
.style-association .site-header { background: var(--p); color: #fff; border-bottom: none; backdrop-filter: none; box-shadow: 0 4px 18px -12px rgba(0, 47, 95, .5); }
.style-association .header-inner { flex-wrap: wrap; min-height: 0; gap: 0 24px; padding-top: 12px; }
.style-association .brand { padding-bottom: 14px; }
.style-association .brand-logo { height: 58px; }
.style-association .brand-name { font-weight: 500; font-size: 1.05rem; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.6); }
.style-association .header-search { margin-left: auto; margin-bottom: 14px; border: none; }
.style-association .site-header { overflow-x: clip; }
.style-association .site-nav { flex: 1 1 100%; order: 5; position: relative; background: #fff; color: var(--ink); justify-content: space-between; }
.style-association .site-nav::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; background: #fff; z-index: -1; }
.style-association .site-nav > ul { gap: 2px; flex-wrap: wrap; }
.style-association .site-nav > ul > li > a { color: var(--p); font-weight: 600; font-size: .93rem; padding: 14px 14px; border-radius: 0; }
.style-association .site-nav > ul > li > a:hover, .style-association .site-nav > ul > li.active > a { background: transparent; color: var(--p); box-shadow: inset 0 -3px 0 var(--p); }
.style-association .site-nav > ul > li.has-children > a::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; margin-left: 6px; vertical-align: 1px; }
.style-association .site-nav .sub { margin-top: 0; border-radius: var(--radius); border-color: var(--line); box-shadow: 0 18px 40px -20px rgba(0, 47, 95, .45); }
.style-association .site-nav .sub a { color: var(--ink); }
.style-association .site-nav .sub a:hover { background: var(--bg-page); color: var(--p); }
.style-association .site-nav .sub.mega > li.sub-group > a { color: var(--p); }
.style-association .site-nav > ul > li:nth-last-child(-n+3) > .sub { left: auto; right: 0; }
.style-association .lang-switch a { color: var(--p); }

/* Briciole */
.style-association .breadcrumb { padding-top: 18px; }
.style-association .breadcrumb a { color: var(--p); }

/* Sezioni */
.style-association .block { padding: 56px 0; }
.style-association .block + .block { padding-top: 0; }
.style-association .block + .block.bg-soft, .style-association .block.bg-soft + .block,
.style-association .block + .block.bg-dark, .style-association .block.bg-dark + .block,
.style-association .block + .block.bg-primary:not(.block-mediatext), .style-association .block.bg-primary:not(.block-mediatext) + .block { padding-top: 56px; }
.style-association .block.bg-soft { background: #fff; }
.style-association .blocks-row > .block { padding-top: 56px; }
.style-association .site-main > .block:first-child, .style-association .breadcrumb + .block { padding-top: 28px; }
.style-association .block-title { color: var(--p); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.style-association .block-title.center { max-width: 760px; margin-left: auto; margin-right: auto; }
.style-association .block-head { align-items: center; margin-bottom: 22px; }
.style-association .block-head .block-title { margin-bottom: 0; }
.style-association .block-head .link-more { background: var(--p); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.style-association .block-head .link-more i { display: none; }
.style-association .page-head h1 { color: var(--p); }

/* Card */
.style-association .card-item { border: none; border-radius: var(--radius); box-shadow: var(--shadow); }
.style-association .card-item:not(.card-overlay):not(.card-tile) .card-badge { display: inline-block; order: -1; align-self: flex-start; background: var(--p); color: #fff; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; }
.style-association .card-row .card-badge { order: 9 !important; }
.style-association .card-title { color: var(--p); font-size: 1.08rem; }
.style-association .card-title a { color: var(--p); }
.style-association .card-overlay .card-title a, .style-association .card-tile .card-title a { color: #fff; }
.style-association .card-more { display: none; }
.style-association .card-tile .card-more { display: inline-block; }
.style-association .tag { background: #fff; border: 1px solid var(--line); color: var(--p); text-transform: uppercase; font-size: .64rem; letter-spacing: .03em; border-radius: 4px; padding: 3px 8px; }
.style-association .card-meta { order: 5; }
.style-association .carousel-nav { justify-content: center; }
.style-association .carousel-btn { background: var(--p); color: #fff; border-color: var(--p); opacity: 1; width: 38px; height: 38px; }
.style-association .cards-carousel:has(.card-tile) { grid-auto-columns: calc((100% - 72px) / 4.3) !important; }
.style-association .col-item { border: none; }
.style-association .col-icon { background: var(--p); color: #fff; }

/* Immagine e testo come riquadri: blu pieno o bianco, arrotondati, dentro la colonna */
.style-association .block-mediatext.bg-primary, .style-association .block-mediatext.bg-soft, .style-association .block-mediatext.bg-accent { background: transparent; color: inherit; }
.style-association .block-mediatext.bg-primary .mediatext { background: var(--p); color: #fff; border-radius: var(--radius); padding: 44px 52px; }
.style-association .block-mediatext.bg-primary .mediatext .block-title { color: #fff; }
.style-association .block-mediatext.bg-soft .mediatext { background: #fff; border-radius: var(--radius); padding: 40px 48px; box-shadow: var(--shadow); }
.style-association .mediatext-media img { border-radius: var(--radius); }
.style-association .mediatext .btn { border-radius: 999px; padding: 9px 18px; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; }
.style-association .block-mediatext.bg-primary .mediatext .btn-primary { background: #fff; color: var(--p); box-shadow: none; }
.style-association .block-mediatext:not(.bg-primary) .mediatext .btn-primary { background: #fff; color: var(--p); border: 1px solid var(--p); box-shadow: none; }

/* Invito all'azione: fascia blu piena */
.style-association .block-cta { padding-left: 0; padding-right: 0; }
.style-association .cta { border-radius: var(--radius); }
.style-association .cta h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.style-association .cta .btn { border-radius: 999px; text-transform: uppercase; font-size: .76rem; letter-spacing: .03em; }
.style-association .cta-primary .btn-light { color: var(--p); }

/* Hero: senza riquadro, foto con velo blu */
.style-association .hero:not(.has-image) { background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 70%, #001a33)); }
.style-association .hero-style-panel { background-color: transparent; }
.style-association .block-hero { padding: 0; }
.style-association .block-hero + .block { padding-top: 56px; }
.style-association .hero-style-panel .btn { border-radius: var(--radius); }

/* Form e referenti */
.style-association .site-form { border: none; }
.style-association .form-field input, .style-association .form-field select, .style-association .form-field textarea { background: var(--bg-page); border-color: var(--line); }
.style-association .person { border: none; box-shadow: var(--shadow); }

/* Contenuto */
.style-association .content-title { color: var(--p); }
.style-association .content-featured img { border-radius: var(--radius); }
/* Articolo: testo, titolo e foto sulla stessa colonna larga (non la colonna stretta di lettura) */
.style-association .content-head .container,
.style-association .content-body { width: min(1080px, 100% - 40px); }
.style-association .content-excerpt { font-size: 1.12rem; }
.style-association .content-head .type-link { background: var(--p); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: .66rem; }

/* Footer blu */
.style-association .site-footer { background: var(--p); color: rgba(255,255,255,.88); margin-top: 56px; }
.style-association .site-footer a { color: #fff; }
.style-association .footer-title { color: #fff; }
.style-association .footer-bottom { border-top-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.style-association .pager a.current { background: var(--p); }

@media (max-width: 992px) {
    .style-association .cards-carousel:has(.card-tile) { grid-auto-columns: calc((100% - 24px) / 2.3) !important; }
    .style-association .block-mediatext.bg-primary .mediatext, .style-association .block-mediatext.bg-soft .mediatext { padding: 32px; }
}
@media (max-width: 720px) {
    .style-association .topbar-inner { padding-top: 8px; padding-bottom: 4px; gap: 6px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .style-association .topbar-inner::-webkit-scrollbar { display: none; }
    .style-association .topbar-inner > a { white-space: nowrap; flex: none; }
    .style-association .topbar-social { margin-right: auto; }
    .style-association .site-topbar a:not(.topbar-cta):not(.topbar-social a), .style-association .site-topbar a.topbar-cta { padding: 5px 8px; font-size: .66rem; }
    .style-association .header-inner { padding-top: 8px; }
    .style-association .brand { padding-bottom: 10px; }
    .style-association .brand-logo { height: 44px; }
    .style-association .header-search { margin: 0 0 12px; }
    .style-association .nav-toggle { margin-left: auto; padding-bottom: 10px; color: #fff; }
    .style-association .site-nav { position: absolute; box-shadow: 0 18px 30px -20px rgba(0,0,0,.35); max-height: calc(100vh - 140px); overflow-y: auto; }
    .style-association .site-nav::before { display: none; }
    .style-association .site-nav > ul > li > a { padding: 12px 6px; }
    .style-association .site-nav > ul > li > a:hover, .style-association .site-nav > ul > li.active > a { box-shadow: none; }
    .style-association .site-nav > ul > li.has-children > a::after { display: none; }
    .style-association .site-nav > ul > li { border-bottom: 1px solid var(--line); }
    .style-association .site-nav .sub { border: none; box-shadow: none; }
    .style-association .cards-carousel:has(.card-tile) { grid-auto-columns: 64% !important; }
    .style-association .block { padding: 40px 0; }
    .style-association .block-mediatext.bg-primary .mediatext, .style-association .block-mediatext.bg-soft .mediatext { padding: 24px 20px; }
}
