
:root {
  --navy: #1B2B5E;
  --navy-light: #243570;
  --gold: #C9A96E;
  --white: #FFFFFF;
  --off-white: #F7F6F3;
  --gray: #E8E6E1;
  --text: #1A1A1A;
  --text-muted: #666666;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --font-nav: 'Raleway', sans-serif;
  --nav-h: 230px;
}

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

html { scroll-behavior: smooth; }

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

/* ── TIPOGRAFIA ── */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { font-size: 1rem; color: var(--text-muted); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.4rem 5%;
  background: var(--navy);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

/* ── MEGA MENU ── */
.mega-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 200;
  overflow: hidden;
}

@keyframes megaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mega-menu.open {
  display: flex;
  animation: megaFadeIn 0.28s ease;
}

.mega-close {
  position: absolute;
  top: 1.8rem; right: 4%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  padding: 0.25rem;
  display: inline-block;
}
.mega-close:hover { color: var(--white); transform: rotate(90deg) scale(1.1); }

.mega-left {
  width: 42%;
  flex-shrink: 0;
  padding: 6rem 4% 3rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.mega-accent {
  width: 3px;
  height: 1.1em;
  background: var(--gold);
  display: block;
  border-radius: 2px;
  flex-shrink: 0;
}

.mega-label span:last-child {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.mega-list {
  list-style: none;
  padding: 0; margin: 0;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 2.2rem;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.mega-item:hover,
.mega-item.active { color: var(--white); }

.mega-line {
  width: 80px;
  flex-shrink: 0;
  height: 1px;
  background: transparent;
  transition: background 0.3s;
  display: block;
}

.mega-item.active .mega-line,
.mega-item:hover .mega-line { background: rgba(255,255,255,0.35); }

.mega-preview {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.mega-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s;
}

.mega-img.fade { opacity: 0; }

.mega-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, rgba(27,43,94,0.75) 25%, rgba(27,43,94,0.55) 100%);
  pointer-events: none;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: start;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}


.nav-logo-img {
  height: 215px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(201,169,110,0.15));
  object-fit: contain;
  transform: translateY(4.5%);
}

.nav-italinea-logo {
  height: 215px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(201,169,110,0.15));
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  font-family: var(--font-nav);
  text-decoration: none;
}

.nav-links a:not(.nav-cta) {
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:not(.nav-cta):hover { color: var(--gold); }
.nav-links a:not(.nav-cta).active { color: var(--gold); }

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { width: 100%; }

.nav-cta {
  font-family: var(--font-nav);
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.65rem 1.6rem;
  border-radius: 2px;
  font-weight: 800 !important;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transition: background 0.25s, transform 0.22s, box-shadow 0.25s !important;
}

.nav-cta:hover {
  background: #d4b47a !important;
  color: var(--navy) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.4) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ── ANIMAÇÕES HERO ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.hero {
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: var(--nav-h) 0 0 0;
}

.hero-content {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3.5rem 8% 5rem;
}

.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo img,
.hero-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slideshow .slide.active { opacity: 1; }

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--navy) 0%,
    rgba(27,43,94,0.88) 8%,
    rgba(27,43,94,0.52) 18%,
    rgba(27,43,94,0.18) 28%,
    transparent 40%
  );
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero h1 { color: var(--white); margin-bottom: 1.2rem; animation: fadeUp 0.6s 0.15s ease both; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 460px; margin-bottom: 2.5rem; animation: fadeUp 0.6s 0.3s ease both; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.6s 0.45s ease both; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.9rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: #d4b47a; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeUp 0.6s 0.6s ease both;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
}

.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── SEÇÕES GERAIS ── */
section { padding: 4rem 5%; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-title em { color: var(--gold); font-style: normal; }

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── DIFERENCIAIS ── */
.diferenciais { background: var(--off-white); }

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card-diferencial {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--gold);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s;
}
.card-diferencial:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27,43,94,0.12);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-diferencial h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ── AMBIENTES PREVIEW ── */
.ambientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card-ambiente {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/3;
  background: var(--navy);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.card-ambiente-bg {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--navy-light), #0d1a3a) center/cover no-repeat;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}

.card-ambiente:hover .card-ambiente-bg { transform: scale(1.07); }
.card-ambiente:hover .card-ambiente-overlay { background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 65%); }
.card-ambiente-overlay { transition: background 0.4s; }

.card-ambiente-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.card-ambiente-overlay span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.card-ambiente-overlay h3 { color: var(--white); font-size: 1.1rem; }

/* ── SOBRE PREVIEW ── */
.sobre-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sobre-img {
  aspect-ratio: 16/10;
  border-radius: 2px;
  overflow: hidden;
}

.sobre-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.sobre-texto .section-sub { max-width: 100%; }

.sobre-numeros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.numero-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1;
}

.numero-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1a3a 100%);
  text-align: center;
  padding: 4rem 5%;
}

.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner h2 em { color: var(--gold); font-style: normal; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2.5rem; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1a3a 100%);
  padding: calc(var(--nav-h) + 2.5rem) 5% 5rem;
  text-align: center;
}

.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto; }

/* ── CATEGORY HERO ── */
.cat-hero {
  display: none;
  position: relative;
  height: 70vh;
  min-height: 440px;
  overflow: hidden;
}
@keyframes catHeroIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cat-hero.visible {
  display: block;
  animation: catHeroIn 0.45s ease;
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.1) 100%);
}
.cat-hero-content {
  position: absolute;
  bottom: 3.5rem;
  left: 5%;
  z-index: 1;
}
.cat-hero-content .section-label { display: block; margin-bottom: 0.75rem; }
.cat-hero-content h1 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 0;
  font-style: normal;
  letter-spacing: -0.01em;
}

.cat-desc {
  display: none;
  padding: 1.75rem 0 1.75rem 1.5rem;
  max-width: 700px;
  border-left: 3px solid var(--gold);
  margin-bottom: 1rem;
}
.cat-desc.visible { display: block; }
.cat-desc p {
  font-size: 1.05rem;
  color: #3c3c3c;
  line-height: 1.95;
  letter-spacing: 0.012em;
  margin: 0;
}
.cat-desc strong {
  color: var(--navy);
  font-weight: 700;
  font-style: normal;
  font-family: inherit;
}

/* Quando a descrição está oculta, o grid precisa de espaço acima */
.ambientes-filtros + .cat-desc + .ambientes-full-grid { margin-top: 2.5rem; }
.cat-desc.visible + .ambientes-full-grid { margin-top: 0; }

/* ── SOBRE ── */
.timeline { margin-top: 3rem; }

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 80px;
}

.timeline-content h3 { color: var(--navy); margin-bottom: 0.4rem; }

/* ── AMBIENTES (PÁGINA) ── */
.ambientes-filtros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray);
}

.filtro-btn {
  padding: 0.55rem 1.3rem;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border-radius: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

.filtro-btn:hover {
  color: var(--navy);
  border-color: var(--gray);
}

.filtro-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.ambientes-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.projeto-card {
  background: var(--off-white);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
}

.projeto-card:hover {
  box-shadow: 0 16px 48px rgba(27,43,94,0.18);
  transform: translateY(-4px);
}

.projeto-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy-light), #0d1a3a);
  overflow: hidden;
  position: relative;
}

.projeto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projeto-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27,43,94,0.35);
  opacity: 0;
  transition: opacity 0.35s;
}

.projeto-card:hover .projeto-img img { transform: scale(1.08); }
.projeto-card:hover .projeto-img::after { opacity: 1; }

.projeto-img span {
  font-family: var(--font-heading);
  font-size: 3rem;
  opacity: 0.3;
  color: var(--white);
}

.projeto-info {
  padding: 1.2rem 1.5rem;
  transition: transform 0.35s;
}

.projeto-card:hover .projeto-info { transform: translateY(-2px); }

.projeto-info span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.projeto-info h3 { color: var(--navy); margin-top: 0.2rem; }


/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 3rem 7% 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand img:first-child {
  height: 130px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(201,169,110,0.15));
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.9rem;
  font-family: 'Raleway', sans-serif;
  text-transform: uppercase;
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-links li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-col-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col-links a:hover { color: var(--gold); }

.footer-italinea-logo {
  height: 100px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(201,169,110,0.15));
  margin-top: -30px;
  display: block;
  position: relative;
  z-index: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--gold); text-decoration: none; }

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ── Cookie Banner LGPD ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 28, 58, 0.97);
  border-top: 1px solid rgba(201,169,110,0.25);
  padding: 1rem 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9998;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}

.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: var(--gold); text-decoration: none; }
.cookie-banner.hidden { display: none; }

.cookie-accept-btn {
  background: var(--gold);
  color: #1B2B5E;
  border: none;
  padding: 0.5rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVO — 1024 · 900 · 640 · 480 · 360
═══════════════════════════════════════════════════ */

html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Coarse pointer: safe touch targets */
@media (pointer: coarse) {
  .filtro-btn { min-height: 44px; }
  .float-btn { width: 56px; height: 56px; }
}

/* ── Mega menu responsivo (≤1200px) ── */
@media (max-width: 1200px) {
  .mega-item { font-size: 1.6rem; gap: 0.9rem; }
  .mega-line  { width: 50px; }
  .mega-left  { padding-left: 6%; }
}

/* ── Tablet / landscape phone (641–1024px) — oculta mega menu ── */
@media (min-width: 641px) and (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
  .mega-menu { display: none !important; }
}

/* ── Tablet médio (≤860px) — nav não colapsa mas fica apertado ── */
@media (max-width: 860px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.82rem; }
  .nav-cta { padding: 0.4rem 0.9rem !important; font-size: 0.8rem; }
}

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  :root { --nav-h: 172px; }
  .mega-menu { display: none !important; }

  section { padding: 2.5rem 5%; }
  .page-header { padding: calc(var(--nav-h) + 2rem) 5% 3rem; }
  .cta-banner { padding: 3rem 5%; }

  .hero { grid-template-columns: 1fr; height: auto; min-height: 100svh; position: relative; }
  .hero-photo { position: absolute; inset: 0; height: auto; z-index: 0; }
  .hero-photo::after { background: rgba(27,43,94,0.72); }
  .hero-content { position: relative; z-index: 1; background: transparent; padding: 3.5rem 6% 5rem; min-height: 100svh; }

  .nav-logo-img { height: 148px; }
  .nav-italinea-logo { height: 148px; }
  .sobre-preview { grid-template-columns: 1fr; }
  .sobre-img { aspect-ratio: 3/2; }
  .ambientes-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline-item { gap: 1rem; }
  .cat-hero { height: 55vh; min-height: 340px; }
}

/* ── BOTÕES FLUTUANTES ── */
@keyframes pulse-wa {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.float-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

.float-btn:hover { transform: scale(1.1); }

.float-wa {
  background: #25D366;
  animation: pulse-wa 2s infinite;
}

.nav-ig {
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.nav-ig:hover { color: var(--white); }

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
  nav { padding: 0.75rem 5%; }
  .nav-italinea-logo { display: none; }

  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy); padding: 0 5% 1.2rem; gap: 0;
    z-index: 200; border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35); align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links li:last-child { border-bottom: none; padding-top: 0.75rem; }
  .nav-links li a { display: block; padding: 0.9rem 0; font-size: 1rem; }
  .nav-links .nav-cta { text-align: center; padding: 0.7rem 1.2rem !important; }

  .nav-toggle { display: flex; }
  .nav-toggle span { transition: transform 0.28s ease, opacity 0.28s ease; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 199;
  }
  .nav-overlay.open { display: block; }

  section { padding: 2rem 5%; }
  .page-header { padding: calc(var(--nav-h) + 1.5rem) 5% 2.5rem; }
  .cta-banner { padding: 2.5rem 5%; }

  .hero-stats { gap: 1.2rem; flex-wrap: nowrap; }
  .hero p { margin-bottom: 1.5rem; }
  .hero-content { padding: 3rem 5% 3rem; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand img { margin: 0 auto; display: block; }
  .footer-bottom { justify-content: center; text-align: center; }
  .sobre-numeros { grid-template-columns: 1fr 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item { flex-direction: column; gap: 0.3rem; }
  .float-buttons { bottom: 1.2rem; right: 1.2rem; }
  .cat-hero { height: 48vh; min-height: 260px; }

  .ambientes-filtros {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .ambientes-filtros::-webkit-scrollbar { display: none; }
  .filtro-btn { flex-shrink: 0; padding: 0.4rem 0.9rem; font-size: 0.8rem; }

  .catalogo-grid { grid-template-columns: 1fr; }
  .catalogo-card { padding: 2rem 1.5rem; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  :root { --nav-h: 149px; }
  .nav-logo-img { height: 125px; }
  .nav-italinea-logo { display: none; }
  .nav-links { top: var(--nav-h); }

  section { padding: 1.5rem 5%; }
  .page-header { padding: calc(var(--nav-h) + 1rem) 5% 1.5rem; }
  .cta-banner { padding: 1.5rem 5%; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }

  .hero-content { padding: 2.5rem 5% 2.5rem; }
  .hero p { margin-bottom: 1rem; }
  .hero-actions { gap: 0.7rem; }
  .hero-stats { gap: 0.6rem; margin-top: 1.2rem; padding-top: 0.8rem; }
  .hero-stat strong { font-size: 1.35rem; }
  .hero-stat span { font-size: 0.62rem; }

  .btn-primary, .btn-outline { padding: 0.75rem 1.4rem; font-size: 0.85rem; }

  .diferenciais-grid { grid-template-columns: 1fr; }
  .ambientes-grid { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .ambientes-full-grid { grid-template-columns: 1fr; }
  .sobre-numeros { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand img { height: 90px; }
  .footer-italinea-logo { height: 72px; }

  .float-btn { width: 48px; height: 48px; }
  .numero-item strong { font-size: 2rem; }
  .timeline-year { font-size: 1.4rem; min-width: 60px; }
  .section-sub { margin-bottom: 1.5rem; }
  .cat-hero { height: 42vh; min-height: 220px; }

  .projeto-card:hover { transform: none; box-shadow: none; }
  .projeto-card:hover .projeto-img::after { opacity: 0; }
}

/* ── Extra small (≤360px) ── */
@media (max-width: 360px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 0.4rem; }
  .hero-stat { display: flex; align-items: center; gap: 0.75rem; }
}

/* ── CATÁLOGOS ── */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.catalogo-card {
  background: var(--off-white);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.catalogo-card-icon {
  color: var(--gold);
}

.catalogo-card-info h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin: 0.4rem 0 0.8rem;
}

.catalogo-card-info p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.catalogo-card-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.catalogo-card-actions .btn-primary,
.catalogo-card-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-download {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-download:hover {
  background: var(--navy);
  color: var(--white);
}

.catalogo-nota {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.catalogo-nota p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Mobile submenu (Ambientes) ────────────────────────────── */
.nav-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none !important;
}

@media (max-width: 640px) {
  .nav-submenu.open {
    display: flex;
    flex-direction: column;
    padding: 0.2rem 0 0.4rem 1rem;
    border-left: 2px solid rgba(201,169,110,0.45);
    margin-top: 0.1rem;
    margin-bottom: 0.2rem;
  }
  .nav-submenu li { border-bottom: none !important; }
  .nav-submenu a {
    display: block;
    padding: 0.45rem 0 !important;
    font-size: 0.88rem !important;
    color: rgba(255,255,255,0.65) !important;
    letter-spacing: 0.04em !important;
  }
  .nav-submenu a:hover { color: var(--gold) !important; }
  .has-mega > a::after {
    content: ' ›';
    opacity: 0.55;
    font-size: 1.05rem;
    transition: opacity 0.2s;
  }

  /* mega menu no mobile — layout vertical */
  .mega-menu { z-index: 2000 !important; }
  .mega-menu.open { display: flex !important; flex-direction: column; }
  .mega-left {
    width: 100%;
    padding: 4.5rem 6% 1rem;
    flex: none;
  }
  .mega-label { margin-bottom: 1.25rem; }
  .mega-item {
    font-size: 1.35rem;
    padding: 0.65rem 0;
    gap: 0;
  }
  .mega-line { display: none; }
  .mega-preview { flex: 1; min-height: 180px; }
  .mega-overlay {
    background: linear-gradient(to bottom, var(--navy) 0%, rgba(27,43,94,0) 55%);
  }
}

/* ── Instagram nav icon ─────────────────────────────────────── */
.nav-ig svg { width: 30px; height: 30px; }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.48s cubic-bezier(.4,0,.2,1), transform 0.48s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.52s cubic-bezier(.4,0,.2,1), transform 0.52s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.js-ready .reveal-left.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.52s cubic-bezier(.4,0,.2,1), transform 0.52s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.js-ready .reveal-right.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
