/* IPMA Italy — Bootstrap 5.3 foundation, ANIMP structure, configurable palette. */
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/TitilliumWeb-Regular.ttf") format("truetype"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/TitilliumWeb-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/TitilliumWeb-Bold.ttf") format("truetype"); }
:root {
  --ipma-primary: #12448b;
  --ipma-dark: #0c3064;
  --ipma-light: #edf3fb;
  --ipma-accent: #3673c6;
  --ipma-ink: #243246;
  --ipma-muted: #5c6879;
  --ipma-line: #dce3ee;
  --ipma-font: "Titillium Web", "Segoe UI", Arial, sans-serif;
  --ipma-heading: "Gill Sans", "Gill Sans MT", "Titillium Web", "Segoe UI", Arial, sans-serif;
  --bs-primary: var(--ipma-primary);
  --bs-link-color: var(--ipma-primary);
  --bs-link-hover-color: var(--ipma-dark);
  --bs-body-color: var(--ipma-ink);
  --bs-body-font-family: var(--ipma-font);
}
* { box-sizing: border-box; }
body.ipma-site { margin: 0; background: #fff; color: var(--ipma-ink); font-family: var(--ipma-font); font-size: 1.0625rem; line-height: 1.65; }
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ipma-heading); line-height: 1.2; font-weight: 700; color: var(--ipma-primary); overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
a { color: var(--ipma-primary); text-underline-offset: .2em; }
a:hover { color: var(--ipma-dark); }
:focus-visible { outline: 3px solid var(--ipma-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 2000; padding: .8rem 1.2rem; background: #fff; color: var(--ipma-primary); }
.skip-link:focus { inset-block-start: 12px; }
.site-header { background: #fff; }
.header-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1rem; }
.site-brand { display: inline-flex; flex-direction: column; justify-content: center; flex-shrink: 0; text-decoration: none; color: var(--ipma-primary); line-height: 1.05; }
.site-brand img { max-width: 260px; width: auto; height: auto; max-height: 96px; object-fit: contain; }
.brand-name { font-family: var(--ipma-heading); font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 750; letter-spacing: -.045em; }
.brand-tagline { margin-block-start: .55rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; }
.header-utility { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 1.4rem; }
.header-utility ul, .header-utility .mod-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.header-utility a { font-size: .9rem; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.header-utility a:hover { text-decoration: underline; }
.header-utility:empty { display: none; }
.navigation-bar { background: var(--ipma-primary); position: relative; z-index: 50; }
.navigation-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navigation-inner nav { flex: 1; min-width: 0; }
.navigation-bar ul { list-style: none; padding: 0; margin: 0; }
.navigation-bar .ipma-menu, .navigation-bar .mod-menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.navigation-bar li { position: relative; }
.navigation-bar .ipma-menu > li { display: flex; align-items: center; flex-wrap: wrap; }
.navigation-bar a, .navigation-bar .nav-header, .navigation-bar .separator { display: block; color: #fff; text-decoration: none; padding: 1.35rem .95rem; font-family: var(--ipma-heading); font-size: 1.06rem; text-transform: uppercase; line-height: 1.35; }
.navigation-bar .ipma-menu > li:first-child > a { padding-inline-start: 0; }
.navigation-bar a:hover, .navigation-bar a:focus-visible { background: var(--ipma-dark); color: #fff; }
.navigation-bar .active > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .6rem; }
.navigation-bar button:focus-visible { outline-color: #fff; }
.submenu-toggle { color: #fff; background: transparent; border: 0; min-width: 44px; min-height: 44px; padding: .25rem; font-size: 1.4rem; line-height: 1; }
.submenu-toggle[aria-expanded="true"] > span { display: inline-block; transform: rotate(180deg); }
.navigation-bar .ipma-submenu { min-width: 245px; background: #fff; border: 1px solid var(--ipma-line); box-shadow: 0 12px 28px #0c306426; }
.navigation-bar .ipma-submenu a, .navigation-bar .ipma-submenu .nav-header { padding: .85rem 1rem; color: var(--ipma-primary); text-transform: none; font-size: 1rem; }
.navigation-bar .ipma-submenu a:hover, .navigation-bar .ipma-submenu a:focus-visible { background: var(--ipma-light); color: var(--ipma-primary); }
.navigation-bar .ipma-submenu .submenu-toggle { color: var(--ipma-primary); }
.ipma-menu .ipma-submenu { width: 100%; }
.navigation-bar .ipma-submenu > li.has-children { display: flex; flex-wrap: wrap; align-items: center; }
.ipma-submenu > li.has-children > a, .ipma-submenu > li.has-children > .nav-header { flex: 1; }
.js .navigation-bar .ipma-submenu { position: absolute; inset-block-start: 100%; inset-inline-start: 0; }
.js .navigation-bar .ipma-submenu .ipma-submenu { inset-block-start: 0; inset-inline-start: 100%; }
.navigation-search { color: #fff; max-width: 250px; }
.navigation-search label { color: #fff; font-size: .85rem; }
.navigation-search .form-control { max-width: 100%; }
.menu-toggle { align-items: center; gap: .65rem; border: 1px solid var(--ipma-line); background: #fff; color: var(--ipma-primary); padding: .65rem .85rem; min-height: 44px; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { width: 20px; height: 2px; display: block; background: currentColor; position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle-lines::before { top: -6px; }.menu-toggle-lines::after { top: 6px; }
.hero { min-height: 520px; min-height: clamp(390px, 43vw, 650px); position: relative; isolation: isolate; display: grid; place-items: center; text-align: center; overflow: hidden; color: #fff; background: var(--ipma-dark); }
.hero::before { content: ""; position: absolute; inset: -55% -10%; z-index: -1; transform: rotate(-23deg); background: repeating-linear-gradient(90deg, transparent 0 120px, #ffffff08 120px 121px), linear-gradient(115deg, var(--ipma-dark) 15%, var(--ipma-primary) 60%, var(--ipma-accent)); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; border: 1px solid #ffffff21; border-radius: 50%; inset-inline-end: -20vw; top: -28vw; box-shadow: 0 0 0 80px #ffffff04, 0 0 0 160px #ffffff04; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-shade { position: absolute; inset: 0; background: #061d3f66; z-index: -1; }
.hero-content { padding-block: 5rem; max-width: 1080px; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 650; margin-bottom: 1.1rem; }
.hero h1 { margin: 0 auto; max-width: 960px; color: #fff; text-transform: uppercase; font-size: clamp(2.05rem, 4.3vw, 4rem); line-height: 1.12; letter-spacing: .025em; }
.hero-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.45rem); margin: 1.25rem 0 1.9rem; }
.btn { --bs-btn-font-weight: 600; padding: .7rem 1.4rem; }
.btn-primary, .btn-animp { --bs-btn-bg: var(--ipma-primary); --bs-btn-border-color: var(--ipma-primary); --bs-btn-hover-bg: var(--ipma-dark); --bs-btn-hover-border-color: var(--ipma-dark); --bs-btn-active-bg: var(--ipma-dark); --bs-btn-active-border-color: var(--ipma-dark); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.btn-hero { background: #fff; border: 1px solid #fff; color: var(--ipma-primary); text-transform: uppercase; font-size: .9rem; }
.btn-hero span { padding-inline-start: .7rem; }
.btn-hero:hover, .btn-hero:focus-visible { background: var(--ipma-light); color: var(--ipma-dark); border-color: var(--ipma-light); }
.video-toggle { position: absolute; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 2; color: #fff; background: #061d3fcc; border: 1px solid #ffffff80; border-radius: 2rem; padding: .5rem 1rem; }
.intro-section { text-align: center; padding: 3rem 0 1rem; }
.intro-section p { max-width: 1050px; margin: 0 auto 1rem; font-size: clamp(1.12rem, 1.8vw, 1.4rem); line-height: 1.6; }
.section { padding-block: 3rem; }
.section-title { text-align: center; text-transform: uppercase; font-size: clamp(1.6rem, 2.8vw, 2.35rem); letter-spacing: .025em; margin: 0 0 2.4rem; }
.ipma-module + .ipma-module { margin-top: 2.5rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.news-card { min-width: 0; border: 1px solid var(--ipma-line); background: #fff; display: flex; flex-direction: column; }
.news-card-image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card-body { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.news-card h3 { font-size: 1.35rem; margin: .6rem 0 .85rem; }
.news-card h3 a { text-decoration: none; }.news-card h3 a:hover { text-decoration: underline; }
.news-card p { color: var(--ipma-muted); font-size: 1rem; }
.news-card .read-more { margin-top: auto; }
.meta { color: var(--ipma-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.read-more { text-decoration: none; font-weight: 650; font-size: .9rem; }
.read-more:hover { text-decoration: underline; }
/* Native Joomla 6 Articles module; preserve core layout and plugin events. */
.highlights-section .mod-articles-items { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.75rem; padding: 0; margin: 0; list-style: none; }
.highlights-section .mod-articles-items > li { border: 1px solid var(--ipma-line); padding: 0; min-width: 0; }
.highlights-section .mod-articles-item { height: 100%; }
.highlights-section .mod-articles-item-content { display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; height: 100%; }
.highlights-section .mod-articles-item-content > :is(figure, .item-image) { order: -1; margin: -1.5rem -1.5rem .4rem; }
.highlights-section .mod-articles-item-content > :is(figure, .item-image) img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.highlights-section .mod-articles-title { font-size: 1.35rem; margin: 0; }
.highlights-section .mod-articles-title a { text-decoration: none; }
.highlights-section .mod-articles-title a:hover { text-decoration: underline; }
.highlights-section .mod-articles-item-content > dl { color: var(--ipma-muted); font-size: .85rem; margin: 0; }
.events-section, .members-section, .affiliations-section { background: var(--ipma-light); }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.event-item { display: flex; align-items: flex-start; gap: 1.2rem; padding-block: .5rem; }
.event-date { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; min-width: 64px; color: var(--ipma-primary); font-weight: 650; line-height: 1; border-inline-end: 1px solid #12448b33; padding-inline-end: 1rem; }
.event-date strong { font-family: var(--ipma-heading); font-size: 2.7rem; }.event-date span { font-size: .85rem; margin-top: .6rem; text-transform: uppercase; }
.event-item h3 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 .8rem; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; text-align: center; }
.number-item strong { display: block; color: var(--ipma-primary); font: 700 clamp(2.6rem, 4vw, 4rem)/1.2 var(--ipma-heading); }.number-item span { font-size: 1rem; color: var(--ipma-muted); }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem 4rem; }
.logo-grid > * { flex: 0 1 160px; text-align: center; }
.logo-grid img { width: auto; height: auto; max-width: 160px; max-height: 85px; object-fit: contain; }
.logos-section .section-title { font-size: 1.65rem; margin-bottom: 2rem; }
.breadcrumb-area { padding-top: 1.5rem; font-size: .9rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--ipma-muted); flex-wrap: wrap; }
.content-area { padding-block: 3rem 4rem; min-height: 35vh; }
.content-area > .row { --bs-gutter-x: 1.5rem; }
.content-area h1 { margin-bottom: 1.75rem; text-transform: uppercase; }
.content-area h2 { font-size: 1.8rem; margin-top: 2rem; }
.content-area :is(table, pre) { max-width: 100%; overflow: auto; }
.content-area .com-content-article__body img { height: auto; }
.sidebar .ipma-module { background: var(--ipma-light); padding: 1.5rem; }.sidebar .section-title { font-size: 1.25rem; text-align: start; }
.messages:has(> :empty) { margin: 0; }.messages > :not(:empty) { margin-top: 1rem; }
.site-footer { background: var(--ipma-primary); color: #fff; padding-block: 3.5rem 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; align-items: center; }
.footer-info { font-size: .9rem; }.footer-info p { margin-bottom: .3rem; }
.footer-brand { color: #fff; align-items: center; text-align: center; }.footer-brand:hover { color: #fff; }
.footer-brand .brand-name { font-size: 2.3rem; }.footer-brand img { max-width: 220px; max-height: 90px; }
/* The supplied 788 × 90 PNG has artwork in its first 480 pixels.
   Hide only its empty right margin; preserve the original asset and colours. */
.bundled-logo-window { display: block; overflow: hidden; background: #fff; width: 450px; max-width: 100%; aspect-ratio: 480 / 90; }
.site-brand .bundled-logo-window img { display: block; height: 100%; width: auto; max-width: none; max-height: none; }
.site-header .site-brand:has(.bundled-logo-window) { flex-shrink: 1; }
/* Same header size for the included logo and the supplied logo chosen in style options.
   The 788 × 90 source has its visible artwork within the first 400 pixels. */
.site-header :is(.bundled-logo-window, .custom-logo-window:has(img[src*="logo-ipma1.png"]), .custom-logo-window:has(img[src*="/logo-ipma.png"])) { display: block; width: 420px; max-width: 100%; aspect-ratio: 400 / 90; overflow: hidden; background: #fff; }
.site-header :is(.bundled-logo-window, .custom-logo-window:has(img[src*="logo-ipma1.png"]), .custom-logo-window:has(img[src*="/logo-ipma.png"])) img { display: block; width: auto; height: 100%; max-width: none; max-height: none; }
.site-header .site-brand:has(.custom-logo-window img[src*="logo-ipma1.png"]), .site-header .site-brand:has(.custom-logo-window img[src*="/logo-ipma.png"]) { flex-shrink: 1; }
.footer-brand .bundled-logo-window { width: 360px; border: 6px solid #fff; box-sizing: content-box; max-width: calc(100% - 12px); }
.footer-links { text-align: end; font-size: .9rem; }.footer-links ul { list-style: none; padding: 0; margin: 0; }.footer-links li { margin-block: .4rem; }
.site-footer a { color: #fff; }.site-footer a:hover { color: #fff; text-decoration: underline; }.site-footer :focus-visible { outline-color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #ffffff40; padding-top: 1.2rem; margin-top: 2.5rem; font-size: .8rem; }.footer-bottom a { text-decoration: none; }
.page-link { color: var(--ipma-primary); }.active > .page-link { background: var(--ipma-primary); border-color: var(--ipma-primary); }
.form-control:focus, .form-select:focus { border-color: var(--ipma-primary); box-shadow: 0 0 0 .2rem #12448b26; }
.status-page { padding-block: 12vh; max-width: 850px; }.status-page h1 { margin-bottom: 2rem; }.offline-login { max-width: 400px; }.offline-login label { margin: 1rem 0 .3rem; }.offline-login button { margin-top: 1.5rem; }
@media (min-width: 1200px) {
  .js .menu-toggle { display: none !important; }
}
@media (max-width: 1199.98px) {
  .header-inner { min-height: 100px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }
  .site-brand { min-width: 0; }
  .site-brand img { max-height: 72px; max-width: 100%; width: 210px; }
  .bundled-logo-window { width: 380px; }
  .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .header-utility { grid-column: 1 / -1; justify-content: flex-start; }.header-utility ul { gap: .7rem 1.2rem; }
  .js .menu-toggle:not([hidden]) { display: inline-flex; }
  .js .navigation-bar:not(.is-open) { display: none; }
  .navigation-inner { display: block; padding-block: .7rem; }
  .navigation-bar .ipma-menu, .navigation-bar .mod-menu { display: block; }
  .navigation-bar .ipma-menu > li > a, .navigation-bar .ipma-menu > li > .nav-header { flex: 1; padding: .85rem 1rem; }
  .js .navigation-bar .ipma-submenu, .js .navigation-bar .ipma-submenu .ipma-submenu { position: static; box-shadow: none; min-width: 0; width: 100%; }
  .navigation-search { max-width: 100%; padding: 1rem; }.navigation-search input { width: 100%; }
  .hero { min-height: 430px; }
  .news-grid, .highlights-section .mod-articles-items { gap: 1.1rem; }.news-card-body { padding: 1.1rem; }
  .events-grid { grid-template-columns: 1fr; gap: 1.2rem; }.event-item + .event-item { border-top: 1px solid var(--ipma-line); padding-top: 1.5rem; }
}
@media (max-width: 767.98px) {
  .header-inner { padding-inline: 1.25rem; }.header-utility a { font-size: .8rem; }.brand-name { font-size: 2rem; }.brand-tagline { font-size: .62rem; }
  .hero { min-height: 410px; }.hero-content { padding: 3rem 1.25rem; }.hero h1 { font-size: clamp(1.9rem, 7vw, 2.7rem); }.hero-subtitle { font-size: 1.1rem; }.hero .eyebrow { font-size: .7rem; }
  .intro-section { padding: 2rem 1rem .5rem; }.section { padding-block: 2.3rem; }.section-title { margin-bottom: 1.7rem; }
  .news-grid, .highlights-section .mod-articles-items { grid-template-columns: 1fr; gap: 1.5rem; }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }.number-item strong { font-size: 2.8rem; }
  .logo-grid { gap: 2rem; }.logo-grid > * { flex-basis: 125px; }.logo-grid img { max-width: 125px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }.footer-brand { grid-row: 1; }.footer-links { text-align: center; }.footer-bottom { padding-inline: 1.25rem; }
  .content-area { padding-block: 2rem; }.content-area h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .header-utility, .navigation-bar, .menu-toggle, .hero, .site-footer, .skip-link { display: none !important; }
  body.ipma-site { font-size: 11pt; color: #000; }.content-area { padding: 0; }
}
