/* ============================================
   Foglio di stile comune dei siti demo — palette e font decisi nel progetto (§2)
   Palette: crema, terracotta, verde salvia, marroni caldi
   ============================================ */

:root {
  --cream: #faf6ef;
  --cream-dark: #f1e9dc;
  --terracotta: #b06045;
  --terracotta-dark: #964d36;
  --sage: #8a9b7a;
  --sage-dark: #6f8062;
  --brown: #453b33;
  --brown-light: #7a6d61;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(69, 59, 51, 0.10);
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
}

img { max-width: 100%; display: block; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sage-dark);
  outline-offset: 2px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.9rem;
}
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--terracotta);
  margin: 0.7rem auto 0;
  border-radius: 2px;
}

.lead { font-size: 1.15rem; font-weight: 400; color: var(--brown); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.logo {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  line-height: 1.15;
}
.logo span { color: var(--terracotta); }
.logo:hover { text-decoration: none; }

.main-nav { display: none; }
.main-nav a {
  color: var(--brown);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.3rem 0.2rem;
}
.main-nav a:hover { color: var(--terracotta); text-decoration: none; }

@media (min-width: 860px) {
  .main-nav { display: flex; gap: 1.4rem; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-call {
  background: var(--terracotta);
  color: #fff;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.btn-call:hover { background: var(--terracotta-dark); color: #fff; }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: relative;
  width: 100%;
  background: rgba(40, 34, 29, 0.5);
  padding: 5rem 0;
}
.hero-content { color: #fff; max-width: 640px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 500;
  color: #f3e3cf;
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 1rem;
}
.hero-sub { font-size: 1.15rem; margin-bottom: 1.8rem; color: #f6efe4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.hero-rating { font-size: 0.95rem; color: #f0e6d6; }
.hero-rating strong { color: #ffd9a8; }

/* ---------- Sezioni ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }

.two-col {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.two-col p + p { margin-top: 1rem; }

.highlight-box {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.highlight-box h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--terracotta-dark); }

.check-list { list-style: none; margin-top: 1.1rem; }
.check-list li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 600;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--terracotta);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--brown-light); }

/* ---------- Galleria ---------- */
.gallery {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  padding: 0.8rem 1rem;
  font-family: var(--font-title);
  font-style: italic;
  color: var(--brown-light);
  font-size: 0.98rem;
}

/* ---------- Info pratiche ---------- */
.info-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }

.info-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.info-box h3 {
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
}
.info-big {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--terracotta-dark);
}

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 920px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-list { list-style: none; margin: 1.4rem 0; }
.contact-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--cream-dark); }
.contact-list li:last-child { border-bottom: none; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.map-wrap iframe { display: block; width: 100%; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }

.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d9cdbd;
  border-radius: 8px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--brown);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sage);
  border-color: var(--sage);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: #e8ded2;
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
}
.footer-inner {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.footer-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: #e0a184; }
.site-footer a { color: #f0c9ae; }
.site-footer a:hover { color: #fff; }
.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: #b9a996;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
}

/* ---------- Accessibilità ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
