/* ============================================
   VILLA MARIA PIA — style.css
   Palette: warm white, sand, terracotta, olive, gold
   Fonts: Playfair Display + Lato + Cormorant Garamond
   ============================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --white:       #FAF8F4;
  --sand:        #E8D5B0;
  --sand-light:  #F5EDDC;
  --sand-dark:   #D4BA8A;
  --gold:        #B8986A;
  --gold-dark:   #8C6F40;
  --terracotta:  #C4785A;
  --terracotta-l:#E8A98E;
  --olive:       #7A8C6E;
  --olive-light: #9BAF8E;
  --ink:         #1C1A18;
  --ink-soft:    #3D3830;
  --muted:       #7A7168;
  --border:      rgba(184, 152, 106, 0.2);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   20px;

  --shadow-sm:   0 2px 12px rgba(28, 26, 24, 0.07);
  --shadow-md:   0 8px 40px rgba(28, 26, 24, 0.12);
  --shadow-lg:   0 20px 60px rgba(28, 26, 24, 0.18);

  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width:   1200px;
  --nav-height:  72px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ---- SECTION BASE ---- */
.section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.text-center { text-align: center; }

/* ---- TYPOGRAPHY HELPERS ---- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: clamp(20px, 3vw, 40px);
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 120, 90, 0.35);
}

.btn-ghost {
  background: transparent;
  color: rgba(250, 248, 244, 0.9);
  border-color: rgba(250, 248, 244, 0.5);
}
.btn-ghost:hover {
  background: rgba(250, 248, 244, 0.12);
  border-color: rgba(250, 248, 244, 0.9);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 152, 106, 0.3);
}

.btn-primary-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-primary-light:hover {
  background: var(--sand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(250, 248, 244, 0.5);
}
.btn-ghost-light:hover {
  background: rgba(250, 248, 244, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  /* Default: sempre visibile con sfondo chiaro e testo scuro */
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(28, 26, 24, 0.08);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-bottom var(--transition);
}

/* Trasparente solo sull'hero, e solo se JS aggiunge la classe */
.navbar.on-hero {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
}

/* .scrolled sovrascrive .on-hero quando si scorre */
.navbar.scrolled {
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(28, 26, 24, 0.08);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 24px;
  height: 30px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.navbar.on-hero .nav-logo-text { color: var(--white); }
.navbar.scrolled .nav-logo-text { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.nav-link {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--terracotta); }
.nav-link:hover::after { width: 100%; }

/* Sull'hero: testo bianco */
.navbar.on-hero .nav-link { color: rgba(250, 248, 244, 0.85); }
.navbar.on-hero .nav-link:hover { color: var(--white); }

/* Dopo scroll: testo marroncino/ink */
.navbar.scrolled .nav-link { color: var(--ink-soft); }
.navbar.scrolled .nav-link:hover { color: var(--terracotta); }

.nav-link-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.12em;
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: var(--transition);
  transform-origin: center;
}
.navbar.on-hero .nav-hamburger span { background: var(--white); }
.navbar.scrolled .nav-hamburger span { background: var(--ink); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.nav-mobile-overlay.open { transform: translateX(0); }
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--transition);
}
.nav-mobile-link:hover { color: var(--terracotta); }

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-image.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 26, 24, 0.75) 0%,
    rgba(28, 26, 24, 0.35) 45%,
    rgba(28, 26, 24, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-title em {
  font-style: italic;
  color: var(--sand);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(250, 248, 244, 0.8);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: clamp(24px, 4vw, 40px);
  right: clamp(20px, 5vw, 80px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 248, 244, 0.5);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll-hint svg {
  width: 12px;
  height: 20px;
}

.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================
   DECORATIVE DIVIDER
============================================ */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-icon {
  width: 30px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   INTRO / ABOUT
============================================ */
.intro-section { padding-top: 60px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.intro-text { order: 1; }

.intro-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.intro-body p:last-child { margin-bottom: 32px; }

.intro-images {
  order: 2;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
}

.intro-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-img-secondary {
  width: 70%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-left: auto;
  position: relative;
  box-shadow: var(--shadow-md);
}

.intro-img-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(28, 26, 24, 0.65);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 20px;
}

.intro-img-tag span {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
}

/* ============================================
   FEATURES / PUNTI DI FORZA
============================================ */
.features-section {
  background: var(--sand-light);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--terracotta), var(--gold), transparent);
  opacity: 0.5;
}

.features-section .section-title {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================
   CAMERE
============================================ */
.rooms-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.rooms-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: calc(clamp(20px, 3vw, 40px));
  align-self: end;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(40px, 5vw, 60px);
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.room-image-wrap {
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
}

.room-image-wrap img {
  transition: transform var(--transition-slow);
}

.room-card:hover .room-image-wrap img { transform: scale(1.04); }

.room-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(28, 26, 24, 0.65);
  backdrop-filter: blur(6px);
  color: var(--sand);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.room-info {
  padding: clamp(20px, 3vw, 28px);
}

.room-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.room-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-amenities li {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--sand-light);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ============================================
   COLAZIONE
============================================ */
.breakfast-section {
  background: var(--ink);
  color: var(--white);
  padding: 0;
  overflow: hidden;
}

.breakfast-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.breakfast-image-col {
  position: relative;
  min-height: 400px;
}

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

.breakfast-text-col {
  padding: clamp(50px, 7vw, 100px) clamp(30px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breakfast-section .section-label { color: var(--sand); }

.breakfast-section .section-title { color: var(--white); }

.breakfast-section .section-title em { color: var(--terracotta-l); }

.breakfast-body p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(250, 248, 244, 0.75);
  margin-bottom: 1.1rem;
}

.breakfast-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(184, 152, 106, 0.35);
  padding: 6px 16px;
  border-radius: 20px;
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--sand);
  background: rgba(184, 152, 106, 0.1);
}

/* ============================================
   TERRITORIO
============================================ */
.territory-section {
  background: var(--white);
}

.territory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 56px);
}

.territory-text p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* ---- Distance list — niente SVG, solo CSS puro ---- */
.distance-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.distance-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.distance-item:last-child {
  border-bottom: none;
}

.distance-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 152, 106, 0.15);
}

.distance-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
}

.distance-place {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.distance-time {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
}

/* ---- Immagini territorio ---- */
.territory-images {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 480px;
}

.territory-img-top {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.territory-img-bottom {
  width: 78%;
  margin-left: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================
   RECENSIONI
============================================ */
.reviews-section {
  background: var(--sand-light);
  position: relative;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--terracotta), var(--gold), transparent);
  opacity: 0.5;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(40px, 5vw, 60px);
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 3px;
}

.review-text {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.75;
  quotes: "\201C" "\201D";
  flex: 1;
}

.review-text::before { content: open-quote; }
.review-text::after { content: close-quote; }

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

.review-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  font-style: normal;
}

.review-origin {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============================================
   CTA FINALE
============================================ */
.cta-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 26, 24, 0.8), rgba(28, 26, 24, 0.65));
}

.cta-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  text-align: center;
}

.cta-subtitle {
  font-size: 1rem;
  color: rgba(250, 248, 244, 0.75);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-contact-info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(250, 248, 244, 0.6);
  letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.7);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 80px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  border-bottom: 1px solid rgba(250, 248, 244, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.footer-logo-icon {
  width: 24px;
  height: 30px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}

.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-dark);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-list { display: flex; flex-direction: column; gap: 8px; }

.footer-list li,
.footer-list a {
  font-size: 0.87rem;
  color: rgba(250, 248, 244, 0.6);
  transition: color var(--transition);
  line-height: 1.5;
}

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

.footer-social { gap: 12px; }
.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250, 248, 244, 0.35);
}
.footer-copy a {
  color: rgba(250, 248, 244, 0.5);
  transition: color var(--transition);
}
.footer-copy a:hover { color: rgba(250, 248, 244, 0.8); }

.footer-credit {
  font-size: 0.72rem;
  color: rgba(250, 248, 244, 0.2);
  font-style: italic;
}

/* ============================================
   REVEAL ANIMATIONS
   Default: sempre visibile (funziona anche senza JS / file locale).
   Con JS attivo, la classe .js-ready sul body abilita le animazioni.
============================================ */
.reveal,
.reveal-hero {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Le animazioni si attivano SOLO se JS ha aggiunto .js-ready al body */
body.js-ready .reveal,
body.js-ready .reveal-hero {
  opacity: 0;
  transform: translateY(28px);
}

body.js-ready .reveal.visible,
body.js-ready .reveal-hero.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays per elementi hero */
body.js-ready .reveal-hero:nth-child(1) { transition-delay: 0.1s; }
body.js-ready .reveal-hero:nth-child(2) { transition-delay: 0.25s; }
body.js-ready .reveal-hero:nth-child(3) { transition-delay: 0.4s; }
body.js-ready .reveal-hero:nth-child(4) { transition-delay: 0.55s; }
body.js-ready .reveal-hero:nth-child(5) { transition-delay: 0.7s; }

/* ============================================
   RESPONSIVE — TABLET
============================================ */
@media (max-width: 960px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-text { order: 1; }
  .intro-images { order: 2; }

  .rooms-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .territory-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .territory-images {
    height: 360px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .territory-img-bottom { width: 100%; margin-left: 0; }

  .breakfast-inner {
    grid-template-columns: 1fr;
  }

  .breakfast-image-col {
    min-height: 320px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

/* ============================================
   RESPONSIVE — MOBILE
============================================ */
@media (max-width: 640px) {
  :root { --nav-height: 60px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .rooms-grid { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr; }

  .breakfast-text-col {
    padding: 40px clamp(20px, 5vw, 40px);
  }

  .territory-images {
    grid-template-columns: 1fr;
    height: auto;
  }
  .territory-img-top, .territory-img-bottom {
    aspect-ratio: 4/3;
    width: 100%;
    margin-left: 0;
  }

  .footer-top { gap: 32px; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .footer-col:last-child { grid-column: 1/-1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cta-contact-info { flex-direction: column; gap: 12px; align-items: center; }

  .divider-ornament { display: none; }
}

@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================
   LANGUAGE TOGGLE BUTTON
============================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  gap: 0;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 4px;
}

.lang-toggle:hover {
  border-color: var(--gold);
  background: rgba(184, 152, 106, 0.08);
  transform: translateY(-1px);
}

.navbar.on-hero .lang-toggle {
  border-color: rgba(250, 248, 244, 0.35);
}
.navbar.on-hero .lang-toggle:hover {
  border-color: rgba(250, 248, 244, 0.7);
  background: rgba(250, 248, 244, 0.1);
}

.lang-toggle-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  transition: color var(--transition);
}

.navbar.on-hero .lang-label { color: rgba(250, 248, 244, 0.85); }
.navbar.scrolled .lang-label { color: var(--ink-soft); }

/* Animazione flip al cambio lingua */
.lang-toggle.switching .lang-toggle-inner {
  animation: langFlip 0.3s ease;
}

@keyframes langFlip {
  0%   { transform: rotateY(0deg); opacity: 1; }
  50%  { transform: rotateY(90deg); opacity: 0; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

/* Su mobile: nasconde il testo, mostra solo bandiera */
@media (max-width: 640px) {
  .lang-toggle {
    padding: 5px 8px;
  }
  .lang-label {
    display: none;
  }
}


/* Villa Maria Pia 2026 tweaks */
.rooms-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
