/* Tipografia e Reset */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --color-bg: #F8F9FA;
  --color-text: #333333;
  --color-muted: #555555;
  --color-border: #DDDDDD;
  --color-primary: #00A9B5;
  --color-accent: #FF6600;
  --color-dark: #333333;
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 95vw;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 60px;
  width: auto;
  max-width: 220px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-weight: 700;
  font-size: 16px;
  padding: 6px 8px;
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover {
  color: var(--color-accent);
}
.main-nav a.active {
  border-color: var(--color-accent);
}

/* Mobile menu button (hidden by default) */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: #F7F7F7;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--color-text);
  box-shadow: 0 -6px 0 0 var(--color-text), 0 6px 0 0 var(--color-text);
  display: block;
}

/* Language dropdown */
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0F0F0;
  border: 1px solid var(--color-border);
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid #eee;
  overflow: hidden;
  display: none;
}
.lang.open .lang-menu {
  display: block;
}
.lang-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-muted);
}
.lang-item:hover {
  background: #F7F7F7;
}
.lang-item.active {
  background: #E6F7F8;
  color: var(--color-primary);
}
.lang-divider {
  height: 1px;
  background: #EEE;
  margin: 0 10px;
}

/* Hero */
.hero {
  background: var(--color-primary);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 80px 0 120px;
}
.hero .decor-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero .decor-1 {
  width: 400px;
  height: 400px;
  right: -40px;
  top: 60px;
  background: rgba(255,255,255,0.1);
}
.hero .decor-2 {
  width: 300px;
  height: 300px;
  left: -80px;
  bottom: -60px;
  background: rgba(255,102,0,0.2);
}
.hero h1 {
  font-size: clamp(36px, 4.2vw, 64px);
  margin: 0 0 12px 0;
  font-weight: 700;
}
.hero p {
  font-size: clamp(18px, 2.2vw, 28px);
  max-width: 880px;
  margin: 0 0 28px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 26px;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.btn:hover {
  filter: brightness(0.95);
}

/* Sections */
.section {
  padding: 64px 0;
}
.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 8px 0;
}
.accent-rule {
  width: 160px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 6px;
  margin: 8px 0 24px 0;
}
.muted {
  color: var(--color-muted);
}

/* About section bullets */
#about .card p {
  position: relative;
  padding-left: 40px;
}
#about .card p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  transform: translateY(-50%);
  width: 28px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 44 24'%3E%3Cellipse cx='12' cy='12' rx='9' ry='9' fill='none' stroke='%23FF6600' stroke-width='3'/%3E%3Cellipse cx='32' cy='12' rx='9' ry='9' fill='none' stroke='%2300A9B5' stroke-width='3'/%3E%3C/svg%3E");
}

/* Grid - Work Plan */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.wp-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
}
.wp-item h3 {
  margin: 0 0 10px 0;
  color: var(--color-accent);
  font-size: 22px;
}
.wp-item p {
  margin: 0;
  color: var(--color-muted);
}
/* Center a specific WP item across the grid */
.wp-item.center {
  grid-column: 1 / -1;
  text-align: center;
}

/* WP badge */
.wp-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .03em;
  margin-right: 10px;
  vertical-align: middle;
}

/* Deliverables */
.deliverables {
  margin-top: 40px;
  background: rgba(224, 247, 250, 0.3);
  padding: 32px 0 64px;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}
.table thead th {
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
  padding: 14px 18px;
  font-size: 16px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.table tbody tr {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.table tbody td {
  padding: 16px 18px;
  color: var(--color-text);
}
.table .action {
  text-align: right;
}
.btn-small {
  height: 36px;
  padding: 0 12px;
  font-size: 11px;
  border-radius: 8px;
  min-width: 140px;
  white-space: nowrap;
}

/* Partners */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.logo-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #999999;
  font-weight: 700;
}
.logo-card img,
.partner-logo {
  max-height: 120px;
  max-width: 90%;
  width: auto;
  height: auto;
}
.logo-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
}
.partner-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text, #1a1a1a);
  text-align: center;
  line-height: 1.3;
}
.country {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.logo-card--meta4 .partner-logo,
.logo-card--arsii .partner-logo {
  margin-bottom: 28px;
}

/* Media Center */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 16px;
}
.media-acc {
  background: #ffffff;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.media-acc:hover {
  background: #FAFAFA;
  border-color: #E0E0E0;
  box-shadow: var(--shadow-sm);
}
.media-acc.open {
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  border-color: #E0E0E0;
}
.media-section-icon {
  height: 29px;
  width: auto;
  margin-right: 10px;
  flex-shrink: 0;
}
.media-acc .footer-title {
  cursor: pointer;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  justify-content: space-between;
}
.media-acc .footer-title::after {
  content: "▾";
  color: var(--color-muted);
  margin-left: 8px;
  transform: rotate(0deg);
  transition: transform .2s ease;
}
.media-acc.open .footer-title::after {
  transform: rotate(180deg);
}
.media-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
}
.media-acc.open .media-content {
  max-height: 1200px; /* suficiente para listas em cascata */
  opacity: 1;
  visibility: visible;
}
.media-acc:not(.open) > .video-thumb {
  display: none;
}
.media-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #EAEAEA;
}
.media-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: grid;
  gap: 8px;
}
.media-list li {
  background: #ffffff;
  color: var(--color-text);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.media-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.media-list li:hover {
  background: #f7f7f7;
}
/* Ocultar itens com dummy links (href="#") nas páginas media */
.media-list li:has(a[href="#"]) {
  display: none !important;
}
.video-list a[href="#"] {
  display: none !important;
}
.video-thumb {
  background: #000000;
  height: 220px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EAEAEA;
}
.video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.video-list .video-thumb {
  height: 140px;
  margin: 0;
}
.video-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
.play {
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  clip-path: polygon(30% 20%, 80% 50%, 30% 80%);
}
.social-card {
  background: #ffffff;
  color: var(--color-text);
  border-radius: 8px;
  padding: 16px;
}
.social-placeholder {
  background: #EEEEEE;
  height: 160px;
  border-radius: 6px;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #ffffff;
  padding: 36px 0 48px;
  margin-top: 64px;
}
.footer-legal {
  background: #E6F7F8; /* alinhado com a estética do site (tinte primária) */
  color: var(--color-text);
  padding: 22px 0;
  margin-bottom: 28px;
  border-top: 1px solid rgba(0,169,181,0.15);
  border-bottom: 1px solid rgba(0,169,181,0.15);
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* CC e Co-funded lado a lado */
  gap: 22px;
  align-items: center;
}
.legal-card {
  background: #ffffff;
  border: 1px solid rgba(0,169,181,0.15);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 120px;
  overflow: hidden;
}
.legal-card .legal-text { order: 1; }
.legal-card .legal-cc { order: 2; }
.legal-cc {
  width: 140px; /* CC reduzido */
  height: auto;
}
.legal-eu img {
  width: 200px; /* Co-funded maior que CC */
  height: auto;
}
.legal-eu {
  align-self: center; /* centrar o bloco do logo da UE */
}
.legal-cc,
.legal-eu img {
  margin: 0 auto; /* centrar logos nos cartões */
}
.legal-text {
  font-size: 14px;
  color: var(--color-text);
}
.legal-text.small {
  font-size: 14px;
}
.legal-text a {
  color: var(--color-accent);
  text-decoration: underline;
}
.legal-text a:hover {
  filter: brightness(0.95);
}
.social-icons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  color: #000000;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.icon:hover { transform: translateY(-1px); filter: brightness(0.98); }
.icon.linkedin { background: var(--color-primary); color: #ffffff; }
.icon.linkedin::after { content: "in"; font-size: 18px; line-height: 1; }
.icon.youtube {
  background: var(--color-dark);
}
.icon.youtube::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #ffffff;
  clip-path: polygon(35% 25%, 75% 50%, 35% 75%);
}
.icon.facebook {
  background: #1877F2;
  color: #ffffff;
}
.icon.facebook::after {
  content: "f";
  font-size: 18px;
  line-height: 1;
}
.icon.instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  position: relative;
  color: #ffffff;
}
.icon.instagram::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' ry='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.icon.instagram::before {
  content: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.footer-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-muted {
  color: #AAAAAA;
}
.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 12px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-copy a {
  color: var(--color-primary);
  font-weight: 700;
}

/* Social band above legal cards */
.social-band {
  padding: 28px 0 8px;
}
.social-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.social-title {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .02em;
}
.social-band .social-icons {
  justify-content: center;
}

/* Responsivo */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: 10px;
  }
  /* Dropdown menu */
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 18px;
    border-bottom: 1px solid #EEE;
    box-shadow: var(--shadow-md);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .legal-card .social-icons { grid-column: auto; }
  .social-icons {
    justify-content: flex-start;
  }
  .legal-cc { width: 130px; } /* CC menor em tablet */
  .legal-eu img { width: 180px; } /* Co-funded ainda maior */
  .icon {
    width: 34px;
    height: 34px;
  }
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .video-list {
    grid-template-columns: 1fr;
  }
  .wp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .brand img {
    height: 48px;
    width: auto;
  }
  .btn {
    height: 52px;
    padding: 0 20px;
  }
  .accent-rule {
    width: 120px;
  }
  .legal-cc { width: 110px; } /* CC menor em mobile */
  .legal-eu img { width: 160px; } /* Co-funded maior em mobile */
  .icon {
    width: 32px;
    height: 32px;
  }
  /* Tabela de entregáveis como cartões */
  .table thead {
    display: none;
  }
  .table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
  }
  .table tbody td {
    display: block;
    padding: 6px 10px;
  }
  .table tbody td.action {
    text-align: left;
    padding-top: 0;
  }
  /* Grelha de parceiros: 1 coluna */
  .logo-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Platform Announcement Box ========== */
.platform-announcement {
  padding: 40px 0;
  background: transparent;
}

.announcement-box {
  display: block;
  background: #FF6600;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.announcement-box:hover {
  background: #E55A00;
  box-shadow: 0 6px 30px rgba(255, 102, 0, 0.35);
  transform: translateY(-2px);
}

.announcement-box:active {
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.25);
}

.announcement-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.announcement-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .announcement-box {
    padding: 30px 20px;
  }
  
  .announcement-title {
    font-size: 22px;
  }
  
  .announcement-subtitle {
    font-size: 16px;
  }
}

/* ========== RTL: páginas em árabe (dir="rtl") ========== */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .legal-card {
  align-items: flex-end;
}
html[dir="rtl"] .legal-text {
  text-align: right;
}
html[dir="rtl"] .social-icons {
  justify-content: flex-start;
}
html[dir="rtl"] .card,
html[dir="rtl"] .section-title,
html[dir="rtl"] .muted,
html[dir="rtl"] .footer-title,
html[dir="rtl"] .footer-muted,
html[dir="rtl"] .legal-text.small {
  text-align: right;
}
html[dir="rtl"] .accent-rule {
  margin-right: 0;
  margin-left: auto;
}
/* About section bullets à direita do texto em RTL */
html[dir="rtl"] #about .card p {
  padding-left: 0;
  padding-right: 40px;
}
html[dir="rtl"] #about .card p::before {
  left: auto;
  right: 0;
  background-position: right center;
}
html[dir="rtl"] .table th,
html[dir="rtl"] .table td {
  text-align: right;
}
html[dir="rtl"] .media-list li a {
  flex-direction: row-reverse;
}
html[dir="rtl"] .media-section-icon {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .media-acc .footer-title::after {
  margin-right: 8px;
  margin-left: 0;
}
@media (max-width: 900px) {
  html[dir="rtl"] .table tbody td.action {
    text-align: right;
  }
}


