/* ============================================================
   Tuscany Terrace Retreat — shared stylesheet
   Palette Maremma: terracotta, ocra, oliva, crema
   ============================================================ */
:root {
  --cream: #faf6ef;
  --sand: #f6ead6;
  --ink: #2e2a25;
  --terracotta: #b45336;
  --terracotta-dark: #8f3d27;
  --ochre: #c8913a;
  --olive: #6b7a4b;
  --olive-dark: #3f4a2c;
  --stone: #8a8377;
  --pool: #7fa8b8;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(46, 42, 37, .10);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Karla", Verdana, Geneva, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .6em; }
h3 { font-size: 1.35rem; margin-bottom: .4em; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  color: var(--olive);
  display: block;
  margin-bottom: .8em;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }
section.alt { background: var(--sand); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 42, 37, .08);
}
.nav-wrap {
  max-width: 1180px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { height: 58px; width: auto; }
nav.main ul { list-style: none; display: flex; gap: 26px; align-items: center; }
nav.main a {
  text-decoration: none; color: var(--ink);
  font-size: .92rem; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.lang-switch {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--stone); border-radius: 999px; padding: 4px 14px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.lang-switch:hover { background: var(--sand); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.7rem; color: var(--ink); line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; color: #fff;
  padding: 120px 22px 130px;
  background:
    linear-gradient(rgba(46, 42, 37, .45), rgba(46, 42, 37, .55)),
    linear-gradient(160deg, var(--olive) 0%, var(--ochre) 55%, var(--terracotta) 100%);
}
.hero.has-photo { background-size: cover; background-position: center; }
.hero h1 { margin-bottom: .35em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p.lead { font-size: 1.25rem; max-width: 640px; margin: 0 auto 1.6em; }
.hero .photo-note {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: .75rem; opacity: .8; letter-spacing: .05em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 13px 30px; border-radius: 999px; letter-spacing: .04em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-outline { border: 2px solid var(--terracotta); color: var(--terracotta); background: transparent; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.btn-wa { background: var(--wa); color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .card-body { padding: 26px; flex: 1; }
.card ul { margin: 12px 0 0 18px; }
.card ul li { margin-bottom: 4px; }
.card .card-cta { padding: 0 26px 26px; }

/* Photo placeholder (until real photos arrive) */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, var(--olive) 0%, var(--ochre) 60%, var(--terracotta) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem; padding: 14px; min-height: 210px;
}
.ph.tall { min-height: 300px; }
.ph.pool { background: repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 12px, transparent 12px 24px), linear-gradient(150deg, var(--pool), var(--olive)); }

/* Card photos (hotlinked, e.g. Wikimedia Commons) */
.card-img { width: 100%; height: 210px; object-fit: cover; display: block; }
.split-img { width: 100%; min-height: 300px; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.credits { font-size: .78rem; color: var(--stone); margin-top: 26px; line-height: 1.7; }
.credits a { color: var(--stone); }

/* ---------- Guest reviews ---------- */
.review {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.review .stars { color: var(--ochre); letter-spacing: 3px; font-size: 1.05rem; }
.review p.q { font-family: var(--font-serif); font-style: italic; font-size: 1.12rem; line-height: 1.5; flex: 1; }
.review .who { font-size: .82rem; color: var(--stone); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Feature icons row ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.features .f {
  background: #fff; border-radius: var(--radius); padding: 24px 14px; box-shadow: var(--shadow);
}
.features .f .ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.features .f strong { display: block; font-size: 1rem; }
.features .f span.sub { font-size: .85rem; color: var(--stone); }

/* ---------- Distances table ---------- */
table.distances { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.distances th, table.distances td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--sand); }
table.distances th { background: var(--olive); color: #fff; font-family: var(--font-sans); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
table.distances tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 14px; padding: 4px 22px;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta); }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 0 18px; color: #4a453e; }

/* ---------- OTA badges ---------- */
.ota { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ota a {
  text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 10px;
  color: #fff; letter-spacing: .03em; box-shadow: var(--shadow);
}
.ota a.airbnb { background: #ff385c; }
.ota a.booking { background: #003580; }
.ota a.vrbo { background: #1d4ed8; background: #245abc; }

/* ---------- Map ---------- */
.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--olive-dark); color: #e9e6db; padding: 56px 0 24px; margin-top: 40px;
}
footer.site h4 { color: #fff; margin-bottom: 14px; font-size: 1.15rem; }
footer.site a { color: #f0d9b0; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.footer-bottom { text-align: center; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: #b9b4a4; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float .wa-tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: .8rem; white-space: nowrap;
  padding: 6px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wa-float:hover .wa-tip { opacity: 1; }

/* ---------- Split section (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split .ph { border-radius: var(--radius); }
/* ============================================================
   MOBILE — tablet e smartphone
   ============================================================ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { -webkit-tap-highlight-color: rgba(180, 83, 54, .15); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid rgba(0,0,0,.08); padding: 8px 22px 18px;
    box-shadow: 0 12px 24px rgba(46,42,37,.12);
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 0; align-items: stretch; }
  /* voci di menu grandi, facili da toccare */
  nav.main a {
    display: block; padding: 14px 6px; font-size: 1.05rem;
    border-bottom: 1px solid rgba(46,42,37,.07);
  }
  nav.main a.active { border-bottom-color: rgba(46,42,37,.07); }
  nav.main .lang-switch { display: inline-block; margin-top: 14px; text-align: center; }
  .nav-toggle { display: block; padding: 10px 14px; margin: -10px -14px -10px 0; } /* area tocco ≥44px */
  section { padding: 48px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 40px 0; }
  .brand img { height: 46px; }

  /* Hero più compatto, bottoni a tutta larghezza */
  .hero { padding: 64px 18px 76px !important; }
  .hero p.lead { font-size: 1.08rem; }
  .hero .btn, .btn-wa { display: block; width: 100%; max-width: 340px; margin: 10px auto; text-align: center; }
  .btn { padding: 15px 26px; } /* target tocco ≥48px */

  /* Griglie a colonna singola, feature a 2 colonne */
  .grid { gap: 18px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features .f { padding: 18px 10px; }
  .features .f .ico { font-size: 1.6rem; }
  .card .card-body { padding: 20px; }
  .card-img { height: 185px; }
  .split-img, .ph.tall { min-height: 220px; }
  .ph { min-height: 170px; }

  /* Tabella distanze compatta */
  table.distances th, table.distances td { padding: 9px 10px; font-size: .88rem; }

  /* FAQ e OTA */
  details.faq { padding: 2px 16px; }
  details.faq summary { padding: 13px 0; font-size: .98rem; }
  .ota { gap: 10px; }
  .ota a { flex: 1 1 130px; text-align: center; padding: 13px 10px; }

  /* Mappa e footer */
  .map-frame { height: 300px; }
  footer.site { padding: 40px 0 20px; text-align: center; }
  .footer-grid { gap: 26px; }
  footer.site ul li { margin-bottom: 12px; }

  /* Bottone WhatsApp: più discreto e fuori dalla zona gesti iPhone */
  .wa-float {
    width: 54px; height: 54px; right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float .wa-tip { display: none; } /* niente tooltip su touch */
}
