/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; scroll-behavior: smooth;}
html { scroll-padding-top: 64px; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif; color: #e9f1ff; background: #0b1a2e; overflow-x: hidden !important; }
body.modal-open { overflow: hidden !important; }

/* Container */
.container { width: min(1100px, 92vw); margin: 0 auto; }

a:-webkit-any-link {
    cursor: pointer;
    color: #e9f1ff;
}

/* Focus states for better accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #4e8cff;
  outline-offset: 2px;
}

/* Dynamic gradient that darkens as you scroll */
:root {
  --scroll: 0;              /* 0..1 (set in JS) */
  --base-h: 215;            /* blue hue */
  --base-s: 75%;
  --base-l: 46%;            /* lightness at top */
}
.bg-gradient {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    hsl(var(--base-h), var(--base-s), var(--base-l)) 0%,
    hsl(var(--base-h), var(--base-s), calc(var(--base-l) * (1 - var(--scroll)) + 3% * var(--scroll))) 100%);
  filter: saturate(1.08) contrast(1.02);
  transition: background 0.12s linear;
}

/* Header */
/* fallback para o espaço do header */
:root { --header-h: 64px; }

/* deixa a navbar sempre colada ao topo */
.site-header{
  position: fixed; /* em vez de sticky */
  top: 0; left: 0; width: 100%;
  z-index: 9999;
  backdrop-filter: blur(8px);
  background: color-mix(in sRGB, #0b1a2e 58%, transparent);
  border-bottom: 1px solid color-mix(in oklab, #7aa4ff 22%, transparent);
}

/* empurra o conteúdo para baixo para não ficar por trás do header */
body { padding-top: var(--header-h); }

.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0;
  min-height: 64px;
  gap: 0.5rem;
}
.brand { 
  font-weight: 700; 
  letter-spacing: 0.5px; 
  text-decoration: none; 
  color: #fff; 
  display: inline-block;
  flex-shrink: 1;
  min-width: 0;
}
.brand img {
  display: block;
  width: 156px;
  height: 36px;
  max-width: 100%;
}
.header-left {
  min-width: 44px;
  flex-shrink: 0;
}
.language-selector {
  min-width: 80px;
  flex-shrink: 0;
}
.site-header nav a { color: #d7e5ff; text-decoration: none; margin-left: 1.2rem; font-size: 0.95rem; opacity: 0.9; }
.site-header nav a:hover { opacity: 1; }
.site-header nav a.nav-active { font-weight: 700; opacity: 1; }

/* A11y helper */
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Matém versão Desktop */
@media (min-width: 901px) {
  .hamburger { display: none; }
  .site-header nav {
    display: flex !important; 
    align-items: center !important;
    position: static; 
    padding: 0; 
    background: transparent; 
    border: 0;
  }
  .site-header nav a { 
    display: inline-block; 
    margin-left: 1.2rem;
    line-height: 1.5;
  }
}

/* Mobile: mostra botão e menu dropdown */
@media (max-width: 900px) {
  .container {
    width: min(1100px, 96vw);
  }
  .site-header .nav {
    gap: clamp(0.25rem, 2vw, 0.75rem);
  }
  .brand {
    flex-shrink: 1;
    min-width: 120px;
  }
  .brand img {
    width: clamp(120px, 35vw, 156px);
    height: auto;
  }
  .language-selector {
    min-width: 60px;
  }
  .hamburger {
    display: inline-flex;
    width: 44px; height: 36px;
    border: 0; background: transparent; cursor: pointer; position: relative;
    align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  /* 2 riscas (antes e depois) */
  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px;
    height: 2px;
    background: #d7e5ff; /* ajusta se quiseres */
    border-radius: 1px;
    transition: transform .25s ease, top .25s ease, background .25s ease;
  }
  .hamburger::before { top: 12px; }  /* risca de cima */
  .hamburger::after  { top: 22px; }  /* risca de baixo */

  /* Estado aberto: as 2 riscas viram um X */
  .hamburger[aria-expanded="true"]::before {
    top: 17px; transform: rotate(45deg);
  }
  .hamburger[aria-expanded="true"]::after {
    top: 17px; transform: rotate(-45deg);
  }

  /* Dropdown do menu */
  .site-header { position: fixed; top: 0; }
  .site-header .nav { position: relative; }
  .site-header nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    background: color-mix(in sRGB, #0b1a2e 70%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in oklab, #7aa4ff 22%, transparent);
    padding: 0.6rem 1rem 1rem;
  }
  .site-header nav.open { display: block; }
  .site-header nav a {
    display: block; margin: 0.6rem 0; font-size: 1rem; opacity: 0.95;
  }
  
  /* Language selector mobile styles - on right side of hamburger */
  .language-selector { 
    position: absolute !important; 
    right: 55px !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    z-index: 9999 !important;
    margin: 0 !important;
  }
  .header-left { position: relative; }
  .language-toggle { padding: 0.5rem 0.6rem; border: none; background: transparent; }
  .language-toggle:hover { background: color-mix(in sRGB, #1a3a5c 50%, transparent); }
  .lang-flag { width: 24px; height: 18px; }
  .lang-label { display: none; }
  .language-menu { position: absolute; top: calc(100% + 0.4rem); right: 0; background: color-mix(in sRGB, #0b1a2e 85%, transparent); }
}

/* Language selector desktop styles - only flag, positioned after nav items */
@media (min-width: 901px) {
  .header-left { display: none; }
  .site-header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .language-selector { 
    position: relative !important; 
    display: inline-flex !important; 
    align-items: center !important;
    margin-left: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
  }
  .language-toggle { 
    border: 1px solid color-mix(in oklab, #8bb1ff 20%, transparent); 
    background: color-mix(in sRGB, #1a3a5c 50%, transparent); 
    padding: 0.5rem 0.6rem; 
    font-size: 0.9rem; 
    line-height: 1; 
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .language-toggle:hover { 
    background: color-mix(in sRGB, #1a3a5c 70%, transparent); 
    border-color: color-mix(in oklab, #8bb1ff 35%, transparent); 
  }
  .lang-flag { width: 24px; height: 18px; }
  .lang-label { display: none; }
  .language-menu { right: auto; left: 0; transform: none; }
}

/* Language selector (both desktop and mobile) */
.language-selector { position: relative; display: inline-block; }
.site-header nav .language-selector { margin: 0; }
.language-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #d7e5ff; font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s ease; touch-action: manipulation; user-select: none; border-radius: 8px;
}
.language-toggle:hover { color: #fff; }
.language-toggle .lang-flag { object-fit: cover; border-radius: 2px; }
.language-menu {
  position: absolute; top: 100%; right: 0; margin-top: 0.4rem;
  background: color-mix(in sRGB, #0b1a2e 95%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in oklab, #8bb1ff 25%, transparent);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 160px; z-index: 9998;
}
.language-menu[hidden] { display: none; }
.language-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem;
  color: #d7e5ff; text-decoration: none; font-size: 0.95rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid color-mix(in oklab, #8bb1ff 10%, transparent);
}
.language-option:last-child { border-bottom: none; }
.language-option:hover, .language-option:focus {
  background: color-mix(in sRGB, #1a3a5c 60%, transparent);
  color: #fff;
}
.language-option img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }

/* Tarteaucitron Cookie Banner - Buttons are repositioned via JavaScript */
/* Additional styling for consistent appearance */
#tarteaucitronClosePanel,
#tarteaucitronDenyAll,
.tarteaucitronSaveButton {
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

/* + contraste quando a página começa a rolar (opcional) */
html.is-scrolled .site-header{
  background:
    linear-gradient(
      to bottom,
      color-mix(in oklab, var(--glass-tint) 72%, transparent) 0%,
      color-mix(in oklab, var(--glass-tint) 52%, transparent) 100%
    );
  border-bottom-color: color-mix(in oklab, #ffffff 24%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,0.26);
}

/* Hero */
.hero { position: relative; min-height: 72vh; }
.hero-video-wrap { position: absolute; inset: 0; }
.hero-video-wrap iframe, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hero-overlay {
  position: relative; z-index: 1;
  min-height: 72vh; display: grid; place-items: center;
  padding: clamp(2rem, 5vw, 6rem) 0; text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.20) 55%, rgba(0,0,0,0));
}
.hero-overlay h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; max-width: 1000px; margin: 0 auto 1rem; }
.hero-overlay .btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(145deg, #5d9cff, #4e8cff);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 8px 24px rgba(78, 140, 255, 0.35), 0 2px 6px rgba(0,0,0,0.1);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(145deg, #6a9dff, #5d9cff);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(78, 140, 255, 0.45), 0 4px 8px rgba(0,0,0,0.15);
}
.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(78, 140, 255, 0.35), 0 2px 6px rgba(0,0,0,0.1);
}

/* Efeito de brilho no hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 150%;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.4s ease;
    transform-origin: center;
    opacity: 0;
}

.btn-primary:hover::before {
    width: 120%;
    opacity: 1;
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Hero base (já tens algo semelhante; mantém o object-fit) */
.hero { position: relative; min-height: 72vh; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.hero .hero-fallback { position: absolute; inset: 0; background: url('/img/Fotografia_e_Vídeo_com_Drone.webp') center/cover no-repeat; }

/* Mostrar vídeo desktop por padrão; esconder mobile */
.hero video.hero-desktop { display: block; }
.hero video.hero-mobile  { display: none; }

/* Em mobile, usar o vídeo mobile e esconder o desktop */
@media (max-width: 640px) {
  .hero video.hero-desktop { display: none; }
  .hero video.hero-mobile  { display: block; }
}

/* Sections */
.section { padding: clamp(2rem, 5vw, 4rem) 0; }
.section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.card {
  grid-column: span 4;
  background: color-mix(in oklab, #0e223d 70%, #08101b);
  border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  contain: layout; /* Improve rendering performance */
  height: 100%;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.32); }
.card picture { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; content-visibility: auto; pointer-events: none; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.card-body { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; content-visibility: auto; pointer-events: none; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card-body p { color: #c9dcff; font-size: .95rem; }

/* Links grid */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; margin-top: 0.6rem; }
.link-card {
  display: block; padding: 1rem; border-radius: 14px; text-decoration: none; color: #e9f1ff;
  background: color-mix(in oklab, #0d1f38 75%, #08101b);
  border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
}
.link-card:hover { filter: brightness(1.05); }

/* About */
.lead { color: #d1e1ff; max-width: 70ch; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: .8rem; }
.about-item {
  padding: 1rem; border-radius: 14px;
  background: color-mix(in oklab, #0f2139 70%, #08101b);
  border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
}

/*Parceiros*/

@media (max-width: 768px) {
  #parceiros h2 {
    font-size: 1.5rem;   /* menor tamanho para caber bem */
    margin-left: 0rem;   /* menos espaço na lateral */
     
  }
}

/* Map full width */
#contactos h2{
  font-size: 2rem;
  margin-left: 0;
}


@media (max-width: 768px) {
  #contactos h2 {
    font-size: 1.5rem;   /* menor tamanho para caber bem */
    margin-left: 0;   /* menos espaço na lateral */
    margin-bottom:0 ;
    padding: 0;

  }
}

.map-section { position: relative; }
.map-section iframe { width: 100%; height: 60vh; border: 0; display: block; }
#map { width: 100%; height: 450px; display: block; }
@media (max-width: 768px) { #map { height: 320px; } }
@media (max-width: 520px) { #map { height: 260px; } }
.contact-bar {
  background: rgba(0,0,0,.35);
  border-top: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
  padding: .8rem 0;
}
.contact-info { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.contact-info a { color: #d7e5ff; text-decoration: none; }
.contact-info a:hover { text-decoration: none; }

/* Footer */
.site-footer { padding: 1.4rem 0; border-top: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent); background: rgba(0,0,0,.25); }
.site-footer p { color: #c9dcff; text-align: center; }

/* A11y */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* --- Portfolio grid (shared) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.port-card { grid-column: span 4; text-decoration: none; color: inherit; }
.port-card figure { background: color-mix(in oklab, #0e223d 70%, #08101b); border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent); border-radius: 16px; overflow: hidden; }
.port-card img { width: 100%; height: 220px; object-fit: cover; display: block; pointer-events: none; }
.port-card figcaption { padding: .8rem 1rem; color: #cfe0ff; }

/* Secondary page items */
.p-item { grid-column: span 4; opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
.p-item .p-thumb { border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent); background: color-mix(in oklab, #0e223d 70%, #08101b); overflow: visible; }
.p-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 1s ease-in-out;}
.p-item h3 { font-size: 1rem; margin-top: .5rem; color: #dbe8ff; }
.more { margin-top: 1rem; }

.p-item ul, h3, p{
  
  padding: 1rem;
}

.p-item ul{

  padding: 2rem;
}

.p-item .p-thumb:hover img {
  transform: scale(1.2); /* aumenta 20% ao passar o rato */
}

.p-item.from-left {
  transform: translateX(-100px); /* entra da esquerda */
}

.p-item.from-right {
  transform: translateX(100px);  /* entra da direita */
}

.p-item.show {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Portfolio alternado (imagem ↔ texto) ===== */
.p-item.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
  border-radius: 16px;
  padding: 14px;
  background: color-mix(in oklab, #0e223d 70%, #08101b);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  margin-bottom: 18px;
}
.p-item.split .p-thumb { background:#07101c; border-radius: 12px; overflow: hidden;}
.p-item.split .p-thumb img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block;}
.p-item.split .p-body { display: grid; gap: 8px; color: #cfe0ff; }
.p-item.split .p-body h3 { margin: 0; color: #e9f1ff; }
.p-item.split .p-body p { margin: 0; }

/* Alternância automática */
.p-item.split:nth-child(even){ grid-template-columns: 1fr 1.25fr; }
.p-item.split:nth-child(even) .p-thumb { order: 2; }
.p-item.split:nth-child(even) .p-body { order: 1; }

.visit{
  background-color: #e3e7ea ;
  color: #0c1e34 !important;
  text-decoration: none;
  padding: 0.75rem;
  margin-left: 12rem;
  display: inline-block; 
  padding: 0.75rem; 
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .p-item.split {
    grid-template-columns: 1fr; /* em mobile: só 1 coluna */
  }
  .p-item.split .p-thumb {
    order: 2; /* imagem em baixo */
  }
  .p-item.split .p-body {
    order: 1; /* texto em cima */
  }
}

/* Visitas virtuais*/
.virtual-item.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
  border-radius: 16px;
  padding: 14px;
  background-color: #e3e7ea;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  margin-bottom: 18px;
}

.virtual-item.split .virtual-thumb {
  background:#07101c;
  border-radius: 12px;
  overflow: hidden;
}

.virtual-item.split .virtual-thumb img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 1s ease-in-out;
}

.virtual-item.split .virtual-body {
  display: grid;
  gap: 8px;
  color: black
}

.virtual-item.split .virtual-body h3 {
  margin: 0;
  color: black
}

.virtual-item.split .virtual-body p {
  margin: 0;
  padding: 2rem;
}

/* Alternância automática para as novas classes */
.virtual-item.split:nth-child(even){
  grid-template-columns: 1fr 1.25fr;
}

.virtual-item.split:nth-child(even) .virtual-thumb {
  order: 2;
}

.virtual-item.split:nth-child(even) .virtual-body {
  order: 1;
}

.gal{
  background: color-mix(in oklab, #0f2139 82%, #08101b);
  color:#e3e7ea ;
  text-decoration: none;
  padding: 0.75rem;
  margin: 2rem 0 0 12rem;
  display: inline-block;  
  border-radius: 10px;
}

.virtual-item .virtual-thumb:hover img {
  transform: scale(1.2); /* Aumenta a imagem em 20% no hover. */
}

.virtual-item {
  transition: opacity 1s ease-in, transform 1s ease-in;
}

/* Estado inicial dos itens que vêm da esquerda. */
.virtual-item.from-left {
  opacity: 0;
  transform: translateX(-100px);
}

/* Estado inicial dos itens que vêm da direita. */
.virtual-item.from-right {
  opacity: 0;
  transform: translateX(100px);
}

/* Estado final da animação. Aplica-se quando a classe 'show' é adicionada. */
.virtual-item.show {
  opacity: 1;
  transform: translateX(0);
}

.footer-virtual{

 margin: 0;
}

/* Mobile: empilhar conteúdo, imagem em baixo e botão centrado */
@media (max-width: 768px) {
  .virtual-item.split {
    /* passar de grid para coluna no mobile */
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-template-columns: none; /* neutraliza o grid do desktop */
    padding: 12px;
  }

  /* Texto primeiro */
  .virtual-item.split .virtual-body {
    order: 1 !important; /* força ordem igual em todos os cards */
    color: black;
  }

  /* Imagem depois (no fundo do card) */
  .virtual-item.split .virtual-thumb {
    order: 2 !important;
  }

  /* Ajuste opcional de altura da imagem no mobile */
  .virtual-item.split .virtual-thumb img {
    width: 100%;
    height: auto;
    max-height: 240px;    /* reduz um pouco no mobile; remove se não quiseres limite */
    object-fit: cover;
  }

  /* Neutraliza a alternância dos itens pares no mobile */
  .virtual-item.split:nth-child(even) {
    grid-template-columns: 1fr;
  }

  /* Botão centrado */
  .gal{
    
     margin:0 0 2rem 6rem;
  
  }

  /* (Opcional) reduzir o padding do parágrafo no mobile */
  .virtual-item.split .virtual-body p {
    padding: 1rem;
}
}

/* Responsivo */
@media (max-width: 820px){
  .p-item.split,
  .p-item.split:nth-child(even){ grid-template-columns: 1fr; }
  .p-item.split .p-thumb img { max-height: 240px; }
}

/* Botão voltar */
.back-bar { margin: 8px 0 16px; }
.btn-back {
  display: inline-block; padding: 8px 12px; border-radius: 10px;
   text-decoration: none;
  background: color-mix(in oklab, #0f2139 82%, #08101b);
}
.btn-back:hover { filter: brightness(1.08); }

/* --- Sobre Nós expansion --- */
.sobre-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; }
.sobre-text .lead { margin-bottom: .6rem; }

.carousel { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent); background: rgba(0,0,0,.2); }
.carousel .track { display: flex; will-change: transform; transition: transform .5s ease; }
.carousel .slide { min-width: 50%; display: grid; place-items: center; padding: 1.2rem; }
.carousel .slide img { max-height: 72px; width: auto; height: auto; filter: brightness(1.15); }
.carousel .ctrl { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.35); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.carousel .ctrl.prev { left: 8px; }
.carousel .ctrl.next { right: 8px; }

.facts { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1rem; }
.fact-card { display: grid; grid-template-columns: 44px 1fr; gap: .6rem; padding: .8rem; border-radius: 14px; background: color-mix(in oklab, #0f2139 70%, #08101b); border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent); }
.fact-icon { font-size: 1.4rem; display: grid; place-items: center; }
.fact-body h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.fact-body p { color: #c9dcff; font-size: .95rem; }

/* Responsive */
@media (max-width: 1024px) {
  .card, .port-card, .p-item { grid-column: span 6; }
  .hero { min-height: 58vh; }
  .hero-overlay { min-height: 58vh; }
  .sobre-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .card, .port-card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .site-header .nav { padding: 0.6rem 0; }
  .site-header nav a { margin-left: 0.8rem; font-size: 0.95rem; }
  .card, .port-card, .p-item { grid-column: span 12; }
  .hero, .hero-overlay { min-height: 56vh; }
  .carousel .slide { min-width: 80%; }
}


/* --- Sobre (two-column with image) --- */
.sobre-grid.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; align-items: stretch; width: 100%; max-width: 100%; box-sizing: border-box; }
.sobre-media { display: grid; }
.sobre-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent); }

/* Partners strip (keep /img links, make carousel wider) */
.partners-strip { margin-top: 1.2rem; }
.partners-strip .carousel .slide { min-width: 33.33%; } /* wider than default on desktop */
@media (max-width: 640px) { .partners-strip .carousel .slide { min-width: 75%; } }

/* Accordion */
.accordion {
  margin: 2.5rem auto 0;
  width: min(1100px, 92vw);
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#acc-qualidade {
  width: 100%;
  max-width: min(1100px, 92vw);
  margin: 2.5rem auto 0;
}

details.acc {
  width: 100%;
  border-radius: 14px;
  background: color-mix(in oklab, #0f2139 70%, #08101b);
  border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
  padding: .2rem .6rem;
  box-sizing: border-box;
}

details.acc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  padding: .8rem 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

details.acc summary span {
  flex: 1 1 auto;
  min-width: 0;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "▾"; transform: rotate(0deg);
  transition: transform .2s ease;
}
details.acc[open] summary::after { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 1rem 1rem; color: #cfe0ff; }

/* Processo (stepper) */
.processo .steps { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: .6rem; }
.processo .step { grid-column: span 3; display: grid; grid-template-columns: 52px 1fr; gap: .6rem; padding: 1rem; border-radius: 16px; background: color-mix(in oklab, #0f2139 70%, #08101b); border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent); }
.step-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #4e8cff; color: #08101b; font-weight: 800; }
@media (max-width: 1024px) { .processo .step { grid-column: span 6; } }
@media (max-width: 640px) { .processo .step { grid-column: span 12; } }

/* Footer (rich) */
.footer-wrap { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; }
.footer-social a { margin-left: .8rem; color: #d7e5ff; text-decoration: none; }
.footer-social a:hover { text-decoration: none; }
.footer-policies .linklike { background: transparent; color: #d7e5ff; border: 0; text-decoration: none; cursor: pointer; margin-left: .8rem; }

/* Modals */
.modal {
  position: fixed; 
  inset: 0; 
  display: none;   
  background: color-mix(in sRGB, #0b1a2e 85%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center; 
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-dialog { 
  position: relative; 
  width: min(1100px, 92vw); 
  background: linear-gradient(135deg, #0e223d 0%, #08101b 100%); 
  border: 1px solid color-mix(in oklab, #8bb1ff 25%, transparent); 
  border-radius: 16px; 
  padding: 2.75rem 2rem 2rem; 
  color: #e9f1ff; 
  margin: 2rem auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.modal-dialog::-webkit-scrollbar {
  width: 8px;
}
.modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}
.modal-dialog::-webkit-scrollbar-thumb {
  background: #4e8cff;
  border-radius: 4px;
}
.modal-dialog::-webkit-scrollbar-thumb:hover {
  background: #6ba3ff;
}
.modal-dialog h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
  color: #fff;
  padding-right: 3rem;
}
.modal-dialog h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #8bb1ff;
}
.modal-dialog p {
  margin-bottom: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}
.modal-dialog ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.modal-dialog ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.modal-dialog .center {
  text-align: center;
  margin-top: 2rem;
}
.modal-close { 
  position: absolute; 
  right: 1.5rem; 
  top: 1.5rem; 
  background: color-mix(in oklab, #0f2139 82%, #08101b);
  color: #fff; 
  border: 0; 
  font-size: 1.6rem; 
  cursor: pointer; 
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.modal-close:hover {
  filter: brightness(1.08);
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.modal-close-bottom {
  background: color-mix(in oklab, #0f2139 82%, #08101b);
  color: #fff;
  border: 1px solid color-mix(in oklab, #8bb1ff 25%, transparent);
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-bottom:hover {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .modal-dialog {
    padding-top: 3.25rem;
  }
  .modal-close {
    top: 0.9rem;
    right: 0.9rem;
  }
  .modal-dialog h3 {
    padding-right: 2.5rem;
  }
}

/* Modal size variations */
.modal-dialog.modal-lg {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Centered contact info with icons */
.contact-info { justify-content: center; text-align: center; }
.contact-info .ci { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; }
.contact-info .ci-ico { width: 18px; height: 18px; opacity: .9; }
.phone-btn { margin: .2rem .6rem; }

/* Center "Ver Portefólio completo" */
.more.center { text-align: center; }

/* Button variants */
.btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem .9rem; border-radius: 999px; border: 1px solid #4e8cff;
  color: #e9f1ff; text-decoration: none; background: transparent;

}
.btn-outline:hover { background: rgba(78,140,255,.12); }

.btn-outline2{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.62rem 1.25rem; border-radius:999px; text-decoration:none; font-weight:600;
  position:relative; overflow:visible; cursor:pointer;

  /* base mais escura */
  --btn-h: var(--base-h, 215);
  --btn-s: var(--base-s, 70%);
  --btn-l: var(--base-l, 7%);      /* ↓ antes ~10% */
  --btn-scroll: var(--scroll, 0);

  /* luz do gradiente (reduzida) */
  --btn-topL:    calc(var(--btn-l) + 18%);  /* ↓ era +28% */
  --btn-bottomL: calc((var(--btn-l) + 14%) * (1 - var(--btn-scroll)) + 6% * var(--btn-scroll));

  color:#e3ecff;
  border:1px solid color-mix(in oklab, hsl(var(--btn-h) var(--btn-s) 46%) 55%, transparent);



  box-shadow:
    0 10px 24px rgba(0,0,0,.35),          /* ↑ sombra externa p/ profundidade */
    inset 0 1px 0 rgba(255,255,255,.10);  /* ↓ brilho interno */
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, box-shadow .18s ease;
}


/* Fallback sem backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .btn-outline2{
    background: linear-gradient(135deg,
      hsl(var(--btn-h) var(--btn-s) var(--btn-topL)) 0%,
      hsl(var(--btn-h) var(--btn-s) var(--btn-bottomL)) 100%
    );
    box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10);
  }
}

.btn-outline2:hover { background: rgba(78,140,255,.12); }

/* Floating Action Button */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
.fab-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  border: 0; cursor: pointer; background: #4e8cff; color: #08101b;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.fab-toggle svg { width: 26px; height: 26px; }
.fab-actions {
  display: grid; gap: 10px; position: absolute; bottom: 68px; right: 0;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease;
}
.fab.open .fab-actions { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-action {
  width: 48px; height: 48px; border-radius: 50%; background: #0f2139;
  border: 1px solid color-mix(in oklab, #8bb1ff 15%, transparent);
  display: grid; place-items: center; color: #d7e5ff; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.fab-action:hover { filter: brightness(1.15); }
.fab-action svg { width: 22px; height: 22px; }



/* Widen the visible area of the partners slider (show more logos comfortably) */
.partners-strip .carousel .slide { min-width: 20%; }
@media (max-width: 900px){ .partners-strip .carousel .slide { min-width: 33.33%; } }
@media (max-width: 640px){ .partners-strip .carousel .slide { min-width: 66.66%; } }


/* Popup de contato */
/* ====== Base ====== */
.fab-menu{position:fixed;right:8px;bottom:8px;z-index:9999;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.fab-toggle{display:none}

/* Cookie button - same style as FAB */
.cookie-fab{
  position:relative;
  width:56px;height:56px;border-radius:999px;display:grid;place-items:center;
  color:#fff;cursor:pointer;user-select:none;
  background:
    radial-gradient(120% 160% at 20% 10%, rgba(255,255,255,.18), rgba(255,255,255,.06) 40%, rgba(255,255,255,0) 60%),
    rgba(11,26,46,.42);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.cookie-fab::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;mix-blend-mode:screen;opacity:.9;
  background:
    radial-gradient(120px 60px at 18% 14%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%),
    radial-gradient(80px 40px at 70% 80%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%);
}
.cookie-fab span{
  font-size:22px;line-height:1
}
.cookie-fab:hover{transform:translateY(-2px)}
.cookie-fab:active{transform:translateY(0);box-shadow:0 12px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10)}

/* Cookie button positioning on top */
.fab-menu .cookie-fab{position:fixed;right:8px;bottom:8px}

/* ====== Botão principal (liquid glass) ====== */
.fab{
  position:fixed;
  bottom:72px;
  right:8px;
  width:56px;height:56px;border-radius:999px;display:grid;place-items:center;
  color:#fff;cursor:pointer;user-select:none;
  background:
    radial-gradient(120% 160% at 20% 10%, rgba(255,255,255,.18), rgba(255,255,255,.06) 40%, rgba(255,255,255,0) 60%),
    rgba(11,26,46,.42);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.fab::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;mix-blend-mode:screen;opacity:.9;
  background:
    radial-gradient(120px 60px at 18% 14%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%),
    radial-gradient(80px 40px at 70% 80%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%);
}
.fab span{
  font-size:22px;line-height:1
}
.fab:hover{transform:translateY(-2px)}
.fab:active{transform:translateY(0);box-shadow:0 12px 26px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10)}
.fab-toggle:checked ~ .fab{
  background:
    radial-gradient(120% 160% at 20% 10%, rgba(255,255,255,.20), rgba(255,255,255,.07) 40%, rgba(255,255,255,0) 60%),
    rgba(11,26,46,.54);
  border-color:rgba(255,255,255,.22);
  box-shadow:0 22px 48px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
}



/* ====== Backdrop ====== */
.backdrop{position:fixed;inset:0;background:rgba(9,17,31,0);pointer-events:none;transition:background .22s ease, backdrop-filter .22s ease;backdrop-filter:none;-webkit-backdrop-filter:none}
.fab-toggle:checked ~ .backdrop{pointer-events:auto;background:rgba(9,17,31,.28);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}

/* ====== Pop-up que abre para CIMA ====== */
.fab-items{
  position:fixed;right:8px;bottom:136px;
  display:grid;gap:14px;
  padding-right:0;
  pointer-events:none;
}
.fab-item{
  display:inline-flex;align-items:center;gap:12px; /* + espaço ícone/texto */
  padding:12px 20px;                               /* + espaço interno */
  min-height:44px;min-width:200px;                 /* largura uniforme e confortável */
  border-radius:999px;text-decoration:none;font-weight:600;color:#eaf2ff;
  justify-self:end;

  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), rgba(11,26,46,.40);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 14px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter:blur(12px) saturate(135%); -webkit-backdrop-filter:blur(12px) saturate(135%);
  transform:translateY(10px); opacity:0;
  transition:opacity .22s ease, transform .22s ease, filter .2s ease;
}
.fab-item:hover{filter:brightness(1.06);transform:translateY(6px)}
.fab-item.phone    { box-shadow:0 14px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(250,250,250,.22) inset, inset 0 1px 0 rgba(255,255,255,.10) }
.fab-item.whatsapp { box-shadow:0 14px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(34,197,94,.45) inset,  inset 0 1px 0 rgba(255,255,255,.10) }
.fab-item.email    { box-shadow:0 14px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(14,165,233,.45) inset, inset 0 1px 0 rgba(255,255,255,.10) }

.fab-toggle:checked ~ .fab-items{pointer-events:auto}
.fab-toggle:checked ~ .fab-items .fab-item{opacity:1;transform:translateY(0)}
.fab-toggle:checked ~ .fab-items .fab-item:nth-child(1){transition-delay:30ms}
.fab-toggle:checked ~ .fab-items .fab-item:nth-child(2){transition-delay:60ms}
.fab-toggle:checked ~ .fab-items .fab-item:nth-child(3){transition-delay:90ms}

/* ====== Acessibilidade / Responsive ====== */
@media (prefers-reduced-motion: reduce){.fab,.fab-item,.backdrop{transition:none !important}}
@media (max-width:480px){
  .fab{bottom:66px;right:5px}
  .fab-menu{right:5px;bottom:5px}
  .fab-items{right:5px;bottom:130px}
  .fab-menu .cookie-fab{right:5px;bottom:5px}
}

/* ====== Fallback (sem backdrop-filter) ====== */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .fab,.fab-item{background:rgba(17,24,39,.82);border-color:rgba(255,255,255,.12);box-shadow:0 16px 36px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08)}
}



/* Hero: hide YouTube on mobile, show local MP4 */
.hero video.hero-mobile { display: none; }
@media (max-width: 640px) {
  .hero .hero-video-wrap { display: none; }
  .hero video.hero-mobile { display: block; }
}

/* Portfolio cards hover */
.port-card figure { transition: transform .2s ease, box-shadow .2s ease; }
.port-card:hover figure { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.32); }

/* Contact row tweaks */
.contact-info { justify-content: center; text-align: center; }
.ci-ico { margin-right: .3rem; }
.more.center { text-align: center; }


/* Partners carousel: infinite marquee */
.carousel.partners[data-infinite="true"] .track {
  animation: partners-marquee 24s linear infinite;
}
/* Faster parceiros carousel on mobile */
@media (max-width: 640px) {
  .carousel.partners[data-infinite="true"] .track {
    animation-duration: 12s; /* half the time = double speed */
  }
}
@keyframes partners-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.carousel.partners[data-infinite="true"] .ctrl { display: none; }

/* Hero fallback + desktop/mobile switching */
.hero video.hero-desktop { display: block; }
.hero .hero-fallback { position: absolute; inset: 0; background: url('/img/Fotografia_e_Vídeo_com_Drone.webp') center/cover no-repeat; }

@media (max-width: 640px) {
  .hero video.hero-desktop { display: none; }
  .hero video.hero-mobile { display: block; }
}

/* Mobile-only Sobre Nós image */
.sobre-mobile-img {
  display: none;
  margin: 1rem 0;
}
.sobre-mobile-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Make text and image full-width on mobile */
@media (max-width: 640px) {
  /* Expand container width */
  #sobre.section.container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Make the two-col layout stack and fill width */
  .sobre-grid.two-col {
    grid-template-columns: 1fr !important;
  }

  .sobre-text {
    width: 100%;
  }

  .sobre-mobile-img {
    display: block;
  }

  .sobre-media {
    display: none; /* hide desktop image */
  }
}
/* Ensure header logo is visible and sized */
.brand img {
  display: block;
  height: 40px;   /* adjust if you want bigger/smaller */
  width: auto;
}

/* Tighten spacing between logos (all viewports) */
#sobre .partners-strip .carousel .track {
  gap: 0;                 /* remove any flex gap */
}
#sobre .partners-strip .carousel .slide {
  padding: 0.25rem 0.5rem;   /* was ~1.2rem; bring logos closer */
}
#sobre .partners-strip .carousel .slide img {
  display: block;
  margin: 0;                 /* ensure no default margins */
  max-height: 72px;          /* keep consistent height */
}

/* Faster marquee + even tighter spacing on mobile */
@media (max-width: 640px) {
  /* make it scroll faster on phones */
  .carousel.partners[data-infinite="true"] .track {
    animation-duration: 8s;  /* was 24s; mobile previously 12s — now 3× faster than desktop */
  }
  /* pack logos tighter on phones */
  #sobre .partners-strip .carousel .slide {
    padding: 0.2rem 0.35rem;
  }
}

/* Remove forced wide min-width for parceiros carousel logos */
#sobre .partners-strip .carousel .slide {
  min-width: auto !important;  /* override the default 33%, 20%, etc. */
  flex: 0 0 auto;               /* allow natural image width */
  padding: 0 0.25rem;           /* small horizontal gap */
}

#sobre .partners-strip .carousel .slide img {
  display: block;
  margin: 0;
  max-height: 72px;
  width: auto;
}

/* Mobile-specific: faster animation + packed logos */
@media (max-width: 640px) {
  .carousel.partners[data-infinite="true"] .track {
    animation-duration: 8s; /* much faster on phones */
  }
  #sobre .partners-strip .carousel .slide {
    padding: 0 0.15rem;
  }
  
}

/* Visitas Virtuais */

/* Footer layout polish */
.footer-wrap {
  display: grid;
  grid-template-columns: 1fr auto auto; /* already present, keep */
  align-items: center;                   /* ensure vertical centering */
  gap: 0.8rem 1.2rem;                    /* add comfortable spacing */
}

.footer-left p { margin: 0; }

.footer-social,
.footer-policies {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Buttons look consistent */
.footer-policies .linklike {
  padding: .35rem .6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(138,178,255,.22);
}

/* Mobile: stack and center everything */
@media (max-width: 640px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }
  .footer-social,
  .footer-policies {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Modal: perfect center + subtle entrance and spacing on small screens */
.modal {
  display: none; /* kept from your file */
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[aria-hidden="false"] .modal-dialog {
  animation: modal-pop .16s ease-out;
}

@keyframes modal-pop {
  from { transform: scale(.98); opacity: .8; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Ensure dialog fits small screens nicely */
.modal-dialog {
  max-width: 720px;
  width: 100%;
  margin: 0 1rem;           /* side breathing room on phones */
  border-radius: 16px;      /* keep your style */
}



/* Faster + tighter on mobile */
@media (max-width: 640px) {
  #parceiros .carousel .slide {
    padding: 0 0.15rem;
  }
  #parceiros .carousel[data-infinite="true"] .track {
    animation-duration: 8s;
  }
}

/* Narrower process section */
.processo-container {
  max-width: 900px; /* adjust width as needed */
  margin: 0 auto;
  padding: 0 1rem;
}

/* Ensure steps still look good */
.processo-container .steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.processo-container .step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.processo-container .step-badge {
  flex-shrink: 0;
  background: #0073ff; /* adjust if needed */
  color: white;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.processo-container .step-body {
  margin-left: 1rem;
}

@media (max-width: 640px) {
  .processo-container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Match 'Simplicidade no processo' with accordion width */
.processo-container {
  max-width: 1100px; /* same as accordion-container */
  margin: 0 auto;
  padding: 0 1rem;
}

.processo-container .steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.processo-container .step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.processo-container .step-badge {
  flex-shrink: 0;
  background: #0073ff;
  color: white;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.processo-container .step-body {
  margin-left: 1rem;
}

@media (max-width: 640px) {
  .processo-container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* Shared section width for Accordion, Parceiros, and Processo */
.section-narrow {
  width: min(1100px, 92vw); /* match site container */
  margin: 0 auto;
  padding: 0;
}

/* Optional: make sure content inside matches alignment */
.section-narrow .carousel .track {
  display: flex;
  gap: 0;
}

.section-narrow .carousel .slide {
  flex: 0 0 auto;
  padding: 0 0.25rem;
}

.section-narrow .carousel .slide img {
  display: block;
  height: 72px;
  width: auto;
}

/* ===== Mobile (até 768px) ===== */
@media (max-width: 768px) {
  .section-narrow {
    max-width: 100%;
    padding: 0 0.75rem;    /* menos margem lateral */
  }

  .section-narrow .carousel .slide {
    padding: 0 0.2rem;     /* cartões mais juntinhos */
  }

  .section-narrow .carousel .slide img {
    height: 56px;          /* logos um pouco mais pequenos */
  }
}

/* ===== Small mobile (até 480px) ===== */
@media (max-width: 480px) {
  .section-narrow {
    padding: 0 0.5rem;     /* ainda menos margem lateral */
  }

  .section-narrow .carousel .slide img {
    height: 48px;          /* logos mais compactos em ecrãs pequenos */
  }
}


/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 120;
  display: none;
  padding: .9rem 1rem;
  background: color-mix(in oklab, #0f2139 82%, #08101b);
  border-top: 1px solid color-mix(in oklab, #8bb1ff 18%, transparent);
  color: #e9f1ff;
}
.cookie-banner[data-show="true"] { display: block; }
.cookie-banner .cb-inner {
  max-width: 1100px; margin: 0 auto; display: grid; gap: .6rem;
}
.cookie-banner p { margin: 0; font-size: .95rem; color: #cfe0ff; }
.cookie-banner .cb-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner .btn-ghost, .cookie-banner .btn-solid {
  border-radius: 999px; padding: .55rem .9rem; font-weight: 700;
  border: 1px solid #4e8cff; background: transparent; color: #e9f1ff;
}
.cookie-banner .btn-solid { background: #4e8cff; color: #08101b; border-color: #4e8cff; }
.cookie-banner .linklike { color: #d7e5ff; text-decoration: none; background: transparent; border: 0; cursor: pointer; }

:root{
      --gap: 28px;              /* espaço entre cartões */
      --strip-h: 84px;          /* ALTURA da barra (controla a "achatada") */
      --card-w: 180px;          /* largura de cada cartão */
      --logo-scale: 0.80;       /* tamanho relativo do logo dentro da barra */
    }
    *{box-sizing:border-box}
    body{margin:0; font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; background:#0f3f7a;}
    .demo-wrap{max-width:1240px; margin:0 auto; padding:28px 20px 72px;}
    h1{color:#e5f0ff; margin:0 0 14px; font-size:clamp(22px,2.8vw,36px)}

    /* ---- Superfície e cartões (design partilhado) ---- */
    .signature-surface{
      position: relative;
      background:
        linear-gradient(180deg, rgba(10,22,40,.92), rgba(8,16,30,.9)),
        radial-gradient(120% 140% at 10% 0%, rgba(85,140,255,.14), transparent 45%);
      border: 1px solid color-mix(in oklab, #8bb1ff 22%, transparent);
      border-radius: 22px;
      box-shadow: 0 18px 40px rgba(3,10,22,.35), inset 0 1px 0 rgba(255,255,255,.06);
    }
    .signature-card{
      background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 14px;
      box-shadow: 0 8px 22px rgba(0,0,0,.25);
      position: relative;
      overflow: hidden;
      transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    }
    .signature-card::after{
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%);
      opacity: .4;
      pointer-events: none;
    }
    .signature-card:hover{
      transform: translateY(-3px);
      border-color: rgba(139,177,255,.45);
      box-shadow: 0 14px 32px rgba(0,0,0,.35);
    }

    /* Remove outer box from timeline and carousel */
    .process-timeline.signature-surface,
    .partners-carousel.signature-surface {
      background: transparent;
      border: none;
      border-radius: 0;
      box-shadow: none;
    }

    /* ---- Carousel (Parceiros) ---- */
    .partners-carousel{
      overflow: hidden;
      padding: 14px 16px;
      width: min(100%, 1100px);
      margin: 0 auto;
    }
    .partners-carousel::before,
    .partners-carousel::after{
      display: none;
    }
    .partners-carousel .track{
      display: flex;
      align-items: center;
      gap: var(--gap);
      padding-inline: 8px;
      will-change: transform;
      animation: marquee var(--scroll-time, 22s) linear infinite;
      height: var(--strip-h);
    }
    @keyframes marquee{ to { transform: translateX(calc(-1 * var(--scroll-dist, 1000px))); } }
    .partners-carousel:hover .track{ animation-play-state: paused; }
    .partners-carousel .slide.signature-card{
      flex: 0 0 var(--card-w);
      height: calc(var(--strip-h) - 12px);
      display: grid;
      place-items: center;
      padding: 6px 10px;
    }
    .partners-carousel .slide.signature-card img,
    .partners-carousel .slide.signature-card svg{
      max-height: calc(var(--strip-h) * 0.55);
      max-width: 70%;
      object-fit: contain;
      display: block;
      filter: grayscale(1) brightness(1.05);
      opacity: .85;
      transition: transform .25s ease, filter .25s ease, opacity .25s ease;
    }
    .partners-carousel .slide.signature-card:hover img,
    .partners-carousel .slide.signature-card:hover svg{
      filter: none;
      opacity: 1;
      transform: scale(1.06);
    }
    @media (max-width: 640px){
      :root{ --card-w: 150px; --strip-h: 72px; --gap: 16px; --logo-scale: 0.6; }
      .partners-carousel::before,
      .partners-carousel::after{ width: 50px; }
      .partners-carousel .slide.signature-card img,
      .partners-carousel .slide.signature-card svg{ max-height: calc(var(--strip-h) * 0.6); max-width: 75%; }
    }

    @media (prefers-reduced-motion: reduce){ .track{ animation: none !important; } }


    /*Tarte*/

 #tarteaucitronManager {
    position: fixed;
    bottom: 8px;
    right: 8px;
    z-index: 99999;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    background:
        radial-gradient(120% 160% at 20% 10%, rgba(255,255,255,.18), rgba(255,255,255,.06) 40%, rgba(255,255,255,0) 60%),
        rgba(11,26,46,.42);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    background-image: url("../img/cookie_white.svg") !important;

    /* PROPRIEDADES ADICIONADAS PARA A IMAGEM DO BISCOITO */
    background-size: 60% !important; /* Ajuste este valor para mudar o tamanho */
    background-repeat: no-repeat !important; /* Impede que a imagem se repita */
    background-position: center !important; /* Centraliza a imagem */
}

/* Media query para telas menores */
@media (max-width: 480px) {
    #tarteaucitronManager {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        background-size: 55% !important;
        bottom: 5px;
        right: 5px;
    }
}

/* Esconde o cadeado padrão */
#tarteaucitronManager * {
  display: none !important;
}




/* Botão Aceitar Todos */
#tarteaucitronAllAllowed, .tarteaucitronAllow, #tarteaucitronPrivacyUrlDialog {
    background-color: #007bff !important; /* Azul */
    color: #fff !important;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}



/* Botão Recusar Todos */
#tarteaucitronAllDenied {
    background-color: #6c757d !important; /* Cinza */
    color: #fff !important;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.tarteaucitronDeny{
  background-color: #6c757d !important; /* Cinza */
    color: #fff !important;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}



/* Botão Configurações */
#tarteaucitronPersonalize {
    background-color: #17a2b8 !important; /* Azul claro */
    color: #fff !important;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* Ajustar espaçamento entre os botões */
#tarteaucitronRoot button {
    margin-right: 10px;
}

/* Timeline (novo design com os mesmos cartões dos Parceiros) */
.process-timeline {
  width: 100%;
  padding: 1.4rem;
  margin-top: 1rem;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-grid::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(78,140,255,.2), rgba(78,140,255,.7), rgba(78,140,255,.2));
  opacity: .6;
  z-index: 0;
}

.process-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .6rem;
  padding: 1rem 1.1rem;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  animation: processReveal 1.4s ease forwards;
}

.process-card:nth-child(1) { animation-delay: 0.2s; }
.process-card:nth-child(2) { animation-delay: 0.8s; }
.process-card:nth-child(3) { animation-delay: 1.4s; }
.process-card:nth-child(4) { animation-delay: 2s; }

.process-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,177,255,.25), rgba(78,140,255,0) 55%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}

.process-card > * { position: relative; z-index: 1; }

.process-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #8bb1ff, #4e8cff 55%, #2b67d6 100%);
  color: #08101b;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(78, 140, 255, 0.25);
  position: relative;
  animation: stepPulse 2.8s ease-in-out infinite;
}

.process-step::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,177,255,.18), rgba(139,177,255,0) 60%);
  opacity: .7;
  animation: auraPulse 3.2s ease-in-out infinite;
}

.process-step::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(139,177,255,.35);
  opacity: .6;
}

.process-card:hover .process-step {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 14px 34px rgba(78, 140, 255, 0.4);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11,26,46,.35);
}

.process-card:hover::before {
  opacity: 1;
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(78, 140, 255, 0.25); }
  50% { box-shadow: 0 12px 36px rgba(78, 140, 255, 0.45); }
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.08); opacity: .95; }
}

@keyframes processReveal {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.process-card h4 {
  color: #e9f1ff;
  font-size: 1rem;
  margin: 0;
  font-weight: 800;
}

.process-card p {
  color: #cfe0ff;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid::before { top: 30px; }
}

@media (max-width: 640px) {
  .process-timeline { padding: 1rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
}

/* Prevent image fullscreen/dragging behavior */
img {
  pointer-events: none; /* Prevent right-click context menu */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Re-enable pointer events for interactive elements that contain images */
.card img, .port-card img, .language-option img, .brand img {
  pointer-events: auto;
}

/* GIF Preview styles for virtual tours */
.gif-preview-container {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #07101c;
  height: 100%;
}

.gif-preview-container img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 1s ease-in-out;
}

.gif-preview-container:hover img {
  transform: scale(1.2);
}

/* Update virtual thumb to work with gif container */
.virtual-item.split .virtual-thumb {
  background: #07101c;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
