/* 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;
}
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.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 150px; min-width: 0; }
.field input { width: 100%; }
.search { max-width: 760px; }
.search .btn { flex: 1 1 200px; }
.hero-ota a { color: var(--white); text-underline-offset: 3px; }
.fact-link { text-decoration: none; color: inherit; }
.fact-link:hover .fact-label { color: var(--accent); text-decoration: underline; }
.owners-art { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.field label { font-size: 13px; font-weight: 600; }
.field select, .field input {
  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); }

/* Widget di ricerca Krossbooking (date, ospiti, vincoli dei calendari), come sul vecchio sito:
   su computer una barra sottile su una riga; su telefono un bottone che apre la ricerca.
   Il nostro modulo resta come riserva se il widget non si carica. */
.search-widget, .search-open, .search-sheet-head { display: none; }
.js .search-fallback { display: none; }
.js .search-widget {
  display: block; max-width: 920px; margin-top: 8px;
  background: rgba(255, 255, 255, .96); border-radius: 10px; overflow: hidden;
  box-shadow: 0 14px 34px -18px rgba(5, 20, 28, .6);
}
.js.kross-failed .search-widget, .js.kross-failed .search-open { display: none !important; }
.js.kross-failed .search-fallback { display: flex; }
.search-widget .kross-container { display: block; }
.search-widget .kross-container, .search-widget .kross-container * { font-family: var(--font-body) !important; }
.search-widget .kross-transparency { padding: 0 !important; background: transparent !important; }
.search-widget .form-kross-booking { width: 100%; margin: 0 !important; align-items: stretch; }
.search-widget .kb-form-group { padding: 0 !important; }
.search-widget .kb-date { flex: 2 1 auto; }
.search-widget .kb-adults { flex: 1 1 auto; border-left: 1px solid var(--line); }
.search-widget .kb-d1 + .kb-d2 { border-left: 1px solid var(--line); }
.search-widget .kb-d1, .search-widget .kb-d2 { padding: 8px 18px !important; }
.search-widget .kb-label { padding: 0 0 2px !important; font-size: 12px !important; letter-spacing: .04em; }
.search-widget .kb-availabilityButtonContainer { flex: 0 0 auto; }
.search-widget .kb-btn-submit {
  height: 100%; border-radius: 0 !important; padding: 0 28px !important;
  font-weight: 600 !important; font-size: 16px !important;
}

/* Telefono e tablet: bottone "Cerca il tuo alloggio" che apre la ricerca dal basso */
@media (max-width: 899px) {
  .js .search-open {
    display: inline-flex; max-width: 520px; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 54px; margin-top: 8px;
    font: inherit; font-size: 17px; font-weight: 600; color: var(--ink);
    background: rgba(255, 255, 255, .92); border: 0; border-radius: 10px; cursor: pointer;
  }
  .js .search-widget { display: none; }
  .js .search-widget.is-open {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    max-width: none; margin: 0; padding: 8px 16px 24px; border-radius: 16px 16px 0 0;
    background: var(--white); box-shadow: 0 -10px 40px rgba(5, 20, 28, .35);
  }
  .search-widget.is-open .search-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; }
  .search-sheet-title { font-size: 18px; font-weight: 600; color: var(--ink); }
  .search-close { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .search-widget .form-kross-booking { flex-wrap: wrap; }
  .search-widget .kb-adults { border-left: 0; border-top: 1px solid var(--line); }
  .search-widget .kb-availabilityButtonContainer { flex: 1 1 100%; }
  .search-widget .kb-btn-submit { width: 100%; min-height: 52px; border-radius: var(--radius-sm) !important; margin-top: 8px; }
}

/* 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; }
.section-tight-top { padding-top: 56px; }
.section-tight-bottom { padding-bottom: 48px; }
.section-compact { padding: 48px 0; }
.owners.owners-tight { padding: 56px 0 72px; }
.section-compact h2 { margin-bottom: 32px; }
.section-head > .rail-head { flex-direction: row; align-items: center; gap: 20px; max-width: none; flex-shrink: 0; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav[hidden] { display: none; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.rail-btn:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: var(--white); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.cards-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.cards-rail::-webkit-scrollbar { display: none; }
.cards-rail > .card { scroll-snap-align: start; }
.cards-rail:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (max-width: 1100px) { .cards-rail { grid-auto-columns: calc((100% - 2 * 24px) / 3); } }
@media (max-width: 900px) { .cards-rail { grid-auto-columns: 44%; gap: 16px; } }
@media (max-width: 640px) { .cards-rail { grid-auto-columns: 82%; } .rail-nav { display: none; } .section-tight-bottom { padding-bottom: 40px; } .section-compact { padding: 40px 0; } .section-tight-top { padding-top: 44px; } }
.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; }
.section-white .section-head h2 { margin-bottom: 0; }
.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 :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.post :is(h2, h3) { font-family: var(--font-body); font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.post :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.post :is(h2, h3) a:hover { color: var(--accent); text-decoration: underline; }
.post-excerpt {
  font-size: 15px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post[hidden] { display: none; }

/* Menu: pagina corrente */
.main-nav > a.is-current { color: var(--accent); }

/* Experience: elenco */
.xp-intro { background: var(--white); border-bottom: 1px solid var(--line); padding: 72px 0 40px; }
.xp-intro h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(48px, 8vw, 96px); line-height: 1; letter-spacing: -0.035em;
}
.xp-lead { max-width: 640px; margin-top: 20px; font-size: 19px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--white); border: 1px solid #B5C3C9; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.xp-list { padding-top: 48px; }
.xp-list .posts { row-gap: 44px; }

/* Experience: articolo */
.xp { background: var(--white); padding-bottom: 88px; }
.xp-head { max-width: 1100px; padding-top: 56px; padding-bottom: 32px; }
.xp-head h1 { max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.crumbs a { text-decoration: none; padding: 10px 0; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--ink-soft); font-weight: 400; }
.xp-head h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.xp-cover { margin: 0 auto; max-width: 1100px; }
.xp-cover-img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--placeholder);
}
.xp-layout {
  display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 300px);
  justify-content: space-between; gap: 56px; padding-top: 48px; max-width: 1100px;
}
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose :is(h2, h3) {
  font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
  margin-top: 1.8em;
}
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.xp-cta {
  align-self: start; position: sticky; top: 24px;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.xp-cta h2 { font-family: var(--font-body); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.xp-cta p { font-size: 15px; color: var(--ink-soft); }
.xp-cta .btn { align-self: flex-start; margin-top: 4px; }
.xp-more { border-top: 1px solid var(--line); }
.xp-more .section-head { align-items: baseline; }

@media (max-width: 900px) {
  .xp-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .xp-cta { position: static; }
}

/* 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(--accent); 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: #DCE9F2; font-size: 16px; }
.contact { display: flex; flex-direction: column; gap: 6px; }
.contact .label { font-size: 14px; font-weight: 600; color: #DCE9F2; text-transform: uppercase; letter-spacing: .06em; }
.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 rgba(255, 255, 255, .28); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 14px; color: #E8F1F7;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--white); }
.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; }
}

/* Proprietari */
.own-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 64px 0; }
.own-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.own-hero-text { display: flex; flex-direction: column; gap: 20px; }
.own-hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance;
}
.own-lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.own-lead strong { color: var(--ink); font-weight: 600; }
.own-tight { padding: 56px 0; }
.own-contact { background: var(--white); border-top: 1px solid var(--line); }
.own-contact .contact-form { box-shadow: 0 18px 48px -24px rgba(15, 43, 58, .28); }
.own-contact .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; }
.own-contact-text { display: flex; flex-direction: column; gap: 18px; }
.own-contact-text > p { font-size: 18px; color: var(--ink-soft); max-width: 480px; margin-bottom: 8px; }
.own-contact-text .contact-card:first-of-type { border-top: 1px solid var(--line); padding-top: 18px; }
.own-contact-text h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.own-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.own-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.own-card h3 { margin-bottom: 14px; }
.own-card ul { margin: 0; padding: 0; list-style: none; }
.own-card li { position: relative; padding: 7px 0 7px 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.own-card li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.own-steps-title { margin-bottom: 40px; }
.own-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.own-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--brand); padding-top: 20px; }
.own-steps li::before {
  content: counter(step); font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 1; color: var(--brand);
}
.own-steps p { color: var(--ink-soft); }
.own-cta { background: var(--lake); color: var(--white); padding: 80px 0; }
.own-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.own-cta h2 { margin-bottom: 12px; }
.own-cta p { color: var(--lake-text); max-width: 560px; font-size: 18px; }
.own-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--lake-text); color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.own-cta-mail { color: var(--white); padding: 12px 0; flex-basis: 100%; }
.own-cta-mail:hover { color: var(--lake-text); }

/* Contatti */
.contact-intro { padding-bottom: 48px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.contact-form h2, .contact-card h2 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.contact-form h2 { font-size: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field .opt { font-weight: 400; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #B5C3C9; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field[hidden] { display: none; }
.pren-input { display: flex; align-items: center; gap: 10px; }
.pren-input input { width: 7.5em; text-align: center; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.pren-input span { font-size: 22px; font-weight: 600; color: var(--ink-soft); }
.form-help { font-size: 13px; color: var(--ink-soft); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form-field [aria-invalid="true"] { border-color: #B3261E; }
.form-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.form-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.is-ok { color: #1E6B3A; font-weight: 600; }
.form-status.is-error { color: #B3261E; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.contact-card:first-child { border-top: 0; padding-top: 0; }
.contact-card h2 { font-size: 15px; color: var(--ink-soft); }
.contact-card p { color: var(--ink-soft); }
.contact-big { font-family: var(--font-display); font-weight: 300; font-size: 28px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-big:hover { color: var(--accent); }
.contact-addr { font-size: 18px; color: var(--ink) !important; }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.contact-links a { padding: 8px 0; }

/* Tablet */
@media (max-width: 900px) {
  .own-contact .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .own-tight { padding: 44px 0; }
}
@media (max-width: 900px) {
  .owners-inner { grid-template-columns: 1fr; gap: 36px; }
  .own-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .own-hero { padding: 40px 0 48px; }
  .contact-layout { grid-template-columns: 1fr; }
  .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; }
  .xp-intro { padding: 48px 0 32px; }
  .xp-head { padding-top: 36px; }
  .xp-cover { padding: 0; }
  .xp-cover-img { border-radius: 0; aspect-ratio: 3 / 2; }
  .prose { font-size: 17px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .site-footer { padding-top: 64px; }
}

/* Griglie senza "orfani" su tablet: righe sempre complete */
@media (min-width: 900px) {
  .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .own-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 560px) and (max-width: 899px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .reasons, .posts-3, .xp-more .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); }
}

/* Pagine legali (privacy) */
.legal { max-width: 760px; font-size: 17px; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: .4em; }
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal h3 { font-size: 18px; margin-top: 1.4em; }

/* Homepage: 4 esperienze scelte a caso */
.posts-4 { gap: 24px; }
@media (min-width: 560px) { .posts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .posts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.posts-4 h3 { font-size: 19px; }
.js .js-xp-home:not(.is-ready) { visibility: hidden; }
