/* ============================================
   CASA E BOTTEGA — Manfredonia, Puglia
   Estetica pugliese: calce, pietra, mare
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --calce: #F5F0E8;
  --calce-light: #FAF8F4;
  --ocra: #C8A96E;
  --ocra-light: #D4BA85;
  --ocra-dark: #A8893E;
  --blu: #1B4F72;
  --blu-light: #2471A3;
  --blu-dark: #154360;
  --verde: #5C6B3A;
  --verde-light: #7A8C52;
  --terracotta: #C07040;
  --terracotta-light: #D08858;
  --bianco: #FFFFFF;
  --testo: #2C2C2C;
  --testo-light: #5A5A5A;
  --testo-muted: #8A8A7A;
  --ombra: rgba(0,0,0,0.08);
  --ombra-forte: rgba(0,0,0,0.15);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --spacing: 2rem;
  --radius: 4px;
  --transition: 0.3s ease;
}

/* --- 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);
  color: var(--testo);
  background: var(--calce-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--blu-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ocra);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,169,110,0.2);
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(245, 240, 232, 0.98);
  box-shadow: 0 2px 20px var(--ombra);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--blu-dark);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--ocra); }

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--testo);
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--ocra);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: 1rem;
}

.lang-switcher button {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--testo-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-switcher button:hover,
.lang-switcher button.active {
  border-color: var(--ocra);
  color: var(--blu-dark);
  background: rgba(200,169,110,0.1);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--testo);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  opacity: 0;
  transition: opacity 1.2s ease, transform 8s ease;
  transform: scale(1.03);
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--ocra);
  border-color: var(--ocra);
  transform: scale(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21,67,96,0.3) 0%,
    rgba(21,67,96,0.1) 40%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--bianco);
  max-width: 700px;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  color: var(--bianco);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--ocra);
  color: var(--bianco);
}
.btn-primary:hover {
  background: var(--ocra-dark);
  color: var(--bianco);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(200,169,110,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--bianco);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--bianco);
  border-color: var(--bianco);
}

.btn-dark {
  background: var(--blu-dark);
  color: var(--bianco);
}
.btn-dark:hover {
  background: var(--blu);
  color: var(--bianco);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--bianco);
}
.btn-whatsapp:hover {
  background: #1fb855;
  color: var(--bianco);
  transform: translateY(-1px);
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--blu-dark);
  color: var(--bianco);
  padding: 0.8rem 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-strip img {
  height: 36px;
  width: auto;
  border-radius: 3px;
}

.trust-strip .trust-text {
  opacity: 0.9;
  font-weight: 400;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

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

.section-light { background: var(--calce-light); }
.section-warm { background: var(--calce); }
.section-dark { background: var(--blu-dark); color: var(--bianco); }

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

.section-header h2 { margin-bottom: 0.8rem; }

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

.section-dark .section-header h2 { color: var(--calce); }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* Decorative Line */
.deco-line {
  width: 60px;
  height: 2px;
  background: var(--ocra);
  margin: 1rem auto;
}

/* --- Chi Siamo --- */
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.chi-siamo-text p {
  margin-bottom: 1rem;
  color: var(--testo-light);
  font-size: 1.05rem;
}

.chi-siamo-text .firma {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ocra-dark);
  margin-top: 1.5rem;
}

.chi-siamo-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--ombra-forte);
}

.chi-siamo-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Room Preview Cards --- */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.room-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px var(--ombra);
  background: var(--bianco);
  transition: transform var(--transition), box-shadow var(--transition);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--ombra-forte);
}

.room-card-img {
  height: 320px;
  overflow: hidden;
}

.room-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.room-card:hover .room-card-img img { transform: scale(1.05); }

.room-card-body {
  padding: 1.8rem;
}

.room-card-body h3 {
  margin-bottom: 0.5rem;
}

.room-card-body p {
  color: var(--testo-light);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* --- Reviews Section --- */
.reviews-section {
  background: var(--calce);
}

.reviews-header-award {
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-header-award img {
  height: 100px;
  margin: 0 auto 1rem;
}

.reviews-scores {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 1.5rem 0 2.5rem;
  flex-wrap: wrap;
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blu-dark);
}

.score-badge .score-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ocra-dark);
}

/* Review Carousel */
.reviews-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1000px;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .review-card { flex: 0 0 50%; }
}

.review-card-inner {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px var(--ombra);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #F5A623;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.review-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--testo-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1rem;
}

.review-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-author-origin {
  font-size: 0.8rem;
  color: var(--testo-muted);
}

.review-platform {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.review-platform.booking {
  background: #003580;
  color: white;
}

.review-platform.airbnb {
  background: #FF5A5F;
  color: white;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--ocra);
  border-radius: 50%;
  background: var(--bianco);
  color: var(--ocra-dark);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--ocra);
  color: var(--bianco);
}

/* --- Map Section --- */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--ombra);
}

/* --- Footer --- */
.site-footer {
  background: var(--blu-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

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

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

.footer-col h4 {
  color: var(--calce);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--ocra); }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--ocra);
  border-color: var(--ocra);
  color: var(--bianco);
}

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

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  background: var(--calce);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--testo-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Room Detail Section --- */
.room-detail {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.room-detail:last-of-type { border-bottom: none; }

.room-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.room-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.room-gallery .gallery-main {
  grid-column: 1 / -1;
  height: 350px;
  overflow: hidden;
  cursor: pointer;
}

.room-gallery .gallery-thumb {
  height: 160px;
  overflow: hidden;
  cursor: pointer;
}

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

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

.room-info h2 {
  margin-bottom: 0.3rem;
}

.room-info .room-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ocra);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.room-info .room-description {
  color: var(--testo-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.room-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--testo-light);
  padding: 0.4rem 0;
}

.amenity-item .amenity-icon {
  color: var(--ocra);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.room-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--blu-dark);
  margin-bottom: 1rem;
}

.room-price span {
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--testo-muted);
}

.room-microcopy {
  font-size: 0.8rem;
  color: var(--ocra-dark);
  margin-top: 0.8rem;
  font-weight: 500;
}

/* Price Comparison Table (camere.html) */
.price-comparison-table {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.3);
  font-size: 0.88rem;
}
.pct-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  background: rgba(200,169,110,0.12);
}
.pct-head-cell {
  padding: 0.6rem 0.75rem;
  text-align: center;
  line-height: 1.3;
}
.pct-head-cell:first-child { text-align: left; }
.pct-season-icon { font-size: 1rem; display: block; }
.pct-season-name {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-top: 0.15rem;
}
.pct-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  border-top: 1px solid rgba(200,169,110,0.2);
}
.pct-ota-row { background: rgba(0,0,0,0.02); }
.pct-direct-row { background: rgba(90,130,60,0.07); }
.pct-row-label {
  padding: 0.8rem 0.75rem;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  line-height: 1.25;
}
.pct-ota-row .pct-row-label { color: var(--text-medium); }
.pct-direct-row .pct-row-label { color: var(--verde); font-weight: 600; }
.pct-price-cell {
  padding: 0.8rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.pct-amount { font-size: 1rem; }
.pct-amount small { font-size: 0.65em; }
.pct-ota-row .pct-amount {
  text-decoration: line-through;
  color: var(--terracotta);
  opacity: 0.7;
}
.pct-direct-row .pct-amount {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--verde);
}
.pct-saving {
  font-size: 0.68rem;
  color: var(--verde);
  background: rgba(90,130,60,0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --- Booking Page --- */
.booking-section { padding: 3rem 0; }

.booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.calendar-container {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px var(--ombra);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-header h3 {
  font-size: 1.2rem;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  width: 36px; height: 36px;
  border: 1px solid var(--ocra);
  border-radius: 50%;
  background: none;
  color: var(--ocra-dark);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.calendar-nav button:hover {
  background: var(--ocra);
  color: var(--bianco);
}

.calendar-grid-display {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-day-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--testo-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
}

.cal-day {
  padding: 0.6rem 0.3rem;
  font-size: 0.9rem;
  border-radius: 3px;
  cursor: default;
}

.cal-day.available {
  background: rgba(92,107,58,0.18);
  color: var(--verde);
  cursor: pointer;
  font-weight: 500;
  border: 1px solid rgba(92,107,58,0.25);
}
.cal-day.available:hover {
  background: rgba(92,107,58,0.35);
  border-color: var(--verde);
}

.cal-day.booked {
  background: rgba(192,112,64,0.18);
  color: var(--terracotta);
  text-decoration: line-through;
  border: 1px solid rgba(192,112,64,0.25);
}

.cal-day.today {
  border: 2px solid var(--ocra) !important;
  font-weight: 700;
}

.cal-day.empty { visibility: hidden; }

.calendar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--testo-muted);
}

.legend-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.legend-dot.available { background: rgba(92,107,58,0.35); border: 1px solid var(--verde); }
.legend-dot.booked { background: rgba(192,112,64,0.35); border: 1px solid var(--terracotta); }

/* --- Calendar Price Indicator --- */
.cal-price-indicator {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(200,169,110,0.08);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--testo-light);
  text-align: center;
  border: 1px solid rgba(200,169,110,0.2);
}
.cal-price-indicator .cal-price-amount {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--verde);
}
.cal-price-indicator .cal-price-ota {
  text-decoration: line-through;
  color: var(--terracotta);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- Room Selection Cards (Prenota) --- */
.room-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.room-select-card {
  background: var(--bianco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--ombra);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.room-select-card:hover,
.room-select-card.active {
  border-color: var(--ocra);
  box-shadow: 0 8px 30px var(--ombra-forte);
  transform: translateY(-2px);
}
.room-select-card.active { border-color: var(--verde); }
.room-select-img {
  height: 180px;
  overflow: hidden;
}
.room-select-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.room-select-card:hover .room-select-img img { transform: scale(1.05); }
.room-select-body {
  padding: 1.2rem;
}
.room-select-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.room-select-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--ocra);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.room-select-pricing .price-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.88rem;
}
.room-select-pricing .price-season {
  color: var(--testo-muted);
  font-size: 0.8rem;
  min-width: 80px;
}
.room-select-pricing .price-ota-inline {
  text-decoration: line-through;
  color: var(--terracotta);
  font-size: 0.85rem;
  opacity: 0.7;
}
.room-select-pricing .price-direct-inline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--verde);
}
.room-select-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.room-select-amenities span {
  font-size: 0.75rem;
  color: var(--testo-muted);
  background: rgba(200,169,110,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

/* --- Pricing Table --- */
.pricing-table-wrapper {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--ombra);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pricing-table th {
  background: var(--blu-dark);
  color: var(--calce);
  padding: 0.7rem 0.8rem;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-table th:first-child { text-align: left; border-radius: var(--radius) 0 0 0; }
.pricing-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.pricing-table td {
  padding: 0.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(200,169,110,0.15);
}
.pricing-table td:first-child { text-align: left; }
.pricing-table .price-ota {
  text-decoration: line-through;
  color: var(--terracotta);
  font-size: 0.85rem;
  opacity: 0.7;
  margin-right: 0.4rem;
}
.pricing-table .price-direct {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--verde);
}
.pricing-table .price-direct small {
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--testo-muted);
  font-weight: 400;
}
.pricing-table .price-discount {
  color: var(--verde);
  font-weight: 600;
}
.pricing-table-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--testo-muted);
  text-align: center;
}
.price-ota-label { text-decoration: line-through; color: var(--terracotta); }
.price-direct-label { color: var(--verde); font-weight: 600; }

/* --- Booking Estimate --- */
.booking-estimate {
  background: rgba(92,107,58,0.08);
  border: 1px solid rgba(92,107,58,0.2);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
.booking-estimate .estimate-ota {
  text-decoration: line-through;
  color: var(--terracotta);
  font-size: 0.9rem;
  opacity: 0.7;
}
.booking-estimate .estimate-direct {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--verde);
}
.booking-estimate .estimate-savings {
  font-size: 0.82rem;
  color: var(--verde);
  font-weight: 500;
  margin-top: 0.3rem;
}
.booking-estimate .estimate-detail {
  font-size: 0.8rem;
  color: var(--testo-muted);
}

/* Room Tabs */
.room-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.room-tab {
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--ocra);
  border-radius: 25px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--ocra-dark);
}

.room-tab.active,
.room-tab:hover {
  background: var(--ocra);
  color: var(--bianco);
}

/* --- Forms --- */
.form-card {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px var(--ombra);
}

.form-card h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--testo);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(200,169,110,0.3);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--testo);
  background: var(--calce-light);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocra);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  background: rgba(200,169,110,0.1);
  border-left: 3px solid var(--ocra);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--testo-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- Blog --- */
.blog-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.blog-cat-btn {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid rgba(200,169,110,0.4);
  border-radius: 25px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--testo-light);
}

.blog-cat-btn.active,
.blog-cat-btn:hover {
  background: var(--ocra);
  color: var(--bianco);
  border-color: var(--ocra);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bianco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--ombra);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--ombra-forte);
}

.blog-card-img {
  height: 220px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--testo-muted);
  margin-bottom: 0.8rem;
}

.blog-card-cat {
  color: var(--ocra-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.blog-card-body p {
  color: var(--testo-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ocra-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Blog Article */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.blog-article-hero {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px var(--ombra);
}

.blog-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.blog-article h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--blu-dark);
}

.blog-article p {
  margin-bottom: 1.2rem;
  color: var(--testo-light);
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-article .article-img {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--ombra);
}

.blog-article .article-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr;
  gap: 3rem;
  align-items: stretch;
}

/* Subgrid: info colonnina | descrizione quartiere */
.contact-info-with-desc {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1rem;
}

.contact-info-column .contact-info-item {
  margin-bottom: 1rem;
}
.contact-info-column .contact-info-item:last-of-type {
  margin-bottom: 1.25rem;
}

.contact-platforms-label-small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.contact-location-text {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.75;
  margin: 0;
  padding-top: 0.2rem;
  border-left: 2px solid rgba(200,169,110,0.4);
  padding-left: 1.25rem;
}

/* Compact form card variant */
.form-card-compact {
  padding: 1.5rem;
}
.form-card-compact h3 {
  margin-bottom: 1.1rem;
  font-size: 1.1rem;
}
.form-card-compact .form-group {
  margin-bottom: 0.75rem;
}
.form-card-compact label {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 600;
  color: var(--text-medium);
}
.form-card-compact input,
.form-card-compact textarea {
  font-size: 0.88rem;
  padding: 0.5rem 0.65rem;
}

.contact-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-column .contact-info-item {
  margin-bottom: 1rem;
}

.contact-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(200,169,110,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocra);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--testo);
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--testo-light);
}

.contact-left-col {
  display: flex;
  flex-direction: column;
}

.contact-map-wrapper {
  flex: 1;
  min-height: 200px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-platforms-section {
  margin-bottom: 1.25rem;
}

.contact-platforms {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid rgba(200,169,110,0.3);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.platform-link:hover {
  border-color: var(--ocra);
  background: rgba(200,169,110,0.05);
}

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

.lightbox.active { display: flex; }

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

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .chi-siamo-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rooms-grid { grid-template-columns: 1fr; }
  .room-detail-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .contact-info-with-desc { grid-template-columns: 1fr; }
  .contact-left-col { flex-direction: column; }
  .contact-map-wrapper { min-height: 260px; flex: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .room-select-grid { grid-template-columns: 1fr; }
  .pricing-table { font-size: 0.8rem; }
  .pricing-table th, .pricing-table td { padding: 0.5rem 0.4rem; }
  /* Price comparison table on medium screens */
  .pct-head, .pct-row { font-size: 0.8rem; }
  .pct-head-cell, .pct-row-label, .pct-price-cell { padding: 0.5rem 0.6rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--calce);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(200,169,110,0.2);
    box-shadow: 0 10px 30px var(--ombra);
  }

  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }

  /* Page header */
  .page-header { padding: 6rem 0 2rem; }
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 0.95rem; }

  /* Hero */
  .hero { min-height: 480px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content .hero-tagline { font-size: 1rem; }

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

  /* Trust strip */
  .trust-strip-inner { gap: 1rem; }
  .trust-strip { font-size: 0.78rem; padding: 0.6rem 0.5rem; }

  /* Reviews */
  .reviews-scores { gap: 1rem; }

  /* Gallery */
  .room-gallery { grid-template-columns: 1fr 1fr; }
  .room-gallery .gallery-main { height: 220px; }
  .room-gallery .gallery-thumb { height: 105px; }

  /* Amenities */
  .room-amenities { grid-template-columns: 1fr; }

  /* Price comparison table */
  .price-comparison-table { font-size: 0.8rem; }
  .pct-head { grid-template-columns: 1fr 1fr 1fr; }
  .pct-row { grid-template-columns: 1fr 1fr 1fr; }
  .pct-head-cell, .pct-row-label, .pct-price-cell { padding: 0.45rem 0.5rem; }
  .pct-direct-row .pct-amount { font-size: 1rem; }
  .pct-saving { font-size: 0.62rem; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { margin-bottom: 1rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Contact platforms */
  .contact-platforms { gap: 0.4rem; }
  .platform-link { padding: 0.5rem 0.85rem; font-size: 0.82rem; }

  /* CTA */
  .hero-ctas { flex-direction: column; align-items: center; }

  /* Buttons */
  .btn { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .lang-switcher button { width: 24px; height: 24px; font-size: 0.65rem; }
  .trust-strip-inner { flex-direction: column; gap: 0.5rem; }

  /* Page header */
  .page-header { padding: 5.5rem 0 1.75rem; }
  .page-header h1 { font-size: 1.75rem; }

  /* Hero */
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content .hero-tagline { font-size: 0.92rem; }

  /* Gallery: single column on very small screens */
  .room-gallery { grid-template-columns: 1fr; }
  .room-gallery .gallery-thumb { display: none; }

  /* Price table: hide row labels on very small screens, show stacked */
  .pct-head-cell:first-child, .pct-row-label { font-size: 0.7rem; }
  .pct-amount { font-size: 0.9rem; }
  .pct-amount small { font-size: 0.62rem; }

  /* Section heading sizes */
  .section-title { font-size: 1.6rem; }

  /* Room microcopy */
  .room-microcopy { font-size: 0.75rem; }

  /* Form compact */
  .form-card { padding: 1.25rem; }
  .form-card-compact { padding: 1rem; }
}

/* ============================================
   COSA TROVERAI — Room Amenities Detail
   ============================================ */

/* ============================================
   COSA TROVERAI — Compact icon-only + tooltip
   ============================================ */

.cosa-troverai {
  margin: 2rem 0;
}

.cosa-troverai-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--testo);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ocra-light);
  letter-spacing: 0.02em;
}

.amenity-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.amenity-detail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  background: var(--calce);
  border-radius: 6px;
  border: 1px solid rgba(200,169,110,0.18);
  cursor: default;
  transition: border-color 0.15s;
}

.amenity-detail-item:hover {
  border-color: rgba(200,169,110,0.5);
}

.amenity-det-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}

/* Hide text labels — tooltip on hover shows name */
.amenity-det-text {
  display: none;
}

/* CSS Tooltip */
.amenity-detail-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(27,79,114,0.93);
  color: #fff;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  font-size: 0.73rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 30;
  font-family: var(--font-body);
  font-weight: 400;
}

.amenity-detail-item:hover::after {
  opacity: 1;
}

/* Extra bed full-width item — La Dimora only */
.amenity-detail-item--extra-bed {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 2.8rem;
  background: rgba(90,130,60,0.1);
  border: 1.5px solid rgba(90,130,60,0.35);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-top: 0.25rem;
  cursor: default;
}

.amenity-detail-item--extra-bed .amenity-det-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.amenity-detail-item--extra-bed .amenity-det-text span {
  display: none;
}

.amenity-detail-item--extra-bed .amenity-det-icon {
  font-size: 1.2rem;
  min-width: unset;
}

.amenity-detail-item--extra-bed strong {
  color: var(--verde);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
}

.amenity-detail-item--extra-bed::after {
  display: none; /* no tooltip needed — text is visible */
}
