/* ============================================================
   B&B Lamarmora 18 — stylesheet
   Palette mediterranea: sabbia, terracotta, blu profondo
   ============================================================ */

:root {
  --sand: #f7f2ea;
  --sand-deep: #efe6d8;
  --ink: #1f2933;
  --ink-soft: #4a5562;
  --terracotta: #c4602e;
  --terracotta-dark: #a64c20;
  --sea: #14424f;
  --sea-deep: #0d2f39;
  --white: #ffffff;
  --line: rgba(31, 41, 51, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 66, 79, 0.10);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(196, 96, 46, 0.35);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}

.btn-outline {
  background: transparent;
  color: var(--sea);
  border: 1.5px solid var(--sea);
}
.btn-outline:hover { background: var(--sea); color: var(--white); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sea);
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
}
.logo-text em {
  display: block;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--terracotta);
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--terracotta); }

.nav-cta {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--terracotta-dark); }

.lang-switch a {
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--sand) 0%, var(--sand-deep) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 8vw, 6rem);
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-badges {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  list-style: none;
  font-size: 0.92rem;
  color: var(--sea);
  font-weight: 500;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--white); }

.section-dark {
  background: var(--sea-deep);
  color: rgba(255, 255, 255, 0.85);
}
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: #e8a87c; }

.intro p + p { margin-top: 1rem; }

/* ---------- Rooms ---------- */

.rooms-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 2rem;
}

.room-card {
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 66, 79, 0.16);
}

.room-media { position: relative; }
.room-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.room-card--full .room-media img { filter: grayscale(0.45); opacity: 0.9; }
.room-unavailable {
  margin-top: auto;
  font-weight: 600;
  color: var(--ink-soft);
}

.room-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.room-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
}

.room-amenities {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.room-amenities li::before {
  content: "✓";
  color: var(--terracotta);
  font-weight: 700;
  margin-right: 0.5rem;
}

.room-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Amenities ---------- */

.amenities-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  list-style: none;
}

.amenities-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.amenity-icon { font-size: 1.7rem; }
.amenities-grid strong { font-size: 1.05rem; }
.amenities-grid li > span:last-child { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Location ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.distances {
  list-style: none;
  margin-block: 1.6rem 2rem;
  display: grid;
  gap: 0.7rem;
}

.distances li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.distances span { color: var(--ink-soft); white-space: nowrap; }

.location-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 0.9rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-soft);
}

/* ---------- Come arrivare ---------- */

.arrival-list {
  list-style: none;
  margin-block: 1.8rem;
  display: grid;
  gap: 1.2rem;
}
.arrival-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.arrival-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1.3;
}
.arrival-list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
}
.arrival-list div { color: var(--ink-soft); }
.arrival-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

.footer-cin { font-size: 0.82rem; opacity: 0.8; margin-top: 0.4rem; }
.footer-cin span { opacity: 0.7; }

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

.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-inner nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.2rem;
  font-size: 0.82rem;
  opacity: 0.6;
}

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

@media (max-width: 860px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-media { order: -1; }
}

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav-menu.open { display: flex; }

  .nav-menu li { text-align: center; }
  .nav-menu a { display: block; padding: 0.8rem 1.5rem; }
  .nav-cta { margin: 0.5rem 1.5rem 0; }
  .lang-switch { margin-top: 0.5rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-media { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
