/* ==========================================================================
   Nesso Viaggi — Home
   Paleta e layout originais reconstruídos em CSS puro.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --gold: #d4af37;
  --ivory: #f3ede1;
  --paper: #eae3d2;
  --bronze: #b87a2e;
  --moss: #1f2a23;
}

/* --------------------------------- reset -------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  vertical-align: middle;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background-color: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}

::placeholder {
  color: currentColor;
  opacity: 1;
}

/* -------------------------------- layout -------------------------------- */

.container {
  width: min(1180px, 100% - 48px);
  margin: auto;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.gold {
  color: var(--bronze);
}

.section-title {
  margin: 0 0 45px;
  font: 400 clamp(48px, 6vw, 80px) / 0.9 Georgia, serif;
  letter-spacing: -0.06em;
}

.hero h1,
.section-head h2,
.cta-section h2,
.blog-teaser h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.hero h1 i,
h2 i {
  color: var(--gold);
  font-weight: 400;
}

/* -------------------------------- botões -------------------------------- */

.nav-cta,
.gold-button {
  background: var(--gold);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition: filter 0.2s, transform 0.2s;
}

.nav-cta:hover,
.gold-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.text-link {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

/* ================================== HERO ================================= */

.hero {
  position: relative;
  min-height: 740px;
  color: var(--ivory);
  overflow: hidden;
}

.nesso-hero {
  background:
    linear-gradient(90deg, #050505f0, #050505b3 48%, #0505051f),
    url(../img/hero-home.jpg) center / cover;
}

/* malha dourada sobreposta */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.33;
  background-image:
    linear-gradient(90deg, #0000 49.9%, #d4af374d 50%, #0000 50.1%),
    linear-gradient(#d4af371f 1px, #0000 1px);
  background-size: 100% 100%, 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, #000, #0000 78%);
  mask-image: linear-gradient(90deg, #000, #0000 78%);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  border-bottom: 1px solid #f3ede12b;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.actual-logo {
  width: 250px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 18px #00000047);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}

.hero-copy {
  max-width: 330px;
  margin: 35px 0 24px;
  color: #f3ede1cc;
  font-size: 16px;
  line-height: 1.6;
}

/* ================================= BUSCA ================================= */

.search-wrap {
  position: relative;
  z-index: 3;
  margin-top: -62px;
}

.search-card {
  padding: 24px 24px 26px;
  background: linear-gradient(118deg, #121110, #201a11 55%, #14120e);
  border: 1px solid #d4af3733;
  border-radius: 24px;
  box-shadow: 0 26px 60px #00000047;
}

/* ---------------------------- título do card ---------------------------- */

.search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ivory);
}

.search-head strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.search-head small {
  color: #f3ede180;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.plane {
  color: var(--gold);
  font-size: 22px;
}

/* ------------------------------- os campos ------------------------------ */

.search-fields {
  display: grid;
  grid-template-columns: 1.55fr 1.35fr 1.1fr auto;
  gap: 10px;
}

/* pílula clara — base de todos os campos */
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 20px;
  background: var(--ivory);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus-within,
.field-button:hover,
.field-button[aria-expanded="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #d4af3729;
}

.field-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--bronze);
}

.field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
}

.field input::placeholder {
  color: #7d7669;
}

/* origem ⇄ destino */
.group-route {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.group-route .field:first-child {
  padding-right: 34px;
}

.group-route .field:last-of-type {
  padding-left: 34px;
}

.swap-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--paper);
  border: 1px solid #cdc3ae;
  border-radius: 50%;
  transition: background 0.2s, transform 0.3s;
}

.swap-button:hover {
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(180deg);
}

.swap-button .field-icon {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

/* entrada | saída dividem uma única pílula */
.group-dates {
  display: flex;
  align-items: stretch;
  background: var(--ivory);
  border-radius: 999px;
}

.group-dates .field {
  flex: 1;
  min-width: 0;
  background: none;
  box-shadow: none;
}

.field-divider {
  flex: none;
  width: 1px;
  margin: 16px 0;
  background: #d0c8b8;
}

/* passageiros e quartos */
.group-guests {
  position: relative;
}

.field-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.field-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.field-stack small {
  color: #7d7669;
  font-size: 11px;
}

.field-stack strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.guests-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6;
  width: 290px;
  padding: 18px;
  background: var(--ivory);
  border: 1px solid #d4af3759;
  border-radius: 20px;
  box-shadow: 0 22px 50px #0000003d;
}

.guests-popover[hidden] {
  display: none;
}

.guests-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd4c2;
}

.guests-row strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.guests-row small {
  color: #7d7669;
  font-size: 10px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid #c3b9a5;
  border-radius: 50%;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  transition: all 0.2s;
}

.stepper button:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper span {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.guests-done {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* botão buscar */
.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 64px;
  padding: 0 34px;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: filter 0.2s, transform 0.2s;
}

.search-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.search-button .field-icon {
  stroke-width: 2;
  color: var(--ink);
}

/* =============================== DESTINOS ================================ */

.destinations {
  /* sobe 15px e abre o mesmo respiro embaixo, para o card não encostar
     na seção escura das experiências */
  padding: 125px 0 15px;
}

.country-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 55px;
  border-top: 1px solid #bdb4a6;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.country-tabs button {
  min-height: 110px;
  padding: 22px 16px;
  text-align: left;
  background: none;
  border: 1px solid #bdb4a6;
  border-top: 0;
  border-left: 0;
  font: 400 24px Georgia, serif;
  transition: all 0.2s;
}

.country-tabs button:first-child {
  border-left: 1px solid #bdb4a6;
}

.country-tabs button.active {
  background: var(--ink);
  color: var(--gold);
}

.destination-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  min-height: 440px;
  padding: 60px;
  color: var(--ivory);
  background-position: center;
  background-size: cover;
  border-radius: 0 0 24px 24px;
  transition: background-image 0.35s;
}

.destination-feature.feature-portugal {
  background-image: linear-gradient(90deg, #0a0a0ae6, #0a0a0a6b), url(../img/destino-portugal.jpg);
}

.destination-feature.feature-italia {
  background-image: linear-gradient(90deg, #0a0a0ae6, #0a0a0a6b), url(../img/destino-italia.jpg);
}

.destination-feature.feature-espanha {
  background-image: linear-gradient(90deg, #0a0a0ae6, #0a0a0a6b), url(../img/destino-espanha.jpg);
}

.destination-feature.feature-eua {
  background-image: linear-gradient(90deg, #0a0a0ae6, #0a0a0a6b), url(../img/destino-eua.jpg);
}

.destination-feature h3 {
  margin: 0 0 19px;
  font: 400 clamp(57px, 7vw, 93px) / 0.85 Georgia, serif;
  letter-spacing: -0.07em;
}

.destination-feature p:not(.eyebrow) {
  max-width: 435px;
  margin-bottom: 28px;
  color: #f3ede1c7;
  line-height: 1.7;
}

.destination-feature ul {
  border-top: 1px solid #f3ede14d;
}

.destination-feature li {
  display: grid;
  grid-template-columns: 36px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid #f3ede14d;
}

.destination-feature li > span {
  padding-top: 6px;
  color: var(--gold);
  font-size: 9px;
}

.destination-feature li a {
  display: flex;
  justify-content: space-between;
  color: var(--ivory);
  font: 400 22px Georgia, serif;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s;
}

.destination-feature li a:hover {
  color: var(--gold);
}

.destination-feature li b {
  color: var(--gold);
  font-family: Arial, sans-serif;
}

/* ============================= EXPERIÊNCIAS ============================== */

.experiences {
  padding: 110px 0 120px;
  background: #121611;
  color: var(--ivory);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(43px, 5.8vw, 78px);
}

.section-head > p {
  width: 285px;
  margin: 0;
  color: #f3ede1b3;
  font-size: 15px;
  line-height: 1.75;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.experience-card {
  position: relative;
  display: flex;
  align-items: end;
  height: 430px;
  padding: 20px;
  color: var(--ivory);
  text-decoration: none;
  background-position: center;
  background-size: cover;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.35s, filter 0.35s;
}

.experience-card:hover {
  transform: translateY(-8px);
  filter: saturate(1.2);
}

/* véu escuro na base */
.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(#0000 40%, #000000d9);
}

/* faixa diagonal riscada */
.experience-card::after {
  content: "";
  position: absolute;
  top: -5%;
  left: -30%;
  width: 155%;
  height: 68%;
  opacity: 0.65;
  background: repeating-linear-gradient(90deg, #0000 0 28px, #f3ede126 29px 30px);
  border: 1px solid #f3ede159;
  transform: rotate(-18deg);
}

.card-01 { background-image: url(../img/exp-vinhos.jpg); }
.card-02 { background-image: url(../img/exp-business.jpg); }
.card-03 { background-image: url(../img/exp-mar.jpg); }
.card-04 { background-image: url(../img/exp-neve.jpg); }

.card-number,
.card-content {
  position: relative;
  z-index: 2;
}

.card-number {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.card-content p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.card-content h3 {
  margin: 0 0 12px;
  font: 400 47px / 1 Georgia, serif;
}

.card-content span {
  color: #f3ede1d9;
  font-size: 11px;
}

.card-content b {
  padding-left: 11px;
  color: var(--gold);
  font-size: 18px;
}

/* ================================= BLOG ================================== */

.blog-teaser {
  padding: 120px 0;
  background: #e6ddc9;
}

.blog-teaser-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 100px;
}

.blog-teaser h2 {
  font: 400 clamp(48px, 7vw, 92px) / 0.9 Georgia, serif;
  letter-spacing: -0.065em;
}

.blog-teaser-grid > div:last-child p {
  margin: 0 0 28px;
  color: #575044;
  font: 16px / 1.7 Arial, sans-serif;
}

/* O CTA do teaser é um link para blog/index.html, não um <button>. */
.blog-teaser .gold-button {
  display: inline-block;
  text-decoration: none;
}

/* =============================== CTA FINAL =============================== */

.cta-section {
  position: relative;
  padding: 125px 0;
  text-align: center;
  color: var(--ivory);
  background: radial-gradient(circle at 77% 35%, #d4af3729, transparent 19%), var(--ink);
  overflow: hidden;
}

/* marca d'água tipográfica */
.cta-section::before {
  content: "NESSO";
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: transparent;
  -webkit-text-stroke: 1px #d4af371f;
  font: 30vw / 1 Georgia, serif;
  letter-spacing: -0.08em;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-logo {
  width: 260px;
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.cta-inner h2 {
  margin-bottom: 36px;
  font-size: clamp(50px, 7vw, 96px);
}

/* =============================== RESPONSIVO ============================== */

@media (width <= 900px) {
  .nav-links {
    display: none;
  }

  .search-wrap {
    margin-top: -40px;
  }

  .search-card {
    padding: 20px 20px 22px;
  }

  .search-fields {
    grid-template-columns: 1fr 1fr;
  }

  .group-route,
  .search-button {
    grid-column: span 2;
  }

  .destinations {
    padding: 85px 0 15px;
  }

  .country-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .destination-feature {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 42px 30px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 32px;
  }

  .section-head > p {
    width: auto;
  }

  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-teaser-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (width <= 560px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .nav {
    height: 62px;
  }

  .actual-logo {
    width: 155px;
    height: 58px;
  }

  .nav-cta {
    padding: 10px;
    font-size: 9px;
  }

  .hero {
    min-height: 645px;
  }

  .hero-content {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 61px;
  }

  .search-fields,
  .group-route {
    grid-template-columns: 1fr;
  }

  .group-route,
  .search-button {
    grid-column: auto;
  }

  /* empilhado, o botão de inverter gira para apontar cima/baixo */
  .swap-button {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .swap-button:hover {
    transform: translate(-50%, -50%) rotate(270deg);
  }

  .group-route .field:first-child {
    padding-right: 20px;
  }

  .group-route .field:last-of-type {
    padding-left: 20px;
  }

  .group-dates {
    flex-direction: column;
    border-radius: 30px;
  }

  .field-divider {
    width: auto;
    height: 1px;
    margin: 0 20px;
  }

  .guests-popover {
    width: 100%;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-card {
    height: 290px;
  }

  .blog-teaser {
    padding: 85px 0;
  }

  .cta-section {
    padding: 95px 0;
  }

  .cta-logo {
    width: 190px;
    height: 76px;
  }
}
