/* Alfieri Seguros — visual novo (prévia) */
:root {
  --navy: #102D3A;
  --petrol: #174B59;
  --gold: #C5A46D;
  --gold-dark: #A9884F;
  --sand: #F4F3EF;
  --white: #FFFFFF;
  --ink: #102D3A;
  --muted: #5B6F78;
  --line: #E3E0D7;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(16, 45, 58, .25);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
/* Títulos em Source Serif 4 (o resto em Manrope) */
.hero h1, .section-title, .ins-card h3, .benefit h3, .fx-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); }
.section-lead { color: var(--muted); font-size: 18px; max-width: 620px; margin-top: 16px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D3B580; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--petrol); }

/* Cabeçalho */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16,45,58,.5); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a.link { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); opacity: .8; transition: opacity .2s; }
.nav a.link:hover { opacity: 1; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Topo */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: 168px 0 112px;
}
/* Foto de Londres: degradê da paleta (escuro à esquerda, onde fica o texto),
   zoom lento (Ken Burns) e paralaxe leve ao rolar (novo.js) */
.hero-bg { position: absolute; inset: 0; will-change: transform; }
.hero-bg picture, .hero-bg img { display: block; width: 100%; height: 100%; }
.hero-bg img {
  object-fit: cover; object-position: 62% 40%;
  filter: saturate(.9) contrast(1.05);
  transform-origin: 70% 45%;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(16,45,58,.9) 0%, rgba(16,45,58,0) 32%),
    linear-gradient(90deg, rgba(16,45,58,.95) 0%, rgba(16,45,58,.86) 34%, rgba(16,45,58,.45) 66%, rgba(16,45,58,.2) 100%);
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,164,109,.5), transparent);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin-top: 24px; font-size: 18px; color: rgba(255,255,255,.82); max-width: 540px; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.quick {
  background: rgba(16,45,58,.5);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px; padding: 32px;
}
.quick h2 { font-size: 20px; font-weight: 700; }
.quick p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 6px; }
.quick-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .2s, border-color .2s;
}
.quick-grid a:hover { background: rgba(197,164,109,.14); border-color: rgba(197,164,109,.55); }
.quick-grid svg { width: 26px; height: 26px; color: var(--gold); flex: none; }

/* Seguradoras parceiras — mesma organização do site original:
   título centralizado e cada logo num cartão branco, centralizados */
.partners { padding: 16px 0 104px; }
.partners-head { text-align: center; margin-bottom: 40px; }
.partners .section-title { font-size: clamp(24px, 3vw, 32px); max-width: 640px; margin: 0 auto; }
.partners .logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; }
.logo-card {
  background: var(--white); border-radius: 10px; padding: 16px 24px;
  border: 1px solid var(--line);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.logo-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-card img {
  width: 254px; height: 40px; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s;
}
.logo-card:hover img { filter: none; opacity: 1; }

/* Navegue por nossos seguros */
.browse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.arrow:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 20px; height: 20px; }

/* Proporção dos cartões igual à da AXA: 280 × 360 (7:9), 16 px entre eles,
   fileira passando da borda direita da tela */
#seguros { overflow: hidden; }
.track {
  --bleed: calc((100vw - 100%) / 2);
  display: grid; grid-auto-flow: column; grid-auto-columns: 280px;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: none; padding-bottom: 4px;
  margin-right: calc(-1 * var(--bleed));
  padding-right: var(--bleed);
}
.track::-webkit-scrollbar { display: none; }
.ins-card {
  scroll-snap-align: start;
  position: relative; aspect-ratio: 7 / 9;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; border-radius: var(--radius);
  background: var(--sand); text-decoration: none; color: var(--ink);
  transition: background .3s, color .3s, transform .3s;
}
/* Ícones antigos do site (fonte Flaticon), no tamanho dos novos: caixa de 64 px
   e desenho de ~48 px, como os de traço fino que estavam aqui */
@font-face {
  font-family: "AlfieriIcons";
  src: url("fonts/flaticon/font/Flaticon.woff2?v=3") format("woff2"),
       url("fonts/flaticon/font/Flaticon.woff?v=3") format("woff");
  font-display: block;
}
.ins-card .icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  font-size: 50px; line-height: 1;
  color: var(--petrol); transition: color .3s;
}
.ins-card .icon::before { font-family: "AlfieriIcons" !important; line-height: 1; }
.flaticon-building::before { content: "\F000"; }
.flaticon-house-2::before { content: "\F001"; }
.flaticon-car::before { content: "\F008"; }
.flaticon-house-key::before { content: "\F009"; }
.flaticon-surety::before { content: "\F00A"; }
.flaticon-life::before { content: "\F00B"; }
.flaticon-passport::before { content: "\F00C"; }
.flaticon-bull::before { content: "\F00D"; }
.ins-card .cat { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; transition: color .3s; }
.ins-card .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ins-card h3 { font-size: 24px; }
.ins-card .desc {
  font-size: 14px; color: var(--muted); margin-top: 10px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s, opacity .3s, color .3s;
}
.ins-card .go { width: 22px; height: 22px; flex: none; color: var(--petrol); transition: transform .3s, color .3s; }
.ins-card:hover, .ins-card:focus-visible { background: var(--petrol); color: var(--white); outline: none; }
.ins-card:hover .icon, .ins-card:focus-visible .icon { color: var(--gold); }
.ins-card:hover .cat, .ins-card:focus-visible .cat { color: var(--gold); }
.ins-card:hover .desc, .ins-card:focus-visible .desc { max-height: 120px; opacity: 1; color: rgba(255,255,255,.8); }
.ins-card:hover .go, .ins-card:focus-visible .go { color: var(--gold); transform: translateX(4px); }

.progress { margin-top: 28px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: var(--gold); border-radius: 3px; transition: transform .2s, width .2s; }

/* Previdência */
.pension { background: var(--sand); }
.pension .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.pension .btn { margin-top: 32px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.benefit {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line);
}
.benefit .num { font-size: 13px; font-weight: 800; color: var(--gold-dark); letter-spacing: .1em; }
.benefit h3 { font-size: 20px; margin-top: 14px; }
.benefit p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* Câmbio */
.fx { background: var(--petrol); color: var(--white); }
.fx .section-lead { color: rgba(255,255,255,.72); }
.fx-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fx-card {
  border-radius: var(--radius); padding: 32px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column;
}
.fx-card svg.icon { width: 44px; height: 44px; color: var(--gold); }
.fx-card h3 { font-size: 22px; margin-top: 20px; }
.fx-card p { color: rgba(255,255,255,.72); font-size: 15px; margin-top: 10px; flex: 1; }
.fx-card a.more { margin-top: 24px; color: var(--gold); font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.fx-card a.more svg { width: 18px; height: 18px; transition: transform .2s; }
.fx-card a.more:hover svg { transform: translateX(4px); }
.quotes { display: grid; gap: 10px; margin-top: 20px; flex: 1; }
.quote {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 16px; border-radius: 10px; background: rgba(16,45,58,.45);
}
.quote .pair { font-weight: 700; font-size: 15px; }
.quote .pair small { display: block; font-weight: 500; font-size: 12px; color: rgba(255,255,255,.55); }
.quote .val { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.quote .chg { font-size: 12px; font-weight: 700; margin-left: 8px; }
.quote .chg.up { color: #8FD6A8; }
.quote .chg.down { color: #F2A38F; }
.quotes-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 12px; }

/* Contato */
.contact-head { text-align: center; }
.contact-head .section-lead { margin-left: auto; margin-right: auto; }
.channels { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.channel {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.channel:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.channel .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--petrol); margin-bottom: 14px; }
.channel .ico svg { width: 24px; height: 24px; }
.channel strong { font-size: 17px; }
.channel span { color: var(--muted); font-size: 14.5px; word-break: break-word; }
.channel.featured { background: var(--navy); border-color: var(--navy); color: var(--white); }
.channel.featured .ico { background: var(--gold); color: var(--navy); }
.channel.featured span { color: rgba(255,255,255,.7); }

/* Rodapé */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 72px 0 32px; font-size: 14.5px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { filter: invert(1); height: 30px; }
.footer .about { margin-top: 18px; max-width: 300px; }
.footer h4 { color: var(--white); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 14px 30px -10px rgba(16,45,58,.55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Aparecer ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: scale(1.04); }
}

/* Telas menores */
@media (max-width: 1080px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero { padding: 132px 0 80px; }
  .hero .container, .pension .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-bg img { object-position: 64% 40%; }
  .hero-bg::after {
    background:
      linear-gradient(0deg, rgba(16,45,58,.95) 0%, rgba(16,45,58,.55) 45%, rgba(16,45,58,.7) 100%);
  }
  .fx-grid { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 24px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a.link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; justify-content: center; }
  .menu-toggle { display: block; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .track { grid-auto-columns: 240px; }
  .ins-card .icon { width: 56px; height: 56px; font-size: 44px; }
  .ins-card .desc { max-height: none; opacity: 1; }
  .browse-head { flex-direction: column; align-items: flex-start; }
  .arrows { display: none; }
  .benefits, .channels { grid-template-columns: 1fr; }
  .partners { padding-bottom: 80px; }
  .logo-card { padding: 12px 16px; }
  .logo-card img { width: 220px; height: 34px; }
  .quick { padding: 24px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; }
}
