/* Dimora Onda Blu — Concept sito web · Design Maria Grazia Sabella
   Palette: avorio #FDFBF7, navy #1B365D, turchese #0097B2, ocra #C87D2F,
            antracite #3D4652, bordi #E6E2D8 */

@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/plus-jakarta-sans-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ivory: #FDFBF7;
  --navy: #1B365D;
  --teal: #0097B2;
  --ochre: #C87D2F;
  --ink: #3D4652;
  --line: #E6E2D8;
  --white: #FFFFFF;
  --ochre-soft: #F6EDE3;
  --teal-soft: #E6F5F7;
  --navy-soft: #E8EEF4;
  --sidebar: 240px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(27, 54, 93, 0.10);
  --shadow-soft: 0 8px 24px rgba(27, 54, 93, 0.07);
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  font-size: 13px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: #152a4a; color: var(--white); }
.btn-ochre { background: var(--ochre); color: var(--white); border-color: var(--ochre); }
.btn-ochre:hover { background: #b36e28; color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-full { width: 100%; }

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--ivory);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 26px 28px;
  z-index: 40;
  overflow-y: auto;
}
.sidebar .brand {
  display: block;
  margin: 0 0 36px;
}
.sidebar .brand img {
  width: 100%;
  height: auto;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}
.sidebar nav a {
  position: relative;
  display: block;
  padding: 9px 0 9px 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 2px solid transparent;
}
.sidebar nav a:hover { color: var(--teal); }
.sidebar nav a.is-active {
  color: var(--navy);
  border-left-color: var(--ochre);
  font-weight: 600;
}
.sidebar .btn { margin-top: 4px; }
.sidebar-contacts {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
}
.sidebar-contacts a {
  display: block;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12.5px;
}
.sidebar-contacts a:hover { color: var(--teal); }
.sidebar-contacts address {
  font-style: normal;
  margin-top: 12px;
  color: var(--ink);
  opacity: 0.9;
}

/* ---------- Mobile header ---------- */
.mobile-header,
.menu-toggle { display: none; }
.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 54, 93, 0.42);
  z-index: 35;
}

/* ---------- Main ---------- */
.main {
  margin-left: var(--sidebar);
  min-height: 100vh;
}

/* ---------- Booking bar ---------- */
.booking-wrap {
  position: relative;
  z-index: 5;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 16px 36px;
}
.booking-bar {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr auto;
  gap: 16px 20px;
  align-items: end;
  max-width: 1180px;
}
.field { min-width: 0; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.field input[type="date"],
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { height: auto; min-height: 110px; padding: 12px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.15);
}
.stepper {
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.stepper button {
  width: 42px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}
.stepper button:hover { background: var(--navy-soft); color: var(--navy); }
.stepper input {
  flex: 1;
  width: 36px;
  height: 46px;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.booking-bar .btn { height: 46px; min-width: 132px; }

/* ---------- Hero ---------- */
.hero-photo {
  position: relative;
  height: calc(100vh - 90px);
  min-height: 520px;
  max-height: 860px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 40px 32px;
  background: linear-gradient(to top, rgba(27, 54, 93, 0.55), rgba(27, 54, 93, 0));
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: 88px 48px; }
.section-narrow { max-width: 1180px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ochre);
}
.section h1,
.section h2,
.banner-copy h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.15;
}
.intro h1, .section h2 { font-size: clamp(32px, 3.4vw, 48px); }
.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 38em;
}

/* Intro */
.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.intro-photo {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Offers */
.offerte-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.15fr) minmax(260px, 1.15fr);
  gap: 28px 30px;
  align-items: stretch;
}
.offerte-intro { padding-right: 8px; display: flex; flex-direction: column; justify-content: center; }
.offerte-intro h2 { font-size: clamp(30px, 2.7vw, 42px); }
.offerte-intro .lede { max-width: none; }
.card-offer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-offer:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-offer .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-offer .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ochre);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 2px;
}
.card-offer .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-offer h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.card-offer p { font-size: 14.5px; margin-bottom: 16px; }
.card-offer .price {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.card-offer .btn { margin-top: auto; align-self: flex-start; }

/* Rooms teaser */
.room-teaser {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
}
.room-teaser .thumb { min-height: 360px; }
.room-teaser .thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-teaser .body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.room-teaser h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}
.room-teaser .meta {
  margin: 0 0 18px;
  color: var(--ochre);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 48px 32px;
  background: var(--ivory);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin-bottom: 48px;
}
.footer-brand img { width: 160px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 28em; }
.footer-grid h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.footer-grid a, .footer-grid p { font-size: 14px; }
.footer-grid address { font-style: normal; font-size: 14px; line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-bottom .credit { font-weight: 600; color: var(--navy); }

/* ---------- Camera page ---------- */
.page-banner {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.page-banner .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 54, 93, 0.62) 0%, rgba(27, 54, 93, 0.28) 45%, rgba(27, 54, 93, 0.22) 100%);
}
.banner-copy {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 820px;
}
.banner-copy h1 {
  color: var(--white);
  font-size: clamp(40px, 5.4vw, 72px);
  margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.banner-copy .meta {
  margin: 0 0 28px;
  color: #F3D2A8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.banner-copy .btn { min-width: 160px; }

.room-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.room-layout h2 { font-size: clamp(28px, 2.6vw, 38px); }
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-top: 8px;
}
.service {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.service svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide {
  grid-row: 1 / span 2;
  min-height: 420px;
}
.gallery .wide img { object-position: center 40%; }
.gallery figcaption {
  position: absolute;
  /* captions not overlaid — keep images clean */
  display: none;
}

.request-box {
  margin-top: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.request-box h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
}
.request-box .hint {
  font-size: 14px;
  margin-bottom: 22px;
  color: var(--ink);
}
.request-box form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.request-box .field.span-2 { grid-column: 1 / -1; }
.request-box .btn { margin-top: 6px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.back-link:hover { color: var(--teal); }

/* ---------- Modal (concept notice) ---------- */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 54, 93, 0.48);
}
.modal-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 36px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  font-weight: 600;
}
.modal-card p { font-size: 15px; margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--navy);
  width: 36px;
  height: 36px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .offerte-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .offerte-intro { grid-column: 1 / -1; max-width: 640px; padding-right: 0; }
  .intro { gap: 36px; }
  .section { padding: 72px 36px; }
  .room-layout { gap: 40px; }
}

@media (max-width: 980px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-110%);
    transition: transform .3s ease;
    box-shadow: none;
    width: min(300px, 86vw);
  }
  .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow); }
  .backdrop.is-visible { display: block; }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    height: 68px;
    padding: 0 16px 0 12px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
  }
  .mobile-header .brand { display: flex; align-items: center; height: 56px; }
  .mobile-header .brand img { height: 56px; width: auto; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
  }
  .menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .main { margin-left: 0; }
  .hero { display: flex; flex-direction: column; }
  .booking-wrap { padding: 16px 20px 20px; order: 2; }
  .booking-bar { grid-template-columns: 1fr 1fr; }
  .booking-bar .btn { grid-column: 1 / -1; width: 100%; }
  .hero-photo {
    order: 1;
    height: 64vh;
    min-height: 340px;
    max-height: 580px;
  }
  .hero-caption { padding: 32px 20px 20px; font-size: 10px; letter-spacing: 0.14em; }
  .sidebar .brand img { width: 78%; margin: 0 auto; }
  .section { padding: 56px 20px; }
  .intro, .room-teaser, .room-layout, .footer-grid, .offerte-grid {
    grid-template-columns: 1fr;
  }
  .room-teaser .thumb { min-height: 260px; aspect-ratio: 16 / 10; }
  .room-teaser .body { padding: 32px 24px 36px; }
  .page-banner { height: 68vw; min-height: 360px; max-height: 520px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery .wide { grid-row: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .gallery figure { aspect-ratio: 4 / 3; }
  .request-box form { grid-template-columns: 1fr; }
  .request-box { padding: 28px 20px; }
  .services { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .booking-bar { grid-template-columns: 1fr; }
  .intro-photo { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-offer, .sidebar, .btn { transition: none; }
  .card-offer:hover { transform: none; }
}
