:root {
  --ciac-ink: #1A0F0A;
  --ciac-muted: #6E5A54;
  --ciac-paper: #FBF7F5;
  --ciac-white: #ffffff;
  --ciac-primary: #D30348;
  --ciac-primary-dark: #A53822;
  --ciac-accent: #883C02;
  --ciac-line: #EAD7D1;
  --ciac-radius: 22px;
  --ciac-shadow: 0 18px 50px rgba(16, 32, 43, .08);
  --ciac-max: 1180px;
}

.ciac-home { color: var(--ciac-ink); background: var(--ciac-white); }
.ciac-home *, .ciac-home *::before, .ciac-home *::after { box-sizing: border-box; }
.ciac-container { width: min(calc(100% - 40px), var(--ciac-max)); margin-inline: auto; }
.ciac-section { padding: 88px 0; }
.ciac-kicker, .ciac-eyebrow { margin: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--ciac-primary); }
.ciac-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.ciac-section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 42px; }
.ciac-section-head > p { margin: 0; color: var(--ciac-muted); line-height: 1.7; }

.ciac-hero { position: relative; overflow: hidden; padding: 108px 0 92px; background: linear-gradient(135deg, #FFF6FA 0%, #FFFFFF 55%, #FFF5EF 100%); }
.ciac-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border: 1px solid rgba(211,3,72,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(211,3,72,.05), 0 0 0 110px rgba(165,56,34,.05); }
.ciac-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 72px; align-items: center; position: relative; z-index: 1; }
.ciac-hero h1 { max-width: 850px; margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .95; letter-spacing: -.055em; }
.ciac-lead { max-width: 760px; margin: 28px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.65; color: var(--ciac-muted); }
.ciac-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.ciac-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.ciac-btn:hover { transform: translateY(-2px); }
.ciac-btn-primary { color: white; background: var(--ciac-primary); box-shadow: 0 10px 28px rgba(211,3,72,.22); }
.ciac-btn-primary:hover { background: var(--ciac-primary-dark); }
.ciac-btn-ghost { color: var(--ciac-ink); border: 1px solid var(--ciac-line); background: rgba(255,255,255,.72); }
.ciac-btn-light { color: var(--ciac-ink); background: white; }
.ciac-btn-ghost-dark { color: white; border: 1px solid rgba(255,255,255,.4); }
.ciac-hero-panel { padding: 30px; border: 1px solid rgba(16,32,43,.1); border-radius: var(--ciac-radius); background: rgba(255,255,255,.78); backdrop-filter: blur(12px); box-shadow: var(--ciac-shadow); }
.ciac-hero-panel > span { display: block; font-weight: 800; line-height: 1.45; }
.ciac-hero-panel > p { margin: 18px 0 0; color: var(--ciac-muted); line-height: 1.6; }
.ciac-signal { display: flex; gap: 8px; align-items: end; height: 85px; margin-top: 24px; }
.ciac-signal i { flex: 1; border-radius: 999px 999px 4px 4px; background: var(--ciac-primary); opacity: .18; }
.ciac-signal i:nth-child(1){height:35%}.ciac-signal i:nth-child(2){height:58%}.ciac-signal i:nth-child(3){height:78%}.ciac-signal i:nth-child(4){height:100%;opacity:.75}

.ciac-impact { padding-top: 46px; background: linear-gradient(135deg, #1A0F0A 0%, #883C02 100%); color: white; }
.ciac-impact .ciac-kicker { color: #F6B2C6; }
.ciac-impact .ciac-section-head > p { color: #EAD7D1; }
.ciac-metrics { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.ciac-metrics article { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.ciac-metrics article:last-child { border-right: 0; }
.ciac-metrics strong { display:block; font-size: clamp(2.4rem,5vw,4.4rem); line-height:1; letter-spacing:-.05em; }
.ciac-metrics span { display:block; margin-top:10px; color:#c3ccd0; }

.ciac-cards { display:grid; gap:18px; }
.ciac-cards-4 { grid-template-columns: repeat(4,1fr); }
.ciac-cards-3 { grid-template-columns: repeat(3,1fr); }
.ciac-card, .ciac-project { padding: 28px; border: 1px solid var(--ciac-line); border-radius: var(--ciac-radius); background:white; }
.ciac-card { min-height: 320px; display:flex; flex-direction:column; }
.ciac-card-no { font-size:.78rem; font-weight:900; color:var(--ciac-primary); }
.ciac-card h3, .ciac-project h3 { margin: 44px 0 12px; font-size:1.35rem; }
.ciac-card p, .ciac-project p { color:var(--ciac-muted); line-height:1.65; }
.ciac-card a { margin-top:auto; color:var(--ciac-ink); text-decoration:none; font-weight:800; }

.ciac-feature { background: var(--ciac-paper); }
.ciac-split { display:grid; grid-template-columns: .9fr 1.1fr; gap:70px; align-items:center; }
.ciac-split-reverse { grid-template-columns: 1.05fr .95fr; }
.ciac-feature-visual { min-height: 420px; border-radius: 32px; background: radial-gradient(circle at 35% 35%, rgba(211,3,72,.35), transparent 20%), radial-gradient(circle at 65% 65%, rgba(165,56,34,.35), transparent 28%), #1A0F0A; display:grid; place-items:center; overflow:hidden; }
.ciac-orbit { width:220px; height:220px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.28); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.05),0 0 0 110px rgba(255,255,255,.025); }
.ciac-orbit span { display:grid; place-items:center; width:110px; height:110px; border-radius:50%; background:white; font-size:2.4rem; font-weight:900; }
.ciac-feature p { color:var(--ciac-muted); line-height:1.75; font-size:1.05rem; }
.ciac-taglist { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.ciac-taglist span, .ciac-badge { padding:8px 12px; border-radius:999px; background:#F9E6EC; color:var(--ciac-primary-dark); font-size:.76rem; font-weight:850; }
.ciac-text-link { color:var(--ciac-ink); text-decoration:none; font-weight:850; }

.ciac-project { min-height:260px; background:linear-gradient(180deg,#fff,#f8fafb); }
.ciac-project h3 { margin-top:50px; font-size:1.55rem; }

.ciac-network { background:linear-gradient(135deg, #A53822 0%, #883C02 100%); color:white; }
.ciac-network .ciac-kicker { color:#F6B2C6; }
.ciac-network p { color:#F5E8E2; line-height:1.75; }
.ciac-network-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.ciac-network-grid span { min-height:96px; display:flex; align-items:flex-end; padding:18px; border:1px solid rgba(255,255,255,.22); border-radius:18px; background:rgba(255,255,255,.06); font-weight:750; }

.ciac-news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.ciac-news-card { overflow:hidden; border:1px solid var(--ciac-line); border-radius:var(--ciac-radius); background:white; }
.ciac-news-image { display:block; aspect-ratio:16/10; background:var(--ciac-paper); overflow:hidden; }
.ciac-news-image img { width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.ciac-news-card:hover .ciac-news-image img { transform:scale(1.025); }
.ciac-news-body { padding:22px; }
.ciac-news-body time { color:var(--ciac-primary); font-size:.78rem; font-weight:800; }
.ciac-news-body h3 { margin:10px 0; font-size:1.28rem; line-height:1.3; }
.ciac-news-body h3 a { color:inherit; text-decoration:none; }
.ciac-news-body p { color:var(--ciac-muted); line-height:1.6; }

.ciac-cta { padding-top:32px; }
.ciac-cta-inner { padding:50px; display:grid; grid-template-columns:1.3fr .7fr; gap:42px; align-items:center; border-radius:30px; background:linear-gradient(135deg, #1A0F0A 0%, #883C02 100%); color:white; }
.ciac-cta .ciac-kicker { color:#F6B2C6; }
.ciac-cta p { color:#EAD7D1; }
.ciac-cta .ciac-actions { justify-content:flex-end; margin-top:0; }

@media (max-width: 980px) {
  .ciac-hero-grid, .ciac-section-head, .ciac-split, .ciac-split-reverse, .ciac-cta-inner { grid-template-columns:1fr; gap:32px; }
  .ciac-cards-4 { grid-template-columns:repeat(2,1fr); }
  .ciac-metrics { grid-template-columns:repeat(2,1fr); }
  .ciac-metrics article:nth-child(2) { border-right:0; }
  .ciac-news-grid, .ciac-cards-3 { grid-template-columns:1fr 1fr; }
  .ciac-cta .ciac-actions { justify-content:flex-start; }
}
@media (max-width: 640px) {
  .ciac-container { width:min(calc(100% - 28px), var(--ciac-max)); }
  .ciac-section { padding:64px 0; }
  .ciac-hero { padding:76px 0 64px; }
  .ciac-hero h1 { font-size:clamp(2.8rem,16vw,4.5rem); }
  .ciac-cards-4, .ciac-cards-3, .ciac-news-grid, .ciac-metrics, .ciac-network-grid { grid-template-columns:1fr; }
  .ciac-metrics article { border-right:0; border-bottom:1px solid rgba(255,255,255,.15); }
  .ciac-metrics article:last-child { border-bottom:0; }
  .ciac-feature-visual { min-height:320px; }
  .ciac-cta-inner { padding:30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ciac-home *, .ciac-home *::before, .ciac-home *::after { scroll-behavior:auto !important; transition:none !important; }
}


/* Brand refinements */
.ciac-brand-logo { display:block; width:min(250px, 78%); height:auto; margin:0 auto 24px; }
.ciac-hero-panel { border-color: rgba(211,3,72,.14); }
.ciac-card, .ciac-project, .ciac-news-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ciac-card:hover, .ciac-project:hover, .ciac-news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(136,60,2,.10); border-color: rgba(211,3,72,.22); }
.ciac-text-link:hover, .ciac-card a:hover { color: var(--ciac-primary); }

/* =========================================================
   CIAC-PLDIS institutional footer — 2026
   ========================================================= */
.ciac-site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(211, 3, 72, .14), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(165, 56, 34, .2), transparent 34%),
    #180f0d;
  color: #fff;
  padding: 72px 0 0;
}

.ciac-site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #d30348 0%, #c2253b 40%, #a53822 72%, #883c02 100%);
}

.ciac-footer-main {
  display: grid;
  grid-template-columns: 1.05fr .82fr 1.18fr;
  gap: 72px;
  align-items: start;
  padding-bottom: 52px;
}

.ciac-footer-pldis {
  width: min(255px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left top;
}

.ciac-footer-intro {
  max-width: 310px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.68);
  font-size: .93rem;
  line-height: 1.55;
}

.ciac-footer-label {
  margin: 0 0 22px;
  color: #f5a8bc;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ciac-footer-contact p,
.ciac-footer-contact address {
  margin: 0;
}

.ciac-footer-contact-strong {
  color: #fff;
  font-size: 1.04rem;
  font-weight: 780;
  line-height: 1.7;
}

.ciac-footer-contact address {
  margin-top: 22px;
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  line-height: 1.72;
  font-style: normal;
}

.ciac-footer-contact address strong {
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

.ciac-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.ciac-footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.ciac-footer-social a:hover,
.ciac-footer-social a:focus-visible {
  transform: translateY(-2px);
  background: #d30348;
  border-color: #d30348;
  outline: none;
}

.ciac-footer-social svg {
  width: 19px;
  height: 19px;
  fill: #fff;
  stroke: #fff;
  stroke-width: 1.7;
}

.ciac-footer-social svg rect,
.ciac-footer-social svg circle {
  fill: none;
}

.ciac-footer-social svg circle:last-child {
  fill: #fff;
  stroke: none;
}

.ciac-footer-social a:nth-child(2) svg,
.ciac-footer-social a:nth-child(3) svg,
.ciac-footer-social a:nth-child(4) svg {
  stroke: none;
}

.ciac-footer-social .ciac-youtube-play {
  fill: #180f0d;
}

.ciac-footer-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  align-items: center;
}

.ciac-footer-logo-grid img {
  display: block;
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.ciac-footer-logo-grid .ciac-logo-ciac {
  max-height: 72px;
}

.ciac-footer-logo-grid .ciac-logo-uni {
  grid-column: 1 / -1;
  max-height: 64px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.ciac-footer-logo-grid .ciac-logo-fct {
  max-height: 68px;
}

.ciac-footer-funding {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 18px;
  align-items: stretch;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.ciac-footer-funding-mark {
  width: 4px;
  min-height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #d30348, #a53822);
}

.ciac-footer-funding p {
  max-width: 1080px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.7;
}

.ciac-footer-doi {
  color: rgba(255,255,255,.92);
  font-weight: 700;
  white-space: nowrap;
}

.ciac-footer-bottom {
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.ciac-footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: .76rem;
}

@media (max-width: 980px) {
  .ciac-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 50px 42px;
  }
  .ciac-footer-institutions {
    grid-column: 1 / -1;
  }
  .ciac-footer-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ciac-footer-logo-grid .ciac-logo-uni {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .ciac-site-footer { padding-top: 54px; }
  .ciac-footer-main { grid-template-columns: 1fr; gap: 44px; padding-bottom: 42px; }
  .ciac-footer-institutions { grid-column: auto; }
  .ciac-footer-logo-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ciac-footer-logo-grid .ciac-logo-uni { grid-column: 1 / -1; }
  .ciac-footer-funding { grid-template-columns: 3px 1fr; gap: 14px; }
  .ciac-footer-doi { white-space: normal; }
}

/* ============================================================
   CIAC-PLDIS 2026 — custom institutional header
   ============================================================ */
body.admin-bar .ciac-site-header { top: 32px; }
.ciac-skip-link { position:absolute; left:-9999px; top:auto; }
.ciac-skip-link:focus { left:20px; top:20px; z-index:10000; background:#fff; color:#111; padding:10px 14px; border-radius:8px; }
.ciac-site-header { position:sticky; top:0; z-index:999; background:rgba(255,255,255,.96); backdrop-filter:blur(14px); border-bottom:1px solid rgba(26,15,10,.09); }
.ciac-header-inner { min-height:86px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.ciac-header-brand { display:flex; align-items:center; flex:0 0 auto; text-decoration:none; }
.ciac-header-brand img { display:block; width:190px; max-height:66px; object-fit:contain; object-position:left center; }
.ciac-header-nav-wrap { display:flex; align-items:center; gap:28px; margin-left:auto; }
.ciac-main-nav { display:flex; align-items:center; gap:20px; }
.ciac-main-nav a { position:relative; color:#241410; font-size:.92rem; font-weight:720; text-decoration:none; white-space:nowrap; padding:31px 0 27px; }
.ciac-main-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:20px; height:2px; background:var(--ciac-primary); transition:right .2s ease; }
.ciac-main-nav a:hover::after, .ciac-main-nav a:focus-visible::after { right:0; }
.ciac-lang { display:flex; align-items:center; gap:4px; padding-left:18px; border-left:1px solid var(--ciac-line); }
.ciac-lang-link, .ciac-lang-preview span { display:grid; place-items:center; min-width:36px; height:34px; border-radius:999px; color:#5d4943; font-size:.74rem; font-weight:900; text-decoration:none; letter-spacing:.05em; }
.ciac-lang-link:hover, .ciac-lang-link.is-active, .ciac-lang-preview .is-active { background:#f8e8ed; color:var(--ciac-primary); }
.ciac-lang-preview { opacity:.65; }
.ciac-menu-toggle { display:none; width:44px; height:44px; padding:0; border:1px solid var(--ciac-line); border-radius:50%; background:#fff; }
.ciac-menu-toggle span:not(.screen-reader-text) { display:block; width:18px; height:2px; background:#241410; margin:4px auto; }

@media (max-width: 1120px) {
  .ciac-header-brand img { width:160px; }
  .ciac-main-nav { gap:14px; }
  .ciac-main-nav a { font-size:.84rem; }
  .ciac-header-nav-wrap { gap:16px; }
}
@media (max-width: 980px) {
  body.admin-bar .ciac-site-header { top:46px; }
  .ciac-header-inner { min-height:72px; }
  .ciac-header-brand img { width:150px; max-height:56px; }
  .ciac-menu-toggle { display:block; margin-left:auto; }
  .ciac-header-nav-wrap { display:none; position:absolute; left:0; right:0; top:100%; margin:0; padding:20px; flex-direction:column; align-items:stretch; gap:16px; background:#fff; border-bottom:1px solid var(--ciac-line); box-shadow:0 18px 32px rgba(26,15,10,.08); }
  .ciac-header-nav-wrap.is-open { display:flex; }
  .ciac-main-nav { flex-direction:column; align-items:stretch; gap:0; }
  .ciac-main-nav a { padding:12px 4px; font-size:1rem; border-bottom:1px solid #f0e6e2; }
  .ciac-main-nav a::after { display:none; }
  .ciac-lang { border-left:0; padding-left:0; padding-top:4px; }
  body.ciac-menu-open { overflow:hidden; }
}

/* ============================================================
   Footer institutional logo balance — 2026-09-29
   Cropped logo assets remove transparent margins that made CIAC/FCT
   look much smaller than the Universidade Politécnica de Santarém.
   ============================================================ */
.ciac-footer-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.ciac-footer-logo-grid img {
  display: block;
  width: 100%;
  height: 86px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.ciac-footer-logo-grid .ciac-logo-ciac {
  width: 100%;
  height: 104px;
}
.ciac-footer-logo-grid .ciac-logo-fct {
  width: 100%;
  height: 98px;
}
.ciac-footer-logo-grid .ciac-logo-uni {
  grid-column: auto;
  width: 100%;
  height: 72px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

@media (max-width: 980px) {
  .ciac-footer-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .ciac-footer-logo-grid .ciac-logo-ciac { height: 92px; }
  .ciac-footer-logo-grid .ciac-logo-fct { height: 86px; }
  .ciac-footer-logo-grid .ciac-logo-uni { height: 66px; }
}

@media (max-width: 640px) {
  .ciac-footer-logo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ciac-footer-logo-grid .ciac-logo-ciac,
  .ciac-footer-logo-grid .ciac-logo-fct,
  .ciac-footer-logo-grid .ciac-logo-uni {
    width: min(100%, 290px);
    height: 76px;
    grid-column: auto;
  }
  .ciac-footer-logo-grid .ciac-logo-ciac { height: 88px; }
  .ciac-footer-logo-grid .ciac-logo-fct { height: 82px; }
  .ciac-footer-logo-grid .ciac-logo-uni { height: 64px; }
}

/* =========================================================
   CIAC-PLDIS 2026 — hide legacy Elementor/Hello header ONLY
   on pages using the CIAC-PLDIS Homepage 2026 template.
   This does not delete the old header or any page content.
   ========================================================= */
.page-template-front-page-ciac-pldis .elementor-location-header,
.page-template-front-page-ciac-pldis header#site-header,
.page-template-front-page-ciac-pldis .site-header:not(.ciac-site-header),
.page-template-front-page-ciac-pldis [data-elementor-type="header"] {
  display: none !important;
}

/* Ensure our new CIAC header remains visible. */
.page-template-front-page-ciac-pldis .ciac-site-header {
  display: block !important;
}


/* ============================================================
   CIAC-PLDIS 2026 — simplified navigation architecture
   ============================================================ */
.ciac-main-nav { gap: 10px; }
.ciac-nav-item { position: relative; display: flex; align-items: stretch; }
.ciac-nav-top { display: flex !important; align-items: center; gap: 7px; padding-inline: 8px !important; }
.ciac-chevron { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.ciac-has-submenu:hover .ciac-chevron, .ciac-has-submenu:focus-within .ciac-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.ciac-submenu { position: absolute; top: calc(100% - 8px); left: 0; z-index: 1002; width: 265px; padding: 10px; border: 1px solid rgba(26,15,10,.10); border-radius: 16px; background: rgba(255,255,255,.99); box-shadow: 0 20px 45px rgba(26,15,10,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.ciac-submenu-right { left: auto; right: 0; }
.ciac-has-submenu:hover > .ciac-submenu, .ciac-has-submenu:focus-within > .ciac-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.ciac-submenu a { display: block; padding: 11px 12px !important; border-radius: 10px; color: #321b16 !important; font-size: .88rem !important; font-weight: 650 !important; line-height: 1.25; text-decoration: none; white-space: normal !important; }
.ciac-submenu a::after { display: none !important; }
.ciac-submenu a:hover, .ciac-submenu a:focus-visible { background: #fff1f5; color: var(--ciac-primary) !important; }

/* Strong fallback: the legacy header must never appear on the new CIAC homepage template. */
body.page-template-front-page-ciac-pldis .elementor-location-header,
body.page-template-front-page-ciac-pldis [data-elementor-type="header"],
body.page-template-front-page-ciac-pldis .hfe-site-header,
body.page-template-front-page-ciac-pldis header#site-header,
body.page-template-front-page-ciac-pldis .site-header:not(.ciac-site-header) { display:none !important; }

@media (max-width: 1180px) {
  .ciac-main-nav { gap: 3px; }
  .ciac-nav-top { font-size: .80rem !important; padding-inline: 5px !important; }
}

@media (max-width: 980px) {
  .ciac-nav-item { display:block; width:100%; }
  .ciac-nav-top { justify-content:space-between; width:100%; }
  .ciac-submenu, .ciac-submenu-right { position:static; width:100%; margin:0; padding:0 0 6px 12px; border:0; border-radius:0; box-shadow:none; background:transparent; opacity:1; visibility:visible; transform:none; display:none; }
  .ciac-has-submenu.is-open > .ciac-submenu { display:block; }
  .ciac-has-submenu.is-open .ciac-chevron { transform: rotate(225deg) translate(-1px,-1px); }
  .ciac-submenu a { padding:9px 10px !important; font-size:.92rem !important; border-bottom:0 !important; }
}
