/* ============================================================
   Formica Gentile Homes — theme.css v2.0.0
   ============================================================ */

/* VARIABILI */
:root {
  --fgh-primary:       #1A6B8A;
  --fgh-primary-dark:  #145570;
  --fgh-primary-light: #E8F4F8;
  --fgh-accent:        #F5E6C8;
  --fgh-text:          #2C3E50;
  --fgh-text-light:    #6B7C8E;
  --fgh-bg:            #FFFFFF;
  --fgh-bg-alt:        #F9FBFC;
  --fgh-border:        #E2EBF0;
  --fgh-radius:        10px;
  --fgh-radius-lg:     18px;
  --fgh-shadow:        0 4px 20px rgba(26,107,138,.10);
  --fgh-shadow-lg:     0 8px 40px rgba(26,107,138,.15);
  --fgh-header-h:      72px;
  --fgh-container-w:   1200px;
  --fgh-font-serif:    'Playfair Display', Georgia, serif;
  --fgh-font-sans:     -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fgh-transition:    .3s cubic-bezier(.4,0,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fgh-font-sans); color: var(--fgh-text); background: var(--fgh-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* CONTAINER */
.fgh-container { max-width: var(--fgh-container-w); margin: 0 auto; padding: 0 24px; }

/* TIPOGRAFIA */
h1,h2,h3,h4,h5,h6 { font-family: var(--fgh-font-serif); font-weight: 700; line-height: 1.2; color: var(--fgh-text); }

/* ============================================================
   HEADER
   ============================================================ */
.fgh-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--fgh-header-h);
  transition: background var(--fgh-transition), box-shadow var(--fgh-transition), backdrop-filter var(--fgh-transition);
}
.fgh-header--transparent { background: transparent; }
.fgh-header--transparent.is-scrolled,
.fgh-header--solid {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26,107,138,.08);
}
.fgh-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--fgh-header-h);
}
/* Logo */
.fgh-logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.fgh-logo__text { font-family: var(--fgh-font-serif); font-size: 1.25rem; font-weight: 700; color: var(--fgh-primary); }
.fgh-header--transparent:not(.is-scrolled) .fgh-logo__text { color: #fff; }
.fgh-logo__sub { font-size: .6rem; letter-spacing: .15em; color: var(--fgh-text-light); text-transform: uppercase; }
.fgh-header--transparent:not(.is-scrolled) .fgh-logo__sub { color: rgba(255,255,255,.7); }
.fgh-logo img { height: 48px; width: auto; }

/* Nav */
.fgh-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.fgh-nav__link {
  padding: 8px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  color: var(--fgh-text);
  transition: background var(--fgh-transition), color var(--fgh-transition);
}
.fgh-header--transparent:not(.is-scrolled) .fgh-nav__link { color: rgba(255,255,255,.9); }
.fgh-nav__link:hover,
.fgh-nav__link.is-active { background: var(--fgh-primary-light); color: var(--fgh-primary); }
.fgh-header--transparent:not(.is-scrolled) .fgh-nav__link:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Lang switcher */
.fgh-lang-switcher { display: flex; gap: 4px; }
.fgh-lang-switcher a { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--fgh-text-light); transition: background var(--fgh-transition); }
.fgh-lang-switcher a:hover { background: var(--fgh-primary-light); }
.fgh-lang-switcher a.current-lang { color: var(--fgh-primary); background: var(--fgh-primary-light); }
.fgh-header--transparent:not(.is-scrolled) .fgh-lang-switcher a { color: rgba(255,255,255,.7); }
.fgh-header--transparent:not(.is-scrolled) .fgh-lang-switcher a:hover { background: rgba(255,255,255,.2); }

/* CTA button header */
.fgh-nav-cta { margin-left: 8px; white-space: nowrap; }

/* Hamburger */
.fgh-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.fgh-hamburger span { display: block; width: 22px; height: 2px; background: var(--fgh-text); border-radius: 2px; transition: var(--fgh-transition); }
.fgh-header--transparent:not(.is-scrolled) .fgh-hamburger span { background: #fff; }

/* Mobile menu */
.fgh-mobile-menu {
  display: none; position: fixed; top: var(--fgh-header-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; padding: 32px 24px;
  flex-direction: column; gap: 8px; overflow-y: auto;
}
.fgh-mobile-menu.is-open { display: flex; }
.fgh-mobile-menu a { padding: 14px 16px; border-radius: 10px; font-size: 1.1rem; font-weight: 500; color: var(--fgh-text); }
.fgh-mobile-menu a:hover { background: var(--fgh-primary-light); color: var(--fgh-primary); }
.fgh-mobile-menu .fgh-btn { margin-top: 16px; justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.fgh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: all var(--fgh-transition); cursor: pointer;
  border: 2px solid transparent;
}
.fgh-btn--primary { background: var(--fgh-primary); color: #fff; }
.fgh-btn--primary:hover { background: var(--fgh-primary-dark); transform: translateY(-1px); box-shadow: var(--fgh-shadow); }
.fgh-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.fgh-btn--outline:hover { background: rgba(255,255,255,.15); }
.fgh-btn--outline-dark { background: transparent; color: var(--fgh-primary); border-color: var(--fgh-primary); }
.fgh-btn--outline-dark:hover { background: var(--fgh-primary); color: #fff; }
.fgh-btn--lg { padding: 16px 40px; font-size: 1rem; }
.fgh-btn--sm { padding: 8px 20px; font-size: .85rem; }

/* Gutenberg buttons */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link {
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  transition: all var(--fgh-transition) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.fgh-hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #0a0a0a;
}
.fgh-hero--property { height: 60vh; min-height: 400px; }
.fgh-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: fghKenBurns 20s ease-in-out infinite alternate;
  filter: brightness(.6);
}
@keyframes fghKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.fgh-hero__content {
  position: relative; z-index: 2; text-align: center;
  max-width: 900px; padding: 0 24px;
  animation: fghFadeUp .8s ease both;
}
@keyframes fghFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fgh-hero__tag {
  display: inline-block; margin-bottom: 24px;
  padding: 6px 20px; border-radius: 50px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.fgh-hero__title {
  font-family: var(--fgh-font-serif); font-size: clamp(2.5rem,6vw,4.5rem);
  color: #fff; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.fgh-hero__subtitle {
  font-size: clamp(1rem,2vw,1.25rem); color: rgba(255,255,255,.9);
  margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.fgh-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.fgh-hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.fgh-hero__scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: fghScrollLine 2s ease-in-out infinite;
}
@keyframes fghScrollLine { 0%,100% { opacity: 0; transform: scaleY(0); } 50% { opacity: 1; transform: scaleY(1); } }
.fgh-hero__location { color: rgba(255,255,255,.8); font-size: 1rem; margin-top: 8px; }

/* Cover block Gutenberg come hero */
.wp-block-cover {
  min-height: 100vh !important;
}
.wp-block-cover.fgh-hero-block {
  min-height: 100vh;
}

/* ============================================================
   SEZIONI GENERALI
   ============================================================ */
.fgh-section { padding: 80px 0; }
.fgh-section--alt { background: var(--fgh-bg-alt); }
.fgh-section--primary { background: var(--fgh-primary); color: #fff; }
.fgh-section--primary h2 { color: #fff; }
.fgh-section--primary p { color: rgba(255,255,255,.85); }

.fgh-tag {
  display: inline-block; padding: 4px 16px; border-radius: 50px;
  background: var(--fgh-primary-light); color: var(--fgh-primary);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.fgh-section-title { font-size: clamp(1.8rem,4vw,2.5rem); margin-bottom: 16px; text-align: center; }
.fgh-section-subtitle { color: var(--fgh-text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto 48px; text-align: center; }

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

/* ============================================================
   GRIGLIA PROPRIETÀ
   ============================================================ */
.fgh-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.fgh-cols-1 { grid-template-columns: 1fr; }
.fgh-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fgh-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fgh-cols-4 { grid-template-columns: repeat(4, 1fr); }

.fgh-property-card {
  background: #fff; border-radius: var(--fgh-radius-lg);
  box-shadow: var(--fgh-shadow); overflow: hidden;
  transition: transform var(--fgh-transition), box-shadow var(--fgh-transition);
}
.fgh-property-card:hover { transform: translateY(-6px); box-shadow: var(--fgh-shadow-lg); }
.fgh-property-card__img {
  display: block; position: relative; height: 240px; overflow: hidden;
}
.fgh-property-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.fgh-property-card:hover .fgh-property-card__img img { transform: scale(1.05); }
.fgh-property-card__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--fgh-primary); color: #fff;
  padding: 4px 12px; border-radius: 50px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.fgh-property-card__body { padding: 24px; }
.fgh-property-card__location { font-size: .8rem; color: var(--fgh-text-light); margin-bottom: 10px; }
.fgh-property-card__title { font-size: 1.2rem; margin-bottom: 10px; }
.fgh-property-card__title a:hover { color: var(--fgh-primary); }
.fgh-property-card__desc { font-size: .9rem; color: var(--fgh-text-light); margin-bottom: 16px; line-height: 1.6; }
.fgh-property-card__meta { display: flex; gap: 16px; font-size: .85rem; color: var(--fgh-text-light); margin-bottom: 16px; }
.fgh-property-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--fgh-border); }
.fgh-property-card__price { font-size: 1.1rem; font-weight: 700; color: var(--fgh-primary); }
.fgh-property-card__price small { font-size: .75rem; font-weight: 400; color: var(--fgh-text-light); }
.fgh-empty-props { text-align: center; color: var(--fgh-text-light); padding: 40px; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.fgh-features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 24px; margin-top: 40px;
}
.fgh-feature-item {
  background: #fff; border-radius: var(--fgh-radius-lg);
  padding: 32px 28px; text-align: center;
  box-shadow: var(--fgh-shadow);
  transition: transform var(--fgh-transition);
}
.fgh-feature-item:hover { transform: translateY(-4px); }
.fgh-feature-item__icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.fgh-feature-item__title { font-family: var(--fgh-font-serif); font-size: 1.15rem; margin-bottom: 10px; }
.fgh-feature-item__desc { font-size: .9rem; color: var(--fgh-text-light); line-height: 1.7; }

/* ============================================================
   TESTIMONIANZE
   ============================================================ */
.fgh-testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 24px; margin-top: 40px;
}
.fgh-testimonial {
  background: #fff; border-radius: var(--fgh-radius-lg); padding: 32px;
  box-shadow: var(--fgh-shadow); border-left: 4px solid var(--fgh-primary);
}
.fgh-stars { color: #F5A623; font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.fgh-testimonial__text { font-style: italic; color: var(--fgh-text); line-height: 1.8; margin-bottom: 20px; }
.fgh-testimonial__author { font-weight: 700; color: var(--fgh-primary); }
.fgh-testimonial__meta { font-size: .85rem; color: var(--fgh-text-light); }

/* ============================================================
   CTA STRIP
   ============================================================ */
.fgh-cta-strip { text-align: center; padding: 60px 0; }
.fgh-cta-strip h2 { color: #fff; font-size: clamp(1.8rem,4vw,2.5rem); margin-bottom: 16px; }
.fgh-cta-strip p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 40px; font-size: 1.05rem; }
.fgh-cta-strip .fgh-hero__actions { margin-top: 0; }

/* ============================================================
   PAGINA SINGOLA ALLOGGIO
   ============================================================ */
.fgh-breadcrumb {
  padding: 16px 0; background: var(--fgh-bg-alt);
  border-bottom: 1px solid var(--fgh-border);
  font-size: .85rem; color: var(--fgh-text-light);
}
.fgh-breadcrumb a { color: var(--fgh-primary); }
.fgh-breadcrumb span { margin: 0 8px; }

.fgh-property-layout { padding: 60px 0; }
.fgh-property-layout__inner {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
  align-items: start;
}
.fgh-property-content { margin-top: 40px; }
.fgh-property-content h2 { font-size: 1.6rem; margin-bottom: 20px; }

.fgh-property-meta {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px;
  padding: 24px; background: var(--fgh-bg-alt); border-radius: var(--fgh-radius);
}
.fgh-meta-item { display: flex; align-items: center; gap: 12px; }
.fgh-meta-item__icon { font-size: 1.5rem; }
.fgh-meta-item__label { font-size: .8rem; color: var(--fgh-text-light); }
.fgh-meta-item__value { font-size: 1.1rem; font-weight: 700; color: var(--fgh-primary); }

/* Booking widget */
.fgh-booking-widget {
  background: #fff; border-radius: var(--fgh-radius-lg);
  padding: 32px; box-shadow: var(--fgh-shadow-lg);
  position: sticky; top: calc(var(--fgh-header-h) + 20px);
}
.fgh-booking-widget h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--fgh-primary); }

/* ============================================================
   CAROSELLO
   ============================================================ */
.fgh-carousel {
  position: relative; width: 100%; height: 520px;
  border-radius: var(--fgh-radius-lg); overflow: hidden;
  background: #0a0a0a; cursor: pointer;
}
.fgh-carousel__track {
  display: flex; height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.fgh-carousel__slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; }
.fgh-carousel__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.fgh-carousel__slide.is-active img { transform: scale(1.04); }

.fgh-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--fgh-transition), background var(--fgh-transition);
  z-index: 10;
}
.fgh-carousel:hover .fgh-carousel__btn { opacity: 1; }
.fgh-carousel__btn:hover { background: rgba(255,255,255,.3); }
.fgh-carousel__btn--prev { left: 16px; }
.fgh-carousel__btn--next { right: 16px; }

.fgh-carousel__counter {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,.4); color: #fff;
  padding: 4px 12px; border-radius: 50px; font-size: .8rem;
}
.fgh-carousel__dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.fgh-carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); transition: background var(--fgh-transition), transform var(--fgh-transition);
}
.fgh-carousel__dot.is-active { background: #fff; transform: scale(1.3); }

/* Lightbox */
.fgh-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95); display: none;
  align-items: center; justify-content: center;
}
.fgh-lightbox.is-open { display: flex; }
.fgh-lightbox__inner { max-width: 90vw; max-height: 85vh; }
.fgh-lightbox__inner img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.fgh-lightbox__close {
  position: absolute; top: 20px; right: 20px;
  color: #fff; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fgh-transition);
}
.fgh-lightbox__close:hover { background: rgba(255,255,255,.25); }
.fgh-lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2rem; width: 56px; height: 56px;
  border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fgh-transition);
}
.fgh-lightbox__btn:hover { background: rgba(255,255,255,.25); }
.fgh-lightbox__btn--prev { left: 20px; }
.fgh-lightbox__btn--next { right: 20px; }

/* ============================================================
   PAGINE STATICHE (Chi siamo, Contatti)
   ============================================================ */
.fgh-page-hero {
  background: var(--fgh-primary-light);
  padding: 80px 0 60px; text-align: center;
}
.fgh-page-hero .fgh-tag { margin-bottom: 20px; }
.fgh-page-hero h1 { font-size: clamp(2rem,5vw,3rem); color: var(--fgh-text); margin-bottom: 16px; }
.fgh-page-hero p { color: var(--fgh-text-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* About grid */
.fgh-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fgh-about-img img { width: 100%; border-radius: var(--fgh-radius-lg); box-shadow: var(--fgh-shadow-lg); }
.fgh-values { display: flex; flex-direction: column; gap: 20px; }
.fgh-value-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--fgh-radius); background: var(--fgh-bg-alt); }
.fgh-value-item__icon { font-size: 1.5rem; }
.fgh-value-item__title { font-weight: 700; color: var(--fgh-primary); margin-bottom: 4px; }
.fgh-value-item__desc { font-size: .9rem; color: var(--fgh-text-light); }

/* Contact grid */
.fgh-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.fgh-contact-info__item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--fgh-border); }
.fgh-contact-info__icon { font-size: 1.5rem; width: 40px; text-align: center; }
.fgh-contact-info__label { font-size: .8rem; color: var(--fgh-text-light); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.fgh-contact-info__value { font-weight: 600; color: var(--fgh-text); }

/* Contact form */
.fgh-contact-form { display: flex; flex-direction: column; gap: 16px; }
.fgh-contact-form label { font-size: .85rem; font-weight: 600; color: var(--fgh-text); margin-bottom: 6px; display: block; }
.fgh-contact-form input,
.fgh-contact-form textarea,
.fgh-contact-form select {
  width: 100%; padding: 12px 16px; border-radius: var(--fgh-radius);
  border: 1.5px solid var(--fgh-border); background: #fff;
  font-family: var(--fgh-font-sans); font-size: .95rem; color: var(--fgh-text);
  transition: border-color var(--fgh-transition);
  outline: none;
}
.fgh-contact-form input:focus,
.fgh-contact-form textarea:focus,
.fgh-contact-form select:focus { border-color: var(--fgh-primary); }
.fgh-contact-form textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   FOOTER
   ============================================================ */
.fgh-footer { background: #0F2535; color: rgba(255,255,255,.8); padding: 80px 0 0; }
.fgh-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fgh-footer__col-title { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.fgh-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.fgh-footer__col a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--fgh-transition); }
.fgh-footer__col a:hover { color: #fff; }
.fgh-footer__desc { color: rgba(255,255,255,.6); font-size: .9rem; margin: 12px 0 20px; line-height: 1.7; }
.fgh-footer__logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.fgh-footer__logo .fgh-logo__text { color: #fff; }
.fgh-footer__social { display: flex; gap: 12px; }
.fgh-social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: background var(--fgh-transition); }
.fgh-social-link:hover { background: var(--fgh-primary); }
.fgh-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: .85rem; color: rgba(255,255,255,.4); }

/* ============================================================
   GUTENBERG — Override blocchi standard
   ============================================================ */
/* Cover come hero */
.wp-block-cover { min-height: 100vh; }
.wp-block-cover__inner-container { max-width: 900px; margin: 0 auto; text-align: center; }

/* Group con sfondo colorato */
.wp-block-group.has-primary-background-color { padding: 80px 0; }
.wp-block-group.has-bg-alt-background-color { padding: 80px 0; background: var(--fgh-bg-alt); }

/* Colonne */
.wp-block-columns { gap: 40px; }

/* Separatore */
.wp-block-separator { border-color: var(--fgh-border); }

/* Blocco immagine */
.wp-block-image img { border-radius: var(--fgh-radius); }

/* ============================================================
   FADE IN (scroll animation)
   ============================================================ */
.fgh-fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fgh-fade-in.is-visible { opacity: 1; transform: none; }

/* ============================================================
   MAIN
   ============================================================ */
.fgh-main { min-height: 60vh; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fgh-property-layout__inner { grid-template-columns: 1fr; }
  .fgh-booking-widget { position: static; }
  .fgh-footer__grid { grid-template-columns: 1fr 1fr; }
  .fgh-about-grid { grid-template-columns: 1fr; }
  .fgh-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .fgh-nav, .fgh-nav-cta { display: none; }
  .fgh-hamburger { display: flex; }
  .fgh-footer__grid { grid-template-columns: 1fr; }
  .fgh-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .fgh-cols-2, .fgh-cols-3, .fgh-cols-4 { grid-template-columns: 1fr; }
  .fgh-features-grid { grid-template-columns: 1fr; }
  .fgh-testimonial-grid { grid-template-columns: 1fr; }
  .fgh-hero__actions { flex-direction: column; align-items: center; }
  .fgh-carousel { height: 320px; }
}
@media (max-width: 480px) {
  .fgh-container { padding: 0 16px; }
  .fgh-section { padding: 60px 0; }
}

/* ============================================================
   FIX: Menu visibile su hero (testo bianco)
   ============================================================ */
.fgh-header--transparent .fgh-nav__link { color: rgba(255,255,255,.92); }
.fgh-header--transparent .fgh-logo__text { color: #fff; }
.fgh-header--transparent .fgh-logo__sub { color: rgba(255,255,255,.7); }
.fgh-header--transparent .fgh-hamburger span { background: #fff; }
.fgh-header--transparent .fgh-nav-cta { background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.6); color: #fff; }
.fgh-header--transparent .fgh-nav-cta:hover { background: rgba(255,255,255,.35); }

/* ============================================================
   FIX: Pallini Polylang — rimuove i bullet della lista
   ============================================================ */
.fgh-lang-switcher,
.fgh-lang-switcher ul,
.wp-block-navigation .fgh-lang-switcher { list-style: none; padding: 0; margin: 0; }
.fgh-lang-switcher li { list-style: none; padding: 0; margin: 0; }
.fgh-lang-switcher li::before { display: none; }

/* ============================================================
   SERVIZI
   ============================================================ */
.fgh-servizi h3 { font-size: 1.3rem; margin-bottom: 20px; }
.fgh-servizi__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.fgh-servizi__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--fgh-bg-alt);
  border-radius: var(--fgh-radius); font-size: .9rem;
}
.fgh-servizi__icon { color: var(--fgh-primary); font-weight: 700; }

/* ============================================================
   FIX DEFINITIVO: Pallini Polylang
   ============================================================ */
.fgh-lang-switcher ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; gap: 4px; }
.fgh-lang-switcher ul li { list-style: none !important; list-style-type: none !important; }
.fgh-lang-switcher ul li::before,
.fgh-lang-switcher ul li::marker { display: none !important; content: none !important; }

/* ============================================================
   FIX: Menu bianco su header trasparente
   ============================================================ */
.fgh-header--transparent:not(.is-scrolled) .fgh-nav__link { color: rgba(255,255,255,.95) !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-nav__link:hover { background: rgba(255,255,255,.2) !important; color: #fff !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-logo__text { color: #fff !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-logo__sub { color: rgba(255,255,255,.75) !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-nav-cta { background: rgba(255,255,255,.15) !important; border-color: rgba(255,255,255,.7) !important; color: #fff !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-nav-cta:hover { background: rgba(255,255,255,.3) !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-hamburger span { background: #fff !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-lang-switcher a { color: rgba(255,255,255,.8) !important; }
.fgh-header--transparent:not(.is-scrolled) .fgh-lang-switcher a:hover { background: rgba(255,255,255,.2) !important; }

/* ============================================================
   FIX: Servizi icone
   ============================================================ */
.fgh-servizi__icon { font-size: 1.3rem; min-width: 28px; text-align: center; }

/* ============================================================
   FIX: Admin bar + header
   ============================================================ */
.admin-bar .fgh-header { top: 32px; }
.admin-bar .fgh-mobile-menu { top: calc(var(--fgh-header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .fgh-header { top: 46px; }
  .admin-bar .fgh-mobile-menu { top: calc(var(--fgh-header-h) + 46px); }
}

/* ============================================================
   FIX v2.0.4
   ============================================================ */

/* Menu bianco su hero — DEFINITIVO */
.fgh-header--transparent .fgh-nav__link,
.fgh-header--transparent .fgh-nav__link:visited { color: #fff !important; }
.fgh-header--transparent .fgh-nav__link:hover { background: rgba(255,255,255,.2) !important; }
.fgh-header--transparent .fgh-logo__text { color: #fff !important; }
.fgh-header--transparent .fgh-logo__sub { color: rgba(255,255,255,.7) !important; }
.fgh-header--transparent .fgh-nav-cta { background: rgba(255,255,255,.15) !important; border-color: rgba(255,255,255,.6) !important; color: #fff !important; }
.fgh-header--transparent .fgh-hamburger span { background: #fff !important; }
.fgh-header--transparent .fgh-lang-switcher a { color: rgba(255,255,255,.85) !important; }

/* Menu scuro quando scrollato o su pagine interne */
.fgh-header--solid .fgh-nav__link,
.fgh-header--transparent.is-scrolled .fgh-nav__link { color: var(--fgh-text) !important; }
.fgh-header--solid .fgh-logo__text,
.fgh-header--transparent.is-scrolled .fgh-logo__text { color: var(--fgh-primary) !important; }
.fgh-header--solid .fgh-nav-cta,
.fgh-header--transparent.is-scrolled .fgh-nav-cta { background: var(--fgh-primary) !important; color: #fff !important; border-color: var(--fgh-primary) !important; }
.fgh-header--solid .fgh-lang-switcher a,
.fgh-header--transparent.is-scrolled .fgh-lang-switcher a { color: var(--fgh-text-light) !important; }

/* Admin bar */
.admin-bar .fgh-header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .fgh-header { top: 46px !important; } }

/* Pallini Polylang — DEFINITIVO */
.fgh-lang-switcher ul,
ul.fgh-lang-switcher { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; gap: 4px !important; }
.fgh-lang-switcher li,
.fgh-lang-switcher ul li { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
.fgh-lang-switcher li::marker,
.fgh-lang-switcher li::before { display: none !important; content: '' !important; }

/* fgh-tag centrato dentro group Gutenberg */
.wp-block-group .fgh-tag { display: block; text-align: center; }

/* ============================================================
   FIX FINALI (già attivi via Customizer CSS aggiuntivo)
   ============================================================ */

/* Hero sotto header — rimuove spazio bianco */
.fgh-main > .wp-block-cover:first-child { margin-top: calc(-1 * var(--fgh-header-h)); }
.fgh-main { padding-top: 0 !important; }

/* Menu bianco su hero */
.fgh-header--transparent .fgh-nav__link { color: #fff !important; }
.fgh-header--transparent .fgh-nav__link:hover { background: rgba(255,255,255,.2) !important; }
.fgh-header--transparent .fgh-logo__text { color: #fff !important; }
.fgh-header--transparent .fgh-logo__sub { color: rgba(255,255,255,.75) !important; }
.fgh-header--transparent .fgh-nav-cta { background: rgba(255,255,255,.15) !important; border-color: rgba(255,255,255,.6) !important; color: #fff !important; }
.fgh-header--transparent .fgh-hamburger span { background: #fff !important; }
.fgh-header--transparent .fgh-lang-switcher a { color: rgba(255,255,255,.85) !important; }

/* Menu scuro quando scrollato o su pagine interne */
.fgh-header--solid .fgh-nav__link,
.fgh-header--transparent.is-scrolled .fgh-nav__link { color: #2C3E50 !important; }
.fgh-header--solid .fgh-logo__text,
.fgh-header--transparent.is-scrolled .fgh-logo__text { color: #1A6B8A !important; }
.fgh-header--solid .fgh-nav-cta,
.fgh-header--transparent.is-scrolled .fgh-nav-cta { background: #1A6B8A !important; color: #fff !important; }

/* Pallini Polylang */
.fgh-lang-switcher ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; }
.fgh-lang-switcher li { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.fgh-lang-switcher li::before, .fgh-lang-switcher li::marker { display: none !important; content: none !important; }

/* ============================================================
   MAPPA — Leaflet frontend
   ============================================================ */

.fgh-map-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--fgh-dark, #1a1a2e);
}

.fgh-map-address {
    font-size: .9rem;
    color: var(--fgh-text-light, #666);
    margin-bottom: 0;
}

.fgh-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    border: 1px solid rgba(0,0,0,.07);
}

/* Fix z-index Leaflet dentro layout a colonne */
.fgh-map .leaflet-pane,
.fgh-map .leaflet-top,
.fgh-map .leaflet-bottom {
    z-index: 10 !important;
}

/* Popup marker */
.leaflet-popup-content strong {
    font-family: var(--fgh-font-display, 'Playfair Display', serif);
}

/* Mobile: mappa a tutta larghezza */
@media (max-width: 768px) {
    .fgh-map {
        border-radius: 8px;
        height: 280px !important;
    }
}

/* ============================================================
   RECENSIONI — [vb_recensioni] shortcode — v2.1.5
   ============================================================ */
.vb-rec-wrapper { max-width: var(--fgh-container-w); margin: 0 auto; }
.vb-rec-summary { display:flex; gap:40px; align-items:center; background:var(--fgh-bg-alt); border:1px solid var(--fgh-border); border-radius:var(--fgh-radius-lg); padding:32px 40px; margin-bottom:48px; flex-wrap:wrap; }
.vb-rec-summary__global { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:120px; }
.vb-rec-summary__score { font-family:var(--fgh-font-serif); font-size:4rem; font-weight:700; color:var(--fgh-primary); line-height:1; }
.vb-rec-summary__stars .vb-star--full { color:#f5a623; }
.vb-rec-summary__stars .vb-star--half { color:#f5a623; opacity:.5; }
.vb-rec-summary__stars .vb-star--empty { color:#ddd; }
.vb-rec-summary__stars .vb-star { font-size:1.3rem; }
.vb-rec-summary__count { font-size:.85rem; color:var(--fgh-text-light); margin-top:2px; }
.vb-rec-summary__cats { flex:1; min-width:240px; display:flex; flex-direction:column; gap:10px; }
.vb-rec-summary__cat { display:flex; align-items:center; gap:12px; }
.vb-rec-summary__cat-label { font-size:.85rem; font-weight:600; color:var(--fgh-text); width:140px; flex-shrink:0; }
.vb-rec-summary__bar-wrap { flex:1; height:6px; background:var(--fgh-border); border-radius:99px; overflow:hidden; }
.vb-rec-summary__bar { height:100%; background:var(--fgh-primary); border-radius:99px; transition:width .6s ease; }
.vb-rec-summary__cat-score { font-size:.85rem; font-weight:700; color:var(--fgh-primary); width:28px; text-align:right; flex-shrink:0; }
.vb-rec-grid { display:grid; gap:24px; }
.vb-rec-cols-1 { grid-template-columns:1fr; }
.vb-rec-cols-2 { grid-template-columns:repeat(2,1fr); }
.vb-rec-cols-3 { grid-template-columns:repeat(3,1fr); }
.vb-rec-card { background:var(--fgh-bg); border:1px solid var(--fgh-border); border-radius:var(--fgh-radius-lg); padding:28px; box-shadow:var(--fgh-shadow); display:flex; flex-direction:column; gap:16px; transition:box-shadow var(--fgh-transition),transform var(--fgh-transition); }
.vb-rec-card:hover { box-shadow:var(--fgh-shadow-lg); transform:translateY(-2px); }
.vb-rec-card__head { display:flex; align-items:flex-start; gap:14px; }
.vb-rec-card__avatar { width:44px; height:44px; border-radius:50%; background:var(--fgh-primary); color:#fff; font-family:var(--fgh-font-serif); font-size:1.2rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.vb-rec-card__info { flex:1; }
.vb-rec-card__name { font-weight:700; font-size:.95rem; color:var(--fgh-text); }
.vb-rec-card__meta { font-size:.8rem; color:var(--fgh-text-light); margin-top:2px; }
.vb-rec-card__global { flex-shrink:0; }
.vb-rec-card__global .vb-star { font-size:1rem; }
.vb-rec-card__global .vb-star--full { color:#f5a623; }
.vb-rec-card__global .vb-star--half { color:#f5a623; opacity:.5; }
.vb-rec-card__global .vb-star--empty { color:#ddd; }
.vb-rec-card__text { font-size:.92rem; color:var(--fgh-text); line-height:1.7; border-left:3px solid var(--fgh-primary-light); padding-left:14px; }
.vb-rec-card__text p { margin:0; }
.vb-rec-card__cats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px 12px; padding-top:12px; border-top:1px solid var(--fgh-border); }
.vb-rec-card__cat { display:flex; flex-direction:column; gap:2px; }
.vb-rec-card__cat-label { font-size:.72rem; color:var(--fgh-text-light); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.vb-stars-mini { display:flex; gap:1px; }
.vb-sm-full { color:#f5a623; font-size:.75rem; }
.vb-sm-empty { color:#ddd; font-size:.75rem; }
.vb-rec-empty { text-align:center; color:var(--fgh-text-light); padding:40px; }
@media(max-width:768px){
  .vb-rec-summary{flex-direction:column;padding:24px;gap:24px;}
  .vb-rec-summary__global{flex-direction:row;gap:16px;}
  .vb-rec-summary__cat-label{width:110px;}
  .vb-rec-cols-2,.vb-rec-cols-3{grid-template-columns:1fr;}
  .vb-rec-card__cats{grid-template-columns:repeat(2,1fr);}
}

/* Sezione recensioni nella pagina alloggio */
.fgh-recensioni-section {
  padding: var(--fgh-section-padding) 0;
  background: var(--fgh-bg-alt);
  border-top: 1px solid var(--fgh-border);
  margin-top: 60px;
}

/* Policy box nel form prenotazione */
.vb-policy-box {
  border: 1px solid var(--fgh-border);
  border-left: 4px solid #f59e0b;
  border-radius: var(--fgh-radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.vb-policy-box__header {
  background: #fffbeb;
  padding: 10px 16px;
  font-size: .85rem;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
}
.vb-policy-box__body {
  background: #fffdf5;
  padding: 12px 16px;
  font-size: .82rem;
  color: #78350f;
  line-height: 1.65;
  max-height: 110px;
  overflow-y: auto;
}

/* Fix layout checkbox termini con link interno */
.vb-field-check label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  line-height: 1.5;
}
.vb-field-check label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
}
