header {gap:1rem}
header nav {justify-content:flex-end;text-align:right}
.home-languages {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.2rem;padding-top:.45rem}
.home-languages a {display:grid;place-items:center;min-width:42px;min-height:44px;text-decoration:none}
.home-languages [aria-current] {font-weight:700;text-decoration:underline}
.home-hero {display:grid;grid-template-columns:1fr 1.15fr;grid-template-areas:"title photo" "copy photo" "buttons photo";align-content:center;column-gap:5%;padding:clamp(2rem,6vw,5rem) 0}
.home-hero h1 {grid-area:title;align-self:end;letter-spacing:-.05em}
.home-hero img {grid-area:photo;width:100%;height:auto;align-self:center;border-radius:4px}
.home-hero p {grid-area:copy;max-width:38ch;align-self:center}
.home-actions {grid-area:buttons;display:flex;gap:.65rem;align-items:flex-start;flex-wrap:wrap}
.home-partners {border-block:1px solid #ae9974;padding:2rem 0}
.home-partners a {display:inline-flex;align-items:center;min-height:44px;margin-right:1rem}
@media(max-width:700px){
 .home-hero {grid-template-columns:1fr;grid-template-areas:"title" "photo" "copy" "buttons";padding:.4rem 0 2rem}
 .home-hero h1 {font-size:clamp(3rem,12vw,4rem);margin:0 0 .25em}
 .home-hero img {max-height:34vh;object-fit:contain}
 .home-actions {display:grid;grid-template-columns:1fr 1fr}
 .home-actions .btn {padding:12px 4px;text-align:center}
}

.home-partners form {max-width:38rem;margin-top:1.5rem}
.home-partners button {justify-self:start}
.home-hero {grid-template-areas:"title copy" "title resale" "title buttons"}
.braga-pictures h2 a {color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.14em}
@media(max-width:700px){.home-hero {grid-template-areas:"title" "copy" "resale" "buttons"}}
.home-partners > h2 {font-size:clamp(1.25rem, 2vw, 1.75rem);line-height:1.3}

body {
  --ivory: #faf4e5;
  background: var(--ivory);
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto;
  height: clamp(32rem, 43vw, 44rem);
  background:
    linear-gradient(to bottom, transparent 80%, var(--ivory)),
    radial-gradient(ellipse at center, #faf4e5ee 8%, #faf4e5a8 53%, transparent 85%),
    url("atlas-atlantico-bege.webp") center / 100% 100% no-repeat;
}
.home-menu-toggle {display:none}
@media (max-width:700px) {
  body::before {height:56.28vw;}
  header {position:relative;z-index:2}
  .home-menu-toggle:not([hidden]) {display:block;min-width:44px;min-height:44px;background:#faf4e5da;color:#10394a;font-size:1.55rem;padding:.2rem}
  .home-menu-toggle:not([hidden]) + nav {position:absolute;right:5%;top:100%;padding:.9rem;background:#fff9ed;border:1px solid #ccbda1;border-radius:4px;box-shadow:0 6px 20px #102f4022}
  .home-menu-toggle:not([hidden])[aria-expanded="false"] + nav {display:none}
  .home-languages {justify-content:center}
  .home-hero {padding:1rem 0 1.4rem}
  .home-hero p {margin:.3rem 0 .65rem;max-width:100%}
  .home-actions {display:block}
  .home-actions .btn {display:block;width:100%;margin:0;box-sizing:border-box}
}

.home-partners { position: relative; }
.home-partners::after {
  content: "";
  position: absolute;
  top: 7rem;
  bottom: 3rem;
  right: 2%;
  width: min(28%, calc(100% - 40rem));
  background: url("/assets/rota-revenda.svg") center / contain no-repeat;
  pointer-events: none;
}
@media (max-width: 52rem) {
  .home-partners::after {
    position: static;
    display: block;
    width: 7rem;
    height: 4.5rem;
    margin: 1rem 0 0 auto;
    background-size: 7rem auto;
    background-position: bottom;
  }
}

@media (max-width: 700px) {
  header > a:has(img[src="/assets/luso-heritage-home.webp"]) {
    margin-inline-start: clamp(24px, 10vw, 48px);
  }

  header {
    gap: clamp(4px, 2vw, 12px);
  }
  header img[src="/assets/luso-heritage-home.webp"] {
    width: 67px;
    height: auto;
  }
  header, main {
    width: 100%;
    box-sizing: border-box;
    padding-inline: clamp(12px, 5vw, 24px);
  }
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-hero > * {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
}

.home-heading {grid-area: title; align-self: center;}
.home-heading h1 {font-size: clamp(48px, 6.2vw, 88px); margin: 0 0 .15em;}
.home-heading .home-slogan {font: italic clamp(1.05rem, 1.65vw, 1.45rem)/1.35 Georgia, serif; margin: 0; text-wrap: balance;}
@media (max-width: 700px) {
  .home-heading {margin-bottom: .65rem;}
  .home-heading h1 {font-size: clamp(2.65rem, 10.6vw, 3.55rem);}
}

.home-languages a {display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding-inline:.35rem;}
.home-languages .language-flag {display:block;width:23px;height:16px;object-fit:contain;}
.home-hero > p + p {grid-area:resale;}
