/*
Theme Name: Le Terre di Polidoro Child
Description: Child theme Flatsome per leterredipolidoro.com — Picnic e camping nell'antico uliveto, Valle del Sele
Author: Carmine Cristian Cruoglio
Author URI: https://cruoglio.it/
Template: flatsome
Version: 1.2.0
Text Domain: parcodelsele-child
*/

/* ==========================================================================
   CSS Custom Properties — Brand Tokens
   ========================================================================== */

:root {
  --ps-primary: #6B7A3F;
  --ps-primary-light: #8B9A5B;
  --ps-primary-dark: #4A5630;
  --ps-secondary: #B5C49A;
  --ps-accent: #C8862B;
  --ps-accent-light: #E0A547;
  --ps-accent-dark: #A3691E;
  /* Deeper gold reserved for filled CTAs: #C8862B is a mid-tone where neither white
     nor dark text reaches WCAG AA (~2.6:1). These pass 4.5:1 with white text. */
  --ps-accent-cta: #9A6313;
  --ps-accent-cta-hover: #7E4F0F;
  /* Gold dark enough for small text on light backgrounds (eyebrow labels): ~5.4:1 */
  --ps-accent-text: #8A5A14;
  --ps-text: #2E2B26;
  --ps-text-light: #5A554C;
  --ps-bg: #FAF7F0;
  --ps-bg-alt: #F1EDE2;
  --ps-white: #FFFFFF;
  --ps-dark-footer: #2E331F;
  --ps-radius: 8px;
  --ps-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --ps-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --ps-transition: 0.3s ease;
  --ps-font-heading: 'Playfair Display', Georgia, serif;
  --ps-font-body: 'Open Sans', sans-serif;
  --ps-container: 1366px;
}

/* ==========================================================================
   Park Booking re-skin -> "Uliveto & Oro"
   The park-booking plugin is kept 1:1 (parcodelsele fidelity). It exposes an
   --rs-* skin layer AND hardcodes --pb-* on :root with a maroon default
   (#8B2E3B). We remap both here, WITHOUT editing the plugin. :root:root
   (specificity 0,2,0) guarantees these win regardless of stylesheet order.
   ========================================================================== */
:root:root {
  --rs-primary:      #4A5630;  --pb-primary:      #4A5630;
  --pb-primary-dark: #2E331F;
  --rs-secondary:    #9A6313;  --pb-secondary:    #9A6313;
  --rs-bg:           #FAF7F0;  --pb-bg:           #FAF7F0;
  --rs-card:         #FFFDF9;  --pb-card:         #FFFDF9;
  --rs-text:         #2E2B26;  --pb-text:         #2E2B26;
  --rs-text-muted:   #5A554C;  --pb-text-muted:   #5A554C;
  --rs-success:      #2F7A4A;  --pb-success:      #2F7A4A;
  --rs-h-font: 'Playfair Display', Georgia, serif;  --pb-font-heading: 'Playfair Display', Georgia, serif;
  --rs-b-font: 'Open Sans', sans-serif;             --pb-font-body:    'Open Sans', sans-serif;
}

/* ==========================================================================
   Flatsome Override Layer — !important per vincere la specificita' Flatsome
   ========================================================================== */

body.ps-page {
  font-family: var(--ps-font-body) !important;
  color: var(--ps-text) !important;
  line-height: 1.75 !important;
  background: var(--ps-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ps-page h1,
body.ps-page h2,
body.ps-page h3,
body.ps-page h4,
body.ps-page h5,
body.ps-page h6 {
  font-family: var(--ps-font-heading) !important;
  line-height: 1.3 !important;
}

body.ps-page p {
  color: var(--ps-text) !important;
}

body.ps-page a {
  /* master link color on inner pages; primary-dark for WCAG AA on light (~5.9:1).
     Dark-surface links (hero/footer/cta) keep their later white !important overrides. */
  color: var(--ps-primary-dark) !important;
  transition: color var(--ps-transition);
}

body.ps-page a:hover {
  color: var(--ps-primary-dark) !important;
}

/* Hide Flatsome default header/footer/wrappers */
body.ps-page #header,
body.ps-page .header-wrapper,
body.ps-page #footer,
body.ps-page .footer-wrapper,
body.ps-page .page-wrapper > .row:first-child > .large-12:empty {
  display: none !important;
}

/* ==========================================================================
   Global Overrides (legacy selectors kept for safety)
   ========================================================================== */

body {
  color: var(--ps-text);
  font-family: var(--ps-font-body);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ps-font-heading);
  line-height: 1.3;
}

a {
  /* primary-dark, not primary: olive #6B7A3F on light only reaches ~4.0:1.
     Links on dark surfaces (hero/footer/cta) keep their white overrides. */
  color: var(--ps-primary-dark);
  transition: color var(--ps-transition);
}

a:hover {
  color: var(--ps-primary-dark);
}

/* Container */
.ps-wrap,
.ps-container {
  max-width: var(--ps-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button.primary,
button.primary,
.button.alt,
input[type="submit"] {
  background-color: var(--ps-primary) !important;
  border-color: var(--ps-primary) !important;
  border-radius: var(--ps-radius);
  transition: background-color var(--ps-transition);
}

.button.primary:hover,
button.primary:hover,
.button.alt:hover,
input[type="submit"]:hover {
  background-color: var(--ps-primary-dark) !important;
  border-color: var(--ps-primary-dark) !important;
}

.button.secondary {
  background-color: var(--ps-accent) !important;
  border-color: var(--ps-accent) !important;
}

.button.secondary:hover {
  background-color: var(--ps-accent-light) !important;
  border-color: var(--ps-accent-light) !important;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.ps-topbar {
  background-color: var(--ps-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

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

.ps-topbar__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ps-topbar__left a,
.ps-topbar__left span {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ps-topbar__left a:hover {
  color: var(--ps-white) !important;
}

.ps-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ps-topbar__right a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: color var(--ps-transition);
}

.ps-topbar__right a:hover {
  color: var(--ps-accent) !important;
}

body.ps-page .ps-topbar i,
body.ps-page .ps-topbar .fa-solid,
body.ps-page .ps-topbar .fa-brands {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.ps-nav {
  background-color: var(--ps-white);
  box-shadow: var(--ps-shadow);
  position: relative;
  z-index: 1000;
  transition: box-shadow var(--ps-transition);
}

.ps-nav--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  animation: ps-slideDown 0.3s ease;
}

@keyframes ps-slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.ps-nav__inner {
  max-width: var(--ps-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 95px;
}

.ps-nav__logo img {
  height: 75px;
  width: auto;
}

.ps-nav__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
}

.ps-nav__menu li a {
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ps-text);
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: var(--ps-radius);
  transition: color var(--ps-transition), background-color var(--ps-transition);
}

.ps-nav__menu li a:hover,
.ps-nav__menu li a.active {
  /* primary-dark (not primary) to reach WCAG AA on the --ps-bg-alt chip (~5.6:1) */
  color: var(--ps-primary-dark);
  background-color: var(--ps-bg-alt);
}

.ps-nav__actions .ps-btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
}

/* Skip link: hidden until focused (WCAG 2.4.1 Bypass Blocks) */
.ps-skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  z-index: 2000;
  padding: 0.65rem 1.25rem;
  background-color: var(--ps-primary-dark);
  color: var(--ps-white);
  font-family: var(--ps-font-heading);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--ps-radius) 0;
  transition: transform var(--ps-transition);
}

.ps-skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--ps-accent-light);
  outline-offset: 2px;
}

/* Navbar CTA Button */
.ps-nav__cta {
  display: inline-block;
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--ps-accent-cta);
  color: var(--ps-white) !important;
  border-radius: var(--ps-radius);
  text-decoration: none;
  transition: background-color var(--ps-transition);
}

.ps-nav__cta:hover {
  background-color: var(--ps-accent-cta-hover);
  color: var(--ps-white) !important;
}

/* Hamburger */
.ps-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.ps-nav__hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--ps-text);
  transition: transform var(--ps-transition), opacity var(--ps-transition);
}

.ps-nav__hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ps-nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.ps-nav__hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.ps-nav__mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--ps-transition);
}

.ps-nav__mobile-overlay.is-open {
  display: block;
  opacity: 1;
}

.ps-nav__mobile {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--ps-white);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  transition: right var(--ps-transition);
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
}

.ps-nav__mobile.is-open {
  right: 0;
}

.ps-nav__mobile a {
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ps-text);
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ps-bg-alt);
  display: block;
}

.ps-nav__mobile a:hover,
.ps-nav__mobile a.active {
  color: var(--ps-primary);
}

.ps-nav__mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ps-text);
  cursor: pointer;
  padding: 0.5rem;
}

.ps-nav__mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-nav__mobile-link {
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ps-text);
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ps-bg-alt);
  display: block;
}

.ps-nav__mobile-link:hover,
.ps-nav__mobile-link.active {
  color: var(--ps-primary);
}

.ps-nav__mobile-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.ps-nav__mobile-cta .ps-btn,
.ps-nav__mobile-cta .ps-nav__cta {
  display: block;
  text-align: center;
  width: 100%;
}

.ps-nav__cta--mobile {
  display: block;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   Hide Flatsome Default Header (we use custom)
   ========================================================================== */

.ps-page .header-wrapper {
  display: none !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.ps-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: var(--ps-primary-dark);
}

.ps-hero--home {
  min-height: 85vh;
}

.ps-hero--inner {
  min-height: 300px;
}

.ps-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.22) 100%
  ) !important;
  z-index: 1;
}

.ps-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.ps-hero h1 {
  color: var(--ps-white);
  font-family: var(--ps-font-heading);
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.ps-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ps-hero__ctas,
.ps-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ps-hero__scroll-down,
.ps-hero__scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  animation: ps-bounce 2s ease infinite;
  cursor: pointer;
}

@keyframes ps-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.ps-hero__breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.ps-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.ps-hero__breadcrumb a:hover {
  color: var(--ps-white);
}

/* ==========================================================================
   Service Cards
   ========================================================================== */

.ps-service-card {
  background: var(--ps-white);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  padding: 2rem;
  text-align: center;
  transition: transform var(--ps-transition), box-shadow var(--ps-transition);
}

.ps-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ps-service-card .icon,
.ps-service-card__icon {
  font-size: 2.5rem;
  color: var(--ps-primary);
  margin-bottom: 1rem;
}

.ps-service-card h3,
.ps-service-card__title {
  color: var(--ps-primary-dark);
  margin-bottom: 0.5rem;
}

.ps-service-card__desc {
  color: var(--ps-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ps-service-card__link {
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ps-primary);
  text-decoration: none;
}

.ps-service-card__link:hover {
  color: var(--ps-primary-dark);
}

/* ==========================================================================
   Section Styling
   ========================================================================== */

.ps-section {
  padding: 4rem 0;
}

.ps-section-alt {
  background-color: var(--ps-bg-alt);
  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='%232E7D32' fill-opacity='0.04'%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");
}

.ps-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ps-section-title h2 {
  color: var(--ps-primary-dark);
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.ps-section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--ps-accent);
  margin: 0.5rem auto 0;
}

/* ==========================================================================
   Buttons — Global
   ========================================================================== */

.ps-btn {
  display: inline-block;
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--ps-radius);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ps-transition);
  border: 2px solid transparent;
  text-align: center;
}

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

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

.ps-btn--accent {
  /* deep gold + white text: #C8862B is a mid-tone where dark text only hits ~2.5:1 */
  background-color: var(--ps-accent-cta);
  color: var(--ps-white);
  border-color: var(--ps-accent-cta);
  font-weight: 700;
}

.ps-btn--accent:hover {
  background-color: var(--ps-accent-cta-hover);
  border-color: var(--ps-accent-cta-hover);
  color: var(--ps-white);
}

.ps-btn--outline {
  background-color: transparent;
  color: var(--ps-white);
  border-color: var(--ps-white);
}

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

/* Prodotti Azienda Agricola — note sotto la griglia (page-servizi) */
.ps-prodotti-note {
  text-align: center !important;
  margin: 2rem auto 0 !important;
  max-width: 720px !important;
  font-size: 0.9rem !important;
  color: var(--ps-text-light, #555) !important;
  font-style: italic !important;
}

/* Disabled CTA button (used to neutralize phone-booking buttons) */
.ps-btn--disabled,
.ps-btn--disabled:hover,
.ps-btn--disabled:focus,
.ps-btn--disabled:active {
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.55 !important;
  text-decoration: none !important;
  user-select: none !important;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.ps-grid {
  display: grid;
  gap: 2rem;
}

.ps-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.ps-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ps-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.ps-grid--60-40 {
  grid-template-columns: 3fr 2fr;
}

.ps-grid--55-45 {
  grid-template-columns: 55% 45%;
}

.ps-grid--40-60 {
  grid-template-columns: 2fr 3fr;
}

.ps-grid--align-center {
  align-items: center;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */

.ps-intro .ps-eyebrow,
.ps-intro .ps-label {
  font-family: var(--ps-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ps-accent-text);
  margin-bottom: 0.5rem;
}

.ps-intro h2 {
  font-size: 2rem;
  color: var(--ps-primary-dark);
  margin-bottom: 1rem;
}

.ps-intro p {
  color: var(--ps-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ps-intro__img {
  width: 100%;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-lg);
  object-fit: cover;
}

.ps-link-arrow {
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ps-primary-dark);
  text-decoration: none;
}

.ps-link-arrow:hover {
  color: var(--ps-primary-dark);
}

/* ==========================================================================
   Booking Preview
   ========================================================================== */

.ps-booking-preview img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
}

.ps-booking-preview h2 {
  font-size: 2rem;
  color: var(--ps-primary-dark);
  margin-bottom: 1rem;
}

.ps-booking-preview p {
  color: var(--ps-text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.ps-cta {
  /* primary-dark banner so light body copy (.ps-cta__desc) clears AA (~7:1) */
  background-color: var(--ps-primary-dark);
  color: var(--ps-white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.ps-cta h2 {
  color: var(--ps-white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ps-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Info Quick Section
   ========================================================================== */

.ps-info-quick .ps-info-card,
.ps-info-quick__col {
  text-align: center;
  padding: 2rem 1.5rem;
}

.ps-info-quick .ps-info-card i,
.ps-info-quick__icon {
  font-size: 2.5rem;
  color: var(--ps-primary);
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.ps-info-quick__icon i {
  font-size: inherit;
  color: inherit;
}

.ps-info-quick .ps-info-card h3,
.ps-info-quick__title {
  color: var(--ps-primary-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.ps-info-quick .ps-info-card p,
.ps-info-quick__body {
  color: var(--ps-text-light);
  line-height: 1.6;
}

.ps-info-quick .ps-info-card a,
.ps-info-quick__contact-link {
  color: var(--ps-primary);
  text-decoration: none;
}

.ps-info-quick .ps-info-card a:hover,
.ps-info-quick__contact-link:hover {
  color: var(--ps-primary-dark);
}

/* Section Header (centered title with underline) */
.ps-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ps-section-header .ps-section-title {
  color: var(--ps-primary-dark);
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.ps-section-header .ps-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--ps-accent);
  margin: 0.5rem auto 0;
}

/* ==========================================================================
   Footer — Custom
   ========================================================================== */

.ps-page .footer-wrapper {
  display: none !important;
}

.ps-footer {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ps-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--ps-transition);
}

.ps-footer a:hover {
  color: var(--ps-accent);
}

.ps-footer__top {
  background-color: var(--ps-primary-dark);
  padding: 3.5rem 0;
}

.ps-footer__top .ps-footer__inner {
  max-width: var(--ps-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.ps-footer__brand img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.ps-footer__brand p {
  margin-bottom: 1.2rem;
}

.ps-footer__social {
  display: flex;
  gap: 0.8rem;
}

.ps-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  transition: background var(--ps-transition), color var(--ps-transition);
}

.ps-footer__social a:hover {
  background: var(--ps-accent);
  color: var(--ps-white);
}

.ps-footer__col h4,
.ps-footer__col-title {
  color: var(--ps-white);
  font-family: var(--ps-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.ps-footer__col h4::after,
.ps-footer__col-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--ps-accent);
  margin-top: 0.5rem;
}

.ps-footer__col a {
  display: block;
  padding: 0.2rem 0;
}

.ps-footer__col .ps-footer__info-item,
.ps-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.ps-footer__col .ps-footer__info-item i,
.ps-footer__contact-item i {
  color: var(--ps-accent);
  margin-top: 0.25rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.ps-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-footer__contact-item address {
  font-style: normal;
}

.ps-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-footer__links li {
  padding: 0.15rem 0;
}

.ps-footer__map-embed iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: var(--ps-radius);
  margin-bottom: 0.5rem;
}

.ps-footer__map-link {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ps-footer__desc {
  margin-bottom: 1.2rem;
}

.ps-footer__map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: var(--ps-radius);
  margin-bottom: 0.5rem;
}

.ps-footer__bottom {
  background-color: var(--ps-dark-footer);
  padding: 1rem 0;
}

.ps-footer__bottom .ps-footer__inner {
  max-width: var(--ps-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.ps-footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   Fade-in Animation
   ========================================================================== */

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

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

/* ==========================================================================
   Services CTA (Fix #4 — single CTA below grid)
   ========================================================================== */

.ps-services__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ==========================================================================
   Booking Preview — grid align center (Fix #5)
   ========================================================================== */

.ps-booking-preview .ps-grid--2 {
  align-items: center;
}

/* ==========================================================================
   Footer Social Icons (Fix #6)
   ========================================================================== */

.ps-footer__social a i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Stat Cards — pagina Il Parco (Fix #10)
   ========================================================================== */

.ps-stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--ps-white);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
}

.ps-stat-card__number {
  font-family: var(--ps-font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--ps-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ps-stat-card__label {
  font-family: var(--ps-font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ps-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Step Cards — pagina Prenota Tavoli (Fix #10)
   ========================================================================== */

.ps-step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.ps-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ps-primary);
  color: var(--ps-white);
  font-family: var(--ps-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ps-step-card__title {
  font-family: var(--ps-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ps-primary-dark);
  margin-bottom: 0.5rem;
}

.ps-step-card__desc {
  color: var(--ps-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Form Wrapper — pagina Contatti (Fix #10)
   ========================================================================== */

.ps-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.ps-form-wrapper .wpcf7 input[type="text"],
.ps-form-wrapper .wpcf7 input[type="email"],
.ps-form-wrapper .wpcf7 input[type="tel"],
.ps-form-wrapper .wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--ps-radius);
  font-family: var(--ps-font-body);
  font-size: 0.95rem;
  transition: border-color var(--ps-transition);
}

.ps-form-wrapper .wpcf7 input:focus,
.ps-form-wrapper .wpcf7 textarea:focus {
  border-color: var(--ps-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* ==========================================================================
   Feature List (Fix #10)
   ========================================================================== */

.ps-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--ps-text);
  line-height: 1.5;
}

.ps-feature-list li i {
  color: var(--ps-primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Legal Pages — privacy/cookie (Fix #10)
   ========================================================================== */

.ps-legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ps-legal-content h2 {
  font-size: 1.5rem;
  color: var(--ps-primary-dark);
  margin: 2rem 0 1rem;
}

.ps-legal-content h3 {
  font-size: 1.2rem;
  color: var(--ps-text);
  margin: 1.5rem 0 0.75rem;
}

.ps-legal-content p,
.ps-legal-content li {
  color: var(--ps-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ps-legal-content ul {
  padding-left: 1.5rem;
}

.ps-legal-content a {
  color: var(--ps-primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Contact Social Icons
   ========================================================================== */

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

.ps-contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ps-primary);
  color: var(--ps-white);
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--ps-transition);
}

.ps-contact-social a:hover {
  background: var(--ps-primary-dark);
}

/* ==========================================================================
   Static Form (fallback when CF7 not active)
   ========================================================================== */

.ps-container--narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ps-section-subtitle {
  color: var(--ps-text-light);
  text-align: center;
  margin-bottom: 2rem;
}

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

.ps-static-form__group {
  margin-bottom: 1.2rem;
}

.ps-static-form__label {
  display: block;
  font-family: var(--ps-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ps-text);
  margin-bottom: 0.4rem;
}

.ps-static-form__input,
.ps-static-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--ps-radius);
  font-family: var(--ps-font-body);
  font-size: 0.95rem;
  transition: border-color var(--ps-transition);
  box-sizing: border-box;
}

.ps-static-form__input:focus,
.ps-static-form__textarea:focus {
  border-color: var(--ps-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.ps-static-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.ps-static-form__submit {
  margin-top: 0.5rem;
}

/* ==========================================================================
   CTA Actions (multiple buttons)
   ========================================================================== */

.ps-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Booking container
   ========================================================================== */

.ps-booking-container {
  max-width: 100%;
}

/* ==========================================================================
   Stat card icon variant
   ========================================================================== */

.ps-stat-card__icon {
  font-size: 2.5rem;
  color: var(--ps-primary);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Eyebrow (used on internal pages)
   ========================================================================== */

.ps-eyebrow {
  display: block;
  font-family: var(--ps-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ps-accent-text);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Content Block — sezioni alternanti img sx/dx (Fix #11)
   ========================================================================== */

.ps-content-block {
  align-items: center;
}

.ps-content-block__img {
  width: 100%;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  object-fit: cover;
}

.ps-content-block__text h2 {
  font-size: 1.8rem;
  color: var(--ps-primary-dark);
  margin-bottom: 1rem;
}

.ps-content-block__text p {
  color: var(--ps-text-light) !important;
  line-height: 1.8 !important;
  margin-bottom: 1.5rem !important;
}

/* ==========================================================================
   !important Overrides — text colors in sections (Flatsome specificity)
   ========================================================================== */

.ps-section-alt p,
.ps-section-alt .ps-service-card__desc,
.ps-section-alt .ps-step-card__desc,
.ps-section-alt .ps-info-quick__body,
.ps-section--alt p,
.ps-section--alt .ps-service-card__desc,
.ps-section--alt .ps-step-card__desc {
  color: var(--ps-text-light) !important;
}

.ps-section-alt h2,
.ps-section-alt h3,
.ps-section-alt .ps-service-card__title,
.ps-section-alt .ps-step-card__title,
.ps-section-alt .ps-info-quick__title,
.ps-section-alt .ps-content-block__text h2,
.ps-section--alt h2,
.ps-section--alt h3,
.ps-section--alt .ps-service-card__title {
  color: var(--ps-primary-dark) !important;
}

.ps-service-card__desc {
  color: var(--ps-text-light) !important;
}

.ps-intro p {
  color: var(--ps-text-light) !important;
}

.ps-booking-preview p {
  color: var(--ps-text-light) !important;
}

.ps-info-quick__body {
  color: var(--ps-text-light) !important;
}

.ps-hero h1 {
  color: var(--ps-white) !important;
  font-family: var(--ps-font-heading) !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
}

.ps-hero p,
.ps-hero__subtitle {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
}

.ps-cta h2 {
  color: var(--ps-white) !important;
  font-size: 2rem !important;
}

.ps-cta p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem !important;
}

.ps-cta .ps-btn:not(.ps-btn--accent) {
  color: var(--ps-white) !important;
}

/* Footer link colors override */
.ps-footer a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.ps-footer a:hover {
  color: var(--ps-accent) !important;
}

/* ==========================================================================
   Missing Classes — used in templates but never defined
   ========================================================================== */

/* Hero inner variant (used in prenota-tavoli) */
.ps-hero__inner {
  position: relative;
  z-index: 2 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
}

/* Force centering hero content on inner pages */
.ps-hero--inner .ps-container {
  max-width: 800px !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.ps-hero--inner {
  min-height: 340px !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* Breadcrumb alternate class (used in servizi, contatti, prenota) */
.ps-breadcrumb {
  position: relative;
  z-index: 2 !important;
  margin-bottom: 0.5rem !important;
}

.ps-breadcrumb__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  font-size: 0.85rem !important;
}

.ps-breadcrumb__item {
  color: rgba(255, 255, 255, 0.7) !important;
}

.ps-breadcrumb__link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
}

.ps-breadcrumb__link:hover {
  color: var(--ps-white) !important;
}

.ps-breadcrumb__item--current {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ps-breadcrumb__separator {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Section title BEM variant (used in prenota-tavoli) */
.ps-section__title {
  color: var(--ps-primary-dark) !important;
  font-size: 2rem !important;
  font-family: var(--ps-font-heading) !important;
  margin-bottom: 2.5rem !important;
}

/* Section alt BEM variant (used in prenota-tavoli) */
.ps-section--alt {
  background-color: var(--ps-bg-alt) !important;
  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='%232E7D32' fill-opacity='0.04'%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") !important;
}

/* Text center utility */
.ps-text-center {
  text-align: center !important;
}

/* Info column titles (prenota-tavoli) */
.ps-info-col__title {
  font-family: var(--ps-font-heading) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--ps-primary-dark) !important;
  margin-bottom: 1.5rem !important;
}

/* Contact info link */
.ps-contact-info__link {
  color: var(--ps-primary-dark) !important;
  text-decoration: none !important;
}

.ps-contact-info__link:hover {
  color: var(--ps-primary-dark) !important;
}

/* Contact social title */
.ps-contact-info__social-title {
  font-family: var(--ps-font-heading) !important;
  font-weight: 600 !important;
  color: var(--ps-text) !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

/* Contact map embed */
.ps-contact-map__embed iframe {
  width: 100% !important;
  height: 400px !important;
  border: 0 !important;
  border-radius: var(--ps-radius) !important;
}

/* Static form row 2-col */
.ps-static-form__row--2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}

/* Navbar selectors with !important */
.ps-nav__menu li a {
  font-family: var(--ps-font-heading) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  color: var(--ps-text) !important;
}

.ps-nav__menu li a:hover,
.ps-nav__menu li a.active {
  /* primary-dark for WCAG AA on the cream chip (~5.6:1); overrides the base rule */
  color: var(--ps-primary-dark) !important;
}

/* Buttons with !important */
.ps-btn--primary {
  background-color: var(--ps-primary) !important;
  color: var(--ps-white) !important;
  border-color: var(--ps-primary) !important;
}

.ps-btn--primary:hover {
  background-color: var(--ps-primary-dark) !important;
  border-color: var(--ps-primary-dark) !important;
  color: var(--ps-white) !important;
}

.ps-btn--accent {
  background-color: var(--ps-accent-cta) !important;
  color: var(--ps-white) !important;
  border-color: var(--ps-accent-cta) !important;
  font-weight: 700 !important;
}

.ps-btn--accent:hover {
  background-color: var(--ps-accent-cta-hover) !important;
  border-color: var(--ps-accent-cta-hover) !important;
  color: var(--ps-white) !important;
}

.ps-btn--outline {
  background-color: transparent !important;
  color: var(--ps-white) !important;
  border-color: var(--ps-white) !important;
}

.ps-btn--outline:hover {
  background-color: var(--ps-white) !important;
  color: var(--ps-primary-dark) !important;
}

/* ==========================================================================
   Dark Background Contexts — override body.ps-page p/a specificity
   Fixes: footer, hero, CTA sections where text MUST be white
   ========================================================================== */

/* --- FOOTER: all text/links/icons white on dark green --- */
body.ps-page .ps-footer,
body.ps-page .ps-footer p,
body.ps-page .ps-footer span,
body.ps-page .ps-footer address,
body.ps-page .ps-footer li {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.ps-page .ps-footer a {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.ps-page .ps-footer a:hover {
  color: var(--ps-accent) !important;
}

body.ps-page .ps-footer h3,
body.ps-page .ps-footer h4,
body.ps-page .ps-footer .ps-footer__col-title {
  color: var(--ps-white) !important;
}

body.ps-page .ps-footer__social a {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.ps-page .ps-footer__social a:hover {
  color: var(--ps-white) !important;
  background: var(--ps-accent) !important;
}

body.ps-page .ps-footer__social a i {
  color: inherit !important;
}

body.ps-page .ps-footer__bottom p,
body.ps-page .ps-footer__bottom a,
body.ps-page .ps-footer__bottom span {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.ps-page .ps-footer__bottom a:hover {
  color: var(--ps-white) !important;
}

/* --- HERO: all text white --- */
body.ps-page .ps-hero h1 {
  color: var(--ps-white) !important;
}

body.ps-page .ps-hero p,
body.ps-page .ps-hero__subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.ps-page .ps-hero a {
  color: var(--ps-white) !important;
}

body.ps-page .ps-breadcrumb__link,
body.ps-page .ps-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.ps-page .ps-breadcrumb__item,
body.ps-page .ps-hero__breadcrumb {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.ps-page .ps-breadcrumb__item--current {
  color: var(--ps-white) !important;
}

body.ps-page .ps-breadcrumb__separator {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* --- CTA SECTIONS: text white on green bg --- */
body.ps-page .ps-cta h2 {
  color: var(--ps-white) !important;
}

body.ps-page .ps-cta p {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.ps-page .ps-cta a {
  color: var(--ps-white) !important;
}

/* --- BUTTONS: text colors --- */
/* primary and outline: white text; accent: dark text on gold bg (WCAG AA) */
body.ps-page a.ps-btn--primary,
body.ps-page a.ps-btn--outline,
body.ps-page .ps-btn--primary,
body.ps-page .ps-btn--outline,
body.ps-page .ps-nav__cta,
body.ps-page .ps-cta .ps-btn {
  color: var(--ps-white) !important;
}

body.ps-page a.ps-btn--accent,
body.ps-page .ps-btn--accent {
  color: var(--ps-white) !important;
}

body.ps-page a.ps-btn--accent:hover,
body.ps-page .ps-btn--accent:hover {
  color: var(--ps-white) !important;
}

body.ps-page a.ps-btn--outline:hover,
body.ps-page .ps-btn--outline:hover {
  color: var(--ps-primary-dark) !important;
}

/* ==========================================================================
   Servizi page: titles left-aligned in content blocks (not centered)
   ========================================================================== */

.ps-content-block__text h2,
.ps-content-block__text .ps-section-title {
  text-align: left !important;
}

.ps-content-block__text h2::after,
.ps-content-block__text .ps-section-title::after {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Eyebrow always left in content blocks */
.ps-content-block__text .ps-eyebrow {
  text-align: left !important;
}

/* ==========================================================================
   Contact Social Icons — visible on light bg
   ========================================================================== */

.ps-contact-social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--ps-primary) !important;
  color: var(--ps-white) !important;
  font-size: 1.1rem !important;
  text-decoration: none !important;
  transition: background var(--ps-transition) !important;
}

body.ps-page .ps-contact-social a {
  color: var(--ps-white) !important;
}

.ps-contact-social a:hover {
  background: var(--ps-primary-dark) !important;
}

.ps-contact-social a i {
  color: inherit !important;
}

/* ==========================================================================
   Hero overlay — further lightened for homepage and il-parco
   ========================================================================== */

.ps-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.12) 100%
  ) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (max-width: 64em) {
  .ps-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ps-footer__top .ps-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (max-width: 48em) {
  /* Topbar hidden on mobile */
  .ps-topbar {
    display: none;
  }

  /* Hamburger visible */
  .ps-nav__hamburger {
    display: flex;
  }

  /* Desktop menu and CTA hidden, but hamburger stays visible */
  .ps-nav__menu {
    display: none;
  }

  .ps-nav__actions .ps-nav__cta:not(.ps-nav__cta--mobile) {
    display: none;
  }

  /* Navbar mobile: logo centrato, più grande, hamburger allineato */
  body.ps-page .ps-nav__inner {
    height: 104px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body.ps-page .ps-nav__logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ps-page .ps-nav__logo a {
    display: flex !important;
    align-items: center !important;
  }

  body.ps-page .ps-nav__logo img {
    height: 84px !important;
    width: auto !important;
    max-width: none !important;
  }

  body.ps-page .ps-nav__actions {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.ps-page .ps-nav__hamburger {
    display: flex !important;
    padding: 8px !important;
    margin: 0 !important;
    align-items: center !important;
  }

  /* Hero */
  .ps-hero--home {
    min-height: 70vh;
  }

  .ps-hero h1 {
    font-size: 2rem;
  }

  .ps-hero p {
    font-size: 1rem;
  }

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

  .ps-section-title h2 {
    font-size: 1.6rem;
  }

  /* Grids stack */
  .ps-grid--2,
  .ps-grid--3,
  .ps-grid--60-40,
  .ps-grid--55-45,
  .ps-grid--40-60 {
    grid-template-columns: 1fr;
  }

  /* Intro image on top on mobile */
  .ps-intro .ps-grid--60-40 {
    display: flex;
    flex-direction: column-reverse;
  }

  /* Footer */
  .ps-footer__top .ps-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ps-footer__social {
    justify-content: center;
  }

  .ps-footer__col h4::after {
    margin-left: auto;
    margin-right: auto;
  }

  .ps-footer__col .ps-footer__info-item {
    justify-content: center;
  }

  .ps-footer__bottom .ps-footer__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Fix #8 — Footer centrato su mobile */
  .ps-footer__col-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .ps-footer__contact-item {
    justify-content: center;
    text-align: center;
  }

  /* Fix #7 — Service cards come slider orizzontale */
  .ps-services .ps-grid--4 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .ps-services .ps-grid--4 .ps-service-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .ps-services .ps-grid--4::-webkit-scrollbar {
    height: 4px;
  }

  .ps-services .ps-grid--4::-webkit-scrollbar-track {
    background: transparent;
  }

  .ps-services .ps-grid--4::-webkit-scrollbar-thumb {
    background: var(--ps-secondary);
    border-radius: 2px;
  }

  /* Hero text */
  .ps-hero h1 {
    font-size: 1.8rem !important;
  }

  .ps-hero p,
  .ps-hero__subtitle {
    font-size: 1rem !important;
  }

  /* Hero scroll arrow hidden on mobile */
  .ps-hero__scroll-arrow,
  .ps-hero__scroll-down {
    display: none !important;
  }

  /* Hero CTA buttons stack vertically */
  .ps-hero__ctas,
  .ps-hero__actions {
    flex-direction: column !important;
    align-items: center !important;
  }

  .ps-hero__actions .ps-btn,
  .ps-hero__ctas .ps-btn {
    width: 100% !important;
    max-width: 280px !important;
  }

  /* CTA section buttons stack */
  .ps-cta__actions {
    flex-direction: column !important;
    align-items: center !important;
  }

  .ps-cta__actions .ps-btn {
    width: 100% !important;
    max-width: 300px !important;
  }

  /* Service cards smaller padding on mobile */
  .ps-service-card {
    padding: 1.5rem 1rem !important;
  }

  /* Form 2-col stacks on mobile */
  .ps-static-form__row--2 {
    grid-template-columns: 1fr !important;
  }

  /* Contact map taller on mobile */
  .ps-contact-map__embed iframe {
    height: 250px !important;
  }

  /* Grid 4 to 1 col on mobile (except slider) */
  .ps-grid--4:not(.ps-services .ps-grid--4) {
    grid-template-columns: 1fr !important;
  }

  /* Content blocks on mobile: always text first, then image */
  .ps-content-block {
    display: flex !important;
    flex-direction: column !important;
  }

  .ps-content-block .ps-content-block__text {
    order: 1 !important;
  }

  .ps-content-block .ps-content-block__media {
    order: 2 !important;
  }

  /* Slider arrows smaller on mobile */
  .ps-slider__arrow {
    width: 36px !important;
    height: 36px !important;
  }

  .ps-slider__arrow svg {
    width: 18px !important;
    height: 18px !important;
  }

  .ps-slider__arrow--prev {
    left: 8px !important;
  }

  .ps-slider__arrow--next {
    right: 8px !important;
  }

  /* ---- Mobile slider visibility fix ---- */
  /* Ensure media container is visible and takes full width */
  .ps-content-block .ps-content-block__media {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  /* Ensure slider has a real height on mobile via aspect-ratio */
  .ps-content-block .ps-slider {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .ps-content-block .ps-slider__track {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    position: relative !important;
    min-height: 220px !important;
  }

  .ps-content-block .ps-slider__slide {
    position: absolute !important;
    inset: 0 !important;
  }

  .ps-content-block .ps-slider__slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* ==========================================================================
   Slider Component
   ========================================================================== */

.ps-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-lg);
}

.ps-slider__track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.ps-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ps-slider__slide--active {
  opacity: 1;
}

.ps-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-slider__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: var(--ps-primary-dark) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  transition: background 0.2s, transform 0.2s !important;
  padding: 0 !important;
}

.ps-slider__arrow:hover {
  background: var(--ps-white) !important;
  transform: translateY(-50%) scale(1.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.ps-slider__arrow svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  stroke: var(--ps-primary-dark) !important;
  flex-shrink: 0 !important;
}

.ps-slider__arrow--prev {
  left: 12px !important;
}

.ps-slider__arrow--next {
  right: 12px !important;
}

body.ps-page .ps-slider__arrow {
  color: var(--ps-primary-dark) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.ps-page .ps-slider__arrow svg {
  stroke: var(--ps-primary-dark) !important;
}

.ps-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.ps-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.ps-slider__dot--active {
  background: var(--ps-white);
  transform: scale(1.2);
}

/* ==========================================================================
   Price Badge
   ========================================================================== */

.ps-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--ps-bg-alt);
  border-left: 4px solid var(--ps-accent);
  padding: 0.75rem 1.25rem;
  border-radius: 0 var(--ps-radius) var(--ps-radius) 0;
  margin-bottom: 1.5rem;
}

.ps-price-badge__amount {
  font-family: var(--ps-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ps-primary-dark);
}

.ps-price-badge__label {
  font-size: 0.95rem;
  color: var(--ps-text-light);
  font-weight: 500;
}

.ps-price-badge__sub {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: var(--ps-text-light);
  margin-top: -0.25rem;
}

/* ==========================================================================
   Feature Bullets
   ========================================================================== */

.ps-feature-bullets,
body.ps-page .ps-feature-bullets {
  list-style: none !important;
  padding: 0 0 0 1.5rem !important;
  margin: 0 0 1.5rem !important;
  position: relative !important;
  border-left: 3px solid var(--ps-secondary) !important;
}

.ps-feature-bullets::after {
  content: '' !important;
  position: absolute !important;
  left: -3px !important;
  top: 0 !important;
  width: 3px !important;
  height: 30% !important;
  background: var(--ps-accent) !important;
  border-radius: 2px !important;
  animation: ps-bar-scroll 3s ease-in-out infinite !important;
}

@keyframes ps-bar-scroll {
  0%   { top: 0; height: 30%; }
  50%  { top: 70%; height: 30%; }
  100% { top: 0; height: 30%; }
}

.ps-feature-bullets li,
body.ps-page .ps-feature-bullets li {
  padding-left: 0 !important;
  margin-bottom: 0.6rem !important;
  color: var(--ps-text) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  background: none !important;
}

.ps-feature-bullets li::before,
body.ps-page .ps-feature-bullets li::before {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   Legal Content — Privacy Policy & Cookie Policy
   Classi semantiche esplicite per heading, liste, tabelle, indirizzo.
   ========================================================================== */

.ps-legal-intro {
  font-size: 1.05rem;
  color: var(--ps-text-light);
  line-height: 1.8;
  padding: 1.25rem 1.5rem;
  background: #f6f9f6;
  border-left: 4px solid var(--ps-primary);
  border-radius: 0 4px 4px 0;
  margin-bottom: 2rem;
}

.ps-legal-h2 {
  font-size: 1.45rem;
  color: var(--ps-primary-dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e0e8e0;
}

.ps-legal-h3 {
  font-size: 1.1rem;
  color: var(--ps-text);
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
}

.ps-legal-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ps-legal-list li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
  color: var(--ps-text-light);
}

.ps-legal-address {
  font-style: normal;
  line-height: 1.9;
  color: var(--ps-text-light);
  background: #f6f9f6;
  border: 1px solid #dde8dd;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  display: inline-block;
}

.ps-legal-address a {
  color: var(--ps-primary-dark);
  text-decoration: underline;
}

.ps-legal-update {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e8e0;
  color: var(--ps-text-light);
  font-size: 0.9rem;
}

/* Tabella cookie */
.ps-legal-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 6px;
  border: 1px solid #dde8dd;
}

.ps-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.ps-legal-table thead {
  background: var(--ps-primary);
  color: #fff;
}

.ps-legal-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.ps-legal-table td {
  padding: 0.7rem 1rem;
  color: var(--ps-text-light);
  border-bottom: 1px solid #e8efe8;
  vertical-align: top;
  line-height: 1.6;
}

.ps-legal-table tbody tr:last-child td {
  border-bottom: none;
}

.ps-legal-table tbody tr:nth-child(even) {
  background: #f6f9f6;
}

.ps-legal-table code {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  background: #eef3ee;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--ps-primary-dark);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ps-legal-intro {
    font-size: 0.95rem;
    padding: 1rem 1.1rem;
  }

  .ps-legal-h2 {
    font-size: 1.2rem;
  }

  .ps-legal-address {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   MODAL — Prenotazione Online in Arrivo
   ========================================================================== */

body.ps-page .ps-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
}

body.ps-page .ps-modal.is-open {
    display: flex !important;
}

body.ps-page .ps-modal__backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(10, 30, 10, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

body.ps-page .ps-modal__dialog {
    position: relative !important;
    background: var(--ps-white) !important;
    border-radius: 16px !important;
    max-width: 520px !important;
    width: 100% !important;
    padding: 3rem 2rem 2.5rem !important;
    text-align: center !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
    animation: psModalIn 0.3s ease-out !important;
    border-top: 6px solid var(--ps-accent-light) !important;
}

@keyframes psModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.ps-page .ps-modal__close {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    background: transparent !important;
    color: var(--ps-text-light) !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

body.ps-page .ps-modal__close:hover,
body.ps-page .ps-modal__close:focus {
    background: var(--ps-bg-alt) !important;
    color: var(--ps-text) !important;
    outline: 2px solid var(--ps-accent-light) !important;
    outline-offset: 2px !important;
}

body.ps-page .ps-modal__icon {
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto 1.25rem !important;
    background: rgba(255, 179, 0, 0.12) !important;
    color: var(--ps-accent-light) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
}

body.ps-page .ps-modal__title {
    font-family: var(--ps-font-heading) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: var(--ps-primary-dark) !important;
    margin: 0 0 1rem !important;
    line-height: 1.25 !important;
}

body.ps-page .ps-modal__desc {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: var(--ps-text-light) !important;
    margin: 0 0 1.75rem !important;
}

body.ps-page .ps-modal__actions {
    display: flex !important;
    justify-content: center !important;
}

body.ps-page .ps-modal__cta {
    font-size: 1.05rem !important;
    padding: 0.9rem 1.75rem !important;
}

body.ps-modal-open {
    overflow: hidden !important;
}

@media (max-width: 540px) {
    body.ps-page .ps-modal {
        padding: 1rem !important;
    }
    body.ps-page .ps-modal__dialog {
        padding: 2.5rem 1.25rem 2rem !important;
        border-radius: 12px !important;
    }
    body.ps-page .ps-modal__title {
        font-size: 1.35rem !important;
    }
    body.ps-page .ps-modal__desc {
        font-size: 0.95rem !important;
    }
    body.ps-page .ps-modal__cta {
        width: 100% !important;
    }
}

/* ==========================================================================
   Gallery — Griglia + Lightbox
   ========================================================================== */

/* Intro testo */
.ps-gallery-intro {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.ps-gallery-intro__text {
  font-size: 1.05rem;
  color: var(--ps-text-light) !important;
  margin-top: 1rem;
}

/* Sezione senza padding-top (gallery subito sotto intro) */
.ps-section--no-top {
  padding-top: 0 !important;
}

/* Griglia */
.ps-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .ps-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ps-gallery {
    grid-template-columns: 1fr;
  }
}

/* Item */
.ps-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--ps-radius);
  aspect-ratio: 4 / 3;
  margin: 0;
  cursor: pointer;
  box-shadow: var(--ps-shadow);
}

.ps-gallery__item a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit !important;
}

.ps-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ps-gallery__item:hover .ps-gallery__img {
  transform: scale(1.06);
}

/* Overlay hover */
.ps-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 94, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ps-gallery__item:hover .ps-gallery__overlay {
  opacity: 1;
}

.ps-gallery__overlay i {
  font-size: 2rem;
  color: #fff;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

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

.ps-lightbox[hidden] {
  display: none;
}

.ps-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.ps-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* Close button */
.ps-lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ps-transition);
  z-index: 10000;
}

.ps-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Nav arrows */
.ps-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ps-transition);
  z-index: 10000;
}

.ps-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ps-lightbox__nav--prev {
  left: 1.25rem;
}

.ps-lightbox__nav--next {
  right: 1.25rem;
}

@media (max-width: 580px) {
  .ps-lightbox__nav {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .ps-lightbox__nav--prev {
    left: 0.5rem;
  }

  .ps-lightbox__nav--next {
    right: 0.5rem;
  }
}

/* Counter */
.ps-lightbox__counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: var(--ps-font-body);
  z-index: 10000;
}

/* ==========================================================================
   Le Terre di Polidoro — brand lockup + footer logo (override clone)
   ========================================================================== */

.ps-nav__logo a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.ps-nav__logo img { height: 52px; width: auto; display: block; }
.ps-nav__brand-text {
  font-family: var(--ps-font-heading);
  font-size: 1.05rem; font-weight: 600; line-height: 1.05;
  letter-spacing: 0.02em; color: var(--ps-primary-dark) !important; text-transform: uppercase;
}
@media (max-width: 600px) {
  .ps-nav__logo img { height: 44px; }
  .ps-nav__brand-text { font-size: 0.9rem; }
}

/* Footer: logo scuro su pannello chiaro (footer scuro) */
.ps-footer__brand > a { display: inline-block; background: var(--ps-bg); padding: 14px 18px; border-radius: 12px; line-height: 0; }
.ps-footer__brand img { width: 170px; height: auto; display: block; }

/* ==========================================================================
   Accessibility — Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}