/* ============================================
   La Sosta di Sismano - Villa Website Styles
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --terracotta: #C75B39;
  --terracotta-light: #d4795e;
  --olive: #5C6B3C;
  --olive-light: #7a8a5a;
  --cream: #FDF6EC;
  --brown: #3B2314;
  --gold: #D4A853;
  --gold-light: #e0be7a;
  --white: #ffffff;
  --text: #4a3728;
  --text-light: #7a6555;
  --border: #e8ddd0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--terracotta-light);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--brown);
  line-height: 1.3;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* --- Navigation --- */
.nav {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--brown);
  font-weight: 700;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-links a.active {
  color: var(--terracotta);
  font-weight: 600;
}

.nav-airbnb {
  font-size: 0.85rem !important;
  color: var(--text-light) !important;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease !important;
}

.nav-airbnb:hover {
  border-color: var(--terracotta) !important;
  color: var(--terracotta) !important;
}

.nav-airbnb::after {
  display: none !important;
}


/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      rgba(59, 35, 20, 0.7) 0%,
      rgba(199, 91, 57, 0.5) 50%,
      rgba(92, 107, 60, 0.4) 100%
    ),
    linear-gradient(
      to bottom,
      #8B6F47 0%,
      #A0845C 30%,
      #7A8A5A 60%,
      #5C6B3C 100%
    );
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 2rem 1.5rem;
}

.hero.has-image {
  background-image:
    linear-gradient(
      to bottom,
      rgba(59, 35, 20, 0.45) 0%,
      rgba(59, 35, 20, 0.3) 50%,
      rgba(59, 35, 20, 0.55) 100%
    ),
    url('../images/hero.jpg');
}

.hero-content {
  max-width: 700px;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  font-weight: 300;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  margin: 1.5rem auto;
}


/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-header .divider {
  width: 50px;
  height: 2px;
  background-color: var(--gold);
  margin: 0 auto 1rem;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}


/* --- Intro Section --- */
.intro-text {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.intro-text .italian {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--terracotta);
}


/* --- Highlights Grid --- */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.highlight-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 35, 20, 0.1);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.highlight-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}


/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #c9a882 0%,
    #a0845c 40%,
    #8B6F47 70%,
    #7a6555 100%
  );
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}


/* --- Testimonial --- */
.testimonial {
  text-align: center;
  padding: 4rem 0;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

.testimonial-rating {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.testimonial-count {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.testimonial blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.testimonial blockquote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: -0.5rem;
}


/* --- About Page Sections --- */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #c9a882 0%,
    #a0845c 50%,
    #7a8a5a 100%
  );
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image .gallery-placeholder {
  height: 100%;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text .divider {
  width: 50px;
  height: 2px;
  background-color: var(--gold);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}


/* --- Things To Do --- */
.things-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.thing-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 35, 20, 0.08);
}

.thing-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
}

.thing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.thing-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}


/* --- Getting Here --- */
.getting-here {
  max-width: 750px;
  margin: 0 auto;
}

.getting-here p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.travel-options {
  list-style: none;
  margin-top: 1.5rem;
}

.travel-options li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.travel-options li:last-child {
  border-bottom: none;
}

.travel-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* --- Footer --- */
.footer {
  background-color: var(--brown);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer a {
  color: var(--gold-light);
}

.footer a:hover {
  color: var(--gold);
}

.footer-airbnb-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
}

.footer-airbnb-link:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}


/* --- Page Header (for About) --- */
.page-header {
  background:
    linear-gradient(
      135deg,
      rgba(59, 35, 20, 0.75) 0%,
      rgba(92, 107, 60, 0.55) 100%
    ),
    linear-gradient(
      to right,
      #8B6F47 0%,
      #7A8A5A 100%
    );
  color: var(--white);
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

.page-header .divider {
  width: 50px;
  height: 2px;
  background-color: var(--gold);
  margin: 1rem auto;
}


/* =====================
   Responsive Breakpoints
   ===================== */

/* Tablet (600px+) */
@media (min-width: 600px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .things-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (900px+) */
@media (min-width: 900px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-section {
    grid-template-columns: 1fr 1fr;
  }

  .about-section.reverse {
    direction: rtl;
  }

  .about-section.reverse > * {
    direction: ltr;
  }

  .things-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
