/* Maremma Stays */

:root {
  /* colori presi dal logo */
  --bg: #f6eee2;      /* crema delle colline */
  --bg-2: #efe3d1;
  --sand: #e3c7a1;    /* sabbia delle colline */
  --ink: #4a2a1b;     /* marrone del cerchio */
  --ink-2: #76594a;
  --line: #e2d0b6;
  --sun: #d2703f;     /* sole: numeri grandi, linee, icone */
  --terra: #a44d26;   /* sole scurito: testi piccoli in evidenza */
  --brown: #4a2a1b;

  --serif: "EB Garamond", Georgia, serif;
  --sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --brand: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif; /* font del logo: etichette, menu, pulsanti */
  --gutter: 48px;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

section { scroll-margin-top: 72px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
.label-light { color: rgba(255,255,255,.85); }

.muted { color: var(--ink-2); }

.section-title { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 20px; }

.btn {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--brown);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--brown); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
  transition: background .25s, color .25s, box-shadow .25s;
}
.site-header.solid {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.55rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .9;
}
.nav a:hover { opacity: 1; }
.nav-cta { border: 1px solid currentColor; padding: 9px 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 980px;
  color: #fff;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20,12,6,.5) 0%, rgba(20,12,6,.2) 45%, rgba(20,12,6,0) 70%),
    linear-gradient(to bottom, rgba(20,12,6,.45) 0%, rgba(20,12,6,0) 22%),
    linear-gradient(to top, rgba(20,12,6,.62) 0%, rgba(20,12,6,.15) 55%, rgba(20,12,6,0) 75%);
}
.hero-content, .band-content {
  position: absolute;
  left: 0;
  right: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-content { bottom: 80px; }
.hero-content > * { max-width: 760px; }
.hero-content > h1 { max-width: 980px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.22rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
  max-width: 34em;
  color: rgba(255,255,255,.9);
  margin-bottom: 32px;
}

/* ---------- intro ---------- */

.intro { padding: 112px 0; }
.intro-text {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.45;
  margin: 0;
}

/* ---------- alternating rows ---------- */

.rows { padding: 112px 0; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.row + .row { margin-top: 112px; }
.row-img { aspect-ratio: 4 / 5; overflow: hidden; }
.row-text { max-width: 520px; }
.row-text h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 18px; }
.row-text > p:not(.label) { color: var(--ink-2); }

.row-flip .row-img { order: 2; aspect-ratio: 4 / 3; }

.rows-note {
  max-width: 760px;
  margin: 96px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }

/* ---------- photo band ---------- */

.band {
  position: relative;
  height: 72vh;
  min-height: 460px;
  color: #fff;
  overflow: hidden;
}
.band-img { position: absolute; inset: 0; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,12,6,.72), rgba(20,12,6,0) 70%); }
.band-content { bottom: 64px; }
.band h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 900px; }

/* ---------- territory ---------- */

.territory { padding: 112px 0; }
.territory-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 96px;
  align-items: center;
}
.territory-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.4;
}
.territory-img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }

/* ---------- method ---------- */

.method { background: var(--bg-2); padding: 112px 0; }
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.steps li { padding-right: 8px; }
.steps .step-num { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--sun); }
.steps .step-num::after { content: ""; flex: 1; height: 1px; background: var(--sun); opacity: .5; }
.steps li:last-child .step-num::after { display: none; }
.steps h3 { font-size: 1.6rem; margin: 22px 0 8px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }


/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-2);
}
.contact-img { min-height: 100%; overflow: hidden; }
.contact-body { padding: 128px clamp(32px, 6vw, 96px); max-width: 720px; }

.form { display: grid; gap: 26px; margin-top: 36px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-2);
  border-radius: 0;
  padding: 8px 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input.invalid { border-bottom-color: var(--terra); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 0.92rem; color: var(--terra); margin: 0; min-height: 1.4em; }

/* ---------- result ---------- */

.result { background: var(--bg-2); padding: 136px 0; }
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.result-text { max-width: 520px; }
.result-text .muted { margin-bottom: 32px; }

.link-arrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--terra); border-color: var(--terra); }

.result-img {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}
.result-img figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.result-img img { position: absolute; inset: 0; z-index: 1; }
.result-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.35;
  margin-bottom: 18px;
}

/* ---------- why ---------- */

.why { padding: 104px 0; background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; }
.why-items div { border-top: 1px solid var(--ink); padding-top: 22px; }
.why-items h3 { font-size: 1.6rem; margin-bottom: 8px; }
.why-items p { color: var(--ink-2); margin: 0; }

/* ---------- method cta ---------- */

.method-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.method-cta p { margin: 0; font-family: var(--serif); font-size: 1.35rem; }

/* ---------- whatsapp ---------- */

.wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 18px;
  box-shadow: 0 10px 24px -12px rgba(30,18,10,.6);
  transition: background .2s;
}
.wa:hover { background: var(--terra); }
.wa svg { width: 20px; height: 20px; fill: currentColor; }


/* ---------- footer ---------- */

.site-footer { background: var(--brown); color: rgba(246,238,226,.75); padding: 72px 0 60px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin: 0; }
.footer-logo { font-family: var(--serif); font-size: 1.6rem; color: #f6eee2; margin-bottom: 10px !important; }
.footer-head {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6eee2;
  margin-bottom: 12px !important;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  :root { --gutter: 28px; }
  .row { grid-template-columns: 1fr; gap: 36px; }
  .row-flip .row-img { order: 0; }
  .row-img { aspect-ratio: 3 / 2; }
  .row-text { max-width: 680px; }
  .row + .row { margin-top: 72px; }
  .result-grid { grid-template-columns: 1fr; gap: 40px; }
  .result-img { aspect-ratio: 3 / 2; }
  .territory-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .territory-img { aspect-ratio: 3 / 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-img { aspect-ratio: 16 / 9; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 1px 0 var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav-cta { border: 0; padding: 12px 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { min-height: 560px; }
  .hero-content { bottom: 48px; }
  .intro, .territory, .method { padding: 72px 0; }
  .rows-note { margin-top: 64px; text-align: left; font-size: 1.15rem; }
  .narrow { text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .result, .rows { padding: 72px 0; }
  .why { padding: 72px 0; }
  .why-items { grid-template-columns: 1fr; gap: 32px; }
  .wa { right: 16px; bottom: 16px; padding: 14px; }
  .wa span { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 26px; }
  .contact-body { padding: 64px var(--gutter); }
  .band { height: 70vh; min-height: 480px; }
  .band-text { font-size: .97rem; }
  .band-content { bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- servizi in gruppi ---------- */
.groups { margin-top: 30px; }
.groups div { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.groups div:last-child { border-bottom: 1px solid var(--line); }
.groups h3 { font-size: 1.35rem; margin: 0 0 6px; }
.groups p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }

/* ---------- testo nella fascia territorio ---------- */
.band-text { color: rgba(255,255,255,.88); max-width: 640px; margin: 18px 0 0; font-size: 1.05rem; line-height: 1.6; }

@media (max-width: 600px) { .hero-img { object-position: 22% center; } }

/* ---------- risultato in cifre ---------- */
.result-figure { font-family: var(--serif); font-size: clamp(4rem, 8vw, 6.4rem); line-height: 1; color: var(--sun); margin: 8px 0 10px; }

/* ---------- domande frequenti ---------- */
.faq { padding: 112px 0; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px 0; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list h3 { font-size: 1.45rem; line-height: 1.25; margin: 0; transition: color .2s; }
.faq-list summary:hover h3 { color: var(--terra); }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.5px; background: var(--sun); transition: transform .25s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-list details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-list p { color: var(--ink-2); margin: -6px 0 0; padding: 0 0 28px; max-width: 46em; }
.faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 64px; }
.faq-cta p { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
@media (max-width: 600px) { .faq-list summary { padding: 22px 0; } .faq-list h3 { font-size: 1.25rem; } }
@media (max-width: 600px) { .faq { padding: 72px 0; } }

/* ---------- chi siamo ---------- */
.about { background: #7a4a32; color: var(--bg); padding: clamp(88px, 11vw, 150px) var(--gutter); text-align: center; }
.about-inner { max-width: 900px; margin: 0 auto; }
.about-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; color: var(--bg); margin: 0 0 36px; }
.about-lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.5; color: rgba(246,238,226,.9); margin: 0 auto; max-width: 34em; }
.about-rule { display: block; width: 56px; height: 2px; background: var(--sun); margin: 44px auto; }
.about-text { color: rgba(246,238,226,.7); margin: 0 auto; max-width: 34em; }
@media (max-width: 600px) { .about { text-align: left; } .about-rule { margin: 32px 0; } }

.wa { box-shadow: 0 0 0 1px rgba(246,238,226,.35), 0 6px 18px rgba(0,0,0,.18); }

/* ---------- logo ---------- */
.logo, .footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; flex: none; display: block; }
.logo-word { display: flex; flex-direction: column; align-items: center; font-family: "Jost", "Futura", sans-serif; text-transform: uppercase; line-height: 1; }
.logo-1 { font-weight: 600; font-size: 1.08rem; letter-spacing: 0.16em; margin-right: -0.16em; }
.logo-2 { font-weight: 500; font-size: 0.6rem; letter-spacing: 0.55em; margin-right: -0.55em; margin-top: 5px; }
.footer-logo { font-size: 1rem !important; }
.logo-mark { border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); }
.footer-logo .logo-mark { width: 44px; height: 44px; }
@media (max-width: 600px) { .logo-mark { width: 36px; height: 36px; } .logo-1 { font-size: 1rem; } }

/* ---------- step mobile ---------- */
@media (max-width: 1000px) { .steps .step-num::after { display: none; } }

/* ---------- accessibilità: focus da tastiera ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ---------- gestione completa: riquadro secondario ---------- */
.row.row-compact { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); margin-top: 96px; }
.row-compact .row-img { aspect-ratio: 3 / 2; }
.row-compact .row-text { max-width: none; }
.row-compact .row-text h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 12px; }
@media (max-width: 1000px) { .row.row-compact { grid-template-columns: 1fr; margin-top: 64px; } }
@media (max-width: 600px) { .row.row-compact { padding: 22px; } }

/* ---------- contatti diretti sotto il modulo ---------- */
.contact-direct { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-direct-title { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 12px; }
.contact-direct-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.contact-direct-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sun); padding-bottom: 2px; font-weight: 600; font-size: 0.95rem; }
.contact-direct-links a:hover { color: var(--terra); }

/* ---------- font del logo sugli elementi in maiuscolo ---------- */
.label, .nav a, .nav-toggle, .btn, .link-arrow, .field label, .footer-head, .wa, .result-img figcaption {
  font-family: var(--brand);
  font-weight: 500;
}
.label { font-size: 0.74rem; letter-spacing: 0.24em; }
.nav a { font-size: 0.8rem; letter-spacing: 0.16em; }
.btn, .link-arrow { font-size: 0.8rem; letter-spacing: 0.18em; }
.field label, .footer-head { font-size: 0.72rem; letter-spacing: 0.2em; }

/* ---------- social nel piè di pagina ---------- */
.footer-social { display: flex; gap: 14px; margin-top: 18px !important; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(246,238,226,.35); border-radius: 50%; color: #f6eee2; transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--sun); border-color: var(--sun); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- consenso privacy nel modulo ---------- */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brown); cursor: pointer; }
.consent a { color: var(--ink); }
.consent.invalid span { color: var(--terra); }

/* ---------- pagina note legali ---------- */
.legal-page .site-header { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.legal { max-width: 760px; margin: 0 auto; padding: 152px var(--gutter) 112px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.7rem; margin: 64px 0 16px; scroll-margin-top: 96px; }
.legal h3 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal .updated { font-size: 0.9rem; }
.legal-data { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 24px 0; }
.legal-data p { margin: 0; color: var(--ink); }
@media (max-width: 600px) { .legal { padding: 112px var(--gutter) 72px; } }

/* campo trappola per lo spam, nascosto */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
