/* FINEAMIN LATAM — layout based on fineamin.com identity */
:root {
  --navy: #063145;
  --green: #0aab00;
  --green-d: #088a00;
  --blue: #1469b4;
  --light: #f5f5f5;
  --line: #e3e8ec;
  --text: #333;
  --muted: #6b7680;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(6, 49, 69, .09);
  --head: "Rubik", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px; }

/* top bar + header */
.topbar { background: var(--navy); color: #cfe0e8; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #cfe0e8; }
.topbar a:hover { color: #fff; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 2px 8px; border-radius: 4px; font-weight: 600; font-family: var(--head); letter-spacing: .04em; }
.lang a.on { background: var(--green); color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.logo img { display: block; width: 200px; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: 600 1rem var(--head); color: var(--navy); cursor: pointer; }
.menu, .sub { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; gap: 2px; }
.menu > li { position: relative; }
.menu a { display: block; padding: 10px 12px; font: 500 .82rem var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.menu > li > a.active, .menu a:hover { color: var(--green); }
.caret { display: none; }
.sub { position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--green); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 10; }
.sub li { position: relative; }
.sub a { text-transform: none; font-size: .9rem; font-weight: 400; padding: 8px 18px; letter-spacing: 0; }
.sub .sub { left: 100%; top: -9px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub .has-sub > a::after { content: "›"; float: right; margin-left: 10px; }
.menu > li:nth-last-child(-n+2) > .sub { left: auto; right: 0; }

/* buttons */
.btn { display: inline-block; background: var(--green); color: #fff; padding: 11px 24px; border-radius: 40px; font: 500 .9rem var(--head); letter-spacing: .03em; text-transform: uppercase; border: 2px solid var(--green); transition: .2s; cursor: pointer; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-row { margin: 1.2em 0; }
.link-more { font: 500 .9rem var(--head); color: var(--green); text-transform: uppercase; }
.link-more::after { content: " →"; }

/* hero slider */
.hero { position: relative; min-height: 520px; background: #fff; overflow: hidden; color: var(--navy); border-bottom: 1px solid var(--line); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; background: right center / auto 100% no-repeat; opacity: 0; transition: opacity .8s; }
.slide.on { opacity: 1; z-index: 1; }
.slide .container { padding: 40px 0 80px; }
.hero-h { color: var(--navy); font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; max-width: 520px; margin-bottom: .4em; }
.slide p { max-width: 500px; font-size: 1.1rem; color: var(--text); }
.slide p b { color: var(--green); font-weight: 500; }
.count { display: inline-block; font: 600 .85rem var(--head); letter-spacing: .2em; color: var(--green); margin-bottom: 14px; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-nav { position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
.hero-nav button { background: none; border: 0; color: var(--navy); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.hero-nav .dot { width: 11px; height: 11px; border-radius: 50%; background: #c9d3d9; padding: 0; }
.hero-nav .dot.on { background: var(--green); }

/* content blocks */
main { display: block; }
.blk { width: min(1200px, 100% - 32px); margin: 0 auto; padding: 34px 0; }
.is-page main > .blk:first-child, .page-head { padding: 64px 0 40px; }
.is-page main > .blk:first-child { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.is-page main > .blk:first-child h1 { margin-bottom: .3em; }
.kicker { font: 600 .82rem var(--head); color: var(--green); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5em; }
.is-page main > .blk:first-child > p:first-child:not(.kicker) { font: 600 .82rem var(--head); color: var(--green); text-transform: uppercase; letter-spacing: .12em; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; align-items: start; }
.col > :last-child { margin-bottom: 0; }
figure.img { margin: 0 0 1.2em; }
figure.img img { border-radius: var(--radius); display: block; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
ul.check { list-style: none; padding: 0; }
ul.check li { padding-left: 28px; position: relative; }
ul.check li::before { content: "✔"; position: absolute; left: 0; color: var(--green); }
blockquote { border-left: 4px solid var(--green); margin: 1.5em 0; padding: .5em 1.2em; background: var(--light); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
td, th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--light); color: var(--navy); font-family: var(--head); font-weight: 500; }
table.specs { margin-bottom: 1em; }
table.specs th { width: 48%; }
details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; padding: 14px 18px; font: 500 1.02rem var(--head); color: var(--navy); list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--green); }
details[open] summary::after { content: "–"; }
details > div, details > p { padding: 0 18px 8px; }
details > div > :first-child { margin-top: 0; }
.box { background: var(--light); border-radius: var(--radius); padding: 20px; height: 100%; }
.box h4 { margin-bottom: .4em; }
a.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text); height: 100%; transition: .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
a.card .box { background: none; padding: 0; }
a.card .box h4 { color: var(--green); font-size: .9rem; text-transform: uppercase; }
.num { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; align-items: center; justify-content: center; font: 600 1.1rem var(--head); }
.video { position: relative; aspect-ratio: 16/9; margin: 0 0 1.4em; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 1.4em; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.gallery figure { margin: 0; }
.gallery.wide { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery.wide figcaption { font-size: .9rem; line-height: 1.4; }
@media (max-width: 900px) { .gallery.wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery.wide { grid-template-columns: 1fr; } }
.progress { display: grid; grid-template-columns: 1fr 60px; gap: 4px 12px; margin-bottom: 14px; }
.progress span { grid-column: 1 / -1; font-family: var(--head); color: var(--navy); }
.progress .bar { background: var(--light); border-radius: 10px; height: 10px; overflow: hidden; align-self: center; }
.progress .bar i { display: block; height: 100%; background: var(--green); }
.tabs .tab { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 10px; }

/* alternate band backgrounds */
.is-page main > .blk:nth-of-type(even), .is-home main > .blk:nth-of-type(odd) { position: relative; }
.is-home main > .blk:nth-of-type(odd)::before, .is-page main > .blk:nth-of-type(odd):not(:first-child)::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--light); z-index: -1; }
main { position: relative; z-index: 0; overflow-x: clip; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.thumb { aspect-ratio: 16/9; background: var(--light); display: block; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.ph { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.nc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nc-body time { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.nc-body strong { font: 500 1.1rem/1.3 var(--head); color: var(--navy); flex: 1; }
.post { width: min(860px, 100% - 32px); margin: 0 auto; padding: 56px 0 40px; }
.post .blk { width: 100%; padding: 12px 0; }
.post .blk::before { display: none; }
.post-meta { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

/* form */
.contact-form { display: grid; gap: 14px; margin: 1em 0 2em; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 4px; font: 500 .85rem var(--head); color: var(--navy); }
.contact-form input, .contact-form textarea { font: inherit; padding: 11px 14px; border: 1px solid #cfd8de; border-radius: 8px; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.btn-wa { background: #25D366; border-color: #25D366; }
.btn.btn-wa:hover { background: #1da851; border-color: #1da851; color: #fff; }
.form-msg { color: var(--green-d); font-weight: 500; }

/* footer */
.footer { background: var(--navy); color: #c4d5de; margin-top: 50px; font-size: .93rem; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
.footer a { color: #fff; }
.footer a:hover { color: #6be064; }
.footer .btn { color: #fff; }
.fnews { list-style: none; padding: 0; }
.fnews li { margin-bottom: 12px; }
.fnews time { display: block; font-size: .8rem; color: #8fa9b6; }
.fbottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 26px; font-size: .85rem; }

/* language picker (root) */
.picker main { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 24px; }
.picker ul { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* responsive */
@media (max-width: 1100px) {
  .burger { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
  .mainnav.open { display: block; }
  .menu { flex-direction: column; padding: 8px 16px 16px; }
  .menu li { position: relative; }
  .sub, .sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; min-width: 0; }
  .has-sub.open > .sub { display: block; }
  .caret { display: block; position: absolute; right: 0; top: 2px; width: 40px; height: 36px; background: none; border: 0; cursor: pointer; }
  .caret::before { content: "+"; font-size: 1.3rem; color: var(--green); }
  .has-sub.open > .caret::before { content: "–"; }
  .sub .has-sub > a::after { content: none; }
  .menu a { padding-right: 44px; }
  .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 1150px) {
  .slide { background-size: cover; background-position: center; }
  .slide::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.86); }
  .slide .container { position: relative; }
}
@media (max-width: 640px) {
  .hero { min-height: 600px; }
  .frow { grid-template-columns: 1fr; }
  .topbar .container > span { display: none; }
  .topbar .container { justify-content: flex-end; }
  .logo img { width: 160px; }
}

/* hero: keep long translated titles readable over the image */
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(255,255,255,.88) 50%, rgba(255,255,255,0) 66%); }
.slide .container { position: relative; }
.hero { min-height: 560px; }
.hero-h { font-size: clamp(1.8rem, 3.2vw, 2.7rem); max-width: 560px; }

/* Brazilian sites */
.fgrid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.fsub { color: #8fa9b6; font-size: .85rem; margin-bottom: .4em; }
.fsites { list-style: none; padding: 0; }
.fsites li { margin-bottom: 10px; line-height: 1.4; }
.fsites span { display: block; font-size: .78rem; color: #8fa9b6; text-transform: uppercase; letter-spacing: .05em; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.site-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 18px 20px; }
.site-card p:last-child { margin: 0; color: var(--navy); font-family: var(--head); font-weight: 500; }
@media (max-width: 1100px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }

/* LATAM headquarters */
.topbar b { font-family: var(--head); font-size: .75rem; color: #6be064; margin-right: 4px; }
.topbar .sep { display: inline-block; width: 1px; height: 12px; background: rgba(255,255,255,.3); margin: 0 12px; vertical-align: middle; }
.site-card.hq { grid-column: span 2; border-left-color: var(--navy); background: var(--light); }
.site-card.hq p:nth-child(2) { margin-bottom: .6em; }
.site-card .hq-contact { font-family: var(--body) !important; font-weight: 400 !important; color: var(--text) !important; }
@media (max-width: 640px) { .site-card.hq { grid-column: auto; } }
/* technical documents table */
.doc-table td:first-child { width: 22%; }
.doc-table td:nth-child(2) { width: 46%; }
.doc-table ul { margin: 0; padding-left: 1.1em; }
.doc-table li { margin: .15em 0 .35em; }
@media (max-width: 700px) {
  .doc-table thead { display: none; }
  .doc-table tr, .doc-table td { display: block; width: auto !important; }
  .doc-table tr { margin-bottom: 14px; border: 1px solid var(--line); }
  .doc-table td { border: 0; border-top: 1px solid var(--line); }
  .doc-table td:first-child { background: var(--light); border-top: 0; }
}

/* Accueil – domaines d'application : boutons en ligne, texte en dessous sur toute la largeur */
.fields-btns { grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 6px 0 26px; }
.fields-btns .btn-row { margin: 0; }
.fields-btns .btn { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 60px; }
.fields-text { columns: 1; max-width: none; width: 100%; }
.fields-text p { max-width: none; }
@media (max-width: 760px) { .fields-btns { grid-template-columns: 1fr; } .fields-text { columns: 1; } }
/* Brazil sites: HQ + units + distributor grouped in one block */
.sites { grid-template-columns: repeat(4, 1fr); }
.site-card.hq { grid-column: 1; grid-row: span 2; }
.site-card.dist { grid-column: span 2; border-left-color: var(--navy); }
.site-card.dist .dist-name { margin: 0 0 .4em; color: var(--navy); font-family: var(--head); font-weight: 500; }
@media (max-width: 1100px) { .sites { grid-template-columns: repeat(2, 1fr); } .site-card.hq { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .sites { grid-template-columns: 1fr; } .site-card.hq, .site-card.dist { grid-column: auto; } }

/* Equipe LATAM: espaço reservado para foto (mesma proporção 480x540 das fotos da equipe Suíça) */
.photo-ph { aspect-ratio: 480 / 540; border-radius: var(--radius); background: #e9edf1; display: flex; align-items: center; justify-content: center; margin: 0 0 1.2em; }
.photo-ph span { font: 600 2.4rem var(--head); color: #9aa7b4; letter-spacing: .05em; }
