/* =================================================
1. RESET
================================================= */

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

:root {
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
  --fs-logo: 20px;
  --fs-body: 16px;
  --fs-body-sm: 15px;
  --fs-body-lg: 18px;
  --fs-label: 14px;
  --fs-h1-hero: 64px;
  --fs-h1-page: 64px;
  --fs-h2-section: 38px;
  --fs-h3-card: 28px;
  --lh-heading: 1.15;
  --lh-body: 1.7;
}

body {
  font-family: var(--font-body);
  line-height: var(--lh-body);
  color: #222;
  background: #f6f6f6;
  overflow-x: hidden;
  width: 100%;
}

@media (min-width: 1025px) {
  html {
    scrollbar-color: #c8a45c rgba(200, 164, 92, 0.12);
    scrollbar-width: thin;
  }

  body::-webkit-scrollbar {
    width: 12px;
  }

  body::-webkit-scrollbar-track {
    background: rgba(200, 164, 92, 0.12);
  }

  body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d6b675 0%, #b78e42 100%);
    border: 2px solid #f6f6f6;
    border-radius: 999px;
  }

  body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #cdaa5f 0%, #a97d37 100%);
  }
}

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

img,
iframe {
  display: block;
  max-width: 100%;
}

/* =================================================
2. TIPOGRAFIA
================================================= */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
  font-weight: 700;
}

p,
li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #666;
}

h2 {
  font-size: var(--fs-h2-section);
}

h3 {
  font-size: var(--fs-h3-card);
}

/* =================================================
3. LAYOUT GENERALE
================================================= */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

section {
  padding: 50px 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================
4. HEADER
================================================= */

header {
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 65px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* =================================================
5. LOGO
================================================= */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: auto;
  height: 36px;
  transition: transform 0.2s ease;
}

.logo span {
  font-family: var(--font-display);
  font-size: var(--fs-logo);
  font-weight: 700;
  position: relative;
}

/* linea oro */

.logo span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;

  width: 100%;
  height: 2px;

  background: rgba(200, 164, 92, 0.22);

  transition: opacity 0.25s ease, background 0.25s ease;
}

.logo:hover span {
  color: inherit;
}

.logo:hover img {
  transform: scale(1.03);
}

.logo:hover span::after {
  opacity: 0.7;
  background: rgba(200, 164, 92, 0.3);
}

/* =================================================
6. NAVBAR
================================================= */

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 28px;
  font-size: var(--fs-body-sm);
  font-weight: 500;

  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 2px;

  background: #c8a45c;

  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active::after {
  width: 100%;
}

.language-switch,
.mobile-menu-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-switch {
  position: relative;
  gap: 10px;
  padding-left: 18px;
}

.language-switch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  background: rgba(34, 34, 34, 0.12);
  transform: translateY(-50%);
}

.language-switch a + a {
  position: relative;
}

.language-switch a + a::before {
  content: "/";
  position: absolute;
  left: -8px;
  top: 50%;
  color: rgba(61, 48, 20, 0.38);
  transform: translateY(-50%);
}

.language-switch a,
.mobile-menu-language a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 164, 92, 0.18);
  background: #fff;
  color: #5b451d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-switch a {
  min-width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7a7a7a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.language-switch a::after,
.mobile-menu-language a::after {
  content: none;
}

.language-switch a:hover {
  color: #3d3014;
}

.language-switch a.active,
.mobile-menu-language a.active {
  background: linear-gradient(135deg, #c8a45c, #b78e42);
  border-color: rgba(183, 142, 66, 0.52);
  color: white;
}

.language-switch a.active {
  background: transparent;
  border-color: transparent;
  color: #3d3014;
  text-decoration: underline;
  text-decoration-color: rgba(200, 164, 92, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* =================================================
7. TITOLI SEZIONE
================================================= */

.intro h2::after,
.apartments-preview h2::after,
.why h2::after,
.location h2::after,
.reviews h2::after,
.booking h2::after,
.features h2::after,
.guides h2::after,
.map h2::after {
  content: "";

  display: block;

  width: 60px;
  height: 2px;

  background: #c8a45c;

  margin: 15px auto 25px;
}

/* =================================================
8. BOTTONI
================================================= */

.btn {
  padding: 14px 30px;

  border-radius: 10px;

  min-width: 140px;

  color: white;

  font-weight: 500;

  transition: all 0.25s ease;
}

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

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.whatsapp {
  background: #25d366;
}

.email {
  background: #444;
}

.airbnb {
  background: #ff5a5f;
}

.booking-btn {
  background: #003580;
}

/* =================================================
9. CARD HOVER
================================================= */

.card-hover {
  transition: all 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* =================================================
10. FOOTER
================================================= */

footer {
  background: #111;
  color: #bbb;
  padding: 28px 20px;
  font-size: var(--fs-label);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 1;
  transform: none;
}

.footer-brand {
  color: #f5efe2;
  font-weight: 600;
}

.footer-links,
.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  justify-content: center;
}

footer a {
  color: #d5c299;
  transition: color 0.2s ease;
}

footer a:hover {
  color: white;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1040px, calc(100vw - 40px));
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.96);
  color: #3a3123;
  border: 1px solid rgba(200, 164, 92, 0.16);
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(22, 18, 12, 0.18);
  backdrop-filter: blur(12px);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 2500;
}

.cookie-banner.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
  color: #5d5547;
  margin: 0;
  max-width: 760px;
}

.cookie-banner p::after {
  content: " 🍪";
}

.cookie-banner a {
  color: #8f6c2c;
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

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

.cookie-btn.accept {
  background: linear-gradient(135deg, #cdaa5f, #b88d42);
  color: white;
  box-shadow: 0 12px 24px rgba(173, 129, 50, 0.24);
}

.cookie-btn.reject {
  background: #f7f2e8;
  color: #473b28;
  border: 1px solid rgba(200, 164, 92, 0.18);
}

/* =================================================
11. INFO INTRO
================================================= */

.info-intro {
  max-width: 900px;

  margin: 80px auto;

  text-align: center;

  padding: 0 20px;
}

.info-intro h2 {
  margin-bottom: 15px;
}

.info-intro h2::after {
  content: "";

  display: block;

  width: 60px;
  height: 2px;

  background: #c8a45c;

  margin: 15px auto 25px;
}

.info-intro p {
  max-width: 650px;

  margin: auto;
}

/* =================================================
12. HAMBURGER
================================================= */

.menu-toggle {
  width: 46px;
  height: 46px;

  border-radius: 14px;
  position: relative;

  display: none;
  align-items: center;
  justify-content: center;

  font-size: 0;
  line-height: 0;

  color: #3f3f3f;
  background: linear-gradient(135deg, #f6f6f6, #dddddd);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);

  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.menu-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.menu-toggle::after {
  top: 21px;
  opacity: 0;
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.menu-toggle.active {
  background: linear-gradient(135deg, #4f4f4f, #2f2f2f);
  color: white;
}

.menu-toggle.active::before {
  top: 21px;
  box-shadow: none;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active::after {
  opacity: 1;
  transform: translateX(-50%) rotate(-45deg);
}

.menu-overlay {
  position: fixed;

  inset: 0;

  background: rgba(17, 17, 17, 0.3);
  backdrop-filter: blur(3px);

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.3s ease, visibility 0.3s ease;

  z-index: 1500;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =================================================
13. MOBILE MENU
================================================= */

.mobile-menu {
  position: fixed;

  top: 12px;
  right: 12px;

  width: min(320px, calc(100vw - 24px));
  height: calc(100vh - 24px);

  background: linear-gradient(180deg, #fffdf9 0%, #f8f1e3 100%);

  display: flex;
  flex-direction: column;

  padding: 96px 22px 28px;

  gap: 12px;

  border-radius: 26px;

  border: 1px solid rgba(200, 164, 92, 0.28);

  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.14);

  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  pointer-events: none;

  transition: transform 0.35s ease, box-shadow 0.35s ease;

  z-index: 2000;

  overflow-y: auto;
}

.mobile-menu::before {
  content: "MaRoSa House";

  position: absolute;
  top: 28px;
  left: 22px;

  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;

  color: #5b451d;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  color: #5b451d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(17, 17, 17, 0.14);
  transform: rotate(90deg);
}

/* apertura sidebar */

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-language {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 164, 92, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mobile-menu-language::before {
  content: "Lingua";
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 0 8px;
  background: #fbf5e8;
  color: #8b6d35;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="en"] .mobile-menu-language::before {
  content: "Language";
}

/* links sidebar */

.mobile-menu a {
  padding: 16px 18px;

  border: 1px solid rgba(200, 164, 92, 0.28);

  border-radius: 16px;

  text-align: left;

  font-size: 17px;
  font-weight: 600;

  color: #333;

  background: rgba(255, 255, 255, 0.72);

  transition: all 0.25s ease;
}

.mobile-menu a:hover {
  background: linear-gradient(135deg, #cfab63, #b78e42);

  color: white;

  transform: translateX(-4px);

  box-shadow: 0 12px 24px rgba(183, 142, 66, 0.22);
}

.mobile-menu a.active {
  background: linear-gradient(180deg, #fffaf0 0%, #f6ecd7 100%);
  border-color: rgba(191, 161, 101, 0.34);
  color: #6a5221;
  box-shadow: 0 10px 22px rgba(191, 161, 101, 0.14);
}

/* =================================================
14. SIDEBAR LINKS
================================================= */

.mobile-menu a {
  letter-spacing: 0.01em;
}

.mobile-menu a:hover {
  color: white;
}

.mobile-menu a.active {
  color: #6a5221;
}

.mobile-menu .mobile-menu-language a {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(200, 164, 92, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #6e5524;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  justify-content: center;
  box-shadow: none;
}

.mobile-menu .mobile-menu-language a:hover {
  transform: none;
  background: rgba(200, 164, 92, 0.12);
  color: #4f3d19;
  box-shadow: none;
}

.mobile-menu .mobile-menu-language a.active {
  background: linear-gradient(180deg, #fffaf0 0%, #f5ead2 100%);
  border-color: rgba(191, 161, 101, 0.34);
  color: #6a5221;
  box-shadow: 0 10px 18px rgba(191, 161, 101, 0.14);
}

/* =================================================
15. MOBILE ONLY
================================================= */

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }
}
