/* ============================================================
   Abbruzzissimo — Marketing Site
   Palette B — Teal + Saffron
   Deep teal frame · limestone content · saffron CTAs ·
   crocus rare accent · seal gold on dark only · charcoal text
   ============================================================ */

:root {
  /* ---- Palette B core ---- */
  --teal: #0d2a2e;          /* Deep teal: header, hero, footer, dark bands */
  --limestone: #faf7f0;     /* Light page / product / tour background */
  --saffron: #b0561b;       /* Primary CTA (white text, 5.0:1) */
  --saffron-dark: #94460f;  /* CTA hover (white text, 6.7:1) */
  --crocus: #6e4f8a;        /* Rare accent: tags, coming-soon badges */
  --gold: #c9a227;          /* Seal gold: logo, rules, accents on DARK only */
  --ink-gold: #7d600f;      /* Gold-ish text/links on light (5.5:1) */
  --charcoal: #2b2a26;      /* Body text on light (13.4:1) */

  /* ---- Derived tones ---- */
  --teal-deep: #0a2124;
  --teal-mid: #1a3d42;
  --teal-soft: #2a555c;
  --gold-bright: #e0bf4a;
  --gold-soft: #d4b84a;
  --gold-muted: var(--ink-gold);
  --cream: #f3ede1;
  --cream-warm: var(--limestone);
  --cream-dark: #e8e0d0;
  --stone: #5f5a52;
  --stone-light: #9a948c;
  --stone-dark: #3a3632;
  --white: #ffffff;
  --text: var(--charcoal);
  --text-muted: #55514a;
  --border: rgba(43, 42, 38, 0.12);
  --border-gold: rgba(201, 162, 39, 0.45);
  --shadow: 0 4px 20px rgba(43, 42, 38, 0.07);
  --shadow-lg: 0 14px 40px rgba(43, 42, 38, 0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max-width: 1120px;
  --header-h: 84px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  font-size: 16px;
}

body {
  padding-top: var(--header-h);
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream-warm);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--saffron-dark);
}

a:focus-visible,
button:focus-visible,
.lang-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible,
.section-dark a:focus-visible,
.hero a:focus-visible,
.page-hero a:focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--teal-deep);
  color: var(--gold-bright);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 42, 46, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.15;
}

.logo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(201, 162, 39, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35);
  background: #000;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.logo-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(247, 241, 230, 0.65);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--gold-soft);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: rgba(247, 241, 230, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: rgba(247, 241, 230, 0.7);
  font-family: var(--font-body);
  transition: background var(--transition), color var(--transition);
}

.lang-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--teal-deep);
}

.lang-btn:hover:not([aria-pressed="true"]) {
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold-bright);
}

/* ---------- Main / Layout ---------- */

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--cream);
}

.section-dark {
  background: var(--teal);
  color: var(--cream);
}

.section-dark .section-lead,
.section-dark .muted {
  color: rgba(247, 241, 230, 0.78);
}

.section-dark a {
  color: var(--gold-soft);
}

.section-dark a:hover {
  color: var(--gold-bright);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.75rem;
}

.section-dark .eyebrow,
.page-hero .eyebrow {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.page-hero h1,
.page-hero h2 {
  color: var(--cream);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); margin-bottom: 0.65rem; }

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.muted { color: var(--text-muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--teal);
  color: var(--cream);
}

/* Photo layer (slow Ken Burns zoom) + teal overlay */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero::before {
  background: url("../img/photos/hero-own-sirente-view-stormy-sunset-1500.jpg") center/cover no-repeat;
  transform-origin: 60% 40%;
  animation: hero-kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  background: linear-gradient(120deg, rgba(13, 42, 46, 0.93) 0%, rgba(13, 42, 46, 0.78) 50%, rgba(13, 42, 46, 0.55) 100%);
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-seal {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  align-self: start;
  margin-top: 0.35rem;
  box-shadow:
    0 0 0 1.5px rgba(201, 162, 39, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.35);
  background: #000;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 36rem;
  margin-bottom: 2rem;
  color: rgba(247, 241, 230, 0.9);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.btn-primary,
.btn.btn-gold {
  background: var(--saffron);
  color: var(--white);
  border-color: var(--saffron);
}

.btn.btn-primary:hover,
.btn.btn-gold:hover {
  background: var(--saffron-dark);
  border-color: var(--saffron-dark);
  color: var(--white);
}

.btn.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(201, 162, 39, 0.55);
}

.btn.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal-soft);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}



/* ---------- Cards / Grids ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-pillars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

/* 5 cards: 3 on the first row, 2 centred on the second (no orphan) */
.grid-pillars > * { grid-column: span 2; }
.grid-pillars > :nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.2rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--gold-muted);
}

.card-link:hover { color: var(--saffron-dark); }
.card-link::after { content: " →"; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  border: 1px solid var(--border);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--crocus);
  color: var(--white);
  border: 1px solid var(--crocus);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-dark .badge-soon,
.page-hero .badge-soon {
  border-color: rgba(255, 255, 255, 0.28);
}

.badge-soon-light {
  background: var(--crocus);
  color: var(--white);
  border-color: var(--crocus);
}

/* ---------- Page hero ---------- */

.page-hero {
  background:
    linear-gradient(135deg, var(--teal) 0%, var(--teal) 55%, var(--teal-mid) 100%);
  color: var(--cream);
  padding: 3.25rem 0 2.75rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.page-hero .section-lead {
  color: rgba(247, 241, 230, 0.85);
  margin-bottom: 0;
}

.page-hero-with-seal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.page-hero-seal {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.55), 0 6px 20px rgba(0, 0, 0, 0.35);
  background: #000;
}

/* ---------- Products ---------- */

.product-list { display: grid; gap: 1rem; }

.product-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.product-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink-gold);
  font-weight: 600;
  line-height: 1;
  min-width: 2rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-block h3 { margin-bottom: 1rem; }

.contact-dl { display: grid; gap: 1rem; }

.contact-dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.2rem;
}

.contact-dl dd {
  font-size: 1.05rem;
  color: var(--charcoal);
}

.placeholder-note {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--stone-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-style: italic;
}

.map-placeholder {
  background:
    linear-gradient(160deg, rgba(13, 42, 46, 0.12), rgba(201, 162, 39, 0.08)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(13, 42, 46, 0.04) 8px,
      rgba(13, 42, 46, 0.04) 16px
    );
  border: 1px dashed var(--teal-soft);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--stone);
}

/* ---------- CTA ---------- */

.cta-band {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-band h2 { margin-bottom: 0.75rem; color: var(--cream); }

.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  color: rgba(247, 241, 230, 0.82);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal);
  color: rgba(247, 241, 230, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px rgba(201, 162, 39, 0.5);
  background: #000;
}

.footer-brand .logo-name {
  color: var(--gold-bright);
  font-size: 1.35rem;
}

.footer-brand .logo-tag { color: rgba(247, 241, 230, 0.55); }

.footer-brand > p {
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer-col h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: rgba(247, 241, 230, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(247, 241, 230, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(247, 241, 230, 0.5);
}

/* ---------- Bilingual ---------- */

[data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="it"] { display: none !important; }
html[lang="en"] [data-lang="en"] { display: revert !important; }
[data-lang="pl"] { display: none !important; }
html[lang="pl"] [data-lang="it"] { display: none !important; }
html[lang="pl"] [data-lang="pl"] { display: revert !important; }

/* ---------- Utilities ---------- */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.max-prose { max-width: 42rem; }

.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 1rem 1.25rem; }
.prose li + li { margin-top: 0.4rem; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
  border: none;
}

.gold-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--ink-gold), transparent);
  margin: 1rem 0 1.5rem;
  border: none;
}

.section-dark .gold-rule,
.hero .gold-rule,
.page-hero .gold-rule {
  background: linear-gradient(90deg, var(--gold), transparent);
}


/* ---------- Scroll reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }
.reveal-delay-5 { transition-delay: 0.3s; }
.reveal-delay-6 { transition-delay: 0.36s; }

@media (hover: hover) and (pointer: fine) {
  .card,
  .product-item,
  .contact-block {
    transition:
      transform 0.35s ease,
      box-shadow 0.35s ease,
      border-color 0.35s ease;
  }

  .card:hover,
  .product-item:hover,
  .contact-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(43, 42, 38, 0.1), 0 2px 10px rgba(176, 86, 27, 0.07);
    border-color: rgba(176, 86, 27, 0.3);
  }

  .card:focus-within,
  .product-item:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(176, 86, 27, 0.35);
  }
}

/* ---------- Photo carousels ---------- */

.carousel-section {
  padding-top: 0.5rem;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1f22;
  box-shadow: 0 18px 48px rgba(10, 31, 34, 0.18);
  outline: none;
  touch-action: pan-y;
}

.carousel--compact {
  max-width: 720px;
}

.carousel:focus-visible {
  box-shadow:
    0 18px 48px rgba(10, 31, 34, 0.18),
    0 0 0 3px rgba(201, 162, 39, 0.55);
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: grab;
}

.carousel.is-dragging .carousel-viewport {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1f22, #14363a);
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.carousel-slide.is-error {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.is-error::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(201, 162, 39, 0.25), transparent 55%),
    linear-gradient(135deg, #0a1f22, #1a454a);
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(8, 22, 24, 0.88));
  color: #f7f1e6;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: rgba(10, 31, 34, 0.72);
  color: #f7f1e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: rgba(201, 162, 39, 0.92);
  border-color: var(--gold, #c9a227);
  color: #0a1f22;
  outline: none;
}

.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 3.5rem;
  pointer-events: none;
}

.carousel.has-caption .carousel-dots {
  bottom: 2.85rem;
}

.carousel-dots button {
  pointer-events: auto;
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 230, 0.65);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.carousel-dots button.is-active,
.carousel-dots button[aria-selected="true"] {
  background: var(--gold, #c9a227);
  border-color: var(--gold, #c9a227);
  transform: scale(1.15);
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */

/* Prevent accidental horizontal scroll from full-bleed elements */
/* 'clip' stops sideways scrolling without breaking the sticky header
   ('hidden' on html/body turns them into scroll containers, which unpins it) */
html, body {
  overflow-x: clip;
}

@media (max-width: 980px) {
  .nav-list a { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .grid-3,
  .grid-2,
  .feature-row,
  .contact-grid,
  .footer-grid,
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .section { padding: 3rem 0; }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    justify-items: center;
    text-align: center;
    padding: 3.25rem 1.25rem 3rem;
    gap: 1.5rem;
  }

  .hero-seal { width: 84px; height: 84px; align-self: auto; margin-top: 0; }

  .grid-pillars { grid-template-columns: repeat(2, 1fr); }
  .grid-pillars > *,
  .grid-pillars > :nth-child(4):nth-last-child(2) { grid-column: auto; }
  .grid-pillars > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  .hero h1 { max-width: none; margin-left: auto; margin-right: auto; }

  .hero-lead { margin-left: auto; margin-right: auto; font-size: 1.05rem; }

  .hero-actions { justify-content: center; }

  .feature-row.reverse-mobile .feature-img { order: -1; }

  .page-hero { padding: 2.5rem 0 2.15rem; }

  .page-hero-with-seal {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
  }

  .page-hero-seal { width: 76px; height: 76px; }

  /* Mobile nav: slide-down panel with gold accents */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.55rem;
    border-color: rgba(201, 162, 39, 0.55);
  }

  .nav-toggle[aria-expanded="true"] {
    background: rgba(201, 162, 39, 0.18);
    border-color: var(--gold);
    color: var(--gold-bright);
  }

  .header-inner {
    position: relative;
    gap: 0.65rem;
  }

  .header-actions {
    margin-left: auto;
    order: 2;
  }

  .nav-toggle { order: 3; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--teal-deep) 0%, #0a1f22 100%);
    border-bottom: 1px solid rgba(201, 162, 39, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 1rem 1.25rem;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0.25s;
    z-index: 99;
  }

  .nav.is-open {
    max-height: min(80vh, 520px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(201, 162, 39, 0.22);
  }

  .nav-list a {
    padding: 0.85rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    border-left: 2px solid transparent;
  }

  .nav-list a:hover,
  .nav-list a[aria-current="page"] {
    border-left-color: var(--gold);
    background: rgba(201, 162, 39, 0.12);
  }

  .logo-text { display: none; }

  .logo-img { width: 48px; height: 48px; }

  .lang-btn {
    min-height: 40px;
    min-width: 40px;
    padding: 0.45rem 0.75rem;
  }

  .carousel-prev { left: 0.45rem; }
  .carousel-next { right: 0.45rem; }

  .footer-grid { gap: 1.75rem; }
}

/* Phone / small tablet (~375–430px and below) */
@media (max-width: 520px) {
  :root { --header-h: 68px; }

  .container,
  .header-inner,
  .hero-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-inner { padding-top: 2.75rem; padding-bottom: 2.5rem; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-seal { width: 72px; height: 72px; }

  .hero-lead { font-size: 1rem; }

  .btn {
    min-height: 44px;
    padding: 0.7rem 1.25rem;
  }

  .card { padding: 1.35rem; }

  .product-item {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .grid-pillars { gap: 1rem; grid-template-columns: 1fr; }

  .carousel-viewport { aspect-ratio: 5 / 4; }

  .carousel-caption {
    font-size: 0.82rem;
    padding: 1.4rem 0.85rem 0.85rem;
  }

  .carousel.has-caption .carousel-dots { bottom: 2.35rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-brand > p { max-width: none; }

  .contact-block { padding: 1.35rem; }

  .cta-band { padding: 2.75rem 1rem; }
}

@media (max-width: 380px) {
  .logo-img { width: 44px; height: 44px; }
  .lang-btn {
    min-width: 36px;
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
  }
  .hero-seal { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carousel-track {
    transition: none !important;
  }

  .hero::before {
    animation: none !important;
    transform: none;
  }
}


/* Lock page scroll while mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Ensure interactive controls meet ~44px tap targets on small screens */
@media (max-width: 900px) {
  .card-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0;
  }
}


/* ---------- Page transitions: menu stays put, content fades ---------- */

@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

::view-transition-old(root) {
  animation: 180ms ease both page-fade-out;
}

::view-transition-new(root) {
  animation: 260ms ease both page-fade-in;
}

::view-transition-group(site-header),
::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
}

@keyframes page-fade-out {
  to { opacity: 0; }
}

@keyframes page-fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Park map palette hooks (Palette B) */
:root {
  --map-frame-bg: var(--white);
  --map-frame-border: var(--border-gold);
  --map-accent: var(--saffron);
  --map-hint: var(--ink-gold);
}

/* ---------- Park map (Visit page) + lightbox ---------- */


.park-map {
  max-width: 900px;
  margin: 1.75rem auto 0;
  padding: 0.75rem;
  background: var(--map-frame-bg);
  border: 1px solid var(--map-frame-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
}

.park-map-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  line-height: 0;
}

.park-map-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 600;
  transition: transform 0.4s ease;
}

.park-map-link:hover img { transform: scale(1.015); }

.park-map-link:focus-visible {
  outline: 3px solid var(--map-accent);
  outline-offset: 3px;
}

.park-map-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--gold-bright);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}

.park-map-zoom svg { width: 1.2rem; height: 1.2rem; }
.park-map-link:hover .park-map-zoom,
.park-map-link:focus-visible .park-map-zoom { opacity: 1; transform: scale(1.06); }

.park-map figcaption {
  max-width: 64ch;
  margin: 0 auto;
  padding: 0.9rem 0.5rem 0.25rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.park-map-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--map-hint);
}

.map-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(96vw, 1200px);
  max-height: 94vh;
  overflow: visible;
}

.map-lightbox::backdrop {
  background: rgba(7, 22, 24, 0.86);
}

.map-lightbox-img {
  display: block;
  /* Scale to fit the viewport (4:3 map), never beyond 1200px */
  width: min(96vw, 1200px, calc(90vh * 4 / 3));
  height: auto;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.map-lightbox-close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  cursor: pointer;
  z-index: 1;
}

.map-lightbox-close svg { width: 1.25rem; height: 1.25rem; }
.map-lightbox-close:hover { background: var(--teal-mid); color: var(--gold-bright); }
.map-lightbox-close:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

html.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .park-map { padding: 0.5rem; }
  .park-map figcaption { font-size: 0.95rem; }
  .map-lightbox-close { top: 0.5rem; right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .park-map-link img, .park-map-zoom { transition: none; }
  .park-map-link:hover img { transform: none; }
}

/* ---------- Photos (sourced) ---------- */
.carousel-slide picture, .feature-img picture, .photo-tile picture, .product-thumb picture { display: contents; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.photo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-tile {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-tile figcaption {
  padding: 0.6rem 0.8rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.photo-note { margin-top: 1.25rem; font-size: 0.85rem; }
.photo-note a, .product-thumb a { text-decoration: underline; }
.product-item.has-img { grid-template-columns: auto 1fr 220px; align-items: center; }
.product-thumb { margin: 0; }
.product-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.product-thumb figcaption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-muted);
}
.feature-img { position: relative; }
.feature-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 1.8rem 0.95rem 0.65rem;
  background: linear-gradient(transparent, rgba(8, 22, 24, 0.85));
  color: #f7f1e6; font-size: 0.82rem; line-height: 1.35; pointer-events: none;
}
.footer-credits a { text-decoration: underline; text-underline-offset: 2px; }
.credits-table-wrap { overflow-x: auto; margin-top: 1rem; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--white); }
.credits-table th, .credits-table td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
.credits-table th { font-weight: 700; color: var(--teal); background: var(--cream); }
.credits-table td a { text-decoration: underline; word-break: break-word; }
.credits-table img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
@media (max-width: 900px) {
  .photo-grid, .photo-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-item.has-img { grid-template-columns: auto 1fr; }
  .product-item.has-img .product-thumb { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 520px) {
  .photo-grid, .photo-grid--3 { gap: 0.7rem; }
  .photo-tile figcaption { font-size: 0.78rem; padding: 0.45rem 0.6rem 0.55rem; }
  .credits-table img { width: 72px; height: 54px; }
}

/* Hero photo: WebP with JPEG fallback, smaller file on phones */
.hero::before { background-image: image-set(url("../img/photos/hero-own-sirente-view-stormy-sunset-1500.webp") type("image/webp") 1x, url("../img/photos/hero-own-sirente-view-stormy-sunset-1500.jpg") type("image/jpeg") 1x); }
@media (max-width: 700px) { .hero::before { background-image: image-set(url("../img/photos/hero-own-sirente-view-stormy-sunset-800.webp") type("image/webp") 1x, url("../img/photos/hero-own-sirente-view-stormy-sunset-800.jpg") type("image/jpeg") 1x); } }
