/* Bookholidayscomo – Target Rent
   Colori e misure in un unico posto.
   Il blu è quello del logo (--brand); per bottoni e link si usa la versione più scura (--accent), più leggibile. */

/* Caratteri: Inter, ospitato sul sito (licenza in assets/fonts/OFL.txt). */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('/assets/fonts/InterDisplay-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  --ink: #14252E;
  --ink-soft: #4B5D66;
  --ground: #F3F6F7;
  --white: #FFFFFF;
  --line: #DCE4E8;
  --brand: #2677AE;
  --accent: #1D6497;
  --accent-hover: #154C74;
  --lake: #0F2B3A;
  --lake-text: #E2ECF1;
  --lake-muted: #B4C6CF;
  --placeholder: #E3EBEF;
  --placeholder-text: #3F525B;
  --footer-line: #2A4757;
  --radius: 14px;
  --radius-sm: 8px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Display', 'Inter', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; }
/* Titoli leggeri e grandi, come la parola "target" del logo */
h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 300;
}
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-dark { background: var(--ink); color: var(--white); min-height: 48px; font-size: 16px; }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); min-height: 48px; font-size: 16px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Intestazione */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; gap: 12px 32px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: block; padding: 4px 0; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px 28px; }
.lang { margin-left: -8px; }
.main-nav > a:not(.btn) {
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 12px 0;
}
.main-nav > a:not(.btn):hover { color: var(--accent); }
.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ink-soft); }
.lang a { color: var(--ink-soft); text-decoration: none; padding: 12px 4px; }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Apertura con foto */
.hero { position: relative; isolation: isolate; background: var(--lake); color: var(--white); overflow: hidden; }
.hero-photo, .hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; object-position: 50% 62%; }
/* Velo scuro solo in basso a sinistra, dove sta il testo: il cielo resta luminoso */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 26, 36, .82) 0%, rgba(8, 26, 36, .55) 38%, rgba(8, 26, 36, 0) 72%),
    linear-gradient(to right, rgba(8, 26, 36, .45) 0%, rgba(8, 26, 36, 0) 60%);
}
.hero-inner {
  min-height: min(86vh, 820px); padding-top: 160px; padding-bottom: 64px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 22px;
}
.hero h1 {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: .98; letter-spacing: -0.035em; font-weight: 300;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(8, 26, 36, .25);
}
.hero-lead { max-width: 600px; font-size: 19px; line-height: 1.5; color: var(--lake-text); }
.hero-ota { font-size: 15px; color: var(--lake-text); }
.hero-ota strong { color: var(--white); font-weight: 600; }

.search {
  margin-top: 6px;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 18px;
  max-width: 640px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  box-shadow: 0 18px 40px -18px rgba(5, 20, 28, .55);
}
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.field label { font-size: 13px; font-weight: 600; }
.field select {
  height: 52px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #B5C3C9; border-radius: var(--radius-sm);
}
.search-note { flex-basis: 100%; font-size: 13px; color: var(--ink-soft); }

/* Numeri in breve */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 40px; padding-top: 36px; padding-bottom: 36px;
}
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 300;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--brand);
}
.fact-label { font-size: 15px; color: var(--ink-soft); }

/* Sezioni */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 36px;
}
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head p { font-size: 17px; color: var(--ink-soft); }
.more { font-size: 16px; font-weight: 600; padding: 12px 0; text-underline-offset: 4px; }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); }

.photo {
  height: 210px; background: var(--placeholder);
  display: flex; align-items: center; justify-content: center;
}
.photo span { font-size: 13px; color: var(--placeholder-text); }
.photo-tall { height: 240px; border-radius: var(--radius); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--placeholder); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.card-body p { font-size: 15px; color: var(--ink-soft); }
.card-body h3 { font-size: 21px; }
.card-link { color: var(--ink); text-decoration: none; }
/* Tutta la scheda è cliccabile */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--brand); outline-offset: 2px; }
.card-cta {
  margin-top: auto; padding-top: 14px; font-size: 15px; font-weight: 600;
  color: var(--accent); text-decoration: underline; text-underline-offset: 4px;
}
.card:hover .card-cta { color: var(--accent-hover); }
.card:hover .card-link { color: var(--accent); }

.section-white h2 { margin-bottom: 48px; }
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.reason { display: flex; flex-direction: column; gap: 12px; }
.reason svg { color: var(--brand); }
.reason p { color: var(--ink-soft); }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.post { position: relative; display: flex; flex-direction: column; gap: 12px; }
.post-photo {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); background: var(--placeholder);
}
.post-photo-left { object-position: left center; }
/* Tutto l'articolo è cliccabile */
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post h3 { font-size: 21px; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--accent); text-decoration: underline; }

/* Proprietari */
.owners { background: var(--white); padding: 96px 0; border-top: 1px solid var(--line); }
.owners-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.owners-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%;
  border-radius: var(--radius);
}
.owners-text { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.owners-text p { font-size: 17px; color: var(--ink-soft); max-width: 520px; }
.owners-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.owners-list { margin: 24px 0 0; padding: 0; list-style: none; }
.owners-list li {
  position: relative; padding: 16px 0 16px 32px; border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.45;
}
.owners-list li:last-child { border-bottom: 1px solid var(--line); }
.owners-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Piè di pagina */
.site-footer { background: var(--lake); color: var(--white); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 56px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 28px; }
.site-footer h2 { font-size: 30px; margin-bottom: 8px; }
.muted { color: var(--lake-muted); font-size: 15px; }
.contact { display: flex; flex-direction: column; gap: 6px; }
.contact .label { font-size: 14px; font-weight: 600; color: var(--lake-muted); }
.contact .label ~ .label { padding-top: 12px; }
.contact a { font-size: 17px; color: var(--white); text-decoration: none; }
.contact a:hover { text-decoration: underline; color: var(--white); }
.contact p { font-size: 17px; line-height: 1.45; }
.footer-bottom {
  border-top: 1px solid var(--footer-line); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 14px; color: var(--lake-muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--lake-muted); }
.footer-links a:hover { color: var(--white); }

/* Intestazione su schermi stretti: logo e Prenota in alto, menu sotto */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; gap: 4px 16px; }
  .main-nav { order: 3; flex-basis: 100%; gap: 0 28px; }
  .main-nav > a:not(.btn) { white-space: nowrap; }
}

/* Tablet */
@media (max-width: 900px) {
  .owners-inner { grid-template-columns: 1fr; gap: 36px; }
  .owners-photo img { aspect-ratio: 3 / 2; }
}

/* Telefono */
@media (max-width: 640px) {
  .brand img { height: 38px; }
  .main-nav { justify-content: space-between; gap: 0 12px; }
  .main-nav > a:not(.btn) { font-size: 14px; }
  .hero-inner { min-height: 640px; padding-top: 120px; padding-bottom: 32px; }
  .hero-photo img { object-position: 62% 60%; }
  .hero-lead { font-size: 17px; }
  .section, .owners { padding: 64px 0; }
  .site-footer { padding-top: 64px; }
}
