:root {
    /* Cores */
    --primary-color: #003f7f;
    --secondary-color: #0066b3;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    
    --blue: #005f80;
    --dark-blue: #004d6d;
    --green: #97ca3d;
    --gray: #6a858e;
    
    /* Tipografia */
    --font-main: 'Titillium Web', sans-serif;
    --font-heading: 'Titillium Web', sans-serif;
    
    /* Tamanhos de Fonte */
    --font-size-base: 14px;
    --font-size-ex-post: 18px;
    --font-size-post-title: 19px;
    --font-size-post-date: 19.5px;
    --font-size-lg: 16px;
    --font-size-xl: 20px;
    --font-size-2xl: 33px;
    --font-size-3xl: 36px;
    
    /* Espaçamento */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Responsivo */
    --container-width: 13466px;
    --breakpoint-tablet: 768px;
    --breakpoint-mobile: 480px;
}

@media (max-width: 768px) {
    :root {
      --font-size-3xl: 36px;
      --font-size-2xl: 33px;
      --font-size-xl: 18px;
      --spacing-2xl: 33px;
    }
}

/* Reset */
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
}

.home{
    background-image: url("https://ibat.inesc-id.pt/wp-content/uploads/2026/02/g99-4.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color); 
}



h1 { 
    font-size: var(--font-size-3xl); 
    text-transform: uppercase;
    font-weight: 600;
}

h2 { 
    font-size: var(--font-size-2xl); 
    font-weight: 600;
}
h3 { 
    font-size: var(--font-size-2xl); 
    font-weight: 400;
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}


/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 63, 127, 0.2);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  max-height: 50px;
  width: auto;
}

.site-title {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
  margin: 0;
}

/* Navegação */
.main-navigation {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  border-bottom-color: var(--primary-color);
}

/* Menu Toggle Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu { display: none;}

  .nav-menu.active { 
    display: flex;
    flex-direction: column; 
    position: absolute; 
    top: 70px; 
    left: 0; 
    right: 0; 
    background-color: white; 
    border-bottom: 1px solid var(--border-color); 
    padding: var(--spacing-lg);
  }
}

/* Hero Section */
.hero-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle { 
    font-size: var(--font-size-lg);
  }

  .hero-section { 
    min-height: 300px;
  }
}

/* News Section */
.latest-news {
  padding: var(--spacing-2xl) 0;
  background-color: var(--bg-light);
}

.latest-news h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: var(--spacing-lg);
}

.news-date {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.news-title {
  margin: var(--spacing-sm) 0;
}

.news-title a {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--text-light);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-block;
}

.news-footer {
  text-align: center;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Research Projects */
.research-projects {
  padding: var(--spacing-2xl) 0;
}

.research-projects h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.thematic-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.thematic-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 63, 127, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.thematic-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.thematic-card p {
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color)100%);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  max-width: 350px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: 4px;
  font-size: var(--font-size-base);
}

.newsletter-form button {
  background-color: var(--accent-color);
  color: white;
}

.newsletter-form button:hover {
  background-color: #ff5722;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input { max-width: 100%;}
}


/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  align-items: start;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--accent-color);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-nav { 
    flex-direction: column; 
    gap: var(--spacing-md);
  }
}

/* Responsive Styles */
/* Tablets */
@media (max-width: 768px) {
  .header-container {
    padding: var(--spacing-md) var(--spacing-md);
  }
  .container { 
    padding: 0 var(--spacing-md);
  }
  .news-grid { 
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body { font-size: 13px; }
  
  h1 { 
     font-size: 36px; 
     text-transform: uppercase;
  }
  h2 { font-size: 33px; }
  h3 { font-size: 18px; }

  .container { 
    padding: 0 var(--spacing-md);
  }
  
  .btn { 
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .newsletter-form { 
    flex-direction: column;
  }
  
}

/* Extra Large (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1800px;
  }
}


/* ================================================================ */
/* ==================== TITLES SECTION ==================== */
/* ================================================================ */

.big-titles-rigth-bue {background-color: var(--dark-blue);}

.big-titles-rigth-gray {background-color: var(--gray);}

.big-titles-left-green {background-color: var(--green);}


.big-titles-left-green {
    border-radius: 0 0 30px 0; /* arredonda só do lado esquerdo em baixo*/
}

.big-titles-rigth-bue,
.big-titles-rigth-gray {
    border-radius: 0 0 0 30px; /* arredonda só do lado direito em baixo */
}

/* ================================================================ */
/* ==================== THEMATIC LINES SECTION ==================== */
/* ================================================================ */

.thematic-cards {
    overflow: hidden;
    border-style: solid;
    border-radius: 27px 0 27px 0 !important;
    border-color: #6a858e;
}

/* ================================================================ */
/* ========================== LATEST NEWS ========================= */
/* ====================== RESEARCH HIGHLIGHTS ===================== */
/* ================================================================ */

.latest-news .vc_gitem-zone-a,
.research-highlights .vc_gitem-zone-a {
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;  /* ou 4 / 3, 1 / 1 */
}

.latest-news .vc_gitem-zone-a {
    border: solid var(--green);
}

.research-highlights .vc_gitem-zone-a{
    border: solid var(--gray);
}

.latest-news,
.research-highlights {
    margin: 0;
}

.post-title,
.post-title a,
.post-title h1,
.post-title h2,
.post-title h3,
.post-title h4,
.post-title h5,
.post-title h6,
.post-date, 
.post-excerpt,
.post-button a { 
    font-family: var(--font-main);
    line-height: 1.2; /* mantém a contagem estável */
}


.post-title,
.post-title a,
.post-title h1,
.post-title h2,
.post-title h3,
.post-title h4,
.post-title h5,
.post-title h6 {
    font-size: var(--font-size-post-title);
    color: var(--blue);
}

.post-excerpt{
    font-size: var(--font-size-ex-post);
    color: var(--blue);
}

.post-card-green{
    border-left: 5px solid var(--green); 
}            

.post-card-gray{
    border-left: 5px solid var(--gray);
}

.post-button a,
.post-date{
    font-size: var(--font-size-post-date) !important;
    font-style: italic !important;
    color: var(--gray);
    font-weight: 400 !important;
}

.post-button a{
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    /* top | right | bottom | left */
    padding: 0 0 0 15px !important;
    min-height: auto !important;
    text-transform: none;
    margin:0;
}