:root {
  --navy: #254672;
  --navy-deep: #183356;
  --link: #01497b;
  --accent: #f39c0b;
  --accent-dark: #d48508;
  --teal: #288169;
  --text: #243247;
  --muted: #5a6a7d;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: rgba(37, 70, 114, 0.14);
  --shadow: 0 12px 32px rgba(24, 51, 86, 0.12);
  --font: "Nunito Sans", "Segoe UI", sans-serif;
  --display: "Libre Baskerville", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(243, 156, 11, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(40, 129, 105, 0.12), transparent 50%),
    linear-gradient(180deg, #eef3f9 0%, var(--paper) 35%, #e8eef6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.site-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(24, 51, 86, 0.18);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__text strong {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
}

.site-brand__text em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--navy);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  background: rgba(37, 70, 114, 0.08);
  color: var(--navy-deep);
}

.has-dropdown {
  position: relative;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.18s ease;
  z-index: 30;
}

.has-dropdown:hover .site-nav__dropdown,
.has-dropdown:focus-within .site-nav__dropdown,
.has-dropdown.is-open .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav__dropdown a {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.site-nav__dropdown a:hover {
  background: rgba(243, 156, 11, 0.12);
  color: var(--navy-deep);
}

.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(24, 51, 86, 0.25) 0%, rgba(24, 51, 86, 0.78) 100%),
    url("/wp-content/uploads/2019/10/Banner-Elxemplea-2019_Home.jpg") center / cover no-repeat;
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3rem;
  animation: rise 0.7s ease both;
}

.hero__brand {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  max-width: 36rem;
  margin: 0 0 1.25rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1b2430;
}

.btn-primary:hover {
  background: #ffb133;
  color: #1b2430;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section__title {
  font-family: var(--display);
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.section__intro {
  max-width: 46rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  font-family: var(--display);
  color: var(--navy);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3 {
  color: var(--navy);
  margin: 1.6rem 0 0.6rem;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.info-card {
  flex: 1 1 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.info-card strong {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule__item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: baseline;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 4px 16px rgba(24, 51, 86, 0.06);
}

.schedule__time {
  flex: 0 0 8.5rem;
  font-weight: 800;
  color: var(--navy);
}

.schedule__body {
  flex: 1 1 16rem;
}

.schedule__body p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.speaker {
  flex: 1 1 240px;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
}

.speaker img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.speaker h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--navy);
}

.speaker h3 a {
  color: inherit;
  text-decoration: none;
}

.speaker h3 a:hover {
  color: var(--accent-dark);
}

.speaker p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.sponsors a,
.sponsors span {
  flex: 0 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sponsors img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.edition-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.edition-links a {
  display: inline-flex;
  padding: 0.7rem 1rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
}

.edition-links a:hover {
  background: var(--accent);
  color: #1b2430;
}

.site-footer {
  margin-top: 3rem;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  color: #ffd27a;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.75rem 0 1.5rem;
}

.site-footer__brand,
.site-footer__links,
.site-footer__note {
  flex: 1 1 220px;
}

.site-footer__brand img {
  max-width: 150px;
  margin-bottom: 1rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 8px;
}

.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.badge-full {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.7rem;
  background: var(--accent);
  color: #1b2430;
  font-weight: 800;
  border-radius: 999px;
  font-size: 0.85rem;
}

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0 1.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__copy p {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.romlifooter {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 1.5rem;
}

.romlicontainer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 0.5rem;
  }

  .has-dropdown.is-open .site-nav__dropdown {
    display: block;
  }

  .hero {
    min-height: 70vh;
    align-items: center;
  }

  .hero__content {
    margin-bottom: 0;
    padding: 4rem 0;
  }
}
