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

:root {
  --sea:       #0d6e8a;
  --sea-dark:  #09485c;
  --sea-light: #2db9c7;
  --teal:      #1a9bad;
  --sand:      #f5e6c8;
  --sand-dark: #e8d5aa;
  --white:     #ffffff;
  --text:      #1c2b33;
  --text-soft: #4a6070;
  --radius:    14px;
  --shadow:    0 8px 32px rgba(13,110,138,.12);
  --shadow-lg: 0 20px 60px rgba(13,110,138,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--sea);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 4px 16px rgba(13,110,138,.3);
}
.btn-primary:hover {
  background: var(--sea-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,110,138,.4);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--sea);
  color: var(--sea);
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: all .25s;
}
.btn-outline:hover {
  background: var(--sea);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(9,72,92,.97);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('foto-copertina.png') center center / cover no-repeat;
  overflow: hidden;
}

/* Animated wave rings */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08);
  animation: pulse 6s ease-in-out infinite;
}
.hero::before {
  width: 600px; height: 600px;
  top: -100px; right: -100px;
}
.hero::after {
  width: 400px; height: 400px;
  bottom: -80px; left: -80px;
  animation-delay: -3s;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .08; }
  50%      { transform: scale(1.15); opacity: .18; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 30, 45, 0.55) 0%,
    rgba(5, 30, 45, 0.45) 50%,
    rgba(5, 30, 45, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero-title em {
  font-style: italic;
  color: #aeeef5;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 2px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.8), transparent);
  margin: 0 auto;
  animation: scrollAnim 1.8s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--text);
}
.section-header--light h2 { color: #fff; }
.section-header--light .section-eyebrow { color: var(--sea-light); }
.section-desc {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-soft);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== INTRO ===== */
.intro {
  padding: 96px 0;
  background: #f9fbfc;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-text h2 {
  font-size: clamp(32px, 3vw, 48px);
  margin-bottom: 24px;
  color: var(--text);
  line-height: 1.2;
}
.intro-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.intro-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.badge {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .25s;
}
.badge:hover { transform: translateY(-4px); }
.badge-icon { font-size: 28px; }
.badge strong { font-size: 15px; color: var(--text); }
.badge small { font-size: 13px; color: var(--text-soft); }

/* ===== CASE SECTION ===== */
.case-section { padding: 96px 0; background: #fff; }

/* BOOKING BANNER */
.booking-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, var(--sea-dark), var(--sea));
  border-radius: 18px;
  padding: 28px 40px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
  gap: 24px;
}
.booking-banner-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.bb-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.booking-banner-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}
.booking-banner-item span,
.booking-banner-item a {
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.bb-phone {
  display: block;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: 1px;
  font-family: 'Lato', sans-serif;
}
.bb-whatsapp {
  display: inline-block;
  margin-top: 4px;
  background: #25D366;
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background .2s;
}
.bb-whatsapp:hover { background: #1ebe5a; }
.booking-banner-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .booking-banner { flex-direction: column; padding: 24px; text-align: center; }
  .booking-banner-divider { width: 60%; height: 1px; }
  .booking-banner-item { flex-direction: column; gap: 6px; }
}

/* CASA CARD */
.casa-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(13,110,138,.08);
}

/* Card alternata: info a sinistra, galleria a destra */
.casa-card--reverse {
  grid-template-columns: 1fr 1.1fr;
}
.casa-card--reverse .casa-gallery { order: 2; }
.casa-card--reverse .casa-info    { order: 1; padding: 32px 0 32px 32px; }

/* GALLERY */
.casa-gallery { position: relative; }
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eef5f7;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .4s ease;
}
.gallery-main img:hover { transform: scale(1.04); }

.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
  z-index: 5;
  color: var(--sea-dark);
  line-height: 1;
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }

.gallery-counter {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #f0f7f9;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: .65;
  transition: opacity .2s, transform .2s, outline .2s;
  outline: 3px solid transparent;
}
.thumb.active, .thumb:hover {
  opacity: 1;
  outline: 3px solid var(--sea);
  transform: scale(1.04);
}

/* CASA INFO */
.casa-info { padding: 32px 32px 32px 0; }
.casa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.casa-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.casa-title {
  font-size: 28px;
  color: var(--text);
}
.casa-price { text-align: right; }
.price-amount {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--sea);
  font-family: 'Playfair Display', serif;
}
.price-unit { font-size: 14px; color: var(--text-soft); }

.casa-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.casa-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  background: #f5fbfc;
  padding: 10px 14px;
  border-radius: 10px;
}
.feature span:first-child { font-size: 18px; }
.feature small { color: var(--text-soft); font-size: 12px; }

/* ===== CALENDAR ===== */
.cal-section { margin-top: 8px; }
.cal-title {
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.cal-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.leg {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 4px;
}
.leg-available { background: #d1f0e0; border: 1px solid #4cbb7f; }
.leg-booked    { background: #fcdede; border: 1px solid #e06060; }
.leg-today     { background: var(--sea-light); border: 1px solid var(--sea); }

.calendar-wrap { font-size: 13px; }

.cal-month {
  background: #f7fbfc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(13,110,138,.1);
}
.cal-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-month-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--sea-dark);
  text-transform: capitalize;
}
.cal-nav-btn {
  background: none; border: none;
  color: var(--sea);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color .2s;
}
.cal-nav-btn:hover { color: var(--sea-dark); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day-name {
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--text-soft);
  padding: 4px 0;
  text-transform: uppercase;
}
.cal-day {
  text-align: center;
  padding: 6px 2px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
.cal-day.empty { background: none; }
.cal-day.available {
  background: #d1f0e0;
  color: #1a6640;
}
.cal-day.booked {
  background: #fcdede;
  color: #b03030;
  text-decoration: line-through;
}
.cal-day.today {
  background: var(--sea-light);
  color: #fff;
  font-weight: 700;
}
.cal-day.past {
  background: #f2f2f2;
  color: #bbb;
}

.cal-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 10px;
  line-height: 1.5;
}

/* ===== COMING SOON ===== */
.casa-coming-soon {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, #f0f8fb, #e8f4f8);
  border-radius: 20px;
  border: 2px dashed rgba(13,110,138,.2);
}
.coming-icon { font-size: 48px; margin-bottom: 16px; }
.casa-coming-soon h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 10px;
}
.casa-coming-soon p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== DOVE SIAMO ===== */
.dove-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--sea-dark) 0%, var(--sea) 100%);
}
.dove-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.dove-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.dove-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.dove-item strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.dove-item p { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; }
.dove-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
}
.dove-map iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ===== CONTATTI ===== */
.contatti-section { padding: 96px 0; background: var(--sand); }
.contatti-section .section-eyebrow { color: var(--sea); }
.contatti-section .section-header h2 { color: var(--text); }
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contatti-grid--single {
  grid-template-columns: 1fr;
  max-width: 460px;
  margin: 0 auto;
}
.contatto-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.contatto-card:hover { transform: translateY(-6px); }
.contatto-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.contatto-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}
.contatto-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--sea-dark);
  color: rgba(255,255,255,.85);
  padding: 48px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.footer-links a {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none; border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .intro-grid    { grid-template-columns: 1fr; gap: 40px; }
  .casa-card     { grid-template-columns: 1fr; }
  .casa-info     { padding: 0 24px 28px; }
  .dove-grid     { grid-template-columns: 1fr; }
  .dove-map      { height: 280px; }
  .contatti-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-inner  { flex-direction: column; gap: 28px; }
  .nav-links     { display: none; }
}

@media (max-width: 600px) {
  .intro-badges       { grid-template-columns: 1fr; }
  .casa-features      { grid-template-columns: 1fr; }
  .casa-header        { flex-direction: column; gap: 8px; }
  .casa-price         { text-align: left; }
}
