/* =============================================
   Albachiara Termini – Stylesheet
   Aesthetic: Warm Sicilian / Terracotta & Honey
   ============================================= */

:root {
  --cream: #FBF7F0;
  --cream-deep: #F3EDE2;
  --terracotta: #B8623F;
  --terracotta-dark: #9A4E2F;
  --terracotta-light: #D4845E;
  --navy: #1E2D3D;
  --navy-mid: #2C4356;
  --honey: #D4A84B;
  --honey-light: #E4C06E;
  --olive: #5C6B4F;
  --white: #FFFFFF;
  --off-white: #FEFDFB;
  --text: #2E2A26;
  --text-light: #6D655C;
  --text-muted: #A09889;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --container-max: 1140px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--navy);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--navy);
}

/* ── Section ── */
.section { padding: var(--section-pad) 0; }

.section-dark {
  background: var(--navy);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .section-tag { color: var(--honey); }

.section-accent { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 98, 63, 0.3);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  font-weight: 600;
}
.btn-whatsapp:hover {
  background: #1EBE5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-booking {
  background: #003580;
  color: var(--white);
  border-color: #003580;
}
.btn-booking:hover {
  background: #00264D;
  transform: translateY(-2px);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(254, 253, 251, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 0.7rem 0;
}

.nav.scrolled .nav-logo-name,
.nav.scrolled .nav-logo-place,
.nav.scrolled .nav-links a { color: var(--navy); }
.nav.scrolled .nav-cta { color: var(--white) !important; }
.nav.scrolled .nav-toggle span { background: var(--navy); }

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; gap: 0.35rem; align-items: baseline; }

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--white);
  transition: color 0.3s;
}

.nav-logo-place {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--honey);
  transition: color 0.3s;
}

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

.nav-links a {
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  padding: 0.5rem 0.9rem;
  transition: color 0.3s, opacity 0.3s;
}
.nav-links a:hover { opacity: 0.7; }

.nav-cta {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  border-radius: 50px;
  padding: 0.45rem 1.2rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { opacity: 0.9 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 45, 61, 0.5) 0%,
    rgba(30, 45, 61, 0.2) 40%,
    rgba(30, 45, 61, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 680px;
  padding: 2rem;
  animation: heroFadeIn 1.2s var(--ease) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--honey);
}

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--honey-light);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: heroScrollPulse 2s infinite;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
}
@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.2; }
}

/* ── Villa Intro ── */
.villa-intro {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--text-light);
}
.villa-intro p + p { margin-top: 1rem; }
.villa-intro strong { color: var(--navy); font-weight: 500; }

/* ── Amenities ── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.amenity {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.amenity:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.amenity-icon {
  width: 44px; height: 44px;
  margin: 0 auto 1rem;
  color: var(--terracotta);
}
.amenity-icon svg { width: 100%; height: 100%; }

.amenity h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.amenity p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* ── Gallery ── */
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-tab {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--cream);
  padding: 0.45rem 1.15rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}
.gallery-tab:hover,
.gallery-tab.active {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--navy);
}

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

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.gallery-item.hidden { display: none; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none; border: none;
  color: white; font-size: 2.5rem;
  cursor: pointer; padding: 1rem;
  opacity: 0.7; transition: opacity 0.3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.5rem; font-size: 3rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Territorio ── */
.territorio-intro {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.03rem;
  color: var(--text-light);
  line-height: 1.8;
}

.territorio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.territorio-card {
  padding: 2rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.territorio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.territorio-card-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--terracotta-light);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

.territorio-card-body h3 { margin-bottom: 0.6rem; }
.territorio-card-body p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}
.territorio-card-body strong { color: var(--navy); font-weight: 500; }

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: none;
  transition: transform 0.3s var(--ease);
}
.review-card:hover { transform: translateY(-3px); }

.review-stars {
  color: var(--honey);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.93rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.review-card footer strong { font-weight: 500; color: var(--navy); }
.review-card footer span { font-size: 0.78rem; color: var(--text-muted); }

.reviews-cta { text-align: center; margin-top: 2.5rem; }
.reviews-cta a {
  color: var(--terracotta);
  font-weight: 500;
  transition: color 0.3s;
}
.reviews-cta a:hover { color: var(--terracotta-dark); }

/* ── Directions ── */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.direction-card { text-align: center; padding: 2rem 1.25rem; }
.direction-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.direction-card h3 { margin-bottom: 0.7rem; }
.direction-card p { font-size: 0.93rem; color: var(--text-light); line-height: 1.7; }
.direction-card strong { color: var(--navy); font-weight: 500; }

.directions-map {
  text-align: center;
  padding: 2.5rem;
  background: var(--cream);
  border-radius: 12px;
}
.directions-address { font-size: 1.05rem; margin-bottom: 1.5rem; color: var(--navy); }
.directions-links {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* ── Info ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.info-block h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--honey);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 1.5rem;
}
.info-list dt { font-weight: 500; color: var(--cream); }
.info-list dd { color: rgba(251, 247, 240, 0.7); }

.info-note {
  font-size: 0.93rem;
  color: rgba(251, 247, 240, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.info-disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(251, 247, 240, 0.5);
  font-style: italic;
}

/* ── Contacts ── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  text-align: center;
}

.contact-card {
  padding: 2rem;
  background: var(--cream);
  border-radius: 12px;
}
.contact-card h3 { margin-bottom: 1rem; }

.contact-role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  vertical-align: middle;
}

.contact-card a {
  color: var(--navy-mid);
  font-weight: 400;
  transition: color 0.3s;
}
.contact-card a:hover { color: var(--terracotta); }

.contact-wa {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: #25D366;
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}
.contact-wa:hover { background: #1EBE5A; color: var(--white) !important; }

/* ── CTA ── */
.section-cta {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 50%, var(--navy) 100%);
  color: var(--white);
  padding: var(--section-pad) 0;
}

.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { font-size: 1.03rem; opacity: 0.85; margin-bottom: 2rem; line-height: 1.7; }
.cta-inner strong { color: var(--honey-light); }

.cta-buttons {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: #151E27;
  color: rgba(255,255,255,0.55);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--honey); }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.78rem;
  text-align: center;
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 900;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 27px; height: 27px; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: var(--navy);
  color: var(--cream);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem;
  font-size: 0.83rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-actions button {
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.83rem; font-weight: 500;
  cursor: pointer; border: none;
  background: var(--honey);
  color: var(--navy);
  transition: background 0.3s;
}
.cookie-actions button:hover { background: var(--honey-light); }
.cookie-decline {
  background: transparent !important;
  color: var(--cream) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

/* ── Scroll Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 270px; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s var(--ease);
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }

  .nav-links a {
    color: var(--cream) !important;
    font-size: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 1rem;
    text-align: center;
    display: block;
  }

  .hero h1 { font-size: clamp(2.3rem, 8.5vw, 3.8rem); }

  .amenities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .territorio-grid { grid-template-columns: 1fr; }
  .territorio-card { flex-direction: column; gap: 0.5rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .directions-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .cookie-banner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .directions-links { flex-direction: column; }
  .directions-links .btn { width: 100%; justify-content: center; }
}
