/*
Theme Name: Garage Primavera
Theme URI: https://garageprimavera.it
Author: Garage Primavera Dev
Author URI: https://garageprimavera.it
Description: Tema custom per Garage Primavera Napoli - Style Hyer Aviation
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garage-primavera
Tags: custom-header, custom-menu, featured-images, translation-ready
*/

/* ============================================
   1. OUTFIT FONT-FACE (OFL)
   ============================================ */
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   1. CSS CUSTOM PROPERTIES (Hyer Style)
   ============================================ */
:root {
  /* Palette Hyer + Brand */
  --color-deep-ink: #000d10;
  --color-pure-white: #FCFBF8;
  --color-cool-ash: #8e8e95;
  --color-pebble: #d5d3d4;
  --color-midnight: #0f0f1c;
  --color-charcoal: #151623;
  --color-sand: #D7AC59;
  --color-blue: #214A62;
  --color-teal: #2AA0B3;

  /* Typography — Outfit (titles + body) */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Typography Scale — Hyer Style */
  --text-hero: clamp(3rem, 8vw, 11.75rem);  /* ~187px max */
  --text-display-xl: clamp(2.5rem, 6vw, 8.1875rem);  /* ~131px max */
  --text-display-lg: clamp(1.75rem, 4vw, 3.875rem);  /* ~62px max */
  --text-display: clamp(1.5rem, 3.5vw, 2.875rem);  /* ~46px max */
  --text-heading-lg: clamp(1.25rem, 3vw, 2.25rem);  /* ~36px max */
  --text-heading: clamp(1.125rem, 2.5vw, 1.875rem);  /* ~30px max */
  --text-subheading: 1.4375rem;  /* 23px */
  --text-nav: 1.25rem;  /* 20px */
  --text-caption: 1.0625rem;  /* 17px */
  --text-body: 1.125rem;  /* 18px */
  
  /* Typography Line Heights */
  --leading-hero: 1.0;
  --leading-display: 1.0;
  --leading-heading: 1.0;
  --leading-body: 1.61;
  
  /* Typography Tracking */
  --tracking-hero: -0.02em;
  --tracking-display: -0.015em;
  --tracking-heading: -0.01em;
  --tracking-subheading: -0.01em;
  
  /* Spacing Hyer */
  --spacing-unit: 4px;
  --spacing-xs: 11px;
  --spacing-sm: 16px;
  --spacing-md: 22px;
  --spacing-lg: 38px;
  --spacing-xl: 53px;
  --spacing-2xl: 68px;
  --spacing-3xl: 119px;
  
  /* Border Radius Hyer */
  --radius-full: 1000px;
  --radius-pill: 1000px;
  --radius-card: 0px;
  
  /* Layout */
  --page-max-width: 1200px;
  --section-gap: 80px;
}

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

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-deep-ink);
  background: var(--color-pure-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-deep-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-sand);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-deep-ink);
}

/* ============================================
   3. HEADER (3 Rettangoli Smussati)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-lg) var(--spacing-xl);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 8px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.site-logo img {
  height: 120px;
  width: auto;
  display: block;
}

/* Nav - sempre nascosto su desktop (tutto nell'hamburger) */
.main-navigation {
  display: none;
}

.nav-menu {
  display: none;
}

/* Hamburger top-right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-lang-switcher {
  display: flex;
  align-items: center;
}

.lang-flag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  text-decoration: none;
  border-radius: 50%;
  background: #f1f5f9;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lang-flag-btn:hover {
  transform: scale(1.1);
  background: #e2e8f0;
}

/* Hamburger Desktop - cerchio nero + trattini bianchi */
.hamburger-btn {
  display: flex;
  width: 44px;
  height: 44px;
  background: #1F2B3A;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-btn:hover {
  transform: scale(1.05);
}

.hamburger-btn span {
  display: block;
  width: 12px;
  height: 2.5px;
  background: var(--color-pure-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu — stile slide da dx, pannello bianco */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 30%;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 24px 24px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Permetti scroll della pagina quando menu è aperto */
body.menu-is-open {
  overflow: hidden;
  pointer-events: none;
}

body.menu-is-open .mobile-menu,
body.menu-is-open main,
body.menu-is-open .hero-section,
body.menu-is-open .hamburger-btn,
body.menu-is-open .service-nav .hamburger-btn,
body.menu-is-open .lang-flag-btn {
  pointer-events: auto;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 35px 0 0;
  align-items: flex-start;
  list-style: none !important;
}

.mobile-menu nav ul,
.mobile-menu nav ol {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-menu li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.mobile-menu nav a {
  display: block;
  text-align: left;
  padding: 8px 0 8px 0;
  color: #1F2B3A;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: transparent;
  border-bottom: 1px solid rgba(31, 43, 58, 0.1);
  transition: all 0.2s ease;
}

.mobile-menu nav .current-menu-item > a,
.mobile-menu nav .current_page_item > a {
  color: #AA574E;
}

.mobile-menu nav a:hover {
  padding-left: 8px;
}

.mobile-lang-flag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 16px;
  font-size: 32px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.mobile-lang-flag {
  border-bottom: none !important;
}

.mobile-lang-flag:hover {
  transform: scale(1.1);
}

/* ============================================
   MOBILE LANGUAGE SWITCHER
   ============================================ */
.mobile-lang-switcher {
  margin-top: 32px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(31, 43, 58, 0.1);
  list-style: none !important;
}

.mobile-lang-switcher::before,
.mobile-lang-switcher::after,
.mobile-lang-switcher .lang-label::before,
.mobile-lang-switcher .lang-label::after,
.mobile-lang-switcher .lang-flags::before,
.mobile-lang-switcher .lang-flags::after {
  content: none !important;
  display: none !important;
}

.lang-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1F2B3A;
  margin-bottom: 12px;
  text-decoration: none !important;
}

.lang-flags {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-flag {
  font-size: 32px;
  text-decoration: none;
  transition: transform 0.2s ease;
  cursor: pointer;
  list-style: none !important;
}

.lang-flag:hover {
  transform: scale(1.15);
}

/* ============================================
   4. HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url(assets/images/herodesk.png) center/cover no-repeat;
}

.hero-video-container {
  display: none !important;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-logo {
  position: absolute;
  top: 15px;
  right: 220px;
  z-index: 10;
}

.hero-logo img {
  height: 120px;
  width: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  margin-left: auto;
  text-align: right;
  min-height: calc(100vh - 120px);
  margin-bottom: 120px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

@media (min-width: 769px) {
  .hero-buttons {
    transform: translateX(15px);
  }
}

/* Hero Scroll Cue */
.hero-scroll-cue {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  cursor: pointer;
  padding: 8px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   5. BUTTONS (Hyer Style)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #AA574E;
  color: var(--color-pure-white);
}

.btn-primary:hover {
  background: #c46a61;
  color: var(--color-pure-white);
}

.btn-glass {
  background: transparent;
  color: var(--color-deep-ink);
  border: 1px solid var(--color-pebble);
}

.btn-glass:hover {
  background: var(--color-pure-white);
  border-color: var(--color-deep-ink);
}

/* Dark buttons for hero */
.btn-dark {
  background: #AA574E;
  color: var(--color-pure-white);
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.btn-dark:hover {
  background: #c46a61;
}

.btn-large {
  padding: 16px 32px;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ============================================
   6. BOOKING SECTION — TWO-COLUMN LAYOUT
   ============================================ */
.booking-map-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 64px !important;
  align-items: flex-start !important;
}

.booking-map-row > .booking-widget {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.booking-map-row > .booking-info {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* === SOVRASCRITTURA CSS PLUGIN: forza larghezza form === */
.booking-widget .gp-booking-wrapper {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Booking Info (right column) */
.booking-info {
  padding-top: 48px;
}

.booking-info-title {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  color: var(--color-deep-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.booking-info-desc {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-charcoal);
  line-height: 1.35;
  margin: 0 0 12px 0;
}

/* Native disclosure controls work with keyboard and without JavaScript. */
.booking-info-heading {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 22px 0 14px;
  color: var(--color-deep-ink);
}
.booking-info-accordion { display: grid; gap: 10px; }
.booking-info-item {
  border: 1px solid var(--color-pebble);
  border-radius: 12px;
  background: #f7f7f7;
  overflow: clip;
}
.booking-info-item summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 20px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-deep-ink);
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease;
}
.booking-info-item summary::-webkit-details-marker { display: none; }
.booking-info-item summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  flex-shrink: 0;
}
.booking-info-item[open] { background: #fff; }
.booking-info-item[open] summary {
  min-height: 48px;
  padding: 10px 18px;
  background: #f1f1f1;
}
.booking-info-item[open] summary::after { content: '\2212'; }
.booking-info-item.is-collapsing summary {
  min-height: 68px;
  padding: 20px 18px;
}
.booking-info-item.is-collapsing summary::after { content: '+'; }
.booking-info-item summary:hover { background: #eeeeee; }
.booking-info-item summary:focus-visible {
  outline: 3px solid var(--color-deep-ink);
  outline-offset: -4px;
}
.booking-info-answer { padding: 12px 18px 18px; }
.booking-info-answer p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-charcoal);
  margin: 0;
}
@media (max-width: 768px) {
  .booking-info-title { font-size: 1.75rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-info-item summary { transition: none; }
}

/* Itinerario button — inside booking-info */
.itinerario-btn-single {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 24px auto 0;
  padding: 14px 24px;
  background: #AA574E;
  color: var(--color-pure-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

.itinerario-btn-single:hover {
  background: #c46a61;
}

.itinerario-btn-single:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ============================================
   7. SERVICES SECTION — 4 Rettangoli Colorati
   ============================================ */
.services-section {
  padding: 64px 0 16px 0;
  background: var(--color-pure-white);
}

.section-header {
  text-align: center;
  margin-bottom: 16px;
  padding: 0 var(--spacing-xl);
}

.section-divider {
  width: 1450px;
  max-width: calc(100% - 64px);
  height: 1px;
  background: var(--color-pebble);
  margin: 35px auto;
}

.section-header h3 {
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--color-deep-ink);
  margin: 0;
  line-height: 1.2;
}

.section-header h2 {
  font-size: var(--text-display-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  color: var(--color-deep-ink);
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  font-size: var(--text-body);
  color: var(--color-cool-ash);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Card base */
.service-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease;
  min-height: 750px;
}

.service-card:hover {
  opacity: 0.85;
}

/* Top part: SVG + Title */
.service-card-top {
  position: relative;
  flex: 3;
  min-height: 280px;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.service-card-info {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
}

.service-card-label {
  display: inline-block;
  font-size: var(--text-heading-lg);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  background: rgba(0, 13, 16, 0.82);
  padding: 8px 16px;
  border-radius: 4px;
}

/* Bottom part: colored description */
.service-card-bottom {
  height: 200px;
  padding: 24px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.service-card-bottom h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FEFEFE;
  margin: 0;
  line-height: 1.1;
}

.service-card-bottom p {
  font-size: 1.2rem;
  color: #FEFEFE;
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
  width: 100%;
  text-align: left;
}

/* --- 4 Colori bottom --- */
/* 1. Autorimessa */
.service-card--parking-bg {
  background: #1F2B3A;
}

/* 2. Soccorso Stradale */
.service-card--assistance-bg {
  background: #E4BE86;
}

/* 3. Noleggio */
.service-card--rental-bg {
  background: #BE583F;
}

/* 4. Officina */
.service-card--workshop-bg {
  background: #4E5660;
}

/* ============================================
   8. FADE-IN ANIMATION (Stagger)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   10. REDION + RECENSIONI
   ============================================ */
.redion-reviews-section {
  padding: 40px 0;
  background: var(--color-pure-white);
}

.redion-reviews-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Colonna RediOn */
.redion-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  border-bottom: none;
}

.redion-logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

.redion-text {
  font-size: 1.3rem;
  color: var(--color-deep-ink);
  line-height: 1.6;
}

/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
  background: #1F2B3A;
  padding: var(--section-gap) 0 var(--spacing-xl);
  color: #DFD0BF;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--section-gap);
  margin-bottom: var(--section-gap);
}

.footer-col h4 {
  font-size: var(--text-heading);
  color: #DFD0BF;
  margin-bottom: var(--spacing-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
  color: #DFD0BF;
  font-size: var(--text-nav);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #AA574E;
}

.footer-contact p,
.footer-hours-social p,
.footer-privacy p {
  color: #DFD0BF;
  font-size: var(--text-nav);
  margin-bottom: var(--spacing-xs);
}

.footer-contact a,
.footer-hours-social a {
  color: #DFD0BF;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-hours-social a:hover {
  color: #AA574E;
}

.footer-hours-social h4,
.footer-social-col h4 {
  font-size: var(--text-heading);
  color: #DFD0BF;
  margin-bottom: var(--spacing-xs);
}

.footer-privacy a {
  color: #DFD0BF;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-privacy a:hover {
  color: #AA574E;
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #DFD0BF;
  border-radius: 50%;
  color: #1F2B3A;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: #AA574E;
  color: #DFD0BF;
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(223, 208, 191, 0.2);
  text-align: center;
  color: #DFD0BF;
  font-size: var(--text-caption);
}

/* ============================================
   11. WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  z-index: 9000;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-float a {
  color: var(--color-pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* ============================================
   12. COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1F2B3A;
  border-top: 1px solid rgba(223, 208, 191, 0.2);
  border-radius: 16px 16px 0 0;
  padding: var(--spacing-md) var(--spacing-xl);
  max-width: 100%;
  width: 100%;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-text {
  color: #DFD0BF;
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.cookie-text a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font-display);
}

.cookie-btn-accept {
  background: #DFD0BF;
  color: #1F2B3A;
  border-color: #DFD0BF;
}

.cookie-btn-accept:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.cookie-btn-reject {
  background: transparent;
  color: #DFD0BF;
  border: 2px solid #DFD0BF;
}

.cookie-btn-reject:hover {
  background: #DFD0BF;
  color: #1F2B3A;
}

/* ============================================
   13. 404 PAGE
   ============================================ */
.not-found-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-gap) var(--spacing-xl);
  background: var(--color-pure-white);
}

.not-found-card {
  text-align: center;
  padding: var(--section-gap) var(--spacing-xl);
  max-width: 600px;
}

.not-found-code {
  font-size: var(--text-display-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-hero);
  line-height: var(--leading-hero);
  color: var(--color-deep-ink);
  margin-bottom: var(--spacing-lg);
  display: block;
}

.not-found-card h1 {
  font-size: var(--text-display-lg);
  margin-bottom: var(--spacing-md);
}

.not-found-card p {
  margin-bottom: var(--spacing-xl);
  color: var(--color-cool-ash);
}

/* ============================================
   14. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    background-color: #F8F3EB;
    background-image: url(assets/images/heromob3.png?v=639300131640000000);
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
  }
  
  .hero-overlay {
    background: transparent;
  }
  
  /* Logo a sinistra nella hero mobile */
  .hero-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    transform: none;
    z-index: 1001;
    padding: 0;
  }
  
  .hero-logo img {
    height: 70px;
  }

  /* Nascondi logo hero sulla homepage mobile */
  .home .hero-logo {
    display: none;
  }
  
  /* Burger fisso in alto a dx, senza header */
  .site-header {
    position: fixed;
    top: 0;
    right: var(--spacing-md);
    z-index: 1000;
    padding: var(--spacing-md) 0;
  }
  
  .hamburger-btn {
    width: 44px;
    height: 44px;
    background: var(--color-deep-ink);
    padding: 10px;
  }
  
  .hamburger-btn span {
    width: 12px;
    background: var(--color-pure-white);
  }
  
  /* Hero — contenuto 60px più in basso */
  .hero-section {
    align-items: flex-start;
  }
  
  .hero-content {
    padding: 100px var(--spacing-md) 0;
    min-height: 100vh;
    align-items: flex-start;
  }
  
  /* Bottoni centrati in basso */
  .hero-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 320px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    justify-content: center;
  }
  
  .hero-scroll-cue {
    display: none !important;
  }
  
  .hero-buttons .btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    font-size: 0.85rem;
  }
  
  .booking-map-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 32px !important;
    padding: 0 var(--spacing-sm);
    margin-top: 40px !important;
  }
  
  /* Box minimal solo bordo per booking-info mobile */
  .booking-info {
    padding-top: 0;
    order: -1;
    border: 2px solid #8e8e95;
    border-radius: 12px;
    padding: 20px;
    background: #f7f7f7;
  }
  
  /* Box semitrasparente + blur per booking widget mobile */
  .booking-map-row > .booking-widget {
    width: 100%;
    box-sizing: border-box;
    background: #f7f7f7;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #8e8e95;
    border-radius: 20px;
    padding: 16px;
  }
  
  /* Riduci spazio header plugin prenotazioni mobile */
  .gp-booking-wrapper .booking-header {
    padding: 4px 0 0 0 !important;
    min-height: 4px !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* RediOn mobile — riquadro con logo e testo leggibile */
  .services-section {
    padding: 0 !important;
    margin-top: 40px !important;
  }

  .redion-reviews-section {
    padding: 16px 0 !important;
  }

  .section-divider {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  .redion-reviews-grid {
    padding: 0 var(--spacing-sm);
  }

  .redion-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
    border: 2px solid #8e8e95;
    border-radius: 16px;
    background: #f7f7f7;
  }

  .redion-logo {
    height: auto;
    width: 190px;
    max-width: 80%;
    align-self: center;
    display: block;
  }

  .redion-text {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.65;
    max-width: none;
    padding: 0;
    text-align: left;
    overflow-wrap: break-word;
  }

  .redion-text p {
    margin: 0;
  }
  
  /* Menu mobile — full width */
  .mobile-menu {
    width: 100%;
    max-width: none;
  }
  
  .mobile-menu nav a {
    font-size: 2rem;
  }
  
  /* WhatsApp mobile — piu in basso a dx */
  .whatsapp-float {
    bottom: 24px !important;
    right: 16px !important;
  }

  /* Cookie banner mobile — piu compatto */
  .cookie-banner {
    padding: 16px;
  }

  .cookie-text {
    font-size: 0.85rem;
  }

  .cookie-buttons {
    flex-direction: row;
    gap: 10px;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
  }
}

/* Accessibility and optional third-party map. */
.screen-reader-text { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.skip-link { position:fixed;top:8px;left:8px;z-index:100000;padding:12px 20px;background:#fff;color:#000;transform:translateY(-200%); }
.skip-link:focus { transform:none; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid #2AA0B3;outline-offset:4px; }
[hidden] { display:none!important; }
.cookie-settings { background:transparent;border:0;color:inherit;text-decoration:underline;cursor:pointer;padding:12px; }
.gp-map-placeholder { padding:32px;text-align:center;background:#f5f3ef;color:#1F2B3A; }
.gp-map-enable { padding:12px 24px;border:0;border-radius:24px;background:#AA574E;color:#fff;cursor:pointer; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important; } .fade-in {opacity:1;transform:none;} }
.no-js .fade-in {opacity:1;transform:none;}

/* Homepage desktop: illustrazione approvata, testi e logo indipendenti.
   Header e menu esistenti non vengono modificati. */
.hero-desktop-copy { display: none; }
@media (min-width: 769px) {
  .hero-mobile-heading { display: none; }
  .hero-section--illustrated {
    height: 100svh;
    min-height: 0;
    background-color: #fff7ea;
    background-image: url('assets/images/hero-cortile-desktop.webp');
    background-size: 100% 100%;
    background-position: center;
    isolation: isolate;
  }
  .hero-section--illustrated > .hero-content { display: none; }
  .hero-desktop-copy {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10.5%;
    left: 3.6%;
    width: 28.4%;
    height: 73%;
    justify-content: space-between;
    align-items: flex-start;
    color: #08283e;
  }
  .hero-brand-mark {
    width: 100%;
    aspect-ratio: 5.25;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
  }
  .hero-brand-mark img {
    position: absolute;
    width: 131.03%;
    height: auto;
    max-width: none;
    left: -14.3%;
    top: -133.05%;
  }
  .hero-desktop-title {
    font-family: 'Outfit', sans-serif;
    font-size: min(5.25vw, 9.8svh);
    font-weight: 700;
    line-height: 0.99;
    letter-spacing: -0.045em;
    color: inherit;
    margin: 0;
  }
  .hero-desktop-rule {
    width: 66%;
    height: clamp(4px, .55svh, 7px);
    background: #e4be86;
    flex: 0 0 auto;
  }
  .hero-desktop-description {
    font-family: 'Outfit', sans-serif;
    font-size: min(1.85vw, 3.4svh);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: inherit;
    margin: 0;
  }
  .hero-desktop-actions {
    display: flex;
    gap: 1.35vw;
    align-items: center;
    width: 100%;
  }
  .hero-desktop-book {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    padding: 1.55svh 1.8vw;
    background: #08283e;
    color: #fff;
    font-size: min(1.55vw, 2.9svh);
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
  }
  .hero-desktop-services {
    color: #08283e;
    font-size: min(1.25vw, 2.4svh);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: .3em;
  }
  .hero-desktop-book:hover { background: #29465a; color: #fff; }
  .hero-desktop-services:hover { color: #a5584d; }
  .hero-desktop-actions a:focus-visible { outline: 3px solid #a5584d; outline-offset: 6px; }
}

@media (min-width: 769px) {
  .hero-desktop-title:has(.hero-title-line) { font-size: min(4.18vw, 9.8svh); }
  .hero-title-line { white-space: nowrap; }
}
@media (min-width: 769px) {
  .hero-message-group { width: max-content; max-width: 100%; }
  .hero-message-group .hero-desktop-rule {
    width: 100%;
    margin: clamp(18px, 3svh, 32px) 0 clamp(16px, 2.5svh, 27px);
  }
}
/* Hero mobile IT/EN: stessa composizione, asset verticale dedicato. */
@media (max-width: 768px) {
  .hero-mobile-heading { display: none; }
  .hero-section--illustrated {
    height: auto;
    min-height: max(100svh, 208vw);
    background-color: #fff5e6;
    background-image: url('assets/images/hero-cortile-mobile.webp');
    background-size: 100% auto;
    background-position: center bottom;
    align-items: flex-start;
  }
  .hero-section--illustrated > .hero-content { display: none; }
  .hero-desktop-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
    padding: 26px 6vw 0;
    color: #08283e;
  }
  .hero-brand-mark {
    position: relative;
    width: min(52vw, 280px);
    aspect-ratio: 5.25;
    overflow: hidden;
    flex: 0 0 auto;
    margin-bottom: clamp(25px, 6vw, 40px);
  }
  .hero-brand-mark img {
    position: absolute;
    width: 131.03%;
    height: auto;
    max-width: none;
    left: -14.3%;
    top: -133.05%;
  }
  .hero-message-group { width: max-content; max-width: 100%; }
  .hero-desktop-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 10.2vw, 70px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: inherit;
    margin: 0;
  }
  .hero-title-line { white-space: nowrap; }
  .hero-desktop-rule {
    height: 3px;
    width: 100%;
    background: #e4be86;
    margin: clamp(10px, 2.5vw, 18px) 0;
  }
  .hero-desktop-description {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(14px, 4vw, 25px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: inherit;
    margin: 0;
  }
  .hero-desktop-actions {
    display: flex;
    align-items: center;
    gap: 5vw;
    margin-top: clamp(16px, 4vw, 26px);
  }
  .hero-desktop-book {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 100px;
    padding: 11px 5vw;
    background: #08283e;
    color: #fff;
    font-size: clamp(13px, 3.7vw, 23px);
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
  }
  .hero-desktop-services {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: clamp(12px, 3.3vw, 21px);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: .3em;
    color: #08283e;
  }
}
/* Header compatto condiviso; logo della home nella barra solo su mobile. */
.home-header-logo { display: none; }

@media (max-width: 768px) {
  .site-header--home .header-inner { padding-top: 0; }
  .site-header--home {
    top: 0; right: 0; left: 0;
    height: 64px;
    padding: 10px 5vw;
    background: #fcfbf7;
    border-bottom: 1px solid #e8e5df;
    box-shadow: 0 2px 8px #0000000d;
  }
  .site-header--home .header-inner {
    height: 44px;
    align-items: center;
    gap: 12px;
  }
  .site-header--home .home-header-logo {
    display: block;
    position: relative;
    width: min(50vw, 250px);
    aspect-ratio: 5.25;
    overflow: hidden;
    flex: 0 0 auto;
  }
  .home-header-logo img {
    position: absolute;
    width: 131.03%; height: auto; max-width: none;
    left: -14.3%; top: -133.05%;
  }
  .site-header--home .header-actions { gap: 10px; margin-left: auto; }
  .hero-section--illustrated {
    height: 100svh;
    min-height: 0;
    background-size: 100% 80%;
    background-position: center bottom;
  }
  .hero-section--illustrated .hero-brand-mark { display: none; }
  .hero-desktop-copy { padding-top: max(88px, 14svh); }
}
@media (max-width: 768px) and (max-height: 700px) {
  .hero-desktop-copy { padding-top: 82px; }
  .hero-desktop-title { font-size: clamp(27px, 9vw, 48px); }
  .hero-desktop-description { font-size: clamp(12px, 3.7vw, 20px); }
  .hero-desktop-rule { margin: 8px 0; }
  .hero-desktop-actions { margin-top: 10px; }
}
/* Solo mobile: colori uniformi e ritaglio proporzionale, senza deformazioni. */
@media (max-width: 768px) {
  .site-header--home { background: #fffdf9; border-bottom-color: #fffdf9; }
  .site-header--home .home-header-logo { width: min(55vw, 250px); }
  .site-header--home .hamburger-btn { background: #1f2b3a; }
  .hero-section--illustrated {
    background: #fff5e6;
    isolation: isolate;
  }
  .hero-section--illustrated::before {
    content: '';
    position: absolute;
    inset: 20% 0 0;
    z-index: -1;
    pointer-events: none;
    background: url('assets/images/hero-cortile-mobile-straight.webp') center top / cover no-repeat;
  }
}
@media (max-width: 768px) {
  .hero-section--illustrated::before {
    inset: auto 0 auto;
    top: var(--mobile-art-top, 10%);
    height: var(--mobile-art-height, 90%);
    background-size: auto 100%;
    background-position: center top;
  }
}
@media (max-width: 768px) {
  .hero-desktop-actions {
    align-self: flex-end;
    width: max-content;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 14px;
    text-align: center;
  }
  .hero-desktop-services { justify-content: center; }
  #prenotazione, #servizi { scroll-margin-top: 80px; }
}
/* Entrambe le azioni della hero usano pillole blu. */
.hero-desktop-services {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #08283e;
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.hero-desktop-services:hover { background: #29465a; color: #fff; }
@media (min-width: 769px) {
  .hero-desktop-services {
    padding: 1.55svh 1.25vw;
    font-size: min(1.1vw, 2.4svh);
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .hero-desktop-services {
    padding: 11px 5vw;
    font-size: clamp(13px, 3.7vw, 23px);
    min-height: 44px;
  }
  .hero-desktop-actions {
    gap: 8px;
    margin-top: 4px;
    transform: translateY(-4px);
  }
}
/* Fondo della hero e tipografia identica nelle due azioni. */
.hero-section--illustrated { background-color: #fcfbf8; }
.hero-desktop-actions a { line-height: 1.15; }
@media (min-width: 769px) {
  .hero-section--illustrated { background-image: url('assets/images/hero-cortile-desktop-cutout.webp'); }
  .hero-desktop-book, .hero-desktop-services {
    font-size: min(1.4vw, 2.7svh);
    padding: 1.55svh 1.3vw;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .hero-desktop-book, .hero-desktop-services {
    font-size: clamp(13px, 3.7vw, 23px);
    padding: 11px 5vw;
  }
  .hero-desktop-copy { padding-top: max(68px, calc(14svh - 20px)); }
}
@media (max-width: 768px) and (max-height: 700px) {
  .hero-desktop-copy { padding-top: 74px; }
  .hero-desktop-title { font-size: clamp(26px, 8.4vw, 45px); }
  .hero-desktop-rule { margin: 5px 0; }
  .hero-desktop-actions { margin-top: 2px; }
}
/* Hero mobile: titolo e sottotitolo separati da una linea verticale. */
@media (max-width: 768px) {
  .hero-message-group {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) 3px minmax(0, 1fr);
    align-items: center;
    column-gap: 3vw;
    width: 100%;
    max-width: none;
  }
  .hero-desktop-title {
    font-size: clamp(22px, 6.1vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }
  .hero-title-line { white-space: normal; }
  .hero-desktop-rule {
    width: 3px;
    height: 100%;
    min-height: 76px;
    margin: 0;
    background: #e4be86;
  }
  .hero-desktop-description {
    font-size: clamp(12px, 3.55vw, 23px);
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  .hero-desktop-description br { display: none; }
  .hero-desktop-actions {
    align-self: stretch;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 3vw;
    margin-top: 20px;
    transform: none;
  }
  .hero-desktop-book, .hero-desktop-services {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 2vw;
    font-size: clamp(12px, 3.5vw, 22px);
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .hero-desktop-description {
    font-size: clamp(14px, 4.2vw, 28px);
    line-height: 1.3;
  }
}
@media (max-width: 768px) {
  .hero-message-group { grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .hero-desktop-title { font-size: clamp(24px, 6.7vw, 48px); }
  .hero-desktop-description { font-size: clamp(15px, 4.6vw, 30px); }
  .hero-desktop-actions { transform: translateY(clamp(28px, 4.75svh, 40px)); }
}
/* Testi mobile distribuiti nell'area libera prima del tetto. */
@media (max-width: 768px) {
  .hero-desktop-copy { padding-top: max(80px, 11svh); }
  .hero-message-group {
    min-height: clamp(110px, 16svh, 160px);
    align-items: center;
  }
  .hero-desktop-title {
    font-size: clamp(26px, 7.4vw, 52px);
    line-height: 1.06;
  }
  .hero-desktop-description {
    font-size: clamp(16px, 4.9vw, 33px);
    line-height: 1.3;
  }
  .hero-desktop-rule { align-self: stretch; }
  .hero-desktop-actions { margin-top: 12px; }
}
@media (max-width: 768px) and (max-height: 700px) {
  .hero-desktop-copy { padding-top: 76px; }
  .hero-message-group { min-height: 104px; }
}
/* Solleva insieme illustrazione e pillole, senza alterarne l'allineamento. */
@media (max-width: 768px) {
  .hero-section--illustrated::before {
    top: calc(var(--mobile-art-top, 10%) - 38.71px);
    height: calc(var(--mobile-art-height, 90%) + 38.71px);
  }
  .hero-desktop-actions { transform: translateY(calc(clamp(28px, 4.75svh, 40px) - 24px)); }
}
