/* ============================================================
   IziTravel — site styles.
   Built on the bound IziTravel design tokens (_ds/.../styles.css).
   Component classes mirror the DS React components exactly
   (Button, Card, Tabs, Tag, Badge, Input).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: var(--fw-light);
  line-height: var(--leading-tight); color: var(--text-strong); margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--text-link); text-decoration: none; }
::selection { background: var(--clay-200); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container-lg); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-xl { max-width: var(--container-xl); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-md { max-width: var(--container-md); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.ground-cream { background: #ffffff; }
.ground-sand  { background: var(--teal-50); }
.ground-wash  { background: var(--teal-50); }
.ground-teal  { background: var(--wash-teal); color: #fff; }
.ground-clay  { background: var(--clay-50); }

/* ---------- Type roles ---------- */
.eyebrow { font-family: var(--font-display); font-weight: var(--fw-medium); text-transform: uppercase;
  letter-spacing: var(--tracking-wider); font-size: var(--text-sm); color: var(--color-accent); margin: 0; }
.eyebrow--light { color: var(--clay-300); }
.display-1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.015em; }
.display-2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.01em; }
.display-3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }
.script { font-family: var(--font-script); font-weight: 400; color: var(--color-brand); line-height: 1; }
.lede { font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--text-muted); }
.numeral { font-family: var(--font-serif); font-weight: 500; line-height: 1; }
.tx-muted { color: var(--text-muted); }
.tx-brand { color: var(--color-brand); }
.tx-accent { color: var(--color-accent); }
.center { text-align: center; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

/* ---------- Buttons (mirror of DS Button.jsx) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border: 1.5px solid transparent; border-radius: var(--radius-pill);
  transition: background 200ms, color 200ms, box-shadow 200ms, opacity 200ms, transform 140ms, filter 200ms;
  white-space: nowrap; text-decoration: none; padding: 11px 26px; font-size: 12px; }
.btn:hover { text-decoration: none; }
.btn--sm { padding: 7px 18px; font-size: 11px; }
.btn--lg { padding: 15px 36px; font-size: 13px; }
.btn--primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-teal); }
.btn--secondary { background: var(--clay-600); color: #fff; box-shadow: var(--shadow-clay); }
.btn--outline { background: transparent; color: var(--teal-700); border-color: var(--teal-600); }
.btn--ghost { background: transparent; color: var(--teal-600); }
.btn--primary:hover, .btn--secondary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--outline:hover { background: var(--teal-50); transform: translateY(-1px); }
.btn--ghost:hover { background: var(--teal-50); }
.btn--on-dark.btn--outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--on-dark.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--wa { background: #1f8a4c; color: #fff; box-shadow: 0 10px 28px rgba(31,138,76,0.24); }
.btn--wa:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ---------- Cards (mirror of DS Card.jsx) ---------- */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  color: inherit; display: block; }
.card--pad { padding: var(--space-6); }
.card--flat { background: var(--sand-50); box-shadow: none; border: 1px solid var(--line); }
.card--accent { background: var(--clay-50); box-shadow: var(--shadow-xs); border: 1px solid var(--clay-100); }
.card--brand { background: var(--wash-teal); color: #fff; box-shadow: var(--shadow-teal); }
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card--md { border-radius: var(--radius-md); }

/* ---------- Tag / Badge ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 13px;
  border-radius: var(--radius-pill); background: var(--teal-50); color: var(--teal-700); }
.tag--clay { background: var(--clay-50); color: var(--clay-700); }
.tag--solid { background: var(--teal-600); color: #fff; }
.badge { display:inline-flex; align-items:center; gap:6px; font-family: var(--font-body); font-weight:700;
  font-size: 12px; padding: 4px 11px; border-radius: var(--radius-pill); background: var(--clay-600); color:#fff; }

/* ---------- Inputs ---------- */
.input { font-family: var(--font-body); font-size: 15px; color: var(--ink-900); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; width: 100%;
  transition: border-color 180ms, box-shadow 180ms; }
.input:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(58,132,136,0.15); }
.input::placeholder { color: var(--ink-300); }

/* ---------- Hairline divider ---------- */
.hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Watercolour decorative blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; z-index: 0; }
.blob--sage { background: var(--sage-300); }
.blob--peach { background: var(--peach-200); }
.blob--teal { background: var(--teal-200); }
.blob--clay { background: var(--clay-200); }

/* ============================================================
   HEADER
   ============================================================ */
/* right cluster: language + theme + CTA + burger */
.header-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.util-pill { display: inline-flex; gap: 2px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.24); border-radius: var(--radius-pill); padding: 3px; backdrop-filter: blur(6px); transition: background 220ms, border-color 220ms; }
.util-pill button { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.06em;
  border: none; background: transparent; color: rgba(255,255,255,0.85); padding: 4px 11px; border-radius: var(--radius-pill); cursor: pointer; transition: all 160ms; }
.util-pill button.active { background: var(--clay-500); color: #fff; }
.site-header.scrolled .util-pill { background: var(--sand-100); border-color: transparent; }
.site-header.scrolled .util-pill button { color: var(--ink-500); }
.site-header.scrolled .util-pill button.active { background: var(--clay-500); color: #fff; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: transparent;
  border-bottom: 1px solid transparent; transition: background 280ms, box-shadow 280ms, border-color 280ms; }
.site-header.scrolled { background: rgba(250,244,234,0.92); backdrop-filter: blur(12px); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,48,48,0.55), rgba(18,48,48,0)); opacity: 1; transition: opacity 280ms; z-index: -1; }
.site-header.scrolled::before { opacity: 0; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; gap: 18px; }
.brand-lock { display: flex; align-items: center; gap: 11px; justify-self: start; }
.brand-logo, .brand-logo-white { height: 52px; width: auto; display: none; }
.site-header:not(.scrolled) .brand-logo-white { display: block; }
.site-header.scrolled .brand-logo { display: block; }
.light-hero .site-header:not(.scrolled) .brand-logo { display: block; }
.light-hero .site-header:not(.scrolled) .brand-logo-white { display: none; }
@media (max-width: 760px) { .brand-logo, .brand-logo-white { height: 46px; } }
/* light-hero header: dark nav over the cream illustration */
.light-hero .site-header::before { background: linear-gradient(180deg, rgba(250,244,234,0.82), rgba(250,244,234,0)); }
.light-hero .site-header:not(.scrolled) .mainnav > a,
.light-hero .site-header:not(.scrolled) .navitem > button { color: var(--ink-700); }
.light-hero .site-header:not(.scrolled) .mainnav > a:hover,
.light-hero .site-header:not(.scrolled) .navitem > button:hover,
.light-hero .site-header:not(.scrolled) .navitem:hover > button { color: var(--clay-600); background: rgba(44,110,114,0.06); }
.light-hero .site-header:not(.scrolled) .mainnav > a.is-active { color: var(--teal-700); }
.light-hero .site-header:not(.scrolled) .util-pill { background: rgba(20,52,52,0.06); border-color: var(--line); }
.light-hero .site-header:not(.scrolled) .util-pill button { color: var(--ink-500); }
.light-hero .site-header:not(.scrolled) .util-pill button.active { background: var(--clay-500); color: #fff; }
.light-hero .site-header:not(.scrolled) .burger { background: var(--teal-600); border-color: transparent; }

.mainnav { display: flex; align-items: center; gap: 2px; justify-self: center; }
.mainnav > a, .navitem > button { font-family: var(--font-display); font-weight: 500; font-size: 13.5px;
  letter-spacing: 0.03em; color: rgba(255,255,255,0.92); background: none; border: none; cursor: pointer;
  padding: 10px 15px; border-radius: var(--radius-sm); transition: color 160ms, background 160ms; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-header.scrolled .mainnav > a, .site-header.scrolled .navitem > button { color: var(--ink-700); }
.mainnav > a:hover, .navitem > button:hover, .navitem:hover > button { color: #fff; text-decoration: none; background: rgba(255,255,255,0.16); }
.site-header.scrolled .mainnav > a:hover, .site-header.scrolled .navitem > button:hover, .site-header.scrolled .navitem:hover > button { color: var(--clay-600); background: rgba(44,110,114,0.06); }
.mainnav > a.is-active { color: #fff; }
.site-header.scrolled .mainnav > a.is-active { color: var(--teal-700); }
.navitem { position: relative; }
.navitem .caret { width: 9px; height: 9px; transition: transform 200ms; }
.navitem:hover .caret { transform: rotate(180deg); }

/* Mega dropdown */
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  padding-top: 14px; opacity: 0; visibility: hidden; transition: opacity 200ms, transform 200ms; z-index: 210; }
.navitem:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega { width: 720px; display: grid; grid-template-columns: 0.85fr 1.15fr;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.mega-col { padding: 16px; }
.mega-col--continents { background: var(--sand-50); border-right: 1px solid var(--line); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.mega-cont { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px; color: var(--ink-700); cursor: pointer; transition: all 150ms; }
.mega-cont .ar { opacity: 0.4; }
.mega-cont.active, .mega-cont:hover { background: var(--white); color: var(--teal-700); box-shadow: var(--shadow-xs); }
.mega-cont.active .ar { opacity: 1; color: var(--clay-600); }
.mega-panel { display: none; }
.mega-panel.active { display: block; }
.mega-panel h5 { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay-600); margin: 4px 0 12px 8px; }
.mega-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-city { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink-700);
  font-family: var(--font-body); font-size: 14px; transition: all 150ms; }
.mega-city:hover { background: var(--teal-50); color: var(--teal-800); text-decoration: none; }
.mega-city.soon { color: var(--ink-300); pointer-events: none; }
.mega-city.soon::after { content: "em breve"; font-family: var(--font-display); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--sand-100); color: var(--ink-400); padding: 2px 7px; border-radius: var(--radius-pill); margin-left: auto; }
.mega-city .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay-400); flex: none; }
.mega-feature { margin: 14px 16px 16px; border-radius: var(--radius-md); overflow: hidden; position: relative; height: 110px; display: block; }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; }
.mega-feature .mf-label { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 14px;
  background: linear-gradient(0deg, rgba(20,52,52,0.72), rgba(20,52,52,0) 70%); color: #fff; }
.mega-feature .mf-label .e { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-200); }
.mega-feature .mf-label .t { font-family: var(--font-display); font-weight: 500; font-size: 16px; }

.header-cta-btn { white-space: nowrap; }
.burger { display: none; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.26); color: #fff; width: 44px; height: 44px; border-radius: var(--radius-md); cursor: pointer; align-items: center; justify-content: center; }
.site-header.scrolled .burger { background: var(--teal-600); border-color: transparent; }
.burger svg { width: 22px; height: 22px; }

/* Mobile nav */
.mobnav { display: none; position: fixed; inset: 0; z-index: 300; background: var(--cream); padding: 20px; overflow-y: auto; }
.mobnav.open { display: block; }
.mobnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobnav a, .mobnav .macc-head { display: block; font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--ink-800); padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobnav .macc-head { display: flex; justify-content: space-between; cursor: pointer; }
.mobnav .macc-body { display: none; padding-left: 14px; }
.mobnav .macc.open .macc-body { display: block; }
.mobnav .macc-body a { font-size: 16px; font-family: var(--font-body); color: var(--ink-600); padding: 10px 4px; border-bottom: 1px dashed var(--line-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--teal-800); color: var(--cream); position: relative; overflow: hidden; }
.site-footer .blob { opacity: 0.22; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: var(--space-10) var(--space-9); position: relative; z-index: 1; }
.footer-brand .bl-izi { font-family: var(--font-script); font-size: 38px; color: #fff; line-height: 0.8; }
.footer-brand .bl-travel { font-family: var(--font-display); font-weight: 400; font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--clay-300); }
.footer-brand p { color: rgba(250,244,234,0.7); margin-top: 16px; max-width: 30ch; font-size: 14.5px; }
.footer-col h6 { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-300); margin: 0 0 18px; }
.footer-col a { display: block; color: rgba(250,244,234,0.78); padding: 6px 0; font-size: 14.5px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background 180ms; }
.footer-social a:hover { background: var(--clay-500); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-bottom p { color: rgba(250,244,234,0.6); font-size: 13px; }
.footer-bottom .fb-legal { display: flex; gap: 22px; }
.footer-bottom .fb-legal a { color: rgba(250,244,234,0.6); font-size: 13px; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 250; width: 60px; height: 60px; border-radius: 50%;
  background: #1f8a4c; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(31,138,76,0.4);
  transition: transform 200ms; }
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   Reveal on scroll — transform-only so content is NEVER hidden
   (opacity transitions freeze at 0 when the doc isn't rendering,
    e.g. captures / PDF export / background tabs).
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(22px); transition: transform 650ms var(--ease-out); will-change: transform; }
  .reveal.in { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .mainnav, .header-cta-btn { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}
