@charset "UTF-8";
/* ==========================================================================
   Europa Futura — components: buttons, cards, forms, dialogs, gallery
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: var(--ef-g700);
  color: var(--ef-white);
  transition: background var(--ef-speed) var(--ef-ease),
              color var(--ef-speed) var(--ef-ease),
              border-color var(--ef-speed) var(--ef-ease),
              transform var(--ef-speed) var(--ef-ease),
              box-shadow var(--ef-speed) var(--ef-ease);
}

.ef-btn:hover,
.ef-btn:focus-visible {
  background: var(--ef-g800);
  color: var(--ef-white);
  transform: translateY(-1px);
  box-shadow: var(--sh-1);
}

.ef-btn:active { transform: translateY(0); }

.ef-btn:disabled,
.ef-btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ef-btn--accent { background: var(--ef-gold600); color: var(--ef-white); }
.ef-btn--accent:hover,
.ef-btn--accent:focus-visible { background: var(--ef-gold700); color: var(--ef-white); }

.ef-btn--ghost {
  background: transparent;
  color: var(--ef-g700);
  border-color: var(--ef-border-str);
}
.ef-btn--ghost:hover,
.ef-btn--ghost:focus-visible {
  background: var(--ef-g100);
  color: var(--ef-g800);
  border-color: var(--ef-g500);
}

.ef-btn--on-dark {
  background: var(--ef-white);
  color: var(--ef-g800);
}
.ef-btn--on-dark:hover,
.ef-btn--on-dark:focus-visible { background: var(--ef-gold400); color: var(--ef-g900); }

.ef-btn--lg { min-height: 52px; padding: var(--sp-4) var(--sp-7); font-size: var(--fs-base); }
.ef-btn--block { width: 100%; }

/* Inline text link that reads as an action */
.ef-link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 2px solid var(--ef-gold500);
  padding-bottom: 2px;
}
.ef-link-more::after { content: "\2192"; transition: transform var(--ef-speed) var(--ef-ease); }
.ef-link-more:hover::after,
.ef-link-more:focus-visible::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.ef-cards { display: flex; flex-wrap: wrap; }
.colPad   { padding: var(--sp-3); }

.ef-card,
.service_section .box {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--ef-speed) var(--ef-ease),
              box-shadow var(--ef-speed) var(--ef-ease),
              border-color var(--ef-speed) var(--ef-ease);
}

.ef-card:hover,
.service_section .box:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--ef-g400);
}

.ef-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ef-g100);
}

.ef-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ef-ease);
}
.ef-card:hover .ef-card__media img { transform: scale(1.04); }

.ef-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1 1 auto;
  padding: var(--sp-5);
}

.ef-card__body h3,
.ef-card__body h5 { margin: 0; color: var(--ef-g700); }
.ef-card__body p  { margin: 0; color: var(--ef-ink-soft); font-size: var(--fs-sm); }
.ef-card__body > :last-child { margin-top: auto; padding-top: var(--sp-2); }

/* Logo / portrait block */
.logo img,
.ef-figure img {
  max-width: min(320px, 100%);
  margin-inline: auto;
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.ef-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.modalFormFlex { display: flex; flex-direction: column; gap: var(--sp-4); }

.fca, .ef-field { display: flex; flex-direction: column; gap: var(--sp-2); }

label,
#formPart label,
legend {
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  color: var(--ef-ink-soft);
  text-transform: none;
}

.ef-req { color: var(--ef-danger); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--sp-3);
  background: var(--ef-surface);
  color: var(--ef-ink);
  border: 1px solid var(--ef-border-str);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  transition: border-color var(--ef-speed) var(--ef-ease),
              box-shadow var(--ef-speed) var(--ef-ease);
}

textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }

input:hover, select:hover, textarea:hover { border-color: var(--ef-g500); }

input:focus, select:focus, textarea:focus {
  border-color: var(--ef-g600);
  box-shadow: 0 0 0 3px rgba(95, 136, 105, .28);
}

::placeholder { color: var(--ef-muted); opacity: 1; }

.inp, .wid3 { width: 100%; }
.wid3 { max-width: 7rem; }

fieldset {
  border: 1px solid var(--ef-border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin: 0;
  background: var(--ef-g50);
}

legend { padding-inline: var(--sp-2); text-transform: uppercase; letter-spacing: .06em; }

.ef-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.ef-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-top: .28rem;
  flex: 0 0 auto;
  accent-color: var(--ef-g600);
}
.ef-check label { font-weight: 400; color: var(--ef-ink); }

.ef-form-grid > .w3-col { padding: var(--sp-3); }

/* --------------------------------------------------------------------------
   Status messages (replaces innerHTML icon strings)
   -------------------------------------------------------------------------- */

.ef-alert {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ef-border);
  border-left: 4px solid var(--ef-muted);
  border-radius: var(--r-sm);
  background: var(--ef-surface-2);
  font-size: var(--fs-sm);
  color: var(--ef-ink);
}
.ef-alert:empty { display: none; }
.ef-alert::before { font-weight: 700; }

.ef-alert--ok   { border-left-color: var(--ef-success); background: #eef7f1; }
.ef-alert--ok::before   { content: "\2713"; color: var(--ef-success); }
.ef-alert--err  { border-left-color: var(--ef-danger);  background: #fdf0ef; }
.ef-alert--err::before  { content: "\26A0"; color: var(--ef-danger); }
.ef-alert--busy { border-left-color: var(--ef-gold600); background: var(--ef-gold100); }
.ef-alert--busy::before { content: "\22EF"; color: var(--ef-gold700); }

#msgRe { color: inherit; }

body.ef-busy { cursor: progress; }

/* --------------------------------------------------------------------------
   Dialog (contact modal)
   -------------------------------------------------------------------------- */

.ef-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  padding: 6vh var(--ef-gutter) var(--ef-gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(18, 33, 26, .62);
  backdrop-filter: blur(2px);
}

.ef-modal.is-open { display: block; }

.ef-dialog {
  width: min(640px, 92vw);
  margin-inline: auto;
  padding: clamp(1.25rem, .9rem + 1.6vw, 2.25rem);
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-top: 5px solid var(--ef-gold500);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}

.ef-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.ef-dialog__head h2,
.ef-dialog__head h5 {
  margin: 0;
  font-size: var(--fs-h4);
  color: var(--ef-g700);
  text-transform: none;
  letter-spacing: 0;
}

.close, .ef-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ef-ink-soft);
  background: var(--ef-surface-2);
  border: 1px solid var(--ef-border);
  border-radius: var(--r-full);
  cursor: pointer;
  float: none;
}
.close:hover, .ef-dialog__close:hover {
  background: var(--ef-g100);
  color: var(--ef-ink);
}

/* --------------------------------------------------------------------------
   Cookie notice
   -------------------------------------------------------------------------- */

.cookiesCSS, .ef-cookies {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: block;
  height: auto;
  padding: var(--sp-4) var(--ef-gutter);
  background: var(--ef-g900);
  color: var(--ef-white);
  border-top: 3px solid var(--ef-gold500);
  box-shadow: 0 -8px 30px rgba(18, 33, 26, .28);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s var(--ef-ease), visibility .3s;
}

.cookiesCSS.is-open, .ef-cookies.is-open { transform: translateY(0); visibility: visible; }

.ef-cookies__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-5);
  max-width: var(--ef-maxw);
  margin-inline: auto;
  text-align: center;
}

.ef-cookies p { margin: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .92); }
.ef-cookies a { color: var(--ef-gold400); }

.ef-cookies__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

.cookiesPref {
  min-height: 42px;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  border: 1px solid var(--ef-white);
  background: var(--ef-white);
  color: var(--ef-g900);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ef-speed) var(--ef-ease),
              color var(--ef-speed) var(--ef-ease);
}
.cookiesPref:hover { background: var(--ef-gold400); }

#noCo {
  background: transparent;
  color: var(--ef-white);
}
#noCo:hover { background: rgba(255, 255, 255, .16); }

/* --------------------------------------------------------------------------
   Language switcher
   -------------------------------------------------------------------------- */

.lang {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.lang a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-1);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--ef-white);
  text-decoration: none;
  transition: background var(--ef-speed) var(--ef-ease),
              border-color var(--ef-speed) var(--ef-ease);
}

.lang a img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}

.lang a p {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.lang a:hover,
.lang a:focus-visible { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }

.lang a.lang-selected {
  background: rgba(224, 180, 95, .18);
  border-color: var(--ef-gold400);
}
.lang a.lang-selected p { font-weight: 700; color: var(--ef-gold400); }

/* --------------------------------------------------------------------------
   Media gallery
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(9rem, 24vw, 12rem), 1fr));
  gap: var(--sp-4);
}

.media-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ef-g900);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform .35s var(--ef-ease), opacity .35s var(--ef-ease);
}
.media-card:hover img { transform: scale(1.05); }

.media-card__badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  padding: 2px var(--sp-2);
  border-radius: var(--r-sm);
  background: rgba(18, 33, 26, .72);
  color: var(--ef-white);
  font-size: var(--fs-sm);
  pointer-events: none;
}

.progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: var(--ef-gold500);
  transition: width .25s var(--ef-ease), opacity .4s .15s var(--ef-ease);
}
/* It is a loading affordance, not decoration: once the thumbnail is painted
   it fades away instead of leaving a bar under every tile. */
.progress-bar.is-done { opacity: 0; }

.gallery-date-title {
  grid-column: 1 / -1;
  margin: var(--sp-5) 0 0;
  padding: var(--sp-2) var(--sp-4);
  background: var(--ef-g100);
  color: var(--ef-g800);
  border-left: 4px solid var(--ef-gold500);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
}

.ef-gallery-trigger {
  min-height: 3rem;
  padding-top: var(--sp-5);
  text-align: center;
  color: var(--ef-muted);
  font-size: var(--fs-sm);
}

.media-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: var(--ef-gutter);
  background: rgba(12, 18, 14, .93);
  align-items: center;
  justify-content: center;
}
.media-modal.active { display: flex; }

.media-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  padding: var(--sp-5);
  background: var(--ef-g900);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalContent img,
#modalContent video { width: 100%; max-height: 78vh; object-fit: contain; }

.media-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .92);
  color: var(--ef-g900);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}
.media-close:hover { background: var(--ef-gold400); }

/* --------------------------------------------------------------------------
   Policy / long-form pages
   -------------------------------------------------------------------------- */

.ef-doc { max-width: 78ch; margin-inline: auto; }
.ef-doc h2 { margin-top: var(--sp-7); font-size: var(--fs-h3); }
.ef-doc h2:first-of-type { margin-top: 0; }
.ef-doc h3, .ef-doc h4 { margin-top: var(--sp-6); font-size: var(--fs-h4); }
.ef-doc li { margin-bottom: var(--sp-2); }
.ef-doc a { word-break: break-word; }

.ef-doc__updated {
  display: inline-block;
  margin-bottom: var(--sp-6);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  background: var(--ef-g100);
  color: var(--ef-g700);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.w3-ul li { border-color: var(--ef-border); }

/* Erasmus / licence notices */
.ef-notice {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
}
.ef-notice img { display: inline-block; margin-inline: auto; }
