/* ============================================================
   NeuroMSK Interventional Group — Main Stylesheet
   style.css
   ============================================================
   TABLE OF CONTENTS:
   1.  CSS Variables & Reset
   2.  Typography
   3.  Utility Classes
   4.  Navbar
   5.  Hero Section
   6.  Stats Bar
   7.  Quem Somos Section
   8.  Porquê Nós Section
   9.  Cursos Section
   10. Formadores Section (carrossel)
   11. Parceiros Section
   12. Feedback Section
   13. Contactos Section
   14. Footer
   15. Responsive — Tablet (max-width: 1024px)
   16. Responsive — Mobile (max-width: 768px)
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES & RESET
   ============================================================ */

:root {
  --color-navy:         #2d8f8f;
  --color-navy-dark:    #1f6b6b;
  --color-navy-light:   #3aadad;
  --color-primary:      #2d8f8f;
  --color-primary-dark: #1f6b6b;
  --color-primary-light:#3aadad;
  --color-accent:       #e6f5f5;
  --color-dark:         #111827;
  --color-text:         #333333;
  --color-text-muted:   #666666;
  --color-white:        #ffffff;
  --color-bg:           #f9fafb;
  --color-border:       #e0e0e0;

  --font-heading: 'Mada', sans-serif;
  --font-body:    'Mada', sans-serif;

  --spacing-xs:  0.5rem;
  --spacing-sm:  1rem;
  --spacing-md:  2rem;
  --spacing-lg:  3rem;
  --spacing-xl:  5rem;

  --max-width:     1200px;
  --navbar-height: 70px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }


/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem);  font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem);  font-weight: 700; }
h3 { font-size: clamp(1.0rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 0.95rem; line-height: 1.75; color: var(--color-text); }


/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }
.section      { padding: var(--spacing-xl) 0; }
.section--alt { background-color: var(--color-bg); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-md);
}
.section-title .highlight { color: var(--color-navy); }
.section-title .normal    { color: var(--color-dark); font-weight: 400; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn--primary { background-color: var(--color-white); color: var(--color-navy-dark); border: 2px solid var(--color-white); }
.btn--primary:hover { background-color: transparent; color: var(--color-white); }
.btn--outline { background-color: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn--outline:hover { background-color: var(--color-white); color: var(--color-navy-dark); }
.btn--teal { background-color: var(--color-primary); color: var(--color-white); border: 2px solid var(--color-primary); }
.btn--teal:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

.btn-icon {
  width: 22px; height: 22px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s;
}
.btn--primary:hover .btn-icon { background-color: var(--color-white); color: var(--color-primary); }

/* Social sidebar */
.social-sidebar {
  position: fixed; right: 1rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.6rem; z-index: 100;
}
.social-sidebar a {
  width: 36px; height: 36px;
  background-color: var(--color-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white); font-size: 0.85rem;
  transition: background-color 0.2s;
}
.social-sidebar a:hover { background-color: var(--color-navy-dark); }

/* Botão "voltar ao topo" */
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.2s;
  margin-top: var(--spacing-md);
}
.back-to-top:hover { background-color: var(--color-navy-dark); transform: translateY(-3px); }


/* ============================================================
   4. NAVBAR
   ============================================================ */

.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--navbar-height);
  background-color: var(--color-navy);
  border-bottom: 2px solid rgba(255,255,255,0.25);
  z-index: 1000; display: flex; align-items: center;
}
.navbar__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--spacing-md); width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-md);
}
.navbar__logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.navbar__logo img { height: 46px; width: auto; }
.navbar__logo-text {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
  color: var(--color-white); text-transform: uppercase; line-height: 1.2; max-width: 120px;
}

.navbar__nav {
  display: flex; align-items: center; gap: 0.1rem; flex: 1; justify-content: flex-end;
}
.navbar__link {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  color: var(--color-white); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.38rem 0.8rem; border-radius: var(--radius-sm);
  transition: color 0.18s, background-color 0.18s; white-space: nowrap;
}
.navbar__link:hover,
.navbar__link.active { background-color: var(--color-white); color: var(--color-navy); }

.navbar__lang { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.75rem; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 0.2rem 0.4rem; border-radius: var(--radius-sm);
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.6); background: none; border: none; cursor: pointer; transition: color 0.2s;
}
.lang-btn.active, .lang-btn:hover { color: var(--color-white); }
.lang-btn img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }

.navbar__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 0.5rem; background: none; border: none; z-index: 1100;
}
.navbar__toggle span {
  display: block; width: 26px; height: 2.5px;
  background-color: var(--color-white); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center;
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ============================================================
   5. HERO SECTION
   ============================================================ */

.hero {
  margin-top: var(--navbar-height); position: relative;
  min-height: 520px; background-color: var(--color-navy-dark);
  overflow: hidden; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(45,143,143,0.88) 0%,
    rgba(45,143,143,0.65) 40%,
    rgba(45,143,143,0.25) 70%,
    rgba(45,143,143,0.05) 100%);
  z-index: 1;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; opacity: 0.75;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md); width: 100%;
}
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.8);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem;
}
.hero__title {
  color: var(--color-white); font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800; text-transform: uppercase; line-height: 1.1;
  max-width: 580px; margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero__title span { color: rgba(255,255,255,0.9); }
.hero__cta { margin-top: var(--spacing-md); }


/* ============================================================
   6. STATS BAR
   ============================================================ */

.stats-bar { background-color: var(--color-primary); padding: 1.4rem 0; }
.stats-bar__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md);
  display: flex; align-items: center; justify-content: center;
  gap: var(--spacing-xl); flex-wrap: wrap;
}
.stats-bar__item { display: flex; align-items: center; gap: 0.85rem; color: var(--color-white); }
.stats-bar__icon {
  width: 50px; height: 50px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stats-bar__icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.stats-bar__icon--dgert { width: auto; height: 50px; }
.stats-bar__icon--dgert img { width: auto; max-height: 50px; filter: brightness(0) invert(1); }
.stats-bar__text { display: flex; flex-direction: column; }
.stats-bar__value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--color-white); }
.stats-bar__label { font-size: 0.78rem; color: rgba(255,255,255,0.85); line-height: 1.3; }
.stats-bar__divider { width: 1px; height: 44px; background-color: rgba(255,255,255,0.3); }


/* ============================================================
   7. QUEM SOMOS SECTION
   ============================================================ */

.quem-somos { padding: var(--spacing-xl) 0; }
.quem-somos__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md);
  display: grid; grid-template-columns: 1fr 340px; gap: var(--spacing-xl); align-items: center;
}
.quem-somos__text p         { margin-bottom: var(--spacing-sm); }
.quem-somos__text p strong  { font-weight: 700; color: var(--color-dark); }
.quem-somos__logo           { display: flex; justify-content: center; align-items: center; }
.quem-somos__logo img       { max-width: 300px; }


/* ============================================================
   8. PORQUÊ NÓS SECTION
   ============================================================ */

.porque-nos { padding: var(--spacing-xl) 0; background-color: var(--color-bg); }
.porque-nos__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md);
  display: grid; grid-template-columns: 380px 1fr; gap: var(--spacing-xl); align-items: center;
}
.porque-nos__image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.porque-nos__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.porque-nos__image::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 5px; background-color: var(--color-primary);
}
.porque-nos__content .section-title { margin-bottom: var(--spacing-md); }
.porque-nos__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md); margin-top: var(--spacing-md);
}
.stat-item__value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-item__label { font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.4; margin-top: 0.3rem; }
.stat-item--highlight .stat-item__value { color: var(--color-dark); }


/* ============================================================
   9. CURSOS SECTION
   ============================================================ */

.cursos { padding: var(--spacing-xl) 0; }
.cursos__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }

/* Grid: lateral | central (1.15x) | lateral */
.cursos__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  align-items: start;
}

/* Card base */
.curso-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.curso-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Imagem QUADRADA (1:1) */
.curso-card__image {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;       /* quadrado — imagem completa */
}
.curso-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* mostra imagem completa sem cortar */
  object-position: center;
  background-color: var(--color-dark);
  transition: transform 0.45s ease;
}
.curso-card:hover .curso-card__image img { transform: scale(1.07); }

/* Imagem do card central — ligeiramente maior em altura */
.curso-card__image--featured {
  aspect-ratio: 1 / 1.08;
}

/* Card FEATURED (centro) */
.curso-card--featured { background-color: var(--color-primary-dark); color: var(--color-white); }
.curso-card--featured .curso-card__body { background-color: var(--color-primary-dark); padding: 1.2rem var(--spacing-sm) var(--spacing-sm); }
.curso-card--featured .curso-card__title { color: var(--color-white); font-size: 1.05rem; }
.curso-card--featured .curso-card__date { color: rgba(255,255,255,0.75); }
.curso-card--featured .btn--outline {
  color: var(--color-white); border-color: var(--color-white);
  margin-top: var(--spacing-sm); font-size: 0.85rem; padding: 0.5rem 1.2rem;
}
.curso-card--featured .btn--outline:hover { background-color: var(--color-white); color: var(--color-primary-dark); }

.curso-card__body { padding: 0.9rem var(--spacing-sm); }
.curso-card__tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 0.4rem;
}
.curso-card__title {
  font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700;
  color: var(--color-dark); margin-bottom: 0.35rem; line-height: 1.35;
}
.curso-card__date { font-size: 0.78rem; color: var(--color-text-muted); }


/* ============================================================
   10. FORMADORES SECTION — Carrossel
   ============================================================ */

.formadores { padding: var(--spacing-xl) 0; }
.formadores__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }

.formadores__carousel-wrapper {
  position: relative; display: flex; align-items: center; gap: 0.5rem; margin-top: var(--spacing-md);
}
.formadores__carousel {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1;
}
.formadores__carousel::-webkit-scrollbar { display: none; }

.formador-card {
  position: relative;
  display: block;
  flex: 0 0 200px;
  width: 200px;
  height: 267px;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); scroll-snap-align: start;
  background-color: var(--color-primary-dark); cursor: pointer;
  text-decoration: none; color: inherit;
}
.formador-card__img-wrap { width: 100%; height: 100%; overflow: hidden; }
.formador-card__img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.4s ease;
}
.formador-card:hover .formador-card__img-wrap img { transform: scale(1.04); }

.formador-card__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(10,40,40,0.92) 0%, transparent 100%);
  color: var(--color-white);
}
.formador-card__name { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 700; color: var(--color-white); line-height: 1.2; }
.formador-card__role { font-size: 0.7rem; color: rgba(255,255,255,0.72); margin-top: 0.2rem; line-height: 1.3; }

.carousel-btn {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background-color: var(--color-primary); color: var(--color-white);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: background-color 0.2s, transform 0.2s; box-shadow: var(--shadow-sm); z-index: 2;
}
.carousel-btn:hover { background-color: var(--color-navy-dark); transform: scale(1.08); }
.carousel-btn:disabled { background-color: var(--color-border); color: var(--color-text-muted); cursor: not-allowed; transform: none; }


/* ============================================================
   11. PARCEIROS SECTION
   ============================================================ */

.parceiros { padding: var(--spacing-xl) 0; }
.parceiros__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }
.parceiros__group { margin-bottom: var(--spacing-lg); }
.parceiros__group:last-child { margin-bottom: 0; }
.parceiros__group-title {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-dark);
  margin-bottom: var(--spacing-sm); padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-accent);
}
.parceiros__group-title .highlight { color: var(--color-primary); }

.parceiros__logos {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 0.75rem 0;
}

/* Logo com imagem */
.parceiro-logo {
  display: flex; align-items: center; justify-content: center;
  height: 44px; opacity: 0.75; transition: opacity 0.2s, filter 0.2s;
  filter: grayscale(20%);
}
.parceiro-logo:hover { opacity: 1; filter: grayscale(0%); }
.parceiro-logo img   { max-height: 40px; max-width: 120px; width: auto; object-fit: contain; }

/* Logo como texto (fallback) */
.parceiro-logo--text {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700;
  color: var(--color-text-muted); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  white-space: nowrap; height: auto; opacity: 0.75;
}
.parceiro-logo--text:hover { color: var(--color-primary); border-color: var(--color-primary); opacity: 1; }


/* ============================================================
   12. FEEDBACK SECTION
   ============================================================ */

.feedback {
  position: relative; padding: var(--spacing-xl) 0;
  overflow: hidden; min-height: 380px;
  display: flex; align-items: center;
}

/* Imagem de fundo */
.feedback__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}

/* Overlay escuro sobre a imagem */
.feedback::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 40, 40, 0.55); z-index: 1;
}

.feedback__inner {
  position: relative; z-index: 2;
  max-width: 740px; margin: 0 auto; padding: 0 var(--spacing-md);
  text-align: center; width: 100%;
}

/* Caixa branca ao centro com estrelas + texto */
.feedback__card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  display: inline-block;
  max-width: 560px;
  width: 100%;
}

.feedback__avatar-img {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  margin: 0 auto var(--spacing-sm);
  border: 3px solid var(--color-accent);
  background-color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.feedback__avatar-img img { width: 100%; height: 100%; object-fit: cover; }

.feedback__stars {
  display: flex; justify-content: center; gap: 0.3rem;
  margin-bottom: 0.75rem; font-size: 1.2rem; color: #f5c518;
}

.feedback__quote {
  font-family: var(--font-heading); font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-dark); line-height: 1.4;
}

.feedback__author { margin-top: 0.75rem; font-size: 0.82rem; color: var(--color-text-muted); }

/* Título "FEEDBACK" fora da caixa branca */
.feedback__section-title {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; text-transform: uppercase; color: var(--color-white);
  margin-bottom: var(--spacing-md); letter-spacing: 0.02em;
}

/* Carousel de feedback */
.feedback__carousel {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.feedback__slide {
  display: none;
  animation: fadeSlide 0.4s ease;
  width: 100%;
}
.feedback__slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Setas e dots */
.feedback__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.feedback__nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.feedback__nav-btn:hover { background: rgba(255,255,255,0.4); }
.feedback__dots {
  display: flex;
  gap: 0.5rem;
}
.feedback__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.feedback__dot.active {
  background: white;
  transform: scale(1.2);
}


/* ============================================================
   13. CONTACTOS SECTION
   ============================================================ */

.contactos { padding: var(--spacing-xl) 0; background-color: var(--color-bg); }
.contactos__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }
.contactos__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl); margin-top: var(--spacing-md);
}
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item__icon {
  width: 48px; height: 48px; background-color: var(--color-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--color-white); font-size: 1.1rem;
}
.contact-item__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 0.2rem; }
.contact-item__value { font-size: 1rem; font-weight: 600; color: var(--color-dark); }
.contact-item__value a { color: var(--color-primary); transition: color 0.2s; }
.contact-item__value a:hover { color: var(--color-primary-dark); }


/* ============================================================
   14. FOOTER
   ============================================================ */

.footer { background-color: var(--color-dark); padding: var(--spacing-md) 0; }
.footer__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--spacing-sm);
}
.footer__left  { display: flex; align-items: center; gap: 1rem; }
.footer__right { display: flex; align-items: center; gap: 1.25rem; }

/* Logos pequenos no canto inferior direito */
.footer__brand-logos {
  display: flex; align-items: center; gap: 0.75rem;
}
.footer__brand-logos img {
  height: 32px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.75;
  transition: opacity 0.2s;
}
.footer__brand-logos img:hover { opacity: 1; }

.footer__social { display: flex; gap: 0.5rem; }
.footer__social a {
  width: 34px; height: 34px; background-color: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: background-color 0.2s, color 0.2s;
}
.footer__social a:hover { background-color: var(--color-primary); color: var(--color-white); }

.footer__copy {
  font-size: 0.75rem; color: rgba(255,255,255,0.4); text-align: center;
  flex-basis: 100%; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 0.25rem;
}


/* ============================================================
   15. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  :root { --spacing-xl: 3.5rem; }
  .quem-somos__inner    { grid-template-columns: 1fr; }
  .quem-somos__logo     { display: none; }
  .porque-nos__inner    { grid-template-columns: 1fr; }
  .porque-nos__image    { max-width: 480px; margin: 0 auto; }
  .cursos__grid         { grid-template-columns: 1fr 1.12fr 1fr; gap: 1rem; }
  .stats-bar__inner     { gap: var(--spacing-md); }
}


/* ============================================================
   16. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root { --spacing-xl: 2.5rem; --spacing-md: 1.25rem; }

  /* Navbar — hamburger fix */
  .navbar__toggle {
    display: flex;
    z-index: 1100;
    position: relative;
  }
  .navbar__nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background-color: var(--color-navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    /* Escondido por defeito */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
    z-index: 999;
    gap: 0;
  }
  .navbar__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .navbar__link {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
  }
  .navbar__lang { margin: 0.75rem 1.5rem; justify-content: flex-start; }

  /* Hero */
  .hero { min-height: 400px; }
  .hero__content { text-align: center; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.6rem); margin: 0 auto var(--spacing-md); }
  .hero__eyebrow { text-align: center; }
  .hero__cta { display: flex; justify-content: center; }

  /* Stats bar — centrado em mobile (ponto 2) */
  .stats-bar__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
  }
  .stats-bar__item { justify-content: center; }
  .stats-bar__divider { display: none; }

  /* Cursos */
  .cursos__grid { grid-template-columns: 1fr; }
  .cursos__video-player { border-radius: var(--radius-sm); }

  /* Formadores */
  .formador-card { flex: 0 0 160px; width: 160px; height: 213px; }

  /* Parceiros */
  .parceiros__logos { gap: 0.75rem; }

  /* Feedback */
  .feedback__card { padding: var(--spacing-sm); }
  .feedback__nav { gap: 0.75rem; }
  .feedback__nav-btn { width: 44px; height: 44px; }
  .feedback__quote { font-size: 0.9rem; }

  /* Porque nós — stats em 2 colunas em mobile */
  .porque-nos__stats { grid-template-columns: 1fr 1fr; }

  /* Contactos */
  .contactos__grid { grid-template-columns: 1fr; gap: var(--spacing-md); }

  /* Footer */
  .footer__inner  { flex-direction: column; align-items: flex-start; }
  .footer__right  { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Social sidebar — esconder em mobile */
  .social-sidebar { display: none; }
}


/* ============================================================
   VÍDEO YOUTUBE — thumbnail clicável
   ============================================================ */

.cursos__video {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background-color: #000;
}
.cursos__video-player {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background-color: #000;
  border-radius: var(--radius-md);
}

/* Curso card como <a> — sem sublinhado */
a.curso-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.curso-card .curso-card__title { color: var(--color-dark); }
a.curso-card.curso-card--featured .curso-card__title { color: var(--color-white); }

/* Botão "Saber mais" nos cards laterais */
.curso-card__saberMais {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap 0.2s, color 0.2s;
}
.curso-card__saberMais:hover { color: var(--color-navy-dark); gap: 0.65rem; }
