/* ============================================================
   Dimora Patrizia – Premium B&B Website
   Aesthetic: Luxury Mediterranean Elegance
   Fonts: Cormorant Garamond + Jost
   Colors: Warm creams, deep navy, terracotta gold accents
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --cream: #faf8f4;
  --cream-dark: #f0ede6;
  --ivory: #fffff8;
  --navy: #1a2a4a;
  --navy-deep: #0d1b33;
  --navy-mid: #2a3f6a;
  --gold: #c8965a;
  --gold-light: #ddb87a;
  --gold-lighter: #f0d4a8;
  --terracotta: #b5634c;
  --sage: #7a8f6e;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #8a8a8a;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', sans-serif;

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

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.16);

  --section-padding: 100px 24px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 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: var(--cream);
  color: var(--text-dark);
  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; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
em { font-style: italic; color: var(--gold); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 20px; color: var(--navy); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 40px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
  padding: 14px 40px;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.nav-logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 48px;
}
.nav-logo-img img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}
.navbar.scrolled .nav-logo-img { height: 40px; }
.logo-dimora {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.logo-patrizia {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--gold);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Cinematic overlay: dark vignette + left gradient for text legibility */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(8, 16, 32, 0.78) 0%,
      rgba(8, 16, 32, 0.55) 45%,
      rgba(8, 16, 32, 0.18) 75%,
      rgba(8, 16, 32, 0.05) 100%
    ),
    radial-gradient(ellipse at 100% 100%, rgba(200,150,90,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 120px 40px 80px 80px;
  animation: heroIn 1.2s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-pre {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-title {
  color: #fff;
  font-weight: 300;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s both;
}
.hero-title em { color: var(--gold-light); }
.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s both;
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s both;
}
.hero-scroll span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; height: 40px; }
  50% { opacity: 1; height: 60px; }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 150, 90, 0.4);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
}
.btn-large { padding: 18px 40px; font-size: 0.9rem; }

/* ---------- SECTION COMMON ---------- */
.section { padding: var(--section-padding); max-width: 1400px; margin: 0 auto; }

/* ---------- HIGHLIGHTS ---------- */
.highlights {
  background: var(--navy);
  padding: 0;
}
.highlights-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.highlight-card {
  padding: 48px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
  cursor: default;
}
.highlight-card:last-child { border-right: none; }
.highlight-card:hover {
  background: rgba(255,255,255,0.05);
}
.highlight-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  display: block;
}
.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}
.highlight-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ---------- APPARTAMENTI ---------- */
.appartamenti { padding: 120px 40px; }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.room-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.room-card--featured {
  grid-row: span 1;
  position: relative;
}
.room-card--featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: 0;
  pointer-events: none;
}
.room-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.room-img-wrap img {
  transition: transform 0.6s ease;
}
.room-card:hover .room-img-wrap img {
  transform: scale(1.06);
}
.room-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
}
.room-badge--featured {
  background: var(--gold);
}
.room-info {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.room-info h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.45rem;
}
.room-info > p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  flex: 1;
}
.room-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 24px;
}
.room-amenities li {
  font-size: 0.82rem;
  color: var(--text-mid);
}
.btn-room {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--navy);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-room:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- GALLERY ---------- */
.gallery-section {
  padding: 80px 40px 100px;
  background: var(--cream-dark);
}
.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}
.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 200px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.95);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.gallery-item:nth-child(4) { grid-column: 4; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: 2; grid-row: 2; }
.gallery-item:nth-child(6) { grid-column: 3; grid-row: 2; }

/* ---------- SCARIO ---------- */
.scario-section {
  background: var(--ivory);
}
.scario-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-padding);
}
.scario-text p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.scario-text strong { color: var(--navy); }
.scario-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-dark);
}
.scario-feat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.feat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.scario-map {
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- ABOUT ---------- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  background: var(--cream);
}
.about-img {
  position: relative;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img img {
  border-radius: var(--radius-lg);
}
.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--gold-lighter);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-text p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.8;
}
.about-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.6;
}
.about-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream-dark);
  padding: 14px 20px;
  border-radius: var(--radius-md);
}
.badge-icon { font-size: 1.5rem; }
.badge strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-family: var(--font-body);
}
.badge small {
  font-size: 0.7rem;
  color: var(--text-light);
  font-family: var(--font-body);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 100px 40px;
  text-align: center;
  background: var(--navy-deep);
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 150, 90, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(42, 63, 106, 0.5) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.cta-banner-content h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}
.cta-banner-content h2 em { color: var(--gold-light); }
.cta-banner-content p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CONTATTI ---------- */
.contatti-section {
  background: var(--cream-dark);
}
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}
.contatto-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contatto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.contatto-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.contatto-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.contatto-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}
.contatto-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  transition: color 0.3s;
  margin-bottom: 8px;
}
.contatto-link:hover { color: var(--terracotta); }
.big-phone {
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 40px 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}
.footer-brand .footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 16px;
}
.footer-brand .logo-dimora { color: var(--gold); font-size: 0.6rem; }
.footer-brand .logo-patrizia { color: #fff; font-size: 1.5rem; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-legal small {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-links a, .footer-contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-address {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- WHATSAPP FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: fabPop 0.5s ease both 1.5s;
}
@keyframes fabPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-fab svg { color: #fff; }

/* ---------- APT DETAIL (Romantica / Serena) ---------- */
.apt-detail {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--cream-dark);
}
.apt-detail:first-of-type {
  border-top: none;
  padding-top: 0;
}
.apt-header {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}
.apt-detail--reverse .apt-header {
  grid-template-columns: 1.1fr 1fr;
}
.apt-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 150, 90, 0.1);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.apt-tag--serena {
  color: #3d8d7a;
  background: rgba(61, 141, 122, 0.1);
}
.apt-title {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}
.apt-header-text > p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.8;
}
.apt-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apt-features li {
  font-size: 0.92rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
}
.apt-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
.apt-features strong { color: var(--navy); font-weight: 600; }
.apt-header-img {
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.apt-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
}
.apt-gallery-item {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--cream-dark);
}
.apt-gallery-item img {
  transition: transform 0.6s ease;
  object-position: center center;
}
.apt-gallery-item:hover img {
  transform: scale(1.06);
}
.apt-gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---------- DOTAZIONI ---------- */
.dotazioni-section {
  background: var(--cream-dark);
  padding: 100px 40px;
}
.dotazioni-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dotazione-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dotazione-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dotazione-item span {
  font-size: 1.8rem;
}
.dotazione-item p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.4;
  margin: 0;
}
.dotazioni-note {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  padding: 24px 32px;
  background: #fff;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}
.dotazioni-note p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.dotazioni-note strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- ESTERNI GRID ---------- */
.esterni-section { padding: 100px 40px; }
.esterni-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}
.esterni-item {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--cream-dark);
}
.esterni-item img {
  transition: transform 0.6s ease;
}
.esterni-item:hover img {
  transform: scale(1.06);
}
.esterni-item--tall {
  grid-row: span 2;
}

/* ---------- DISCOVER ---------- */
.discover-section {
  background: var(--ivory);
  padding: 100px 40px;
}
.discover-section .section-header {
  margin-bottom: 70px;
}

/* ---------- TOPIC BLOCKS (una sezione per luogo) ---------- */
.topic-block {
  max-width: 1400px;
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 56px;
  align-items: start;
}
.topic-block:last-child {
  margin-bottom: 0;
}
.topic-block--reverse {
  grid-template-columns: 1fr minmax(280px, 380px);
}
.topic-block--reverse .topic-text {
  order: 2;
}
.topic-block--reverse .topic-gallery {
  order: 1;
}

.topic-text {
  position: sticky;
  top: 120px;
  padding-top: 8px;
}
.topic-number {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--gold, #b08d57);
  margin-bottom: 14px;
  opacity: 0.85;
}
.topic-text h3 {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}
.topic-text p {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.8;
}
.topic-text p strong {
  color: var(--navy);
  font-weight: 600;
}

.topic-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.topic-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #f2ede5;
}
.topic-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.topic-gallery-item:hover img {
  transform: scale(1.06);
}
.topic-gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---------- FOOTER LOGO IMG ---------- */
.footer-logo-img {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ------ Tablet (max-width: 1100px) ------ */
@media (max-width: 1100px) {
  :root { --section-padding: 80px 24px; }

  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-card:nth-child(2) { border-right: none; }
  .highlight-card:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); }

  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .rooms-grid .room-card:last-child { grid-column: span 2; max-width: none; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item--tall { grid-row: span 2; }
  .gallery-item { height: 200px; }
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-item--tall { grid-row: span 2; }

  .scario-content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px 24px;
  }
  .scario-map { height: 360px; }

  .about-section {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    gap: 48px;
  }
  .about-img { height: 400px; }

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

  .contatti-grid { grid-template-columns: 1fr 1fr; }
  .contatti-grid .contatto-card:last-child { grid-column: span 2; }

  .apt-header,
  .apt-detail--reverse .apt-header {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .apt-detail--reverse .apt-header-img { order: -1; }
  .apt-header-img { height: 360px; }
  .apt-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .apt-gallery-item--wide { grid-column: span 2; grid-row: span 1; }

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

  .esterni-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .esterni-item { height: 200px; }
  .esterni-item--tall { grid-row: span 2; height: 410px; }

  .topic-block,
  .topic-block--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 72px;
  }
  .topic-block--reverse .topic-text { order: 0; }
  .topic-block--reverse .topic-gallery { order: 0; }
  .topic-text {
    position: static;
    max-width: 640px;
  }
  .topic-text h3 { font-size: 1.8rem; }
}

/* ------ Mobile (max-width: 767px) ------ */
@media (max-width: 767px) {
  :root { --section-padding: 64px 20px; }

  /* Navbar */
  .navbar { padding: 16px 20px; }
  .navbar.scrolled { padding: 12px 20px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 28px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1rem; }
  .nav-cta {
    align-self: stretch;
    text-align: center;
    padding: 14px 20px;
  }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content {
    padding: 100px 20px 80px;
    max-width: 100%;
  }
  .hero-pre { font-size: 0.68rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .hero-scroll { right: 16px; bottom: 24px; }

  /* Highlights */
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .highlight-card { padding: 32px 20px; }
  .highlight-card:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .highlight-card:nth-child(3n) { border-right: none; }
  .highlight-card:nth-child(4) { border-right: none; }

  /* Appartamenti */
  .appartamenti { padding: 64px 20px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .rooms-grid .room-card:last-child { grid-column: auto; }
  .room-card--featured::before { display: none; }

  /* Gallery */
  .gallery-section { padding: 60px 20px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 180px);
  }
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    height: 180px;
  }
  .gallery-item--tall {
    grid-column: span 2;
    height: 240px;
  }

  /* Scario */
  .scario-content { padding: 64px 20px; }
  .scario-features { grid-template-columns: repeat(3, 1fr); }
  .scario-map { height: 280px; }

  /* About */
  .about-section { padding: 64px 20px; gap: 36px; }
  .about-img { height: 300px; }
  .about-img-accent { display: none; }
  .about-badges { flex-direction: column; }

  /* CTA */
  .cta-banner { padding: 70px 20px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-primary, .cta-actions .btn-ghost {
    justify-content: center;
  }

  /* Contatti */
  .contatti-section { padding: 64px 20px; }
  .contatti-grid { grid-template-columns: 1fr; }
  .contatti-grid .contatto-card:last-child { grid-column: auto; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 36px; padding: 50px 20px 36px; }
  .footer-bottom { flex-direction: column; padding: 20px; gap: 6px; }

  /* FAB */
  .whatsapp-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }

  /* Section headers */
  .section-header { margin-bottom: 40px; }

  /* New sections mobile */
  .apt-detail { margin-top: 56px; padding-top: 40px; }
  .apt-header-img { height: 280px; }
  .apt-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 8px; }
  .apt-gallery-item--wide { grid-column: span 2; grid-row: span 1; }

  .dotazioni-section { padding: 64px 20px; }
  .dotazioni-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dotazione-item { padding: 22px 14px; }

  .esterni-section { padding: 64px 20px; }
  .esterni-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .esterni-item { height: 160px; }
  .esterni-item--tall { height: 328px; }

  .discover-section { padding: 64px 20px; }
  .discover-section .section-header { margin-bottom: 48px; }
  .topic-block,
  .topic-block--reverse {
    gap: 24px;
    margin-bottom: 56px;
  }
  .topic-text h3 { font-size: 1.55rem; }
  .topic-number { font-size: 1rem; letter-spacing: 0.2em; }
  .topic-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
  }
  .topic-gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .nav-logo-img { height: 40px; }
  .navbar.scrolled .nav-logo-img { height: 34px; }
  .footer-logo-img { height: 44px; }
}

/* ------ Extra small (max-width: 400px) ------ */
@media (max-width: 400px) {
  h2 { font-size: 2rem; }
  .hero-title { font-size: 2.4rem; }
  .scario-features { grid-template-columns: 1fr 1fr; }
}

/* ---------- SCROLL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
