/* ==========================================================================
   Affitti Brevi Roma – Main Stylesheet
   Design: Airbnb-inspired, Mediterranean palette
   ========================================================================== */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --ab-primary:      #E8432D;
  --ab-primary-dark: #c73220;
  --ab-primary-soft: #fff0ee;
  --ab-dark:         #222222;
  --ab-gray:         #717171;
  --ab-light-gray:   #f7f7f7;
  --ab-border:       #ebebeb;
  --ab-white:        #ffffff;
  --ab-shadow:       0 2px 16px rgba(0,0,0,.09);
  --ab-shadow-md:    0 4px 28px rgba(0,0,0,.13);
  --ab-radius:       14px;
  --ab-radius-sm:    8px;
  --ab-transition:   all .2s ease;
  --ab-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ab-header-h:     72px;
  --ab-container:    1240px;
}

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ab-theme {
  font-family: var(--ab-font);
  color: var(--ab-dark);
  background: var(--ab-white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding-top: var(--ab-header-h);
}

body.ab-theme a {
  text-decoration: none;
}

/* Solo i link non-bottone ereditano il colore dal contesto */
body.ab-theme a:not(.ab-btn) {
  color: inherit;
}

body.ab-theme a.ab-link {
  color: var(--ab-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.ab-theme img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
body.ab-theme h1,
body.ab-theme h2,
body.ab-theme h3,
body.ab-theme h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--ab-dark);
  margin: 0 0 .75rem;
}

body.ab-theme p {
  line-height: 1.7;
  margin: 0 0 1rem;
  color: var(--ab-dark);
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.ab-container {
  max-width: var(--ab-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ab-section {
  padding: 80px 0;
}

.ab-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.ab-section-sub {
  color: var(--ab-gray);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--ab-transition);
  border: none;
  font-family: var(--ab-font);
  text-decoration: none;
}

.ab-btn-primary {
  background: var(--ab-primary);
  color: var(--ab-white);
}

.ab-btn-primary:hover {
  background: var(--ab-primary-dark);
  color: var(--ab-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,67,45,.35);
}

.ab-btn-outline {
  background: transparent;
  color: var(--ab-dark);
  border: 2px solid var(--ab-border);
}

.ab-btn-outline:hover {
  border-color: var(--ab-dark);
  background: var(--ab-light-gray);
}

.ab-btn-white {
  background: var(--ab-white);
  color: var(--ab-primary);
}

.ab-btn-white:hover {
  background: var(--ab-primary-soft);
  color: var(--ab-primary-dark);
}

.ab-btn-sm {
  padding: 10px 20px;
  font-size: .875rem;
}

/* ── HEADER ───────────────────────────────────────────────────────────────── */
.ab-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ab-header-h);
  background: var(--ab-white);
  border-bottom: 1px solid var(--ab-border);
  z-index: 1000;
  transition: box-shadow .2s ease;
}

.ab-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.ab-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--ab-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.ab-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ab-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.ab-logo svg {
  width: 32px;
  height: 32px;
}

.ab-logo img {
  height: 44px;
  width: auto;
}

/* Nav */
.ab-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ab-nav a {
  font-weight: 500;
  font-size: .9375rem;
  color: var(--ab-dark);
  transition: color .2s;
  padding: 4px 0;
  position: relative;
}

.ab-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ab-primary);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.ab-nav a:hover,
.ab-nav a.current-menu-item {
  color: var(--ab-primary);
}

.ab-nav a:hover::after,
.ab-nav a.current-menu-item::after {
  transform: scaleX(1);
}

.ab-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.ab-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.ab-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ab-dark);
  border-radius: 2px;
  transition: var(--ab-transition);
}

.ab-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ab-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.ab-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.ab-mobile-menu {
  display: none;
  position: fixed;
  top: var(--ab-header-h);
  left: 0;
  right: 0;
  background: var(--ab-white);
  border-bottom: 1px solid var(--ab-border);
  padding: 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.ab-mobile-menu.is-open { display: block; }

.ab-mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ab-border);
  color: var(--ab-dark);
}

.ab-mobile-menu a:last-child { border-bottom: none; }

.ab-mobile-menu .ab-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.ab-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.ab-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: 0;
}

.ab-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.ab-hero-content {
  position: relative;
  z-index: 1;
  color: var(--ab-white);
  max-width: 680px;
}

.ab-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--ab-white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

body .ab-hero h1,
body.ab-theme .ab-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #ffffff !important;
  line-height: 1.15;
  margin-bottom: 20px;
}

body .ab-hero h1 span,
body.ab-theme .ab-hero h1 span {
  color: #ff9b88 !important;
}

.ab-hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85) !important;
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

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

.ab-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.ab-hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ab-white);
}

.ab-hero-stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* ── APARTMENT CARDS ──────────────────────────────────────────────────────── */
.ab-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.ab-card {
  background: var(--ab-white);
  border-radius: var(--ab-radius);
  overflow: hidden;
  border: 1px solid var(--ab-border);
  transition: var(--ab-transition);
  display: flex;
  flex-direction: column;
}

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

.ab-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ab-light-gray);
}

.ab-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.ab-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  color: var(--ab-gray);
  font-size: .875rem;
}

.ab-card-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  opacity: .4;
}

.ab-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ab-white);
  color: var(--ab-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.ab-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ab-card-location {
  font-size: .8125rem;
  color: var(--ab-gray);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ab-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ab-dark);
}

.ab-card-stats {
  display: flex;
  gap: 16px;
  font-size: .8125rem;
  color: var(--ab-gray);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ab-card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ab-card-stat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ab-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ab-border);
}

.ab-card-price {
  font-size: .875rem;
  color: var(--ab-gray);
}

.ab-card-price strong {
  font-size: 1rem;
  color: var(--ab-dark);
  font-weight: 700;
}

/* ── FEATURES ─────────────────────────────────────────────────────────────── */
.ab-features {
  background: var(--ab-light-gray);
}

.ab-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

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

.ab-feature-icon {
  width: 64px;
  height: 64px;
  background: var(--ab-primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.ab-feature-icon svg {
  width: 30px;
  height: 30px;
  color: var(--ab-primary);
}

.ab-feature h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ab-feature p {
  font-size: .875rem;
  color: var(--ab-gray);
  line-height: 1.6;
  margin: 0;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.ab-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  position: relative;
}

.ab-steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--ab-border);
  z-index: 0;
}

.ab-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ab-step-num {
  width: 64px;
  height: 64px;
  background: var(--ab-primary);
  color: var(--ab-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 20px;
  border: 4px solid var(--ab-white);
  box-shadow: 0 0 0 2px var(--ab-border);
}

.ab-step h3 {
  font-size: .9375rem;
  margin-bottom: 8px;
}

.ab-step p {
  font-size: .8125rem;
  color: var(--ab-gray);
  line-height: 1.6;
  margin: 0;
}

/* ── CTA BANNER ───────────────────────────────────────────────────────────── */
.ab-cta-banner {
  background: linear-gradient(135deg, var(--ab-primary) 0%, #c0392b 100%);
  color: var(--ab-white);
  text-align: center;
  padding: 80px 24px;
}

.ab-cta-banner h2 {
  color: var(--ab-white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.ab-cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ── ARCHIVE PAGE ─────────────────────────────────────────────────────────── */
.ab-archive-header {
  background: var(--ab-light-gray);
  padding: 60px 0 40px;
  margin-bottom: 60px;
}

.ab-archive-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 8px;
}

.ab-archive-header p {
  color: var(--ab-gray);
  font-size: 1.05rem;
  margin: 0;
}

/* ── SINGLE APARTMENT ─────────────────────────────────────────────────────── */
.ab-single-header {
  padding: 40px 0 0;
}

.ab-single-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.ab-single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ab-gray);
  font-size: .9rem;
  flex-wrap: wrap;
}

.ab-single-meta-sep { color: var(--ab-border); }

/* Gallery */
.ab-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 8px;
  border-radius: var(--ab-radius);
  overflow: hidden;
  margin: 24px 0 48px;
}

.ab-gallery-main {
  grid-column: 1;
  grid-row: 1 / 3;
}

.ab-gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--ab-light-gray);
}

.ab-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ab-gallery-item:hover img { transform: scale(1.04); }

.ab-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ebebeb 0%, #d8d8d8 100%);
  color: var(--ab-gray);
  font-size: .8125rem;
}

.ab-gallery-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: .3;
  margin-bottom: 6px;
}

/* Single layout */
.ab-single-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.ab-single-main {}

.ab-single-sidebar {
  position: sticky;
  top: calc(var(--ab-header-h) + 24px);
}

/* Quick stats */
.ab-quick-stats {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--ab-border);
  border-bottom: 1px solid var(--ab-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ab-quick-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
}

.ab-quick-stat svg {
  width: 20px;
  height: 20px;
  color: var(--ab-gray);
}

.ab-quick-stat span { font-weight: 500; }

/* Description */
.ab-description {
  margin-bottom: 40px;
}

.ab-description h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.ab-description p {
  color: var(--ab-dark);
  line-height: 1.8;
}

/* Amenities */
.ab-amenities {
  margin-bottom: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ab-border);
}

.ab-amenities h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

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

.ab-amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  color: var(--ab-dark);
}

.ab-amenity-item svg {
  width: 22px;
  height: 22px;
  color: var(--ab-primary);
  flex-shrink: 0;
}

/* Getting around */
.ab-getting-around {
  margin-bottom: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ab-border);
}

.ab-getting-around h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.ab-transport-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-transport-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: var(--ab-dark);
}

.ab-transport-list li::before {
  content: '→';
  color: var(--ab-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Calendar */
.ab-calendar-section {
  padding: 32px 0;
  border-top: 1px solid var(--ab-border);
}

.ab-calendar-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* Sidebar booking card */
.ab-book-card {
  background: var(--ab-white);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 28px;
  box-shadow: var(--ab-shadow);
}

.ab-book-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ab-book-card-sub {
  font-size: .875rem;
  color: var(--ab-gray);
  margin-bottom: 20px;
}

.ab-book-card .ab-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

.ab-book-card-deposit {
  margin-top: 16px;
  font-size: .8125rem;
  color: var(--ab-gray);
  text-align: center;
}

.ab-book-card hr {
  border: none;
  border-top: 1px solid var(--ab-border);
  margin: 20px 0;
}

.ab-book-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-book-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--ab-gray);
}

.ab-book-features li svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

/* ── BOOKING PAGE ─────────────────────────────────────────────────────────── */
.ab-booking-page {
  padding: 60px 0;
}

.ab-booking-page .ab-page-header {
  text-align: center;
  margin-bottom: 48px;
}

.ab-booking-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.ab-booking-page .page-sub {
  font-size: 1.05rem;
  color: var(--ab-gray);
}

.ab-booking-wrap {
  background: var(--ab-white);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 32px;
  box-shadow: var(--ab-shadow);
  max-width: 900px;
  margin: 0 auto;
}

.ab-booking-wrap #apartmentIframeAll {
  min-height: 600px;
}

/* ── CONTACT PAGE ─────────────────────────────────────────────────────────── */
.ab-contact-page {
  padding: 60px 0;
}

.ab-contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}

.ab-contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ab-contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ab-contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--ab-primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ab-contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--ab-primary);
}

.ab-contact-item-label {
  font-size: .8125rem;
  color: var(--ab-gray);
  margin-bottom: 2px;
}

.ab-contact-item-value {
  font-size: .9375rem;
  font-weight: 500;
}

/* Contact form */
.ab-contact-form {
  background: var(--ab-white);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  padding: 36px;
  box-shadow: var(--ab-shadow);
}

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

.ab-form-group {
  margin-bottom: 20px;
}

.ab-form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ab-dark);
  margin-bottom: 6px;
}

.ab-form-group input,
.ab-form-group select,
.ab-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ab-border);
  border-radius: var(--ab-radius-sm);
  font-family: var(--ab-font);
  font-size: .9375rem;
  color: var(--ab-dark);
  background: var(--ab-white);
  transition: border-color .2s;
  outline: none;
}

.ab-form-group input:focus,
.ab-form-group select:focus,
.ab-form-group textarea:focus {
  border-color: var(--ab-primary);
  box-shadow: 0 0 0 3px rgba(232,67,45,.1);
}

.ab-form-group textarea {
  height: 140px;
  resize: vertical;
}

.ab-form-group input::placeholder,
.ab-form-group textarea::placeholder {
  color: #aaa;
}

.ab-alert {
  padding: 14px 18px;
  border-radius: var(--ab-radius-sm);
  margin-bottom: 20px;
  font-size: .9rem;
}

.ab-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.ab-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.ab-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}

.ab-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.ab-footer-brand {
  max-width: 320px;
}

.ab-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ab-white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-decoration: none;
}

.ab-footer-tagline {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
}

.ab-footer-socials {
  display: flex;
  gap: 12px;
}

.ab-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  color: var(--ab-white);
}

.ab-footer-socials a:hover { background: var(--ab-primary); }

.ab-footer-socials svg { width: 18px; height: 18px; }

.ab-footer-col h4 {
  color: var(--ab-white);
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.ab-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: color .2s;
  text-decoration: none;
}

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

.ab-footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.ab-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ab-404-num {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--ab-border);
  line-height: 1;
  margin-bottom: 16px;
}

.ab-404 h2 { margin-bottom: 12px; }

.ab-404 p {
  color: var(--ab-gray);
  margin-bottom: 32px;
}

/* ── Smoobu calendar widget ───────────────────────────────────────────────── */
.calendarWidget {
  margin-top: 8px;
}

/* ── Gallery "show all" button overlay ───────────────────────────────────── */
.ab-gallery-item {
  cursor: pointer;
}

.ab-gallery-item[data-index]:hover img {
  filter: brightness(.92);
}

.ab-gallery-show-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255,255,255,.92);
  color: var(--ab-dark);
  border: 1.5px solid var(--ab-dark);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: var(--ab-transition);
  font-family: var(--ab-font);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
}

.ab-gallery-show-all:hover {
  background: var(--ab-white);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* ── Gallery full-screen modal ────────────────────────────────────────────── */
.ab-gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.97);
  z-index: 9998;
  display: none;
  flex-direction: column;
}

.ab-gallery-modal.is-open {
  display: flex;
}

.ab-gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: var(--ab-white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.ab-gallery-modal-header-title {
  font-weight: 600;
  font-size: .9375rem;
}

.ab-gallery-modal-close {
  background: none;
  border: none;
  color: var(--ab-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: .8;
  transition: opacity .2s;
}

.ab-gallery-modal-close:hover { opacity: 1; }

.ab-gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
  overflow-y: auto;
  padding: 4px;
  flex: 1;
}

.ab-gallery-modal-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.ab-gallery-modal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, opacity .2s;
  display: block;
}

.ab-gallery-modal-item:hover img {
  transform: scale(1.04);
  opacity: .85;
}

.ab-gallery-modal-item-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.5;
  pointer-events: none;
}

/* ── Lightbox (single image fullscreen) ──────────────────────────────────── */
.ab-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.97);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ab-lightbox.is-open {
  display: flex;
}

.ab-lightbox-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 70px;
  box-sizing: border-box;
  min-height: 0;
}

.ab-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  user-select: none;
}

.ab-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--ab-white);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
  z-index: 2;
}

.ab-lightbox-close:hover { opacity: 1; }

.ab-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  color: var(--ab-white);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .2s;
  z-index: 2;
  line-height: 1;
}

.ab-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.ab-lightbox-prev { left: 12px; }
.ab-lightbox-next { right: 12px; }

.ab-lightbox-footer {
  flex-shrink: 0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  box-sizing: border-box;
}

.ab-lightbox-counter {
  font-weight: 600;
  color: var(--ab-white);
}

.ab-lightbox-caption {
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  text-align: right;
}

.ab-lightbox-grid-btn {
  background: rgba(255,255,255,.12);
  color: var(--ab-white);
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: .8125rem;
  cursor: pointer;
  font-family: var(--ab-font);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
}

.ab-lightbox-grid-btn:hover { background: rgba(255,255,255,.25); }

/* Caricamento immagine lightbox */
.ab-lightbox-img.is-loading {
  opacity: 0;
  transition: opacity .3s;
}

.ab-lightbox-img.is-loaded {
  opacity: 1;
}

@media (max-width: 600px) {
  .ab-gallery-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .ab-lightbox-img-wrap { padding: 0 50px; }
  .ab-lightbox-nav { width: 40px; height: 40px; font-size: 1.25rem; }
  .ab-lightbox-prev { left: 4px; }
  .ab-lightbox-next { right: 4px; }
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gray   { color: var(--ab-gray); }
.mt-0 { margin-top: 0; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ab-single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ab-single-sidebar {
    position: static;
    max-width: 480px;
  }
  .ab-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }
  .ab-gallery-main { grid-row: 1 / 3; }
  .ab-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ab-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --ab-header-h: 64px; }

  .ab-section { padding: 56px 0; }

  .ab-nav, .ab-header-cta { display: none; }
  .ab-menu-toggle { display: flex; }

  .ab-hero { min-height: 80vh; }
  .ab-hero-stats { flex-wrap: wrap; gap: 24px; }

  .ab-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ab-gallery-main { grid-row: auto; }
  .ab-gallery-item { aspect-ratio: 16/9; height: auto; }

  .ab-steps-grid::before { display: none; }

  .ab-form-row { grid-template-columns: 1fr; }

  .ab-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ab-footer-brand { max-width: 100%; }

  .ab-booking-wrap { padding: 20px; }

  .ab-quick-stats { gap: 16px; }

  .ab-amenities-grid { grid-template-columns: 1fr; }

  .ab-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PREZZI PAGE ──────────────────────────────────────────────────────────── */
.ab-prezzi-page {
  padding: 60px 0;
}

.ab-prezzi-hero {
  max-width: 720px;
  margin-bottom: 40px;
}

.ab-prezzi-hero h1 {
  margin-bottom: 16px;
}

.ab-prezzi-hero p {
  color: #717171;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.ab-prezzi-hero strong {
  color: #222;
}

.ab-savings-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f0faf4;
  border: 1.5px solid #22c55e;
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 48px;
  color: #166534;
}

.ab-savings-icon {
  flex-shrink: 0;
  color: #16a34a;
}

.ab-savings-banner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ab-savings-banner span {
  font-size: 0.9rem;
  opacity: .85;
}

.ab-prezzi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ab-prezzi-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ab-prezzi-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.ab-prezzi-card-label {
  font-size: 0.85rem;
  color: #717171;
  margin: 0;
}

.ab-prezzi-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-portal-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .18s;
  color: #fff !important;
}

.ab-portal-link:hover {
  opacity: .88;
}

.ab-portal-airbnb {
  background: #ff5a5f;
}

.ab-portal-booking {
  background: #003580;
}

@media (max-width: 768px) {
  .ab-prezzi-grid { grid-template-columns: 1fr; }
  .ab-savings-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .ab-container { padding: 0 16px; }
  .ab-hero-actions { flex-direction: column; }
  .ab-hero-actions .ab-btn { width: 100%; justify-content: center; }
}
