/* =====================================================================
   SIBPA - template Joomla 6
   ===================================================================== */
:root {
  --navy-900: #0f2340;
  --navy-800: #13294b;
  --navy-700: #1f3d66;
  --teal-600: #2f929b;
  --teal-700: #24767e;
  --teal-50:  #eef8f9;
  --blue-500: #1f7a8c;
  --blue-300: #8fd3d8;
  --blue-50:  #eef6f8;
  --red-600:  #2f929b;   /* accento (teal) */
  --red-700:  #24767e;
  --ink:      #1d2b3a;
  --ink-soft: #4d5d6c;
  --line:     #dfe8ec;
  --bg:       #f7fafb;
  --card:     #ffffff;
  --radius:   14px;
  --radius-sm: 8px;
  --shadow:   0 1px 2px rgba(14,42,71,.06), 0 6px 24px rgba(14,42,71,.07);
  --container: 1280px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--blue-500); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 4px solid var(--blue-300); background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
small, .small { font-size: .875em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden, .element-invisible, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.list-unstyled { list-style: none; padding-left: 0; }
.float-start { float: left; } .float-end { float: right; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }

/* ---------- pulsanti / form ---------- */
.btn, button.btn, input[type=submit], .readmore a, .pagenav a {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .7em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  background: var(--navy-800); color: #fff; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover, input[type=submit]:hover, .readmore a:hover, .pagenav a:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--red-600); }
.btn-accent:hover { background: var(--red-700); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-secondary, .btn-outline-secondary { background: var(--blue-50); color: var(--navy-800); border-color: var(--line); }
.btn-secondary:hover, .btn-outline-secondary:hover { background: #dfeaf6; color: var(--navy-800); }
.btn-sm { padding: .45em .9em; font-size: .85rem; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=url], input[type=number], select, textarea, .form-control, .form-select {
  width: 100%; padding: .65em .85em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,116,181,.18); }
label, .form-label { display: inline-block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.control-group, .mb-3 { margin-bottom: 1rem; }
.input-group { display: flex; align-items: stretch; }
.input-group > .form-control { flex: 1; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group > .btn, .input-group > .input-password-toggle { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding-inline: .9em; }
.form-check { display: flex; gap: .5rem; align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--navy-900); color: #cfe0f1; font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; }
.topbar a { color: #cfe0f1; text-decoration: none; }
.topbar a:hover, .topbar .current > a, .topbar .active > a { color: #fff; }
.topbar li.item-105, .topbar li.default { display: none; } /* "Home" gia' nel logo */
.topbar-search { flex: 0 1 260px; }
.topbar-search form { margin: 0; position: relative; }
.topbar-search input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; padding: .35em .9em .35em 2.2em; border-radius: 999px; font-size: .875rem; }
.topbar-search input::placeholder { color: #9fb7cf; }
.topbar-search form::before { content: ""; position: absolute; left: .8em; top: 50%; width: .8em; height: .8em; transform: translateY(-60%); border: 2px solid #9fb7cf; border-radius: 50%; }
.topbar-search label, .topbar-search button { display: none; }

.mainbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--navy-800); }
.brand-logo-full { height: 96px; width: auto; flex: none; display: block; }
.brand-logo { max-height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font: 700 1.6rem/1 var(--font-head); letter-spacing: .06em; }
.brand-tagline { font-size: .9rem; color: var(--navy-800); font-weight: 500; max-width: 17em; line-height: 1.25; }
.brand-founded { display: block; font: italic .8rem var(--font-head); color: var(--ink-soft); margin-top: .15rem; }

.nav-toggle { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); font: 600 .95rem var(--font); cursor: pointer; }
.nav-toggle:hover { background: var(--blue-50); }
.nav-toggle-icon { display: inline-grid; gap: 4px; }
.nav-toggle-icon span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* pannello di navigazione (mega menu) */
.site-nav { display: none; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 160px); overflow: auto; }
.nav-open .site-nav { display: block; animation: navIn .2s ease-out; }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-nav > .container { padding-top: 1.5rem; padding-bottom: 2rem; }
.site-nav .mod-menu { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 2rem; }
.site-nav .mod-menu > li { break-inside: avoid; padding: .15rem 0 .6rem; }
.site-nav .mod-menu > li > a, .site-nav .mod-menu > li > span { display: block; padding: .45rem .7rem; margin: 0 -.7rem; border-radius: var(--radius-sm); font-weight: 600; color: var(--navy-800); text-decoration: none; }
.site-nav .mod-menu > li > a:hover { background: var(--blue-50); }
.site-nav .mod-menu > li.current > a, .site-nav .mod-menu > li.active > a { color: var(--red-600); }
.site-nav .mod-menu__sub { list-style: none; margin: .1rem 0 0; padding: 0 0 0 .8rem; border-left: 2px solid var(--line); }
.site-nav .mod-menu__sub a { display: block; padding: .2rem .4rem; color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.site-nav .mod-menu__sub a:hover, .site-nav .mod-menu__sub .current > a { color: var(--blue-500); }
.site-nav-mobile-extra { display: none; }
.site-nav-mobile-extra ul { list-style: none; margin: 0 0 1rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem; }
.site-nav-mobile-extra a { display: inline-block; padding: .35rem .8rem; background: var(--blue-50); border-radius: 999px; color: var(--navy-800); text-decoration: none; font-size: .9rem; }
.site-nav-mobile-extra .item-105, .site-nav-mobile-extra .default { display: none; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%); }
.hero-bg { position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(124,196,242,.35), transparent 70%),
    radial-gradient(400px 260px at 70% 90%, rgba(200,16,46,.28), transparent 70%),
    url("../images/hero-pattern.svg") right center / auto 120% no-repeat;
}
.hero-inner { position: relative; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); max-width: var(--container); }
.hero-kicker { display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); }
.hero-title { color: #fff; max-width: 17ch; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); margin: 0 0 1rem; }
.hero-text { max-width: 58ch; color: #d6e5f4; font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }


/* varianti colore della fascia in home (parametro template "heroStyle") */
.hero--cielo, .hero--acqua { color: var(--navy-800); }
.hero--cielo { background: linear-gradient(135deg, #f2f6ff 0%, #e3ecff 50%, #d3e2ff 100%); }
.hero--acqua { background: linear-gradient(135deg, #f0f9fa 0%, #e0f1f6 50%, #d6e8fb 100%); }
.hero--cielo .hero-bg, .hero--acqua .hero-bg { opacity: 1;
  background:
    radial-gradient(520px 300px at 88% 18%, rgba(0,0,245,.10), transparent 70%),
    radial-gradient(420px 260px at 72% 95%, rgba(200,16,46,.08), transparent 70%),
    url("../images/hero-pattern-blue.svg") right center / auto 120% no-repeat;
}
.hero--cielo .hero-title, .hero--acqua .hero-title { color: var(--navy-800); }
.hero--cielo .hero-text, .hero--acqua .hero-text { color: var(--ink-soft); }
.hero--cielo .hero-kicker, .hero--acqua .hero-kicker { color: #1e40d8; border-color: rgba(30,64,216,.3); background: rgba(255,255,255,.6); }
.hero--cielo .btn-ghost, .hero--acqua .btn-ghost { color: var(--navy-800); border-color: rgba(14,42,71,.35); background: rgba(255,255,255,.55); }
.hero--cielo .btn-ghost:hover, .hero--acqua .btn-ghost:hover { background: #fff; border-color: var(--navy-800); color: var(--navy-800); }
.hero--cielo { border-bottom: 1px solid #d3def5; } .hero--acqua { border-bottom: 1px solid #cfe2ea; }
.hero--blu { background: linear-gradient(120deg, #1d38c8 0%, #2f5fe6 55%, #4f8ef2 100%); }
.hero--blu .hero-bg { opacity: .6; }
.hero--blu .hero-kicker { color: #dbe7ff; border-color: rgba(255,255,255,.4); }
.hero--blu .hero-text { color: #e8efff; }

/* ---------- breadcrumbs ---------- */
.crumbs { background: #fff; border-bottom: 1px solid var(--line); font-size: .875rem; }
.crumbs ol, .crumbs ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-soft); }
.crumbs li + li:not(.mod-breadcrumbs__divider)::before { content: "›"; color: #9aa8b7; margin-right: .3rem; }
.crumbs .mod-breadcrumbs__here, .crumbs .mod-breadcrumbs__divider { display: none; }
.crumbs li.mod-breadcrumbs__here + li::before { content: none; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue-500); }

/* ---------- layout ---------- */
.site-main { padding: clamp(1.5rem, 3vw, 2.75rem) 0 3.5rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 320px; }
.content { min-width: 0; }
.content > .item-page, .content > .com-content-article, .content > .blog, .content > .com-content-category, .content > .com-content-category-blog,
.content > .com-users-login, .content > .com-users-profile, .content > .com-finder, .content > .com-wrapper, .content > .com-content-featured, .content > .contentpane {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.5rem);
}
.is-home .site-main { padding-top: 2.5rem; }
.main-top, .main-bottom { display: grid; gap: 1.5rem; }
.main-top { margin-bottom: 2rem; }
.main-bottom { margin-top: 2rem; }

/* ---------- moduli / card ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: 170px; }
.card-title { margin: 0; padding: 1rem 1.25rem .2rem; font: 700 .8rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); }
.card-body { padding: .8rem 1.25rem 1.25rem; font-size: .95rem; }
.card-body > :last-child { margin-bottom: 0; }
.card-body table { width: 100%; border: 0; }
.card-body td { border: 0; padding: 0; vertical-align: top; }
.card-body hr { margin: 1rem 0; }
.card-body img[src*="new_lampeggiante"] { display: none; }
.sidebar .card-body ul { list-style: none; padding: 0; margin: 0; }
.sidebar .card-body .mod-menu li a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy-800); }
.sidebar .card-body .mod-menu li:last-child a { border-bottom: 0; }
.sidebar .partners .card-body { text-align: center; }
.sidebar .partners img { max-height: 120px; width: auto; margin: .4rem auto; filter: saturate(.9); }
.sidebar .partners p { margin: .2rem 0; font-weight: 600; color: var(--navy-800); font-size: .85rem; }

/* elenco "In evidenza" */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.highlights li { padding-left: 1rem; border-left: 3px solid var(--red-600); }
.highlights a { font-weight: 600; text-decoration: none; color: var(--navy-800); }
.highlights a:hover { color: var(--blue-500); }
.highlights small { display: block; color: var(--ink-soft); margin-top: .15rem; }

/* ---------- articoli ---------- */
.page-header h1, .page-header h2 { margin-top: 0; }
.item-page .page-header, .com-content-article .page-header { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.article-info { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 1.25rem; font-size: .85rem; color: var(--ink-soft); }
.article-info dt { display: none; } .article-info dd { margin: 0; }
.icons, .com-content-article .icons { float: right; }
.com-content-article__body, .item-page [itemprop="articleBody"] { overflow-wrap: anywhere; }
.com-content-article__body img, [itemprop="articleBody"] img { border-radius: 6px; }
.com-content-article__body img[style*="float: left"], .com-content-article__body img[align=left] { margin: 0 1.25rem 1rem 0; }
.com-content-article__body img[style*="float: right"], .com-content-article__body img[align=right] { margin: 0 0 1rem 1.25rem; }

/* tabelle (anche quelle "di impaginazione" dei vecchi contenuti) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.25rem; }
table { border-collapse: collapse; max-width: 100%; }
.com-content-article__body table, [itemprop="articleBody"] table { width: auto !important; height: auto !important; margin-left: auto; margin-right: auto; }
.com-content-article__body td, .com-content-article__body th, [itemprop="articleBody"] td { padding: .35rem .6rem; vertical-align: top; }
table.data, .com-content-category__table, table.category { width: 100%; font-size: .95rem; }
table.data th, table.data td, .com-content-category__table th, .com-content-category__table td, table.category th, table.category td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.com-content-category__table thead th, table.category thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.com-content-category__table a, table.category a { font-weight: 600; text-decoration: none; }

/* lista documenti (newsletter, presentazioni...) */
.doc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc-list li:hover { border-color: var(--blue-300); box-shadow: var(--shadow); }
.doc-list a { text-decoration: none; font-weight: 600; color: var(--navy-800); }
.doc-ext { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: var(--red-600); background: #fbe9ec; padding: .15rem .45rem; border-radius: 4px; }

/* galleria fotografica */
.sibpa-gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 1rem 0; }
.sibpa-gallery figure { margin: 0; }
.sibpa-gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: var(--blue-50); }
.sibpa-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .35s; }
.sibpa-gallery a:hover img { transform: scale(1.05); }
.sibpa-gallery figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; line-height: 1.35; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; gap: .8rem; padding: 3rem 1rem; background: rgba(6,16,28,.92); color: #fff; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 94vw; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; } .lightbox .lb-next { right: 1rem; top: 50%; }

/* mappa */
.sibpa-map { height: min(70vh, 560px); border-radius: var(--radius); overflow: hidden; background: var(--blue-50); }

/* ---------- blog / elenchi ---------- */
.blog-items, .com-content-category-blog__items { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.blog-item, .com-content-category-blog__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.blog-item:hover { border-color: #c9d7e6; box-shadow: var(--shadow); }
.blog-item:has(.item-image) { grid-template-columns: 200px minmax(0, 1fr); }
.blog-item .item-image { margin: 0; float: none !important; }
.blog-item .item-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.blog-item .page-header h2 { font-size: 1.25rem; margin: 0 0 .3rem; }
.blog-item .page-header a { text-decoration: none; color: var(--navy-800); }
.blog-item .page-header a:hover { color: var(--blue-500); }
.blog-item .item-content > p:last-child { margin-bottom: 0; }
.blog-item .readmore { margin: .8rem 0 0; }
.blog-item .readmore a { padding: .45em 1em; font-size: .85rem; background: var(--blue-50); color: var(--navy-800); }
.blog-item .readmore a:hover { background: var(--navy-800); color: #fff; }
.blog-item .item-content { overflow-wrap: anywhere; }
.com-content-category-blog .category-desc { margin-bottom: 1.5rem; }
.itemid-108 .blog-items, .view-category.layout-blog .blog-items.columns-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.itemid-108 .blog-item { grid-template-columns: 1fr !important; padding: .8rem; }
.itemid-108 .blog-item .item-image img { aspect-ratio: 16/10; }
.itemid-108 .blog-item .item-content p { font-size: .85rem; color: var(--ink-soft); }

.pagination__wrapper, .com-content-category-blog__navigation { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 1.5rem; }
.pagination { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.page-link { display: inline-flex; min-width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; padding: 0 .6rem; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--navy-800); background: #fff; }
.page-item.active .page-link { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.page-item.disabled .page-link { opacity: .45; }
.counter { font-size: .85rem; color: var(--ink-soft); }
.pagenav { display: flex; justify-content: space-between; gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }

/* ---------- home ---------- */
.home-intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 70ch; }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 1.25rem 0 2rem; }
.feature { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.feature-img { aspect-ratio: 16/9; background: var(--blue-50); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0 !important; }
.feature-body { padding: 1rem 1.15rem 1.25rem; }
.feature-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-600); }
.feature-title { display: block; margin: .3rem 0 .25rem; font: 600 1.1rem/1.3 var(--font-head); color: var(--navy-800); }
.feature-text { font-size: .9rem; color: var(--ink-soft); }
.quick-links { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 1rem 0 0; padding: 0; list-style: none; }
.quick-links a { display: flex; align-items: center; gap: .7rem; height: 100%; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--navy-800); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.quick-links a::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--red-600); }
.quick-links a:hover { background: var(--navy-800); color: #fff; }
.is-home .item-page .page-header { display: none; }

/* notizie (mod_articles_news orizzontale) */
.newsflash-horiz, .mod-articlesnews-horizontal { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.newsflash-horiz > li, .mod-articlesnews-horizontal > li { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.newsflash-title { font: 600 1.05rem/1.3 var(--font-head); margin: 0 0 .4rem; }
.newsflash-title a { text-decoration: none; color: var(--navy-800); }
.newsflash-horiz p, .mod-articlesnews-horizontal p { font-size: .9rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.newsflash-horiz img, .mod-articlesnews-horizontal img { display: none; }
.mod-articlesnews .readmore, .newsflash-horiz .readmore { font-size: .85rem; }

/* ---------- utenti / login ---------- */
.mod-login .mod-login__userdata > div, .mod-login__username, .mod-login__password { margin-bottom: .8rem; }
.mod-login__options { list-style: none; padding: 0; margin: .8rem 0 0; font-size: .85rem; }
.mod-login__submit .btn { width: 100%; }
.plg_system_webauthn_login_button { margin-top: .5rem; width: 100%; }
.com-users-login { max-width: 520px; }

/* messaggi di sistema */
joomla-alert, .alert { display: block; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #b9cbdd; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--blue-300); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); padding-top: 3rem; padding-bottom: 2.5rem; }
.footer-brand img { margin-bottom: .9rem; }
.footer-logo { height: 80px; width: auto; }
.footer-name { font: 700 1.4rem var(--font-head); color: #fff; letter-spacing: .06em; margin: 0 0 .4rem; }
.footer-text { max-width: 40ch; margin: 0; }
.footer-modules { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-title { font: 700 .75rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer .contacts span { display: inline-block; min-width: 6.5rem; color: #8ea6bf; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.1rem; padding-bottom: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #8ea6bf; }

.back-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-800); color: #fff; text-decoration: none; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s; }
.back-top.show { opacity: .9; pointer-events: auto; }
.back-top:hover { color: #fff; opacity: 1; }

/* pagina di errore / component */
.error-page { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 2rem; }
.error-wrap { max-width: 560px; }
.error-code { font: 700 4.5rem/1 var(--font-head); color: var(--red-600); margin: 1rem 0 .4rem; }
.component-page { padding: 1.5rem; background: #fff; }

/* ---------- responsive ---------- */
@media (min-width: 1100px) {
  /* desktop: il menu principale resta un pannello a comparsa, ma lo si apre anche al passaggio */
}
@media (max-width: 991.98px) {
  .has-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .topbar-menu { display: none; }
  .topbar-inner { justify-content: stretch; }
  .topbar-search { flex: 1; padding: .35rem 0; }
  .site-nav-mobile-extra { display: block; }
  .site-nav .mod-menu { columns: 1; }
  .brand-tagline { display: none; }
  .brand-logo-full { height: 64px; }
  .nav-toggle-label { display: none; }
  .blog-item:has(.item-image) { grid-template-columns: 1fr; }
  .com-content-article__body table:not(.data):not(.content-table) td { display: block; width: auto !important; text-align: center; }
  .com-content-article__body table:not(.data):not(.content-table) tr { display: block; }
  .com-content-article__body table:not(.data):not(.content-table) td:empty, .com-content-article__body table:not(.data):not(.content-table) td:has(> br:only-child) { display: none; }
  .hero-text { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .sidebar, .crumbs, .back-top, .hero { display: none !important; }
  body { background: #fff; }
  .content > * { box-shadow: none !important; padding: 0 !important; }
}


/* =====================================================================
   v1.1 - stile "scienza": header chiaro, fascia con illustrazione,
   accessi rapidi e notizie in evidenza
   ===================================================================== */
.btn-primary { background: var(--teal-600); color: #fff; border-radius: 6px; }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-800); border: 1.5px solid var(--teal-600); border-radius: 6px; }
.btn-outline:hover { background: var(--teal-50); color: var(--navy-800); }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; font-weight: 500; }

/* header */
.site-header { box-shadow: 0 1px 0 rgba(19,41,75,.06); }
.mainbar-inner { gap: 1.5rem; min-height: 92px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 1.25rem; }
.primary-nav a { white-space: nowrap; color: var(--navy-800); text-decoration: none; font-size: .93rem; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current > a, .primary-nav .active > a { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.primary-nav .item-105, .primary-nav .default { display: none; }
.primary-nav .item-161 > a { border: 1.5px solid var(--teal-600); border-radius: 6px; padding: .55rem 1.2rem; color: var(--teal-700); }
.primary-nav .item-161 > a:hover { background: var(--teal-50); }
.nav-toggle { border-radius: 6px; }
.site-nav-search { margin: 0 0 1.25rem; max-width: 520px; }
.site-nav-search input { border-radius: 6px; padding: .7em 1em; }
.site-nav-search label, .site-nav-search button { display: none; }
.site-nav .mod-menu > li.current > a, .site-nav .mod-menu > li.active > a { color: var(--teal-700); }

/* fascia "scienza" */
.hero--scienza { color: var(--navy-800); background: #f3f9fb; border-bottom: 1px solid #e3eef1; }
.hero--scienza .hero-bg { opacity: 1; left: 38%;
  background: var(--hero-image, url("../images/hero-art.jpg")) right center / cover no-repeat; }
.hero--scienza .hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f3f9fb 0%, rgba(243,249,251,.85) 18%, rgba(243,249,251,0) 45%); }
.hero--scienza .hero-inner { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.hero--scienza .hero-kicker { border: 0; padding: 0; border-radius: 0; color: var(--teal-600); font-weight: 700; font-size: .9rem; letter-spacing: .2em; }
.hero--scienza .hero-title { color: var(--navy-800); font-weight: 500; letter-spacing: -.02em; max-width: 14ch; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); line-height: 1.08; }
.hero--scienza .hero-text { color: #3d5468; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 34em; }

/* accessi rapidi */
.hero-strip { background: #fff; border-bottom: 1px solid var(--line); }
.hero-strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.strip-item { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.5rem; color: var(--navy-800); text-decoration: none; font-size: 1.08rem; position: relative; transition: background .2s; }
.strip-item + .strip-item::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.strip-item:hover { background: var(--teal-50); color: var(--navy-800); }
.strip-icon { flex: none; width: 46px; height: 46px; color: var(--teal-600); }
.strip-icon svg { width: 100%; height: 100%; }
.strip-arrow { margin-left: auto; color: var(--teal-600); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.strip-item:hover .strip-arrow { transform: translateX(4px); }

/* notizie in home */
.home-news { padding: 3rem 0 .5rem; }
.home-section + .home-section { margin-top: 2.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; }
.section-more { font-weight: 600; text-decoration: none; color: var(--teal-700); white-space: nowrap; }
.home-news .newsflash-horiz, .home-news .mod-articlesnews-horizontal { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.home-news .newsflash-horiz > li, .home-news .mod-articlesnews-horizontal > li { position: relative; padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(19,41,75,.04); transition: box-shadow .2s, transform .2s, border-color .2s; border-top: 3px solid var(--teal-600); }
.home-news .newsflash-horiz > li:hover, .home-news .mod-articlesnews-horizontal > li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.home-news .newsflash-title { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.home-news .newsflash-title a::after { content: ""; position: absolute; inset: 0; }
.home-news .readmore, .home-news a.readmore { display: none; }
.is-home .site-main { padding-top: 2rem; }

/* card e moduli laterali in tono */
.card { border-radius: 12px; }
.card-title { color: var(--teal-700); }
.highlights li { border-left-color: var(--teal-600); }
.quick-links a::before { background: var(--teal-600); }
.quick-links a:hover { background: var(--teal-600); }
.feature-tag { color: var(--teal-700); }

/* footer */
.site-footer { background: #10283f; }
.footer-title { color: var(--blue-300); }

@media (max-width: 1099.98px) {
  .primary-nav { display: none; }
  .site-nav-mobile-extra { display: block; }
  .nav-toggle { margin-left: auto; }
}
@media (max-width: 767.98px) {
  .hero--scienza .hero-bg { left: 0; opacity: .28; }
  .hero--scienza .hero-bg::before { background: linear-gradient(180deg, rgba(243,249,251,.4), rgba(243,249,251,.9)); }
  .strip-item { padding: 1.1rem .5rem; }
  .strip-item + .strip-item::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .mainbar-inner { min-height: 76px; }
}
.brand { flex: none; }
.primary-nav .item-161 { order: 99; margin-left: .4rem; }
.primary-nav ul { gap: 1.1rem; }
@media (min-width: 1280px) { .brand-logo-full { height: 88px; } }
/* mega menu: sottovoci sempre visibili (Joomla 6 le nasconde con aria-hidden) */
.site-nav .mod-menu__sub, .site-nav .mod-menu__sub[aria-hidden="true"] { display: block !important; visibility: visible !important; height: auto !important; opacity: 1 !important; }
.site-nav .mod-menu__toggle-sub { display: none !important; }

/* footer chiaro (v1.1.3) */
.site-footer { background: linear-gradient(180deg, #f3f9fb 0%, #e8f3f5 100%); color: var(--ink-soft); border-top: 1px solid #dbe9ec; }
.site-footer a { color: var(--navy-800); }
.site-footer a:hover { color: var(--teal-700); }
.footer-title { color: var(--teal-700); }
.site-footer .contacts span { color: #6b7c8a; }
.footer-legal { border-top-color: #d5e5e9; color: #6b7c8a; }
.back-top { background: var(--teal-600); }
.back-top:hover { background: var(--teal-700); }

/* home v1.2: notizie su 4 colonne, sezione "La Società" */
.is-home .site-main { padding-bottom: 1rem; }
.home-news { padding: 2.5rem 0 1rem; }
.home-news .newsflash-horiz, .home-news .mod-articlesnews-horizontal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-news .newsflash-horiz p, .home-news .mod-articlesnews-horizontal p { -webkit-line-clamp: 5; }
.bottom { padding: 2rem 0 3.5rem; }
.society-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.society-links a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.25rem 2.6rem 1.25rem 1.3rem; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.society-links a::after { content: "\2192"; position: absolute; right: 1.1rem; top: 1.2rem; color: var(--teal-600); font-size: 1.15rem; transition: transform .2s; }
.society-links a:hover { border-color: var(--teal-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.society-links a:hover::after { transform: translateX(3px); }
.society-links strong { color: var(--navy-800); font-size: 1.05rem; font-weight: 600; }
.society-links span { color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
@media (max-width: 991.98px) {
  .home-news .newsflash-horiz, .home-news .mod-articlesnews-horizontal, .society-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .home-news .newsflash-horiz, .home-news .mod-articlesnews-horizontal, .society-links { grid-template-columns: 1fr; }
}

/* home v1.3: notizia principale + tre in primo piano */
.is-home .content > .item-page, .is-home .content > .com-content-article { background: transparent; box-shadow: none; padding: 0; }
.home-lead .section-head { margin-bottom: 1rem; }
.home-lead .newsflash, .home-lead .mod-articlesnews { list-style: none; margin: 0; padding: 0; }
.home-lead .mod-articlesnews__item, .home-lead .newsflash > div, .home-lead .newsflash > li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.home-lead .mod-articlesnews__item:has(.newsflash-image), .home-lead .newsflash > div:has(.newsflash-image), .home-lead .newsflash > li:has(.newsflash-image) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.home-lead .newsflash-image { margin: 0; background: var(--teal-50); display: flex; align-items: center; justify-content: center; min-height: 100%; }
.home-lead .newsflash-image img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: 0 !important; }
.home-lead .newsflash-title { order: 0; margin: 0; padding: 1.6rem 1.75rem .4rem; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); line-height: 1.25; font-weight: 600; }
.home-lead .newsflash-title a { color: var(--navy-800); text-decoration: none; }
.home-lead .newsflash-title a::after { content: ""; position: absolute; inset: 0; }
.home-lead .newsflash-title::before { content: "Novità"; display: block; margin-bottom: .55rem; font: 700 .72rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); }
.home-lead p { padding: 0 1.75rem; margin: 0 0 .8rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.home-lead .readmore { display: inline-flex; margin: .2rem 1.75rem 1.6rem; padding: .6em 1.2em; border-radius: 6px; background: var(--teal-600); color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; width: max-content; position: relative; z-index: 1; }
.home-lead .readmore:hover { background: var(--teal-700); color: #fff; }
.home-lead .mod-articlesnews__item > :not(.newsflash-image), .home-lead .newsflash > div > :not(.newsflash-image) { grid-column: auto; }
.home-lead .mod-articlesnews__item:has(.newsflash-image) > .newsflash-image, .home-lead .newsflash > div:has(.newsflash-image) > .newsflash-image { grid-row: 1 / span 4; }
.home-lead + .item-page, .home-lead + .com-content-article { margin-top: 1.25rem; }
.is-home .feature-grid { margin: 0 0 .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* partner piu' compatti */
.sidebar .partners .card-body table, .sidebar .partners .card-body tbody { display: block; }
.sidebar .partners .card-body tr { display: block; }
.sidebar .partners .card-body td { display: block; padding: 0; }
.sidebar .partners .card-body tbody { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: center; }
.sidebar .partners .card-body tr:has(hr) { display: none; }
.sidebar .partners .card-body p { margin: 0; }
.sidebar .partners p:has(strong), .sidebar .partners p:has(> span) { display: none; }
.sidebar .partners img { max-height: 64px; max-width: 100%; width: auto; height: auto; margin: 0 auto; display: block; }
@media (max-width: 767.98px) {
  .home-lead .mod-articlesnews__item:has(.newsflash-image), .home-lead .newsflash > div:has(.newsflash-image), .home-lead .newsflash > li:has(.newsflash-image) { grid-template-columns: 1fr; }
  .home-lead .mod-articlesnews__item:has(.newsflash-image) > .newsflash-image { grid-row: auto; }
  .is-home .feature-grid { grid-template-columns: 1fr; }
}

/* layout "lead" (notizia principale) */
.lead-card { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.lead-card.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.lead-media { display: block; background: var(--teal-50); min-height: 260px; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; display: block; }
.lead-body { display: flex; flex-direction: column; align-items: flex-start; padding: 1.75rem 1.9rem; border-top: 4px solid var(--teal-600); }
.lead-card.has-image .lead-body { border-top: 0; border-left: 4px solid var(--teal-600); }
.lead-meta { margin: 0 0 .6rem; font-size: .85rem; color: var(--ink-soft); }
.lead-tag { display: inline-block; margin-right: .6rem; padding: .2rem .6rem; border-radius: 4px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.lead-title { margin: 0 0 .7rem; font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem); line-height: 1.22; font-weight: 600; }
.lead-title a { color: var(--navy-800); text-decoration: none; }
.lead-title a:hover { color: var(--teal-700); }
.lead-text { color: var(--ink-soft); margin: 0 0 1.25rem; }
.lead-more { margin-top: auto; font-size: .92rem; }

/* layout "cards" (ultime notizie) */
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.news-card { position: relative; display: flex; flex-direction: column; padding: 1.35rem 1.35rem 1.4rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal-600); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-date { font-size: .8rem; font-weight: 600; color: var(--teal-700); margin-bottom: .45rem; }
.news-title { margin: 0 0 .5rem; font-size: 1.08rem; line-height: 1.3; font-weight: 600; }
.news-title a { color: var(--navy-800); text-decoration: none; }
.news-title a::after { content: ""; position: absolute; inset: 0; }
.news-text { margin: 0; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 991.98px) { .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .lead-card.has-image { grid-template-columns: 1fr; }
  .lead-card.has-image .lead-body { border-left: 0; border-top: 4px solid var(--teal-600); }
  .lead-media { min-height: 190px; }
}
@media (max-width: 575.98px) { .news-cards { grid-template-columns: 1fr; } }
.home-lead .lead-card p { padding: 0; -webkit-line-clamp: unset; display: block; }
.home-lead .lead-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   v1.4 - articoli: tipografia uniforme e componenti di contenuto
   ===================================================================== */
.com-content-article__body, [itemprop="articleBody"] { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }
.com-content-article__body > *:first-child { margin-top: 0; }
.com-content-article__body h2 { font-size: 1.45rem; margin: 2.2rem 0 .9rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.com-content-article__body h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; color: var(--navy-800); }
.com-content-article__body h4 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.com-content-article__body p { margin: 0 0 1rem; }
.com-content-article__body ul, .com-content-article__body ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.com-content-article__body li { margin: .3rem 0; }
.com-content-article__body li > p { margin: 0; }
.com-content-article__body ul li::marker { color: var(--teal-600); }
.com-content-article__body a { color: var(--teal-700); text-decoration-color: rgba(36,118,126,.35); }
.com-content-article__body a:hover { color: var(--navy-800); text-decoration-color: currentColor; }
.com-content-article__body strong { color: var(--navy-800); font-weight: 600; }
.com-content-article__body hr { margin: 2rem 0; }
.com-content-article__body img { max-width: 100%; height: auto; border-radius: 8px; }
.com-content-article__body .media-center { text-align: center; }
.com-content-article__body .media-center img { display: inline-block; }
.com-content-article__body font, .com-content-article__body span { font-size: inherit !important; font-family: inherit !important; }
.com-content-article__body .lead { font-size: 1.2rem; color: #3d5468; }
.com-content-article__body .small { font-size: .9rem; color: var(--ink-soft); }
.item-page .page-header h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.015em; }

/* elenco con spunte */
.check-list { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.check-list li { position: relative; padding: .7rem 1rem .7rem 2.6rem; margin: 0 !important; background: var(--teal-50); border-radius: 8px; }
.check-list li::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: .7rem; height: .4rem; border-left: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600); transform: rotate(-45deg); }

/* tabelle di contenuto */
.content-table { width: 100% !important; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .97rem; }
.content-table td, .content-table th { padding: .65rem .8rem !important; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.content-table tr:first-child td { border-top: 1px solid var(--line); }
.content-table tr:nth-child(even) td { background: #fafcfd; }
.content-table img { margin: .2rem 0; }

/* griglia di loghi / immagini con link */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.logo-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: .9rem; transition: border-color .2s, box-shadow .2s; }
.logo-item:hover { border-color: var(--teal-600); box-shadow: var(--shadow); }
.logo-item img { max-height: 110px; width: auto; margin: 0 auto; }
.logo-item p { margin: 0; }

/* persone (Consiglio Direttivo) */
.people-group { margin: 0 0 2.5rem; }
.people-group h2 { margin-top: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.people--lead { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.person:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.person-photo { aspect-ratio: 1 / 1; background: linear-gradient(135deg, #e7f4f6, #d7ebf0); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: 0 !important; display: block; }
.person-photo--empty { display: flex; align-items: center; justify-content: center; }
.person-photo--empty span { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--teal-700); font-size: 2rem; font-weight: 600; letter-spacing: .02em; box-shadow: 0 2px 10px rgba(19,41,75,.08); }
.person-body { padding: 1rem 1.15rem 1.2rem; }
.person-role { margin: 0 0 .25rem !important; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }
.person-name { margin: 0 0 .45rem !important; font-size: 1.12rem !important; line-height: 1.3; }
.person-name a { color: var(--navy-800) !important; text-decoration: none !important; }
.person-aff { margin: 0 0 .6rem !important; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.person-contact { margin: 0 !important; font-size: .85rem; line-height: 1.6; word-break: break-word; }
.person-inst { display: block; margin-top: .15rem; }
.person--lead .person-name { font-size: 1.25rem !important; }

/* quote / pagamenti */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0 .75rem; }
.fee { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-top: 4px solid var(--teal-600); border-radius: 12px; background: #fff; }
.fee p { margin: 0 !important; }
.fee-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }
.fee-price { font-size: 2.2rem; font-weight: 600; color: var(--navy-800); line-height: 1.2; margin: .3rem 0 !important; }
.fee-price span { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.fee-note { font-size: .9rem; color: var(--ink-soft); }
.info-box { padding: 1.3rem 1.5rem; background: var(--teal-50); border-radius: 12px; margin: 0 0 1.25rem; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: .5rem 0 0; }
.info-list dt { font-weight: 600; color: var(--ink-soft); }
.info-list dd { margin: 0; }
@media (max-width: 575.98px) { .info-list { grid-template-columns: 1fr; } .info-list dd { margin-bottom: .5rem; } }

/* le vecchie tabelle a celle impilate su telefono: annulla per i nuovi componenti */
@media (max-width: 767.98px) {
  .com-content-article__body table.content-table td { display: table-cell; text-align: left; }
  .com-content-article__body table.content-table tr { display: table-row; }
}
.logo-item > a { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--navy-800) !important; width: 100%; }
.logo-item img { max-height: 70px; }
.logo-caption { font-size: .86rem; line-height: 1.4; }
.logo-caption em { display: block; font-style: normal; color: var(--ink-soft); font-size: .8rem; }
/* schede persone: foto rotonda, testo centrato */
.people { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.people--lead { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.person { align-items: center; text-align: center; padding: 1.5rem 1rem 1.25rem; }
.person-photo { width: 120px; height: 120px; aspect-ratio: auto; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.person--lead .person-photo { width: 132px; height: 132px; }
.person-photo--empty span { width: auto; height: auto; background: none; box-shadow: none; font-size: 2.1rem; }
.person-body { padding: 1rem .25rem 0; }
.person-contact a { color: var(--teal-700); }

/* modulo di accesso */
.plg_system_webauthn_login_button { display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem; padding: .6em 1em !important; background: #fff !important; color: var(--navy-800) !important; border: 1px solid var(--line) !important; border-radius: 6px !important; font-size: .88rem !important; }
.plg_system_webauthn_login_button svg { width: 1.4em !important; height: 1.4em !important; flex: none; }
.input-password-toggle { background: #fff !important; color: var(--navy-800) !important; border: 1px solid var(--line) !important; border-left: 0 !important; }
.mod-login .btn-primary, .mod-login button[type=submit] { width: 100%; background: var(--teal-600); border-radius: 6px; }
.mod-login .btn-primary:hover, .mod-login button[type=submit]:hover { background: var(--teal-700); }
.mod-login__options a, .mod-login a { color: var(--teal-700); font-size: .85rem; }
.logo-item .logo-link { display: flex; align-items: center; justify-content: center; min-height: 72px; }
.logo-caption a { color: var(--navy-800); text-decoration: none; font-weight: 600; }
.logo-caption a:hover { color: var(--teal-700); }
.logo-caption p { margin: 0; }

/* =====================================================================
   v1.5 - elenchi di articoli (blog di categoria) e pagina articolo
   ===================================================================== */
.blog-item:has(> .post-card), .com-content-category-blog__item:has(> .post-card) { padding: 0; border: 0; background: none; box-shadow: none; display: block; }
.blog-item:has(> .post-card):hover { box-shadow: none; }
.com-content-category-blog .blog-items { gap: 1.75rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.post-card:hover { box-shadow: var(--shadow); border-color: #cfe1e5; }
.post-media { display: block; background: var(--teal-50); }
.post-media img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 0 !important; }
.post-body { padding: 1.9rem 2rem 1.8rem; text-align: center; }
.post-title { margin: 0 auto .55rem; max-width: 30ch; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.post-title a { color: var(--navy-800); text-decoration: none; }
.post-title a:hover { color: var(--teal-700); }
.post-date { margin: 0 0 1rem; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); }
.post-date::before, .post-date::after { content: ""; display: inline-block; width: 1.6rem; height: 1px; background: #b8d9dd; vertical-align: middle; margin: 0 .7rem; }
.post-text { margin: 0 auto 1.3rem; max-width: 62ch; color: var(--ink-soft); line-height: 1.7; }
.post-more { margin: 0; }
.post-more .btn { padding: .6em 1.4em; font-size: .92rem; }
/* galleria: schede in griglia, piu' compatte */
.itemid-108 .blog-items { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
.itemid-108 .post-media img { aspect-ratio: 4 / 3; max-height: none; }
.itemid-108 .post-body { padding: 1.2rem 1.2rem 1.3rem; }
.itemid-108 .post-title { font-size: 1.12rem; }
.itemid-108 .post-date { display: none; }
.itemid-108 .post-text { font-size: .88rem; margin-bottom: .9rem; }

/* pagina articolo: titolo centrato, solo la data */
.item-page .page-header { text-align: center; border-bottom: 0 !important; margin-bottom: .4rem !important; padding-bottom: 0 !important; }
.item-page .page-header h1, .item-page .page-header h2 { max-width: 28ch; margin-left: auto; margin-right: auto; }
.item-page .article-info { justify-content: center; margin: 0 0 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.item-page .article-info .published { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); }
.item-page .article-info .published .icon-calendar { display: none; }
.article-info .createdby, .article-info .hits, .article-info .category-name, .article-info .parent-category-name, .article-info .modified, .article-info .create { display: none; }
.item-page .page-header + .com-content-article__body { padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* =====================================================================
   v1.6 - Scuola Internazionale, Congressi, Premi
   ===================================================================== */
.edition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.edition { display: flex; flex-direction: column; padding: 1.3rem 1.35rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s, border-color .2s; }
.edition:hover { border-color: #cfe1e5; box-shadow: var(--shadow); }
.edition-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.edition-num { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--teal-700); background: var(--teal-50); padding: .2rem .55rem; border-radius: 4px; }
.edition-year { font-size: 1.5rem; font-weight: 600; color: var(--navy-800); line-height: 1; }
.com-content-article__body .edition-title { margin: 0 0 .6rem; font-size: 1.02rem; line-height: 1.4; font-weight: 600; color: var(--navy-800); }
.com-content-article__body .edition-meta { margin: 0 0 .9rem; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.edition-link { margin: auto 0 0 !important; }
.edition-link .btn { padding: .45em 1em; font-size: .85rem; }
.edition--next { padding: 1.8rem 2rem; border: 0; border-left: 5px solid var(--teal-600); background: linear-gradient(120deg, #f2f9fb, #e6f3f6); margin-bottom: .5rem; }
.edition--next .edition-year { font-size: 2.2rem; }
.com-content-article__body .edition--next .edition-title { font-size: 1.4rem; max-width: 34ch; }
.edition--next .edition-meta { font-size: .95rem; }
.edition--next .btn { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.edition--next .btn:hover { background: var(--teal-700); }

.cong-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.cong { display: flex; flex-direction: column; padding: 1.2rem 1.25rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal-600); border-radius: 12px; transition: box-shadow .2s; }
.cong:hover { box-shadow: var(--shadow); }
.com-content-article__body .cong-year { margin: 0; font-size: 1.7rem; font-weight: 600; color: var(--navy-800); line-height: 1.1; }
.com-content-article__body .cong-city { margin: .2rem 0 .8rem; color: var(--ink-soft); }
.cong-link { margin-top: auto; font-size: .88rem; font-weight: 600; text-decoration: none !important; color: var(--teal-700) !important; }
.cong--last { background: linear-gradient(160deg, #f2f9fb, #e3f1f4); }
.doc-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.doc-box p { margin: 0 !important; }

.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.prize { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.prize:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prize-media { display: flex; align-items: center; justify-content: center; height: 200px; background: linear-gradient(135deg, #f2f9fb, #e3f1f4); padding: 1rem; }
.prize-media img { max-height: 170px; max-width: 100%; width: auto; border-radius: 6px; }
.prize-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.3rem; text-align: center; }
.com-content-article__body .prize-title { margin: 0 0 .5rem; font-size: 1.1rem; }
.prize-title a { color: var(--navy-800) !important; text-decoration: none !important; }
.prize-body p { font-size: .92rem; color: var(--ink-soft); }
.prize-more { margin: auto 0 0 !important; }
.com-content-article__body a.btn { text-decoration: none; }
.com-content-article__body a.btn-primary, .com-content-article__body a.btn-primary:hover { color: #fff; }
.com-content-article__body a.btn-outline { color: var(--navy-800); }
.com-content-article__body a.btn-outline:hover { color: var(--navy-800); }

/* =====================================================================
   v1.8 - SIBPA Grants e Job & Funding (schede opportunità)
   ===================================================================== */
.opp-list { display: grid; gap: 1rem; margin: 0 0 2rem; }
.opp { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.opp:hover { box-shadow: var(--shadow); border-color: #c9dde3; }
.opp-side { display: flex; align-items: flex-start; justify-content: center; padding: 1.2rem .5rem; background: var(--teal-50); border-right: 3px solid var(--teal-600); }
.opp--job .opp-side, .opp--other .opp-side { background: var(--blue-50); border-right-color: var(--blue-300); }
.opp-year { font-weight: 700; font-size: 1.3rem; color: var(--teal-700); letter-spacing: -.01em; }
.opp--job .opp-year, .opp--other .opp-year { color: var(--navy-700); font-size: 1.15rem; }
.opp-body { padding: 1.1rem 1.4rem 1.2rem; min-width: 0; }
.opp-tag { margin: 0 0 .45rem !important; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }
.opp--job .opp-tag, .opp--other .opp-tag { color: var(--ink-soft); }
.com-content-article__body .opp-title { margin: 0 0 .4rem; font-size: 1.08rem; line-height: 1.35; font-weight: 600; color: var(--navy-800); }
.opp-text { overflow-wrap: anywhere; }
.opp-text p { margin: 0 0 .4rem; }
.opp-text p:last-child { margin-bottom: 0; }
.opp-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0 0 !important; }
.opp-note { color: var(--ink-soft); font-size: .92rem; margin-top: -.4rem; }
/* il bando più recente in evidenza */
.opp-list .opp--grant:first-child { border-color: var(--teal-600); box-shadow: var(--shadow); }
.opp-list .opp--grant:first-child .opp-side { background: var(--teal-600); }
.opp-list .opp--grant:first-child .opp-year { color: #fff; }
.opp-list .opp--grant:first-child .opp-tag::after { content: " · Ultimo bando"; color: var(--navy-800); }
.opp-list .opp--grant:first-child a.btn-outline { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.opp-list .opp--grant:first-child a.btn-outline:hover { background: var(--teal-700); color: #fff; }
@media (max-width: 560px) {
  .opp { grid-template-columns: 1fr; }
  .opp-side { justify-content: flex-start; padding: .55rem 1.1rem; border-right: 0; border-bottom: 3px solid var(--teal-600); }
  .opp--job .opp-side, .opp--other .opp-side { border-bottom-color: var(--blue-300); }
  .opp-side:empty { display: none; }
  .opp-body { padding: 1rem 1.1rem; }
}

/* =====================================================================
   v1.9 - Biofisica in Italia, Biophysics Week, Eventi, Pubblicazioni, Riviste
   ===================================================================== */
.prize-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.prize-kicker { margin: 0 0 .3rem !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700) !important; }
.prize-grid--2 .prize-body p:not(.prize-kicker):not(.prize-more) { text-align: left; }

/* istituzioni */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.inst { padding: 1.1rem 1.25rem 1.15rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal-600); border-radius: 12px; transition: box-shadow .2s; }
.inst:hover { box-shadow: var(--shadow); }
.com-content-article__body .inst-name { margin: 0 0 .5rem; font-size: 1.02rem; line-height: 1.35; }
.com-content-article__body .inst-name a { color: var(--navy-800); text-decoration: none; }
.com-content-article__body .inst-name a:hover { color: var(--teal-700); }
.com-content-article__body .inst-links { margin: 0; padding-left: 1.05rem; font-size: .9rem; line-height: 1.5; }
.inst-links li { margin: .25rem 0; }

/* mappa didattica */
.map-figure { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin: 0 0 2rem; }
.map-figure > a { display: block; background: var(--teal-50); border-radius: 12px; padding: 1rem; }
.map-figure > a img { display: block; margin: 0 auto; max-height: 560px; width: auto; }
.map-side { padding: 1.3rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.com-content-article__body .map-side h3 { margin-top: 0; }
.com-content-article__body .map-legend { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.map-legend li { display: flex; align-items: center; gap: .7rem; margin: 0 !important; font-size: .95rem; line-height: 1.35; }
.com-content-article__body .map-legend img { flex: none; width: 22px; height: auto; border-radius: 0; }
.map-side p { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 760px) { .map-figure { grid-template-columns: 1fr; } }

/* eventi */
.opp--event .opp-side { background: var(--teal-50); border-right-color: var(--teal-600); }
.com-content-article__body .opp-title a { color: var(--navy-800); text-decoration: none; }
.com-content-article__body .opp-title a:hover { color: var(--teal-700); }
.opp-meta { margin: 0 0 .25rem !important; color: var(--ink-soft); font-size: .95rem; }

/* pubblicazioni */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.pub { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s; }
.pub:hover { box-shadow: var(--shadow); }
.pub-cover { display: block; }
.com-content-article__body .pub-cover img { width: 96px; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(19,41,75,.18); }
.com-content-article__body .pub-title { margin: 0 0 .2rem; font-size: 1.05rem; line-height: 1.3; }
.pub-vol { margin: 0 0 .6rem !important; font-size: .9rem; color: var(--ink-soft); }
.pub-more { margin: 0 !important; }
.pub .opp-tag { margin-bottom: .35rem !important; }

/* riviste partner */
.journal { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.75rem; align-items: center; padding: 1.5rem; margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.journal-logo { display: flex; align-items: center; justify-content: center; min-height: 170px; padding: 1rem; background: linear-gradient(135deg, #f2f9fb, #e3f1f4); border-radius: 10px; }
.com-content-article__body .journal-logo img { max-height: 150px; width: auto; }
.journal-logo--cover { padding: .75rem; }
.com-content-article__body .journal-logo--cover img { max-height: 230px; border-radius: 4px; box-shadow: 0 4px 14px rgba(19,41,75,.2); }
.com-content-article__body .journal-body h2 { margin: 0 0 .6rem; padding: 0; border: 0; font-size: 1.35rem; }
.journal-body .opp-links { margin-top: 1rem !important; }
@media (max-width: 640px) { .journal { grid-template-columns: 1fr; } }

/* Biophysics Week: iniziative */
.ev-list { display: grid; gap: .9rem; margin: 0 0 2rem; }
.ev { padding: 1.1rem 1.35rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: 10px; }
.ev > *:first-child { margin-top: 0; }
.ev > *:last-child { margin-bottom: 0; }
.ev p { margin: 0 0 .35rem !important; }
.com-content-article__body .ev h3 { margin: .35rem 0 .45rem; font-size: 1.08rem; font-style: normal; }
.ev h3 em { font-style: normal; }
.ev address { font-style: normal; margin: 0 0 .35rem; }
.com-content-article__body .ev img { max-width: 100%; }
/* pagina categoria con descrizione */
.category-desc .lead, .blog .category-desc p.lead { font-size: 1.15rem; color: #3d5468; }
/* Biophysics Week (menu 201): schede per anno in griglia */
.itemid-201 .blog-items, .itemid-201 .com-content-category-blog__items { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 1.25rem !important; }
.itemid-201 .post-media { display: flex; align-items: center; justify-content: center; height: 170px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.itemid-201 .post-media img { width: 100%; height: 100%; max-height: none; object-fit: contain; padding: .5rem; }
.itemid-201 .post-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =====================================================================
   v2.0 - Statuto
   ===================================================================== */
.st-toc { margin: 0 0 2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.st-toc summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 600; color: var(--navy-800); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.st-toc summary::-webkit-details-marker { display: none; }
.st-toc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal-700); }
.st-toc[open] summary::after { content: "–"; }
.st-toc-body { padding: 0 1.3rem 1.2rem; columns: 2 280px; column-gap: 2rem; }
.st-toc-part { margin: .8rem 0 .35rem !important; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); break-after: avoid; }
.com-content-article__body .st-toc-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.st-toc-list li { margin: .15rem 0; font-size: .92rem; break-inside: avoid; }
.com-content-article__body .st-toc-list a { color: var(--ink); text-decoration: none; }
.com-content-article__body .st-toc-list a:hover { color: var(--teal-700); }
.st-toc-list span { display: inline-block; min-width: 1.8em; color: var(--ink-soft); }
.st-part { margin: 0 0 1rem; }
.com-content-article__body .st-part h2 { margin-top: 2.4rem; }
.com-content-article__body .st-art { margin: 1.9rem 0 .6rem; font-size: 1.12rem; scroll-margin-top: 120px; }
.st-num { display: inline-block; margin-right: .5rem; padding: .12rem .5rem; border-radius: 4px; background: var(--teal-50); color: var(--teal-700); font-size: .8rem; font-weight: 700; letter-spacing: .04em; vertical-align: .12em; }
.com-content-article__body .st-list { list-style: none; padding-left: 0; }
.st-list li { position: relative; padding-left: 2rem; }
.st-mark { position: absolute; left: 0; font-weight: 600; color: var(--teal-700); }
.st-sign { margin-top: 2.5rem !important; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* v2.3 - pagina 50° anniversario */
.anniv-hero { margin: 0 0 1.5rem; padding: 1.25rem; background: linear-gradient(135deg, #f2f9fb, #e3f1f4); border-radius: 14px; text-align: center; }
.com-content-article__body .anniv-hero img { max-height: 240px; width: auto; border-radius: 8px; }
.opp-year small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); }

/* =====================================================================
   v2.5 - home: titolo e "link" sulle schede sotto la notizia in primo piano
   (solo CSS: le schede restano modificabili dall'articolo Home)
   ===================================================================== */
.is-home .feature-grid { margin-top: 2.25rem; row-gap: 1rem; }
.is-home .feature-grid::before {
  content: "Da non perdere";
  grid-column: 1 / -1; display: block; margin: 0 0 -.35rem;
  font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--font-head); color: var(--navy-800);
}
.is-home .feature-grid::after {
  content: "Scuole, eventi e letture segnalate dalla SIBPA: clicca su una scheda per aprirla.";
  grid-column: 1 / -1; order: -1; display: block; margin: 0 0 .25rem; color: var(--ink-soft); font-size: .98rem;
}
.is-home .feature-grid > .feature { order: 0; }
.is-home .feature-grid::before { order: -2; }
.feature { position: relative; }
.feature-body { display: flex; flex-direction: column; flex: 1; }
.feature-body::after {
  content: "Apri la pagina →"; margin-top: auto; padding-top: .85rem;
  font-size: .86rem; font-weight: 600; color: var(--teal-700);
}
.feature[target="_blank"] .feature-body::after { content: "Visita il sito ↗"; }
.feature[href$=".pdf" i] .feature-body::after, .feature[href*=".pdf?" i] .feature-body::after { content: "Leggi il PDF ↗"; }
.feature:hover .feature-body::after { text-decoration: underline; text-underline-offset: .18em; }
.feature-text { margin-bottom: 0; }

/* =====================================================================
   v2.6 - riquadro Partner: un logo per riga, loghi grandi
   ===================================================================== */
.sidebar .partners .card-body tbody { grid-template-columns: 1fr; gap: 1.1rem; }
.sidebar .partners .card-body img { max-height: 110px; }
.partner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.partner-list li { margin: 0; }
.partner-list a { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1rem .9rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.partner-list a:hover { border-color: var(--teal-600); box-shadow: var(--shadow); }
.partner-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 120px; }
.sidebar .partners .partner-list img { max-height: 120px; max-width: 88%; width: auto; height: auto; margin: 0; filter: none; }
.partner-name { font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--navy-800); text-align: center; }
.partner-list a:hover .partner-name { color: var(--teal-700); }

/* =====================================================================
   v2.7 - Ufficio di Presidenza: le colonne si adattano al numero di persone
   (3 persone -> 3 colonne larghe, 4 -> 4 colonne)
   ===================================================================== */
.people--lead { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.people--lead:not(:has(> .person:nth-child(3))) { grid-template-columns: repeat(auto-fit, minmax(170px, 300px)); justify-content: center; }

/* =====================================================================
   v2.8 - Past-Presidents (timeline), Soci Onorari, Past-Councilors (A-Z)
   ===================================================================== */
.com-content-article__body .timeline { list-style: none; margin: 1.5rem 0 2rem; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6.6rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.com-content-article__body .tl-item { position: relative; display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.6rem; margin: 0 0 1rem; align-items: start; }
.tl-item::before { content: ""; position: absolute; left: calc(6.6rem - 5px); top: .95rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-600); }
.tl-item:first-child::before { background: var(--teal-600); }
.tl-period { padding-top: .55rem; text-align: right; font-weight: 700; font-size: .95rem; color: var(--teal-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-body { padding: .8rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: box-shadow .2s; }
.tl-body:hover { box-shadow: var(--shadow); }
.com-content-article__body .tl-name { margin: 0 0 .2rem; font-size: 1.08rem; }
.com-content-article__body .tl-aff { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 560px) {
  .timeline::before { left: 5px; }
  .com-content-article__body .tl-item { grid-template-columns: 1fr; gap: .35rem; padding-left: 1.4rem; }
  .tl-item::before { left: 0; top: .2rem; }
  .tl-period { text-align: left; padding-top: 0; }
}

.hon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.hon { display: flex; gap: .95rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s; }
.hon:hover { box-shadow: var(--shadow); }
.hon-avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--teal-50); color: var(--teal-700); font-weight: 700; letter-spacing: .03em; }
.com-content-article__body .hon-title { margin: 0 !important; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.com-content-article__body .hon-name { margin: .1rem 0 .15rem; font-size: 1.05rem; }
.com-content-article__body .hon-aff { margin: 0 !important; font-size: .88rem; color: var(--ink-soft); }

.az-nav { position: sticky; top: 92px; z-index: 5; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.5rem; padding: .6rem; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 10px; }
.com-content-article__body .az-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 2.1rem; border-radius: 6px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; text-decoration: none; }
.com-content-article__body .az-nav a:hover { background: var(--teal-600); color: #fff; }
.az-group { scroll-margin-top: 170px; margin: 0 0 1.25rem; }
.com-content-article__body .az-letter { margin: 0 0 .7rem; padding: 0 0 .3rem; font-size: 1.3rem; color: var(--teal-700); }
.cons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.cons { padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal-600); border-radius: 8px; }
.com-content-article__body .cons-name { margin: 0 0 .15rem; font-size: 1rem; font-weight: 400; }
.com-content-article__body .cons-name strong { font-weight: 700; color: var(--navy-800); }
.com-content-article__body .cons-aff { margin: 0 !important; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.com-content-article__body .cons-role { display: inline-block; margin: .45rem 0 0 !important; padding: .1rem .5rem; border-radius: 4px; background: var(--teal-50); color: var(--teal-700); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* =====================================================================
   v2.9 - profilo utente: nasconde "Impostazioni di base" e "Autenticazione a più fattori"
   ===================================================================== */
.com-users-profile__params,
.com-users-profile__multifactor,
.com-users-profile .com-users-methods-list,
.com-users-profile #com-users-methods-list-container,
.com-users-profile__edit-form fieldset:has(#jform_params_editor),
.com-users-profile__edit-form fieldset:has(#jform_params_timezone),
.com-users-profile__edit-form fieldset:has(.com-users-methods-list) { display: none !important; }
/* nome utente bloccato in "Modifica il tuo profilo" */
.com-users-profile__edit-form #jform_username[readonly] { background: #f3f6f8; color: var(--ink-soft); cursor: not-allowed; }

/* =====================================================================
   v2.10 - pagina "Il tuo profilo" e "Modifica il tuo profilo"
   ===================================================================== */
.com-users-profile__edit, .com-users-profile .btn-toolbar { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; justify-content: flex-end; gap: .5rem; }
.com-users-profile__edit li, .com-users-profile .btn-toolbar li { list-style: none; margin: 0; padding: 0; }
.com-users-profile__edit li::marker, .com-users-profile .btn-toolbar li::marker { content: none; }
.com-users-profile__edit .btn { display: inline-flex; align-items: center; gap: .45rem; }
.sibpa-profile { clear: both; margin: 0; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sibpa-profile legend { float: left; width: 100%; margin: 0 0 .9rem; padding: 0; font-weight: 700; font-size: 1.15rem; color: var(--navy-800); }
.sibpa-profile__list { clear: both; margin: 0; display: grid; gap: 0; }
.sibpa-profile__row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.sibpa-profile__row:first-child { border-top: 0; }
.sibpa-profile__row dt { margin: 0; font-weight: 600; color: var(--ink-soft); }
.sibpa-profile__row dd { margin: 0; color: var(--navy-800); font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .sibpa-profile__row { grid-template-columns: 1fr; gap: .15rem; } }
/* modifica profilo: pulsanti Salva / Annulla staccati dal riquadro */
.com-users-profile__edit-form .com-users-profile__edit-submit,
.com-users-profile__edit-form > .control-group:last-of-type { margin-top: 1.5rem; padding-bottom: .5rem; }
.com-users-profile__edit-form .com-users-profile__edit-submit .controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.com-users-profile__edit-form fieldset { margin-bottom: 1.25rem; }

/* =====================================================================
   v2.13 - "Iscrizione alla Società / Login" in alto
   ===================================================================== */
.account-nav { display: flex; align-items: center; flex: none; }
.primary-nav + .account-nav { margin-left: calc(-24px - 1.5px); }
.primary-nav .item-161 > a { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.account-link, .account-logout { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; text-decoration: none; font-size: .93rem; font-weight: 600; line-height: 1.2; padding: .55rem 1.1rem; border: 1.5px solid var(--teal-600); background: var(--teal-600); color: #fff; }
.account-link svg { flex: none; }
.account-link { border-radius: 0 6px 6px 0; }
.account-link:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.account-nav.is-logged .account-link { border-radius: 0; }
.account-logout { border-radius: 0 6px 6px 0; margin-left: -1.5px; background: #fff; color: var(--teal-700); font-weight: 500; }
.account-logout:hover { background: var(--teal-50); color: var(--teal-700); }
/* quando il menu in alto non c'e' (schermi stretti) il pulsante resta da solo, con gli angoli arrotondati */
@media (max-width: 1099.98px) {
  .account-nav, .primary-nav + .account-nav { margin-left: auto; margin-right: .6rem; }
  .account-nav + .nav-toggle { margin-left: 0; }
  .account-link { border-radius: 6px; padding: .5rem .8rem; }
  .account-nav.is-logged .account-link { border-radius: 6px 0 0 6px; }
}
@media (max-width: 480px) {
  .account-link span { display: none; }
  .account-nav.is-logged .account-link span { display: none; }
}

/* =====================================================================
   v2.14 - pagina di accesso: un solo riquadro, al centro
   ===================================================================== */
.is-auth .content > .com-users-login,
.is-auth .content > .com-users-reset,
.is-auth .content > .com-users-remind,
.is-auth .content > .com-users-logout { max-width: 460px; margin: 1rem auto 2rem; padding: 1.75rem 1.9rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.is-auth .com-users-login__form, .is-auth .com-users-login__form fieldset { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.is-auth .com-users-login .control-group, .is-auth .com-users-login__remember { margin: 0 0 1rem; }
.is-auth .com-users-login .control-label label { display: block; margin: 0 0 .35rem; font-weight: 600; }
.is-auth .com-users-login .form-control { width: 100%; padding: .65rem .8rem; border: 1px solid #c9d7dd; border-radius: 8px; font: inherit; }
.is-auth .com-users-login .input-group { display: flex; }
.is-auth .com-users-login .input-group .form-control { border-radius: 8px 0 0 8px; }
.is-auth .com-users-login .input-password-toggle { border-radius: 0 8px 8px 0; border: 1px solid #c9d7dd; border-left: 0; background: #f3f6f8; padding: 0 .8rem; }
.is-auth .com-users-login__submit .btn { width: 100%; justify-content: center; padding: .75rem 1rem; }
.is-auth .com-users-login__options { display: flex; flex-direction: column; gap: .35rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; }
.is-auth .com-users-login__options .list-group-item { border: 0; padding: 0; background: none; }

/* v2.15 - link Privacy e cookie sotto i contatti + pagina informativa */
.site-footer .footer-privacy { margin: .9rem 0 0; padding-top: .7rem; border-top: 1px solid #d5e5e9; font-size: .85rem; }
.site-footer .footer-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.item-page .info-box { margin: 1.2rem 0 1.6rem; }
.item-page h2[id] { scroll-margin-top: 6rem; }

/* v2.17 - riquadri in primo piano: clic sul titolo apre due schede */
.hero-strip-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip-item { order: var(--n, 1); }
button.strip-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.strip-toggle[aria-expanded="true"] { background: var(--teal-50); box-shadow: inset 0 -3px 0 var(--teal-600); }
.strip-chev { transition: transform .25s; }
.strip-toggle[aria-expanded="true"] .strip-chev { transform: rotate(90deg); }
.strip-toggle:hover .strip-chev { transform: translateX(4px); }
.strip-toggle[aria-expanded="true"]:hover .strip-chev { transform: rotate(90deg); }
.strip-panel { order: 10; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: 1.4rem 0 1.8rem; animation: stripIn .25s ease-out; }
.strip-panel[hidden] { display: none; }
@keyframes stripIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.strip-card { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-top: 4px solid var(--teal-600); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink-soft); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.strip-card:hover, .strip-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(14,42,71,.12); border-color: var(--teal-600); color: var(--ink-soft); }
.strip-card-title { font: 700 1.15rem var(--font-head); color: var(--navy-800); }
.strip-card-text { font-size: .97rem; line-height: 1.55; }
.strip-card-more { margin-top: auto; padding-top: .4rem; font-weight: 600; font-size: .92rem; color: var(--teal-700); }
@media (max-width: 767.98px) {
  .hero-strip-inner { grid-template-columns: 1fr; }
  .strip-item, .strip-panel { order: 0; }
  .strip-panel { grid-template-columns: 1fr; gap: .8rem; padding: .3rem 0 1.1rem; }
  .strip-card { padding: 1.1rem 1.2rem; }
}

/* =====================================================================
   v2.18 - sito bilingue: selettore IT | EN e voci inglesi del menu in alto
   ===================================================================== */
.primary-nav .item-1161 > a { border: 1.5px solid var(--teal-600); border-radius: 6px; padding: .55rem 1.2rem; color: var(--teal-700); border-top-right-radius: 0; border-bottom-right-radius: 0; }
.primary-nav .item-1161 > a:hover { background: var(--teal-50); }
.primary-nav .item-1161 { order: 99; margin-left: .4rem; }
.lang-nav { flex: none; margin-left: 1.1rem; }
.lang-switch { display: flex; align-items: center; gap: .15rem; font-size: .85rem; font-weight: 700; letter-spacing: .05em; line-height: 1; }
.lang-item { padding: .45rem .4rem; border-radius: 4px; color: #6b7c8a; text-decoration: none; }
a.lang-item:hover, a.lang-item:focus-visible { color: var(--teal-700); background: var(--teal-50); }
.lang-item.is-active { color: var(--teal-700); box-shadow: inset 0 -2px 0 var(--teal-600); border-radius: 0; }
.lang-sep { color: #c5d3da; font-weight: 400; }
@media (max-width: 1099.98px) {
  .lang-nav { margin-left: 0; margin-right: .5rem; }
  .account-nav + .lang-nav { margin-left: -.1rem; }
  .lang-nav + .nav-toggle { margin-left: 0; }
}
@media (max-width: 600px) {
  .lang-item.is-active, .lang-sep { display: none; }
  .mainbar-inner { gap: .6rem; }
  .account-nav, .primary-nav + .account-nav { margin-left: auto; margin-right: 0; }
  .lang-nav { margin-right: 0; }
  .lang-item { padding: .5rem .45rem; border: 1.5px solid var(--line); border-radius: 6px; }
}

/* v2.18.1 - testi bilingui nello stesso campo (es. descrizioni delle categorie):
   <div class="only-it">...</div><div class="only-en">...</div> */
html[lang^="en"] .only-it, html:not([lang^="en"]) .only-en { display: none !important; }

/* v2.18.2 - testi generati dal CSS anche in inglese */
html[lang^="en"] .home-lead .newsflash-title::before { content: "News"; }
html[lang^="en"] .is-home .feature-grid::before { content: "Don't miss"; }
html[lang^="en"] .is-home .feature-grid::after { content: "Schools, events and reading recommended by SIBPA: click on a card to open it."; }
html[lang^="en"] .feature-body::after { content: "Open the page →"; }
html[lang^="en"] .feature[target="_blank"] .feature-body::after { content: "Visit the website ↗"; }
html[lang^="en"] .feature[href$=".pdf" i] .feature-body::after, html[lang^="en"] .feature[href*=".pdf?" i] .feature-body::after { content: "Read the PDF ↗"; }

/* =====================================================================
   v2.19 - home: "La SIBPA in numeri", "Ultima newsletter", "Perché iscriversi"
   ===================================================================== */
.home-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900) 0%, #164a62 55%, var(--teal-700) 100%); color: #fff; padding: 3rem 0 3.2rem; }
.home-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.10), transparent 45%), radial-gradient(circle at 10% 90%, rgba(255,255,255,.06), transparent 40%); pointer-events: none; }
.home-band .container { position: relative; z-index: 1; }
.stats-head { text-align: center; margin: 0 auto 2rem; max-width: 46rem; }
.stats-head h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.stats-head p { margin: 0; color: #cfe6ea; }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat a { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 1.4rem 1rem 1.3rem; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.stat a:hover, .stat a:focus-visible { background: rgba(255,255,255,.14); transform: translateY(-3px); color: #fff; }
.stat-num { font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: .55rem; font-weight: 600; font-size: 1rem; }
.stat-note { margin-top: .2rem; font-size: .85rem; color: #b9dbe0; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .home-band { padding: 2.2rem 0; } .stat a { padding: 1.1rem .6rem; } }

.nl-latest { display: flex; gap: .9rem; align-items: flex-start; }
.nl-icon { flex: none; width: 46px; height: 56px; border-radius: 6px; background: linear-gradient(160deg, #e8f4f5, #d3ecee); border: 1px solid #c3e1e4; display: grid; place-items: center; color: var(--teal-700); font: 700 .72rem var(--font); letter-spacing: .06em; position: relative; }
.nl-icon::before { content: ""; position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; background: linear-gradient(225deg, #fff 50%, #b9dcdf 50%); border-bottom-left-radius: 4px; }
.nl-body { min-width: 0; }
.nl-title { margin: 0 0 .55rem; font-weight: 600; color: var(--navy-800); line-height: 1.3; }
.nl-body .btn { font-size: .88rem; padding: .45rem .9rem; }
.nl-all { display: inline-block; margin-top: .55rem; font-size: .88rem; }

.home-cta { background: var(--teal-50); border-top: 1px solid #d8ecee; border-bottom: 1px solid #d8ecee; padding: 3rem 0; }
.join-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2.2rem; align-items: center; }
.join-intro h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.join-intro p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.join-prices { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.join-prices li { padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #cfe5e8; font-size: .92rem; }
.join-prices strong { color: var(--teal-700); font-size: 1.05rem; }
.join-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.join-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.join-list li { display: flex; gap: .8rem; padding: 1.1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.join-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
.join-ico svg { width: 22px; height: 22px; }
.join-list strong { display: block; color: var(--navy-800); margin-bottom: .15rem; }
.join-list span { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 900px) { .join-band { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 560px) { .join-list { grid-template-columns: 1fr; } .home-cta { padding: 2.2rem 0; } }

/* v2.19.1 - "La SIBPA in numeri" su fondo chiaro, come "Perché iscriversi" */
.home-band { background: var(--teal-50); color: var(--ink); border-top: 1px solid #d8ecee; border-bottom: 1px solid #d8ecee; }
.home-band::after { display: none; }
.stats-head h2 { color: var(--navy-800); }
.stats-head p { color: var(--ink-soft); }
.stat a { background: #fff; border: 1px solid #d8ecee; box-shadow: var(--shadow); color: var(--navy-800); }
.stat a:hover, .stat a:focus-visible { background: #fff; color: var(--navy-800); border-color: var(--teal-600); }
.stat-num { color: var(--teal-700); }
.stat-label { color: var(--navy-800); }
.stat-note { color: var(--ink-soft); }
.home-band + .home-news, .home-band + section { border-top: 0; }

/* v2.19.2 - Partner in home: fascia a tutta larghezza, loghi affiancati */
.bottom .partners .partner-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bottom .partners .partner-logo { height: 96px; }
.bottom .partners .partner-logo img { max-height: 96px; max-width: 80%; width: auto; height: auto; }
.bottom .home-section + .home-section { margin-top: 2.2rem; }
@media (max-width: 700px) { .bottom .partners .partner-list { grid-template-columns: 1fr; } }

/* v2.19.4 - "La SIBPA in numeri" a 5 celle */
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.stats-grid:has(> li:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.stats-grid:has(> li:nth-child(5)) .stat a { padding: 1.3rem .7rem 1.2rem; }
@media (max-width: 1100px) { .stats-grid, .stats-grid:has(> li:nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); } .stats-grid > li { grid-column: span 2; } .stats-grid > li:nth-child(4):nth-last-child(2), .stats-grid > li:nth-child(5):last-child { grid-column: span 3; } }
@media (max-width: 600px) { .stats-grid, .stats-grid:has(> li:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-grid > li, .stats-grid > li:nth-child(4):nth-last-child(2) { grid-column: auto; } .stats-grid > li:nth-child(5):last-child { grid-column: 1 / -1; } }

/* v2.19.5 - riquadro "Seguici" (Facebook, YouTube) nella colonna di destra */
.social-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.social-card { display: flex; align-items: center; gap: .8rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy-800); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.social-card:hover, .social-card:focus-visible { border-color: var(--teal-600); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--navy-800); }
.social-ico { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.social-ico svg { width: 24px; height: 24px; }
.social-card--fb .social-ico { background: #1877f2; }
.social-card--yt .social-ico { background: #e9edf0; color: #e62117; }
.social-card strong { display: block; font-size: .98rem; }
.social-card small { display: block; font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
.social-go { margin-left: auto; color: var(--teal-700); font-size: 1.1rem; }

/* v2.19.6 - home: La Società, poi Perché iscriversi, poi Partner */
.bottom--partners { padding-top: 2.6rem; }

/* v2.19.7 - pulsante Home (icona) prima di "Statuto Società" (solo schermi larghi: sotto i 1280px la barra e' nascosta) */
@media (min-width: 1100px) { .primary-nav { display: flex; align-items: center; gap: 1rem; } }
.nav-home { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: var(--navy-800); text-decoration: none; transition: background .2s, color .2s; }
.nav-home:hover, .nav-home:focus-visible { background: var(--teal-50); color: var(--teal-700); }
.nav-home.is-active { color: var(--teal-700); box-shadow: inset 0 -2px 0 var(--teal-600); border-radius: 0; }
@media (min-width: 1280px) and (max-width: 1439.98px) { .primary-nav ul { gap: .95rem; } .primary-nav { gap: .8rem; } }
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .brand-logo-full { width: 205px; height: auto; }
  .account-nav.is-logged .account-link span { display: none; }
}

/* v2.20 - "Da non perdere" come modulo (categoria) con "Vedi tutte" */
.feature-grid--mod::before, .feature-grid--mod::after { content: none !important; display: none !important; }
.is-home .feature-grid.feature-grid--mod { margin-top: .4rem; }
.home-lead .module-mod_articles_news.dont-miss { margin-top: 2.25rem; }
.home-section .feature-intro, .feature-intro { padding: 0; margin: -.4rem 0 .9rem; color: var(--ink-soft); font-size: .98rem; }
.post-body .feature-tag { margin: 0 0 .2rem; }

/* "In primo piano": banner molto larghi (o immagini molto alte) mostrati interi, su sfondo sfumato */
.lead-media { position: relative; overflow: hidden; }
.lead-media--fit { display: flex; align-items: center; justify-content: center; background: #f4f6f7; }
.lead-media--fit::before { content: ""; position: absolute; inset: -30px; background: var(--lead-bg) center / cover no-repeat; filter: blur(22px) saturate(1.1); opacity: .45; }
.lead-media--fit img { position: relative; height: auto !important; max-height: 100%; object-fit: contain; padding: 1.25rem; }
@media (max-width: 767.98px) { .lead-media--fit img { padding: .6rem; } }

/* v2.20.4 - menu in alto visibile da 1100px (prima 1280px): tra 1100 e 1279px "Iscrizione alla Societa'" resta solo nel Menu,
   cosi' la riga non si affolla; il pulsante Accedi / Area soci torna da solo, con gli angoli arrotondati */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .brand-logo-full { width: 190px; height: auto; }
  .primary-nav .item-161, .primary-nav .item-1161 { display: none; }
  .primary-nav ul { gap: 1rem; }
  .account-nav, .primary-nav + .account-nav { margin-left: 1.1rem; }
  .account-link { border-radius: 6px; }
  .account-nav.is-logged .account-link { border-radius: 6px 0 0 6px; }
  .nav-toggle-label { display: none; }
}
@media (min-width: 1100px) and (max-width: 1219.98px) { .account-nav.is-logged .account-link span { display: none; } }

/* v2.20.5 - in home il riquadro "Menu utente" (soci collegati) non compare nella colonna di destra, cosi' le due colonne restano allineate;
   l'area soci resta raggiungibile dal pulsante "Area soci" in alto e il menu compare in tutte le altre pagine */
.is-home .sidebar .module-mod_menu { display: none; }

/* v2.20.6 - piè di pagina: copyright e crediti centrati, uno sotto l'altro (non finiscono sotto il pulsante "torna su") */
.footer-legal { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3rem; }
@media (max-width: 767.98px) { .footer-legal { padding-left: 3.5rem; padding-right: 3.5rem; } }
