/*
Theme Name: Villa degli Ulivi B&B
Theme URI: https://bebvilladegliulivi.it
Author: Villa degli Ulivi B&B
Author URI: https://bebvilladegliulivi.it
Description: Tema personalizzato per Villa degli Ulivi B&B - Catanzaro Lido
Version: 1.6.0
License: Proprietary
Text Domain: villa-degli-ulivi
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  --gold: #C09B40;
  --gold-dark: #9A7A2E;
  --gold-light: #D4B46A;
  --dark-green: #1B2A1E;
  --dark-green-hover: #243828;
  --text-dark: #2C2C2C;
  --text-medium: #555555;
  --text-light: #888888;
  --bg-cream: #FAFAF7;
  --bg-white: #FFFFFF;
  --border-light: #E8E0D0;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', 'Open Sans', sans-serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--dark-green);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-medium); }
p:last-child { margin-bottom: 0; }

/* ========================================
   UTILITY
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

.section-divider.centered { margin: 1rem auto 1.5rem; }

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--dark-green);
  border-color: var(--dark-green);
}
.btn-outline:hover {
  background: var(--dark-green);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ========================================
   TOP BAR
======================================== */
.top-bar {
  background: var(--dark-green);
  padding: 8px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.top-bar-item:hover { color: var(--gold-light); }

.top-bar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: var(--gold);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-social {
  display: flex;
  gap: 10px;
}

.top-bar-social a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.top-bar-social a:hover { color: var(--gold-light); }
.top-bar-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ========================================
   HEADER / NAVIGATION
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}

.site-logo img {
  height: 90px;
  width: auto;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; }

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition);
  position: relative;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-parent > a {
  color: var(--gold);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after,
.main-nav > ul > li.current-menu-parent > a::after {
  transform: scaleX(1);
}

/* Dropdown */
.main-nav .has-dropdown { position: relative; }

.main-nav .has-dropdown > a::before {
  content: '▾';
  margin-left: 4px;
  font-size: 0.7rem;
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  min-width: 200px;
  width: max-content;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .has-dropdown:hover .dropdown-menu,
.main-nav .has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.82rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.dropdown-menu li:last-child a { border-bottom: none; }

.dropdown-menu li a:hover {
  background: var(--bg-cream);
  color: var(--gold);
  padding-left: 24px;
}

/* WhatsApp Button */
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-green);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid var(--dark-green);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-whatsapp:hover { background: var(--dark-green-hover); border-color: var(--dark-green-hover); color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark-green);
  transition: all var(--transition);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/sfondo_home.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(27,42,30,0.75) 0%,
    rgba(27,42,30,0.55) 45%,
    rgba(27,42,30,0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 80px 24px;
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.hero-eyebrow span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  flex: 0 0 40px;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.6;
}
.hero-eyebrow::after { display: none; }

.hero-content h1 {
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.75;
}

/* Feature badges */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 8px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-feature svg {
  width: 18px; height: 18px;
  fill: var(--gold-light);
  flex-shrink: 0;
}

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

/* ========================================
   CHI SIAMO PREVIEW (HOME)
======================================== */
.about-preview {
  padding: 100px 0;
  background: var(--bg-white);
}

.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 130px;
  height: 130px;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 16px;
}

.about-image-badge .badge-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.about-image-badge .badge-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.3;
}

/* ========================================
   CAMERE PREVIEW (HOME)
======================================== */
.rooms-preview {
  padding: 100px 0;
  background: var(--bg-cream);
}

.rooms-preview .section-head {
  text-align: center;
  margin-bottom: 56px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.room-card {
  position: relative;
  overflow: hidden;
  height: 380px;
}

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

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

.room-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,30,0.85) 0%, rgba(27,42,30,0.2) 50%, transparent 100%);
  transition: background var(--transition);
}

.room-card:hover .room-card-overlay {
  background: linear-gradient(to top, rgba(27,42,30,0.9) 0%, rgba(27,42,30,0.4) 60%, rgba(27,42,30,0.1) 100%);
}

.room-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  transform: translateY(8px);
  transition: transform var(--transition);
}

.room-card:hover .room-card-content { transform: translateY(0); }

.room-card-content h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.room-card-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.room-card:hover .room-card-link {
  opacity: 1;
  transform: translateY(0);
}

.room-card-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ========================================
   SERVIZI STRIP (HOME)
======================================== */
.services-strip {
  padding: 80px 0;
  background: var(--dark-green);
}

.services-strip .section-head {
  text-align: center;
  margin-bottom: 48px;
}

.services-strip .section-head h2 { color: #fff; }
.services-strip .section-label { color: var(--gold-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-item {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color var(--transition), background var(--transition);
}

.service-item:hover {
  border-color: var(--gold);
  background: rgba(192,155,64,0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  fill: var(--gold);
}

.service-item h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========================================
   CHI SIAMO PAGE
======================================== */
.page-hero {
  background: var(--dark-green);
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.page-breadcrumb a { color: var(--gold-light); }
.page-breadcrumb span { color: rgba(255,255,255,0.4); }

.about-full {
  padding: 100px 0;
  background: var(--bg-white);
}

.about-full .container {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}

.about-text p { font-size: 1.02rem; line-height: 1.85; color: var(--text-medium); }

.about-sidebar {
  position: sticky;
  top: 100px;
}

.about-sidebar img {
  width: 100%;
  margin-bottom: 2px;
}

.about-values {
  background: var(--dark-green);
  padding: 32px;
  margin-top: -2px;
}

.about-values h4 {
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-values ul li {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-values ul li::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.about-values ul li:last-child { border-bottom: none; }

/* ========================================
   CAMERE PAGE
======================================== */
.rooms-page { padding: 80px 0; background: var(--bg-cream); }

.room-detail {
  background: var(--bg-white);
  margin-bottom: 60px;
  overflow: hidden;
}

.room-detail:last-child { margin-bottom: 0; }

.room-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.room-detail:nth-child(even) .room-detail-inner { direction: rtl; }
.room-detail:nth-child(even) .room-detail-inner > * { direction: ltr; }

.room-gallery {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.room-gallery .swiper {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.room-gallery .swiper-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.room-gallery .swiper-button-next,
.room-gallery .swiper-button-prev {
  color: #fff;
  background: rgba(27,42,30,0.6);
  width: 40px;
  height: 40px;
  border-radius: 0;
}

.room-gallery .swiper-button-next::after,
.room-gallery .swiper-button-prev::after { font-size: 14px; }

.room-gallery .swiper-pagination-bullet-active { background: var(--gold); }

.room-info {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.room-info h2 { margin-bottom: 12px; }

.room-info .room-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 20px;
}

.room-info > p { margin-bottom: 28px; }

.room-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 32px;
}

.room-amenity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.room-amenity::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ========================================
   CAMERE - PAGINA ELENCO (basata su pagine WP)
======================================== */
.rooms-list-page { padding: 80px 0; background: var(--bg-cream); }

.rooms-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.room-list-card {
  position: relative;
  display: block;
  overflow: hidden;
  height: 380px;
  background: var(--border-light);
}

.room-list-card-img {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.room-list-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--border-light), var(--bg-cream));
}

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

.room-list-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,30,0.88) 0%, rgba(27,42,30,0.25) 50%, transparent 100%);
  transition: background var(--transition);
}

.room-list-card:hover .room-list-card-overlay {
  background: linear-gradient(to top, rgba(27,42,30,0.92) 0%, rgba(27,42,30,0.45) 60%, rgba(27,42,30,0.1) 100%);
}

.room-list-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  transform: translateY(8px);
  transition: transform var(--transition);
}

.room-list-card:hover .room-list-card-content { transform: translateY(0); }

.room-list-card-content h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.room-list-card-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   CAMERA SINGOLA (pagina dedicata, editabile in WP)
======================================== */
.room-single { padding: 60px 0 90px; background: var(--bg-white); }

.room-single-cover {
  margin-bottom: 48px;
  overflow: hidden;
}

.room-single-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.room-single-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Galleria Gutenberg nella pagina camera: stile a griglia elegante */
.room-single-content .wp-block-gallery {
  margin: 2rem 0;
}

.room-single-cta {
  max-width: 900px;
  margin: 48px auto 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   SERVIZI PAGE
======================================== */
.services-page { padding: 80px 0; background: var(--bg-white); }

.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.service-card {
  background: var(--bg-cream);
  padding: 40px 32px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.service-card:hover {
  border-bottom-color: var(--gold);
  background: #fff;
}

.service-card-icon {
  width: 48px; height: 48px;
  fill: var(--gold);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark-green);
}

.service-card p { font-size: 0.9rem; color: var(--text-medium); }

/* ========================================
   CONTATTI PAGE
======================================== */
.contacts-page {
  padding: 80px 0;
  background: var(--bg-white);
}

.contacts-page .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block { margin-bottom: 40px; }

.contact-info-block h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-medium);
  font-size: 0.95rem;
}

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

.contact-item svg {
  width: 20px; height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-form-wrap h2 { margin-bottom: 8px; }
.contact-form-wrap > p { margin-bottom: 32px; }

.contact-form {
  display: grid;
  gap: 16px;
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border-light);
  background: var(--bg-cream);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
  outline: none;
  border-radius: 0;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: #fff;
}

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

/* ========================================
   MAP SECTION
======================================== */
.map-section { height: 400px; background: var(--border-light); }
.map-section iframe { width: 100%; height: 100%; border: none; }

/* ========================================
   GUTENBERG / PAGINE LIBERE
======================================== */
.page-content-area {
  padding: 80px 0;
  background: var(--bg-white);
}

.page-content-area .container {
  max-width: 1100px;
}

.entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-medium);
}

.entry-content > * { margin-bottom: 1.4rem; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--dark-green);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.4rem; }

.entry-content p { margin-bottom: 1.2rem; }

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.entry-content a:hover { color: var(--gold-dark); }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; padding-left: 0.3rem; }

.entry-content img,
.entry-content figure {
  margin: 2rem 0;
  border-radius: 0;
}
.entry-content figure img { width: 100%; }

.entry-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--dark-green);
}

/* Pulsanti Gutenberg con stile del tema */
.entry-content .wp-block-button__link {
  background: var(--gold);
  color: #fff;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  text-decoration: none;
  transition: background var(--transition);
}
.entry-content .wp-block-button__link:hover { background: var(--gold-dark); color: #fff; }

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--dark-green);
  border: 2px solid var(--dark-green);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--dark-green);
  color: #fff;
}

/* Colonne, gallerie, tabelle Gutenberg */
.entry-content .wp-block-columns { gap: 2rem; margin-bottom: 1.4rem; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
  border: 1px solid var(--border-light);
  padding: 12px 16px;
}
.entry-content .wp-block-table th { background: var(--bg-cream); color: var(--dark-green); }

.entry-content .wp-block-separator {
  border: none;
  height: 2px;
  width: 60px;
  background: var(--gold);
  margin: 2.5rem 0;
}

.entry-content .wp-block-image { margin: 2rem 0; }

/* ========================================
   PAGINA GALLERIA (blocco Gutenberg nativo)
======================================== */
.gallery-page .entry-content {
  max-width: 1100px;
}

.gallery-page .wp-block-gallery {
  gap: 8px !important;
  margin: 0 0 2rem 0;
}

.gallery-page .wp-block-gallery figure.wp-block-image {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-page .wp-block-gallery figure.wp-block-image img {
  transition: transform 0.5s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-page .wp-block-gallery figure.wp-block-image:hover img {
  transform: scale(1.05);
}

.gallery-page .wp-block-gallery figcaption {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}

.gallery-page .entry-content > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--text-medium);
  line-height: 1.8;
}

/* Card servizio per pagine Gutenberg (classe: vdu-service-card su wp-block-column) */
.entry-content .vdu-service-card {
  background: var(--bg-cream);
  padding: 40px 32px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 0 !important;
}
.entry-content .vdu-service-card:hover {
  border-bottom-color: var(--gold);
  background: #fff;
}
.entry-content .vdu-service-card .vdu-card-icon {
  width: 48px;
  height: 48px;
  fill: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.entry-content .vdu-service-card h3,
.entry-content .vdu-service-card h4 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--dark-green);
}
.entry-content .vdu-service-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Griglia card servizi: rimuove il gap extra di wp-block-columns per look "a griglia" */
.entry-content .vdu-services-grid {
  gap: 2px !important;
  margin-bottom: 2.5rem;
}
.entry-content .vdu-services-grid .wp-block-column {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .entry-content .vdu-services-grid {
    flex-wrap: wrap !important;
  }
  .entry-content .vdu-services-grid > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--dark-green);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand img {
  height: 80px;
  margin-bottom: 16px;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col ul li {
  padding: 5px 0;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 15px; height: 15px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom-links { display: flex; gap: 20px; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .about-preview .container { gap: 48px; }
  .about-full .container { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .room-detail-inner { grid-template-columns: 1fr; }
  .room-detail:nth-child(even) .room-detail-inner { direction: ltr; }
  .room-gallery .swiper-slide img { height: 360px; }
  .room-gallery { min-height: 360px; }
  .room-gallery .swiper { min-height: 360px; }
  .services-page-grid { grid-template-columns: 1fr 1fr; }
  .contacts-page .container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar .container { justify-content: center; }
  .top-bar-left { justify-content: center; gap: 12px; font-size: 0.75rem; }
  .top-bar-right { display: none; }

  .header-inner { padding: 10px 16px; }
  .site-logo img { height: 48px; }

  .main-nav, .btn-whatsapp { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.open,
  .main-nav.open ul,
  .main-nav.open li {
    list-style: none !important;
    list-style-type: none !important;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 8px 0;
    margin: 0;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--gold);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .main-nav.open > ul {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .main-nav.open > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }
  .main-nav.open > ul > li:last-child { border-bottom: none; }

  .main-nav.open > ul > li > a {
    display: block;
    padding: 14px 24px;
    font-size: 0.85rem;
  }
  .main-nav.open > ul > li > a::after { display: none; }
  .main-nav.open .has-dropdown > a {
    padding-right: 50px;
  }

  .main-nav .has-dropdown > a::before {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition);
  }
  .main-nav.open .has-dropdown > a { position: relative; }
  .main-nav.open .has-dropdown.dropdown-open > a::before {
    transform: translateY(-50%) rotate(180deg);
  }

  .dropdown-menu {
    display: flex;
    flex-direction: column;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-cream);
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.open .has-dropdown.dropdown-open .dropdown-menu {
    max-height: 500px;
  }
  .dropdown-menu li { list-style: none !important; border-bottom: 1px solid var(--border-light); }
  .dropdown-menu li:last-child { border-bottom: none; }
  .dropdown-menu li a {
    padding: 12px 24px 12px 40px;
    font-size: 0.8rem;
    border-bottom: none;
  }
  .dropdown-menu li a:hover { padding-left: 44px; }

  .hero-content { margin-left: 24px; padding: 60px 24px 60px 0; }
  .hero { min-height: 85vh; }

  .about-preview .container { grid-template-columns: 1fr; gap: 40px; }
  .about-image-badge { bottom: -16px; right: 16px; width: 100px; height: 100px; }

  .rooms-grid { grid-template-columns: 1fr; }
  .room-card { height: 300px; }
  .rooms-list-grid { grid-template-columns: 1fr; }
  .room-list-card { height: 300px; }
  .room-single-cover img { max-height: 320px; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .services-page-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { text-align: center; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .room-amenities { grid-template-columns: 1fr; }
  .room-info { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-features { gap: 8px; }
  .hero-feature { padding: 6px 10px; font-size: 0.76rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
