/* ==========================================================================
   Ninna Nanna B&B — "Oasi Padana" design system
   Evolved from the original Bellevue WordPress theme:
   warm orange (#e58200 -> terracotta) + deep teal (#025e73), Josefin Sans
   headings, flat photo-forward sections, ghost buttons.
   Base framework: Bulma 1.0 (CDN). This sheet holds brand identity only.
   ========================================================================== */

:root {
  --terracotta: #c2641c;
  --terracotta-bright: #e58a2e;
  --terracotta-dark: #9c4f14;
  --teal: #0a5868;
  --teal-dark: #073f4b;
  --teal-deep: #11343c;
  --cream: #faf5ec;
  --sand: #f0e4cf;
  --ink: #2d2a26;
  --ink-soft: #5b554c;
  --white: #ffffff;
  --line: #e6dcc9;
  --radius: 6px;
  --font-head: "Josefin Sans", "Trebuchet MS", sans-serif;
  --font-body: "Lora", Georgia, serif;
  --shadow-soft: 0 10px 30px rgba(45, 42, 38, 0.10);
}

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

h1, h2, h3, h4, h5,
.title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--terracotta);
}

::selection {
  background: var(--terracotta);
  color: var(--white);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem 0.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-ghost {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--teal-dark);
}

.btn-ghost-dark {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: transparent;
}

.btn-ghost-dark:hover {
  background: var(--terracotta);
  color: var(--white);
}

.btn-solid {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.btn-solid:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

/* ---------- Top utility bar ---------- */

.topbar {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar a {
  color: var(--terracotta-bright);
}

.topbar a:hover {
  color: var(--white);
}

@media (max-width: 600px) {
  .topbar-welcome {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }
}

/* ---------- Navigation ---------- */

.main-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding-top: 3px;
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  margin: 4px 0;
  transition: all 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

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

.nav-links a.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.nav-links .nav-cta {
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  color: var(--teal);
  padding: 0.55rem 1.2rem 0.4rem;
}

.nav-links .nav-cta:hover {
  background: var(--teal);
  color: var(--white);
  border-bottom-color: transparent;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.4rem;
    padding: 0.8rem 0 0.5rem;
    border-top: 1px solid var(--line);
    margin-top: 0.6rem;
  }

  .nav-links.is-open {
    display: flex;
  }
}

/* ---------- Home hero ---------- */

.hero-home {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 52, 60, 0.55) 0%, rgba(17, 52, 60, 0.30) 45%, rgba(45, 42, 38, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 4rem 1.5rem;
  max-width: 760px;
}

.hero-kicker {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--terracotta-bright);
  margin-bottom: 1rem;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 1rem;
}

.hero-lead {
  font-style: italic;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 52, 60, 0.18) 0%, rgba(28, 26, 23, 0.72) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.4rem;
  color: var(--white);
}

.page-hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.4rem;
}

.page-kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta-bright);
  margin-bottom: 0.7rem;
}

.page-tagline {
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.price-chip {
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.1rem 0.38rem;
  border-radius: var(--radius);
}

/* Plain hero for pages without a photo */

.page-hero-plain {
  background:
    radial-gradient(circle at 85% 20%, rgba(194, 100, 28, 0.16), transparent 45%),
    linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 100%);
  min-height: 270px;
}

.page-hero-plain .page-hero-scrim {
  display: none;
}

/* ---------- Section scaffolding ---------- */

.section-pad {
  padding: 4.5rem 1.5rem;
}

.section-pad-sm {
  padding: 3rem 1.5rem;
}

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

.section-sand {
  background: var(--sand);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.6rem;
}

.section-head.centered {
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.section-head .rule {
  display: inline-block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--terracotta);
  margin-bottom: 0.9rem;
}

.section-head .lede {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* ---------- Room cards ---------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

@media (max-width: 1024px) {
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
}

.room-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.room-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.room-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-card-photo img {
  transform: scale(1.05);
}

.room-card-price {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background: rgba(17, 52, 60, 0.88);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.8rem 0.3rem;
  border-radius: var(--radius);
}

.room-card-price strong {
  color: var(--terracotta-bright);
  font-size: 1rem;
}

.room-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.room-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.room-card-body h3 a {
  color: var(--ink);
}

.room-card-body h3 a:hover {
  color: var(--terracotta);
}

.room-card-body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex: 1;
}

.room-card-link {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- Alternating feature rows ---------- */

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

.feature-row + .feature-row {
  margin-top: 3.6rem;
}

@media (max-width: 820px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .feature-row.row-flip .feature-media {
    order: -1;
  }
}

.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  object-fit: cover;
}

.feature-copy h2,
.feature-copy h3 {
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
}

.feature-copy .rule {
  display: inline-block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--terracotta);
  margin-bottom: 0.8rem;
}

.feature-copy p + p {
  margin-top: 0.9rem;
}

/* ---------- Relax trio ---------- */

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

@media (max-width: 900px) {
  .trio-grid {
    grid-template-columns: 1fr;
  }
}

.trio-card {
  background: var(--white);
  border-top: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 4px 16px rgba(45, 42, 38, 0.07);
}

.trio-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.trio-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

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

.cta-band {
  background:
    radial-gradient(circle at 12% 110%, rgba(229, 138, 46, 0.25), transparent 50%),
    linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 1.8rem;
}

/* ---------- Article / prose ---------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.65rem;
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.55rem;
  position: relative;
}

.prose h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--terracotta);
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.9rem 0 0.6rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem 0;
  padding-left: 0;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol li {
  counter-increment: prose-ol;
  padding-left: 2rem;
}

.prose ol li::before {
  content: counter(prose-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--terracotta);
}

.prose a {
  border-bottom: 1px solid rgba(10, 88, 104, 0.35);
}

.prose a:hover {
  border-bottom-color: var(--terracotta);
}

.prose em {
  color: var(--ink-soft);
}

.prose-figure {
  margin: 2.2rem 0;
}

.prose-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.prose-figure figcaption {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- Archive notice (Joomla-era legacy pages) ---------- */

.archive-note {
  background: var(--sand);
  border-left: 5px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.3rem;
  margin: 0 0 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.archive-note strong {
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  color: var(--ink);
}

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

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 16px rgba(45, 42, 38, 0.06);
  max-width: 640px;
}

.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.2rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  background: var(--white);
}

.form-confirm {
  display: none;
  background: #eaf4ee;
  border: 1px solid #bcd9c6;
  border-radius: var(--radius);
  color: #1f5c38;
  padding: 1rem 1.2rem;
  margin-top: 0.4rem;
}

.form-confirm.is-visible {
  display: block;
}

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

.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0;
}

.footer-cols {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.8rem 1.5rem 2.6rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.6rem;
}

@media (max-width: 820px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--terracotta);
}

.site-footer p {
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--terracotta-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 1.3rem 1.5rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: 5.5rem 1.5rem;
}

.notfound .code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 8rem);
  color: var(--terracotta);
  line-height: 1;
}

.notfound h1 {
  font-size: 1.9rem;
  margin: 0.8rem 0 1rem;
}

.notfound p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 2rem;
}

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