/* ============================================
   Il Vichiaccio — Foglio di stile condiviso
   Palette: campagna toscana (ulivo, ocra, pietra)
   ============================================ */

:root {
  --color-olive: #4A5D32;
  --color-olive-dark: #3A4A27;
  --color-ochre: #B8763D;
  --color-ochre-light: #D4995E;
  --color-text: #3A2E22;
  --color-cream: #F7F2E9;
  --color-white: #FDFCFA;
  --color-border: #E4D9C6;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-olive-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: var(--space-sm); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-sm); max-width: 68ch; }

a { color: var(--color-olive); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-ochre); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-olive-dark);
  letter-spacing: 0.02em;
}

.site-title .tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ochre);
  font-weight: 700;
}

.site-logo { display: block; flex-shrink: 0; }
.site-logo img { height: 64px; width: auto; display: block; }

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-lang { display: flex; gap: 0.5rem; }
.header-lang a {
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}
.header-lang a:hover { color: var(--color-ochre); border-color: var(--color-ochre); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.main-nav a {
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.main-nav a:hover { color: var(--color-ochre); }

.nav-cta {
  background: var(--color-olive);
  color: var(--color-white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--color-ochre); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-olive-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,46,34,0.35) 0%, rgba(58,46,34,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 var(--space-md);
  margin: 0 auto;
  text-align: center;
}

.hero h1 { color: var(--color-white); margin-bottom: var(--space-xs); }

.hero .subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.btn {
  display: inline-block;
  background: var(--color-ochre);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--color-olive); color: var(--color-white); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-olive-dark); }

.direct-banner {
  background: var(--color-olive-dark);
  color: var(--color-white);
  padding: 0.75rem 0;
  text-align: center;
}
.direct-banner p { margin: 0; font-size: 0.92rem; }
.direct-banner a { color: var(--color-ochre-light); text-decoration: underline; }
.direct-banner a:hover { color: var(--color-white); }

/* ---------- Sections ---------- */
section { padding: var(--space-xl) 0; }
.section-cream { background: var(--color-cream); }
.section-white { background: var(--color-white); }

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.eyebrow {
  display: block;
  color: var(--color-ochre);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

/* ---------- Grid / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  text-align: center;
}

.card h3 { margin-top: var(--space-sm); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  margin: var(--space-lg) 0;
}
.photo-grid img { width: 100%; height: 220px; object-fit: cover; }

/* ---------- Badges ---------- */
.badges {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}
.badges img { height: 130px; width: auto; }

/* ---------- Video / Testimonial ---------- */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-olive-dark);
  margin-bottom: var(--space-sm);
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-ochre);
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: var(--space-md) auto 0;
  aspect-ratio: 16/9;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- Drone Video ---------- */
.drone-video-section {
  background: var(--color-olive-dark);
  padding: var(--space-xl) 0;
}
.drone-video-section .section-intro .eyebrow { color: var(--color-ochre-light); }
.drone-video-section .section-intro h2 { color: var(--color-white); }
.drone-video-section .section-intro p { color: var(--color-white); opacity: 0.85; }

.drone-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: var(--space-lg) auto 0;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.drone-video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
}

/* ---------- Reviews CTA ---------- */
.reviews-cta {
  text-align: center;
  background: var(--color-olive);
  color: var(--color-white);
  padding: var(--space-lg) var(--space-md);
}
.reviews-cta h2 { color: var(--color-white); }
.reviews-cta a.btn { margin-top: var(--space-sm); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-olive-dark);
  color: var(--color-cream);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-grid a { color: var(--color-cream); opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: var(--color-ochre-light); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }


.footer-bottom {
  border-top: 1px solid rgba(247,242,233,0.15);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- Room pages ---------- */
.room-hero {
  min-height: 50vh;
}

.breadcrumb {
  font-size: 0.85rem;
  padding: var(--space-sm) 0;
  opacity: 0.75;
}
.breadcrumb a { color: var(--color-olive); }

.amenities-list { list-style: none; }
.amenities-list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.amenities-list li::before {
  content: "✓";
  color: var(--color-ochre);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.info-box {
  background: var(--color-cream);
  border-left: 3px solid var(--color-ochre);
  padding: var(--space-md);
}
.info-box h4 { margin-bottom: var(--space-xs); }

.room-cards .grid-3 { align-items: stretch; }
.room-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.room-card img { height: 220px; object-fit: cover; }
.room-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.room-card-body p { font-size: 0.95rem; }
.room-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-4, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: flex; }

  .header-right {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
  .site-header.nav-open .header-right { display: flex; }

  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 0.9rem 0; }
  .nav-cta { display: inline-block; margin-top: var(--space-sm); }

  .header-lang { margin-top: var(--space-sm); }
}

@media (max-width: 540px) {
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  section { padding: var(--space-lg) 0; }
  .site-logo img { height: 48px; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(58, 46, 34, 0.96);
  color: var(--color-white);
  font-size: 0.9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--color-white); text-decoration: underline; }
.cookie-banner button {
  background: var(--color-ochre);
  color: var(--color-white);
  border: none;
  border-radius: 2px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner button:hover { background: var(--color-olive); }
