/* --------------------------------------------------------------------------
   Fondamenta e variabili comuni
   -------------------------------------------------------------------------- */
:root {
    --ink: #17252b;
    --muted: #62727a;
    --line: #dce7e9;
    --surface: #ffffff;
    --page: #f5f8f8;
    --shadow: 0 14px 38px rgba(17, 41, 45, .08);
}

.portal-theme--ecm {
    --brand: #127580;
    --brand-dark: #0e5c64;
    --brand-soft: rgba(18, 117, 128, .11);
}

.portal-theme--fad {
    --brand: #e15844;
    --brand-dark: #af3f2e;
    --brand-soft: rgba(225, 88, 68, .11);
}

.portal-theme--congressi {
    --brand: #21579c;
    --brand-dark: #183f72;
    --brand-soft: rgba(33, 87, 156, .11);
}

.portal-theme--ecmgratis {
    --brand: #4d9642;
    --brand-dark: #37772f;
    --brand-soft: rgba(77, 150, 66, .11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Header e navigazione
   -------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.site-brand { display: grid; gap: 4px; min-width: 0; }
.site-brand__logo { display: block; width: 172px; height: auto; }
.site-brand__logo--mobile { display: none; }
.site-brand__motto { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { padding: 9px 12px; border-radius: 8px; color: #3c5157; font-size: 14px; font-weight: 700; }
.site-nav a:hover, .site-nav a.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.site-nav__login { border:1px solid var(--line); }
.site-nav__cta { background: var(--brand); color: #fff !important; }
.site-nav__cta:hover { background: var(--brand-dark) !important; color: #fff !important; }
.site-nav__account { position:relative; }
.site-nav__account summary { padding:9px 12px; border-radius:8px; background:var(--brand); color:#fff; font-size:14px; font-weight:700; cursor:pointer; list-style:none; }
.site-nav__account summary::-webkit-details-marker { display:none; }
.site-nav__account summary::after { margin-left:7px; content:'▾'; font-size:11px; }
.site-nav__account[open] summary { background:var(--brand-dark); }
.site-nav__account-menu { position:absolute; z-index:20; top:calc(100% + 8px); right:0; display:grid; min-width:210px; padding:8px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 12px 28px rgba(17,41,45,.15); }
.site-nav__account-menu > span { padding:8px 10px; color:var(--muted); font-size:12px; font-weight:700; }
.site-nav__account-menu a, .site-nav__account-menu button { width:100%; padding:10px; border:0; border-radius:8px; background:transparent; color:var(--text); font:inherit; font-size:14px; font-weight:700; text-align:left; cursor:pointer; }
.site-nav__account-menu a:hover, .site-nav__account-menu button:hover { background:var(--brand-soft); color:var(--brand-dark); }
.site-menu-toggle, .site-menu-toggle__input { display: none; }

/* --------------------------------------------------------------------------
   Layout, titoli e hero
   -------------------------------------------------------------------------- */
.page-shell { max-width: 1200px; margin: 0 auto; padding: 38px 24px 64px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 34px; margin-bottom: 36px; padding: 42px; border-radius: 24px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; box-shadow: var(--shadow); }
.page-hero--compact { margin-bottom: 28px; padding: 28px 34px; }
.page-hero--event h1 { max-width: 960px; margin-bottom: 12px; font-size: clamp(28px, 2.8vw, 38px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 13px; color: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .86; }
.eyebrow::before { width: 28px; height: 2px; background: currentColor; content: ''; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(28px, 3vw, 42px); line-height: 1.3; }
h2 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.16; letter-spacing: -.03em; }
h3 { font-size: 18px; line-height: 1.28; letter-spacing: -.02em; }
.page-hero p { max-width: 650px; margin-bottom: 0; color: rgba(255, 255, 255); font-size: 15px; }
.event-hero__summary { max-width: 850px; margin: 0; color: rgba(255, 255, 255, .9); font-size: clamp(17px, 1.8vw, 22px); font-weight: 400; line-height: 1.32; letter-spacing: -.02em; }
.page-hero__art { display: flex; align-items: center; justify-content: center; }
.page-hero__art img { width: min(240px, 100%); filter: brightness(0) invert(1); opacity: .92; }
.content-section { margin-top: 46px; }
.content-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.content-section__heading h3 { margin-bottom: 5px; }
.content-section__heading p { margin-bottom: 0; color: var(--muted); }
.text-link { color: var(--brand-dark); font-size: 14px; font-weight: 800; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Home: introduzione editoriale e percorsi di esplorazione
   -------------------------------------------------------------------------- */
.home-intro { display:grid; grid-template-columns:minmax(0, 1fr) minmax(270px, .52fr); gap:26px; align-items:stretch; margin-bottom:46px; }
.home-intro__content { padding:26px 2px 18px; }
.home-intro__content .eyebrow { color:var(--brand-dark); opacity:1; }
.home-intro__content h1 { max-width:760px; margin-bottom:16px; font-size:clamp(34px, 4vw, 56px); }
.home-intro__lead { max-width:680px; margin-bottom:24px; color:var(--muted); font-size:18px; line-height:1.5; }
.home-intro__actions { display:flex; flex-wrap:wrap; gap:12px; }
.home-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 17px; border:1px solid transparent; border-radius:10px; font-size:14px; font-weight:800; transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.home-button:hover { transform:translateY(-1px); }
.home-button--primary { background:var(--brand); color:#fff; box-shadow:0 8px 18px color-mix(in srgb, var(--brand) 20%, transparent); }
.home-button--primary:hover { background:var(--brand-dark); }
.home-button--secondary { border-color:color-mix(in srgb, var(--brand) 32%, var(--line)); background:#fff; color:var(--brand-dark); }
.home-button--secondary:hover { border-color:var(--brand); background:var(--brand-soft); }
.home-intro__aside { display:flex; flex-direction:column; justify-content:center; min-height:260px; padding:30px; border:1px solid color-mix(in srgb, var(--brand) 20%, var(--line)); border-radius:20px; background:linear-gradient(145deg, var(--brand-dark), var(--brand)); color:#fff; box-shadow:var(--shadow); }
.home-intro__aside img { width:62px; height:62px; margin-bottom:22px; filter:brightness(0) invert(1); opacity:.94; }
.home-intro__aside p { margin:0 0 9px; font-size:20px; font-weight:800; line-height:1.2; letter-spacing:-.025em; }
.home-intro__aside span { color:rgba(255,255,255,.84); font-size:14px; line-height:1.5; }
.home-explore { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px; }
.home-explore__card { padding:24px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 8px 20px rgba(17, 41, 45, .035); }
.home-explore__card .content-section__heading { align-items:flex-start; margin-bottom:16px; }
.home-explore__card .content-section__heading p { font-size:14px; }
.home-explore__card .tag-cloud { gap:8px; }
.home-explore__card .tag-cloud a { padding:8px 10px; font-size:13px; }
.home-notifications { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-top:46px; padding:28px 30px; border:1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius:18px; background:var(--brand-soft); }
.home-notifications .eyebrow { margin-bottom:9px; color:var(--brand-dark); opacity:1; }
.home-notifications h3 { margin-bottom:6px; font-size:22px; }
.home-notifications p:last-child { max-width:680px; margin-bottom:0; color:var(--muted); }
.home-provider { display:grid; grid-template-columns:minmax(0, 1fr) minmax(310px, .78fr); gap:28px; align-items:center; margin-top:46px; padding:30px; border-radius:20px; background:#11293b; color:#fff; box-shadow:var(--shadow); }
.home-provider .eyebrow { margin-bottom:10px; color:#d7e6e8; opacity:1; }
.home-provider h3 { margin-bottom:9px; font-size:25px; }
.home-provider p:not(.eyebrow) { max-width:650px; margin-bottom:22px; color:#c6d6d9; }
.home-button--light { background:#fff; color:#11293b; }
.home-button--light:hover { background:#eaf2f3; }
.home-provider__brands { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.home-provider__brand { display:grid; place-items:center; min-height:72px; padding:14px; border-radius:12px; background:#fff; }
.home-provider__brand img { display:block; width:auto; max-width:100%; height:38px; object-fit:contain; }

/* --------------------------------------------------------------------------
   Tassonomia pubblica: breadcrumb, hub, categorie e A-Z
   -------------------------------------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--brand-dark); font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.taxonomy-hero__subtitle { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .9); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -.02em; }
.taxonomy-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.taxonomy-category-card { padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 16px; background: #fff; }
.taxonomy-category-card h3 { margin-bottom: 8px; }
.taxonomy-category-card h3 a:hover { color: var(--brand-dark); }
.taxonomy-category-card p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.taxonomy-category-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.taxonomy-category-card li a { color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.taxonomy-category-card li a:hover { text-decoration: underline; }
.taxonomy-term-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.taxonomy-term-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.taxonomy-term-list a { color: #2c454d; font-size: 15px; font-weight: 800; }
.taxonomy-term-list a:hover { color: var(--brand-dark); text-decoration: underline; }
.taxonomy-term-list span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.vocabulary-list-card { padding: 18px 22px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(17, 41, 59, .06); }
.vocabulary-introduction { max-width: 850px; }
.vocabulary-introduction p { color: var(--muted); font-size: 17px; }
.vocabulary-list-card__heading { margin-bottom:20px; }
.vocabulary-list-card__heading h2 { margin-bottom:6px; font-size:24px; }
.vocabulary-list-card__heading p { margin:0; color:var(--muted); font-size:15px; }
.vocabulary-list-card--locations { padding:24px; border-top:4px solid var(--brand); }
.vocabulary-list-card--locations .taxonomy-category-card { border-top:1px solid var(--line); box-shadow:none; }
.vocabulary-list-card--locations .taxonomy-category-card:hover { border-color:var(--brand); background:var(--brand-soft); }
.location-navigation { padding:24px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.location-navigation__heading { margin-bottom:16px; }
.location-navigation__heading h2 { margin-bottom:5px; font-size:24px; }
.location-navigation__heading p { margin:0; color:var(--muted); font-size:15px; }
.location-navigation__grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); border-top:1px solid var(--line); }
.location-navigation__item { display:flex; flex-direction:column; gap:4px; min-height:82px; padding:17px 18px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--text); }
.location-navigation__item:nth-child(3n) { border-right:0; }
.location-navigation__item span { font-size:16px; font-weight:800; }
.location-navigation__item small { color:var(--muted); font-size:13px; }
.location-navigation__item:hover { background:var(--brand-soft); color:var(--brand-dark); }
.vocabulary-related { display: grid; gap: 20px; }
.vocabulary-related > h2 { margin-bottom: 0; }
.vocabulary-related__group h3 { margin-bottom: 10px; }
.taxonomy-subcategory-card { padding:28px 30px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 10px 26px rgba(17, 41, 59, .06); }
.taxonomy-subcategory-card .content-section__heading { margin-bottom:20px; }

/* --------------------------------------------------------------------------
   Card evento e tassonomie
   -------------------------------------------------------------------------- */
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.event-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 20px rgba(17, 41, 45, .04); }
.event-card__body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.event-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 700; }
.event-card__type { display: inline-flex; align-items: center; gap: 7px; color: var(--event-type-color, var(--brand-dark)); font-size: 0.78rem; }
.event-card__type::before { width: 18px; height: 18px; flex: 0 0 18px; background: center / contain no-repeat var(--event-type-icon); content: ''; }
.event-card__type--ecm { --event-type-color: #127580; --event-type-icon: url('/brand/portals/corsiecm/icon.svg'); }
.event-card__type--fad { --event-type-color: #E15844; --event-type-icon: url('/brand/portals/fadecm/icon.svg'); }
.event-card__type--congressi { --event-type-color: #21579C; --event-type-icon: url('/brand/portals/infocongressi/icon.svg'); }
.event-card h3 { margin-bottom: 12px; font-size: 21px; }
.event-card h3 a:hover { color: var(--brand-dark); }
.event-card__excerpt { color: var(--muted); font-size: 14px; }
.event-card__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.fact-chip, .taxonomy-chip { display: inline-flex; align-items: center; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.2; }
.fact-chip { padding: 7px 10px; background: #f1f5f5; color: #41565c; }
.taxonomy-chip { padding: 7px 11px; background: var(--brand-soft); color: var(--brand-dark); }
.event-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.event-card__footer a { color: var(--brand-dark); font-weight: 800; }
.event-card__footer a:hover { text-decoration: underline; }
.taxonomy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.taxonomy-panel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.taxonomy-panel__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 17px; font-weight: 800; }
.taxonomy-panel__count { color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.taxonomy-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.taxonomy-panel li { color: var(--muted); font-size: 14px; }
.taxonomy-panel li a:hover { color: var(--brand-dark); text-decoration: underline; }
.taxonomy-panel li small { display: block; color: #91a0a5; font-size: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #3b5056; font-size: 14px; font-weight: 700; }
.tag-cloud a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.tag-cloud span { color: #8da0a5; font-size: 12px; }

/* --------------------------------------------------------------------------
   Listing e filtri
   -------------------------------------------------------------------------- */
.listing-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 26px; }
.catalogue-filters { min-width: 0; }
.catalogue-filters > summary { display: none; }
.catalogue-filters:not([open]) > .filter-panel { display: block; }
.filter-panel { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.filter-panel__heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.filter-panel__heading > a { color:var(--brand-dark); font-size:13px; font-weight:800; }
.filter-panel__context { margin:14px 0 0; padding:10px 12px; border:1px solid color-mix(in srgb, var(--brand) 28%, transparent); border-radius:10px; background:var(--brand-soft); color:var(--brand-dark) !important; font-size:13px !important; }
.filter-panel h2 { margin-bottom: 6px; font-size: 21px; }
.filter-panel p { color: var(--muted); font-size: 14px; }
.filter-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter-group h3 { margin-bottom: 10px; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
.filter-group a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: #4e6268; font-size: 14px; }
.filter-group a:hover { color: var(--brand-dark); }
.catalogue-filter-option { display:flex; align-items:center; gap:8px; padding:7px 0; color:#4e6268; font-size:14px; cursor:pointer; }
.catalogue-filter-option input { accent-color:var(--brand); }
.catalogue-filter-option.is-locked { color:var(--brand-dark); cursor:not-allowed; font-weight:700; }
.catalogue-filter-option.is-locked input { opacity:1; }
.catalogue-filter-option small { margin-left:auto; color:var(--muted); }
.catalogue-pagination { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); font-size:14px; font-weight:700; }
.catalogue-pagination > a { color:var(--brand-dark); }
.catalogue-pagination > a:hover { text-decoration:underline; }
.catalogue-pagination__pages { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.catalogue-pagination__pages a { min-width:34px; padding:8px 10px; border:1px solid var(--line); border-radius:9px; color:#41565c; text-align:center; }
.catalogue-pagination__pages a:hover, .catalogue-pagination__pages a.is-current { border-color:var(--brand); background:var(--brand); color:#fff; }
.catalogue-pagination .is-disabled { color:#aab7bb; cursor:not-allowed; }
.catalogue-pagination__control { min-width:112px; }
.catalogue-pagination__ellipsis { display:inline-flex; align-items:center; justify-content:center; min-width:24px; color:var(--muted); }
.catalogue-pagination__pages .is-current { display:inline-flex; align-items:center; justify-content:center; min-width:34px; padding:8px 10px; border:1px solid var(--brand); border-radius:9px; background:var(--brand); color:#fff; text-align:center; }
.listing-results > nav[role="navigation"] { display:flex; align-items:center; justify-content:center; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); color:#41565c; font-size:14px; }
.listing-results > nav[role="navigation"] svg { display:block; width:16px; height:16px; }
.listing-results > nav[role="navigation"] a { display:inline-flex; align-items:center; justify-content:center; min-width:34px; min-height:34px; padding:7px 10px; border:1px solid var(--line); color:#41565c; text-decoration:none; }
.listing-results > nav[role="navigation"] a:hover { border-color:var(--brand); background:var(--brand-soft); color:var(--brand-dark); }
.listing-card__tags.is-collapsed { max-height:104px; overflow:hidden; }
.listing-card__tags-toggle { display:inline-flex; align-items:center; margin-top:10px; padding:0; border:0; background:transparent; color:var(--brand-dark); font:inherit; font-size:12px; font-weight:800; cursor:pointer; }
.listing-card__tags-toggle:hover { text-decoration:underline; }
.tag-cloud--limit-10.is-collapsed > :nth-child(n + 11) { display:none; }
.tag-cloud__toggle { display:inline-flex; align-items:center; margin-top:12px; padding:0; border:0; background:transparent; color:var(--brand-dark); font:inherit; font-size:14px; font-weight:800; cursor:pointer; }
.tag-cloud__toggle:hover { text-decoration:underline; }
.event-content__competenza { margin-top:20px; }
.event-content__competenza h4 { margin:0 0 8px; color:var(--brand-dark); font-size:17px; }
.event-contact-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:10px 16px; border:0; border-radius:8px; background:var(--brand); color:#fff; font:inherit; font-size:14px; font-weight:700; line-height:1.2; text-decoration:none; cursor:pointer; transition:background .2s ease; }
.event-contact-button:hover { background:var(--brand-dark); color:#fff; }
.event-contact-action { display:flex; justify-content:center; margin-top:34px; padding-top:28px; border-top:1px solid var(--line); }
.event-contact-toast { position:fixed; z-index:40; right:24px; bottom:24px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; width:min(390px, calc(100% - 32px)); padding:14px 16px; border:1px solid #a7e3bf; border-radius:12px; background:#f0fdf4; box-shadow:0 14px 34px rgba(17, 41, 59, .18); color:#166534; transition:opacity .25s ease, transform .25s ease; }
.event-contact-toast.is-hidden { opacity:0; transform:translateY(12px); pointer-events:none; }
.event-contact-toast__icon { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#22a06b; color:#fff; font-weight:800; }
.event-contact-toast strong { display:block; color:#166534; font-size:14px; }
.event-contact-toast p { margin:2px 0 0; color:#287544; font-size:13px; }
.event-contact-toast__close { padding:0; border:0; background:transparent; color:#287544; font-size:22px; line-height:1; cursor:pointer; }
.event-contact-dialog { width:min(560px, calc(100% - 32px)); padding:0; border:0; border-radius:16px; box-shadow:0 24px 60px rgba(17, 41, 59, .28); }
.event-contact-dialog::backdrop { background:rgba(17, 41, 59, .58); }
.event-contact-dialog__heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px 14px; border-bottom:1px solid var(--line); }
.event-contact-dialog__heading h2 { margin:0; font-size:22px; }
.event-contact-dialog__close { border:0; background:transparent; color:#41565c; font-size:28px; line-height:1; cursor:pointer; }
.event-contact-dialog > p, .event-contact-dialog form { margin:0; padding:18px 24px 0; color:var(--muted); }
.event-contact-dialog form { display:grid; gap:8px; padding-bottom:24px; }
.event-contact-dialog label { color:#243d45; font-size:14px; font-weight:800; }
.event-contact-dialog input, .event-contact-dialog textarea { width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid var(--line); border-radius:9px; color:#243d45; font:inherit; }
.event-contact-dialog textarea { resize:vertical; }
.event-contact-dialog__account, .event-contact-dialog__success { padding:10px 12px !important; border-radius:9px; background:var(--brand-soft); color:var(--brand-dark) !important; font-size:14px; }
.event-contact-dialog__error { margin:0; color:#a33125 !important; font-size:13px; }
.event-contact-dialog .event-contact-button { justify-self:start; margin-top:8px; }
.catalogue-filter-search { width:100%; margin:0 0 8px; padding:9px 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink); font:inherit; font-size:14px; }
.filter-group__empty { margin:0; color:var(--muted); font-size:13px; }
.filter-group__more { margin-top:6px; }
.filter-group__more summary { color:var(--brand-dark); cursor:pointer; font-size:13px; font-weight:800; }
.filter-group__more[open] summary { margin-bottom:5px; }
.credit-slider { display:grid; gap:8px; color:var(--muted); font-size:13px; font-weight:700; }
.credit-slider > span { color:var(--ink); font-size:14px; }
.credit-slider output { color:var(--brand-dark); font-weight:800; }
.credit-slider input { width:100%; margin:0; accent-color:var(--brand); cursor:pointer; }
.credit-slider small { color:var(--muted); font-size:11px; font-weight:600; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0; }
.filter-submit,.filter-reset { display:block; width:100%; margin-top:16px; padding:10px 12px; border-radius:8px; text-align:center; font-weight:800; }
.filter-submit { border:0; background:var(--brand); color:#fff; cursor:pointer; }
.filter-reset { color:var(--brand-dark); }
.active-filters { display:flex; justify-content:space-between; gap:12px; padding:10px 0; color:var(--muted); font-size:13px; }
.active-filters a { color:var(--brand-dark); font-weight:800; }
.catalogue-empty { padding:34px; border:1px solid var(--line); border-radius:16px; background:#fff; text-align:center; }
.listing-results { display: grid; gap: 16px; }
.listing-results__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.listing-results__top p { margin: 0; color: var(--muted); }
.listing-card { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.listing-card h2 { margin: 8px 0 10px; font-size: 23px; }
.listing-card h2 a:hover { color: var(--brand-dark); }
.listing-card p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.listing-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-card__side { padding-left: 22px; border-left: 1px solid var(--line); }
.listing-card__side dl { display: grid; gap: 12px; margin: 0; }
.listing-card__side dt { margin: 0 0 2px; color: #829298; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.listing-card__side dd { margin: 0; color: #33494f; font-size: 14px; font-weight: 700; }
.listing-archive { display:grid; gap:16px; margin-top:34px; padding-top:30px; border-top:2px solid var(--line); }
.listing-archive__heading { display:flex; align-items:end; justify-content:space-between; gap:18px; }
.listing-archive__heading .eyebrow { margin:0 0 5px; color:var(--brand-dark); }
.listing-archive__heading h2 { margin:0; }
.listing-archive__heading > p { margin:0; color:var(--muted); font-size:14px; }
.listing-card--archived { background:#fbfcfc; }
.listing-card__status { float:right; display:inline-flex; margin:0 0 8px 16px; color:#64757b; font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.listing-card--advertisement { display:block; padding:0; }
.event-advertisement-card { margin:26px 0; padding:0; }
.adsense-slot { min-height:124px; padding:18px 22px; background:#fff; }
.adsense-slot__content { display:block; min-width:250px; min-height:78px; }
.adsense-slot__content .adsbygoogle { display:block; width:100%; }

/* --------------------------------------------------------------------------
   Dettaglio evento e sidebar metadati
   -------------------------------------------------------------------------- */
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 26px; }
.event-past-notice { margin:20px 0; padding:15px 18px; border:1px solid #e3e9eb; border-left:4px solid #9caeb3; border-radius:12px; background:#fff; color:#51666c; }
.event-layout__main { min-width:0; }
.event-content, .event-sidebar__panel { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.event-content { padding: 34px; }
.event-content__title { margin-bottom: 18px; font-size: clamp(31px, 4vw, 46px); }
.event-content__section-title { margin: 20px 0 15px; font-size: 23px; }
.event-intro { margin-bottom: 22px; color: #55676d; font-size: 18px; line-height: 1.65; }
.event-content__body { color: #3f5258; line-height: 1.75; }
.event-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.event-section h3 { margin-bottom: 15px; font-size: 23px; }
.event-section--professioni .tag-cloud a.taxonomy-chip { padding:7px 11px; border:0; border-radius:999px; background:var(--brand-soft); color:var(--brand-dark); font-size:12px; font-weight:800; line-height:1.2; text-decoration:none; }
.event-section--professioni .tag-cloud a.taxonomy-chip:hover { background:var(--brand); color:#fff; }
.event-sidebar { display: grid; gap: 16px; }
.event-sidebar__panel { padding: 22px; }
.event-sidebar__panel h3 { margin-bottom: 15px; font-size: 20px; }
.event-sidebar__subscribe { padding:16px; }
.event-sidebar__subscribe .event-contact-button { width:100%; box-sizing:border-box; text-align:center; }
.details-list { display: grid; gap: 12px; margin: 0; }
.details-list div { padding-bottom: 12px; border-bottom: 1px solid #edf1f2; }
.details-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-page { max-width:900px; margin:0 auto; }
.legal-page__header { margin-bottom:28px; padding:36px; border-radius:18px; background:linear-gradient(135deg,var(--brand-dark),var(--brand)); color:#fff; box-shadow:var(--shadow); }
.legal-page__header .eyebrow { color:rgba(255,255,255,.78); }
.legal-page__header h1 { margin:8px 0 12px; color:#fff; font-size:clamp(34px,5vw,52px); line-height:1.18; }
.legal-page__header p:last-child { max-width:640px; margin:0; color:#fff; font-size:17px; line-height:1.6; }
.legal-page__content { padding:36px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.legal-page__content section + section { margin-top:30px; padding-top:30px; border-top:1px solid var(--line); }
.legal-page__content h2 { margin:0 0 12px; color:var(--ink); font-size:23px; }
.legal-page__content p, .legal-page__content li { color:#40575f; line-height:1.7; }
.legal-page__content p:last-child { margin-bottom:0; }
.legal-page__content ul { margin:0; padding-left:22px; }
.legal-page__content a { color:var(--brand-dark); font-weight:800; }
.legal-page__updated { margin-top:0; color:var(--muted) !important; font-size:14px; }
.details-list dt { margin-bottom: 3px; color: #829298; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.details-list dd { margin: 0; color: #33494f; font-size: 15px; font-weight: 700; }
.event-attachment { display:flex; align-items:center; gap:11px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); text-decoration:none; transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.event-attachment + .event-attachment { margin-top:9px; }
.event-attachment:hover { border-color:var(--brand); box-shadow:0 7px 16px rgba(28, 49, 57, .08); transform:translateY(-1px); }
.event-attachment__icon { position:relative; display:flex; flex:0 0 38px; align-items:flex-end; justify-content:center; height:42px; padding:0 3px 5px; overflow:hidden; border-radius:8px; background:var(--brand-soft); color:var(--brand-dark); font-size:9px; font-weight:900; letter-spacing:.04em; line-height:1; }
.event-attachment__icon::before { position:absolute; top:5px; left:7px; width:22px; height:25px; border:2px solid currentColor; border-radius:3px; content:""; opacity:.78; }
.event-attachment__icon::after { position:absolute; top:6px; right:7px; width:8px; height:8px; border-top:2px solid #fff; border-right:2px solid #fff; background:currentColor; content:""; }
.event-attachment--pdf .event-attachment__icon { background:#fff0ed; color:#c94735; }
.event-attachment--image .event-attachment__icon { background:#edf5ff; color:#3569af; }
.event-attachment__content { display:grid; min-width:0; gap:3px; }
.event-attachment__name { overflow:hidden; color:#33494f; font-size:13px; font-weight:800; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.event-attachment__meta { color:#829298; font-size:11px; font-weight:700; line-height:1.3; }
.event-attachment__action { margin-left:auto; color:var(--brand); font-size:18px; font-weight:800; line-height:1; }
.event-disclaimer { margin-top:26px; padding:20px 24px; border-left:4px solid var(--brand); border-radius:0 14px 14px 0; background:var(--brand-soft); color:#496067; }
.event-disclaimer h3 { margin-bottom:8px; color:var(--brand-dark); font-size:16px; }
.event-disclaimer p { margin:0; font-size:13px; line-height:1.6; }
.event-disclaimer p + p { margin-top:6px; }

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */
.error-page { display:grid; min-height:440px; place-items:center; padding:46px 24px; border:1px solid var(--line); border-radius:22px; background:radial-gradient(circle at top right, var(--brand-soft), transparent 46%), #fff; text-align:center; }
.error-page__content { max-width:590px; }
.error-page__code { margin:0 0 8px; color:var(--brand); font-size:clamp(68px, 13vw, 126px); font-weight:900; letter-spacing:-.08em; line-height:.9; }
.error-page__logo { width:180px; max-width:72%; height:auto; margin:0 auto 28px; }
.error-page h1 { margin:0; color:var(--ink); font-size:clamp(28px, 5vw, 42px); line-height:1.12; }
.error-page p { max-width:490px; margin:16px auto 0; color:var(--muted); font-size:17px; line-height:1.65; }
.error-page__actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:28px; }
.error-page__actions a { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border-radius:11px; font-weight:800; text-decoration:none; }
.error-page__actions a:first-child { background:var(--brand); color:#fff; box-shadow:0 10px 20px rgba(var(--brand-rgb), .2); }
.error-page__actions a:last-child { border:1px solid var(--line); background:#fff; color:var(--brand-dark); }
.error-page__actions a:hover { transform:translateY(-1px); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 54px; background: var(--brand); color: rgba(255, 255, 255, .86); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; max-width: 1200px; margin: 0 auto; padding: 30px 24px; font-size: 13px; }
.site-footer__network { max-width:620px; }
.site-footer__logo { display:block; flex:0 0 auto; align-self:center; margin-left:auto; }
.site-footer__logo img { display:block; width:154px; max-width:100%; height:auto; }
.site-footer__copy { min-width:0; }
.site-footer__network p { margin:0; line-height:1.55; }
.site-footer__copyright { margin-top:8px !important; color:rgba(255, 255, 255, .74); font-size:12px; }
.site-footer__links { display:flex; align-items:flex-start; gap:12px; padding-top:4px; }
.site-footer strong { color: #fff; }
.site-footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .site-header { background:var(--brand); border-bottom:0; }
    .site-header__bar { position:relative; min-height:68px; padding:10px 16px; }
    .site-brand { display:block; }
    .site-brand__logo--desktop, .site-brand__motto { display:none; }
    .site-brand__logo--mobile { display:block; width:150px; }
    .site-menu-toggle__input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
    .site-menu-toggle { display:grid; width:42px; height:42px; place-content:center; gap:5px; border:1px solid rgba(255,255,255,.55); border-radius:10px; cursor:pointer; }
    .site-menu-toggle > span:not(.sr-only) { display:block; width:21px; height:2px; border-radius:2px; background:#fff; transition:transform .18s ease, opacity .18s ease; }
    .site-menu-toggle__input:checked + .site-menu-toggle > span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
    .site-menu-toggle__input:checked + .site-menu-toggle > span:nth-child(2) { opacity:0; }
    .site-menu-toggle__input:checked + .site-menu-toggle > span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
    .site-nav { position:absolute; top:100%; right:0; left:0; display:none; flex-direction:column; align-items:stretch; gap:0; padding:10px 16px 16px; border-bottom:1px solid rgba(0,0,0,.1); background:var(--brand-dark); box-shadow:0 12px 24px rgba(17,41,45,.18); }
    .site-menu-toggle__input:checked ~ .site-nav { display:flex; }
    .site-nav a { padding:12px 10px; border-radius:8px; color:#fff; font-size:15px; }
    .site-nav a:hover, .site-nav a.is-active { background:rgba(255,255,255,.15); color:#fff; }
    .site-nav__login { border-color:rgba(255,255,255,.45); }
    .site-nav__cta { margin-top:6px; background:#fff; color:var(--brand-dark) !important; text-align:center; }
    .site-nav__cta:hover { background:rgba(255,255,255,.88) !important; color:var(--brand-dark) !important; }
    .site-nav__account { margin-top:6px; }
    .site-nav__account summary { padding:12px 10px; background:#fff; color:var(--brand-dark); font-size:15px; text-align:center; }
    .site-nav__account[open] summary { background:rgba(255,255,255,.88); color:var(--brand-dark); }
    .site-nav__account-menu { position:static; min-width:0; margin-top:4px; border:0; border-radius:8px; box-shadow:none; }
    .site-footer__logo { align-self:flex-start; }
    .site-footer__logo img { width:124px; }
    .page-shell { padding: 24px 16px 42px; }
    .page-hero, .event-layout, .listing-layout { grid-template-columns: 1fr; }
    .page-hero { gap: 18px; padding: 30px 24px; }
    .page-hero__art { display: none; }
    .home-intro { grid-template-columns:1fr; gap:20px; margin-bottom:34px; }
    .home-intro__content { padding:10px 0 0; }
    .home-intro__content h1 { max-width:680px; }
    .home-intro__aside { min-height:0; padding:24px; }
    .home-intro__aside img { width:48px; height:48px; margin-bottom:16px; }
    .home-explore { grid-template-columns:1fr; }
    .home-provider { grid-template-columns:1fr; }
    .events-grid, .taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .taxonomy-category-grid, .taxonomy-term-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .location-navigation__grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .location-navigation__item:nth-child(3n) { border-right:1px solid var(--line); }
    .location-navigation__item:nth-child(2n) { border-right:0; }
    .catalogue-filters { border:1px solid var(--line); border-radius:14px; background:#fff; }
    .catalogue-filters > summary { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; cursor:pointer; color:var(--brand-dark); font-size:15px; font-weight:800; }
    .catalogue-filters > summary span { color:var(--muted); font-size:13px; }
    .catalogue-filters:not([open]) > .filter-panel { display:none; }
    .catalogue-filters[open] > .filter-panel { border:0; border-top:1px solid var(--line); border-radius:0 0 14px 14px; }
    .listing-card { grid-template-columns: 1fr; }
    .listing-card__side { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .listing-archive__heading { align-items:start; flex-direction:column; gap:6px; }
}

@media (max-width: 620px) {
    .events-grid, .taxonomy-grid { grid-template-columns: 1fr; }
    .taxonomy-category-grid, .taxonomy-term-list { grid-template-columns: 1fr; }
    .location-navigation { padding:20px; }
    .location-navigation__grid { grid-template-columns:1fr; }
    .location-navigation__item, .location-navigation__item:nth-child(3n) { min-height:0; padding:15px 0; border-right:0; }
    .content-section { margin-top: 34px; }
    .content-section__heading { flex-direction: column; align-items: flex-start; gap: 8px; }
    .home-intro__content h1 { font-size:clamp(32px, 10vw, 44px); }
    .home-intro__lead { font-size:16px; }
    .home-intro__actions, .home-intro__actions .home-button { width:100%; }
    .home-explore__card { padding:20px; }
    .home-provider { gap:22px; padding:24px 20px; }
    .home-provider__brands { grid-template-columns:1fr; }
    .home-provider__brand { min-height:60px; }
    .home-provider__brand img { height:34px; }
    .home-notifications { align-items:flex-start; flex-direction:column; gap:18px; padding:24px 20px; }
    .home-notifications .home-button { width:100%; }
    .event-content { padding: 24px 20px; }
    .taxonomy-subcategory-card { padding:22px 20px; }
    .vocabulary-list-card { padding:18px 20px; }
    .event-contact-toast { right:16px; bottom:16px; }
    .listing-card { padding: 20px; }
    .listing-card h2 { font-size: 21px; }
    .listing-card__side dl { grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:18px; row-gap:14px; }
    .listing-card__side dl > div { min-width:0; }
    .error-page { min-height:380px; padding:36px 20px; }
    .error-page__actions, .error-page__actions a { width:100%; }
}
